/* ========================================
   Patel Coolers - Design System & Styles
   ======================================== */

/* CSS Variables / Design Tokens */
:root {
  /* Colors */
  --primary: #1e6cb5;
  --primary-dark: #155a96;
  --primary-light: #3d8ad4;
  --primary-foreground: #ffffff;
  
  --accent: #f5a623;
  --accent-dark: #d4890f;
  --accent-foreground: #1a2b3c;
  
  --background: #ffffff;
  --foreground: #1a2b3c;
  
  --secondary: #e8f4fc;
  --secondary-foreground: #1e6cb5;
  
  --muted: #f5f7fa;
  --muted-foreground: #5a6b7c;
  
  --border: #e2e8f0;
  --destructive: #dc2626;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #155a96 0%, #1e6cb5 50%, #3d8ad4 100%);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-lg);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

/* Text Utilities */
.text-primary {
  color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.nav-link:hover {
  opacity: 1;
  color: var(--primary);
}

.btn-phone {
  display: none;
  border-radius: 9999px;
}

@media (min-width: 768px) {
  .btn-phone {
    display: inline-flex;
  }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle .close-icon {
  display: none;
}

.menu-toggle.active .menu-icon {
  display: none;
}

.menu-toggle.active .close-icon {
  display: block;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile .nav-link {
  padding: 0.75rem 0;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  color: var(--primary-foreground);
}

.hero-welcome {
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-welcome {
    font-size: 1.25rem;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 36rem;
  line-height: 1.7;
}

.hero-image {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-image {
    justify-content: flex-end;
  }
}

.hero-image-frame {
  position: relative;
}

.hero-image-circle-1 {
  position: absolute;
  inset: -1rem;
  border-radius: 9999px;
  border: 4px solid rgba(61, 138, 212, 0.3);
}

.hero-image-circle-2 {
  position: absolute;
  inset: -2rem;
  border-radius: 9999px;
  border: 2px solid rgba(61, 138, 212, 0.2);
}

.hero-img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 28rem;
  width: 100%;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   About Section
   ======================================== */
.about {
  padding: 5rem 0;
  background-color: var(--background);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  position: relative;
}

.about-img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.badge-year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
}

.badge-text {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.about-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ========================================
   Services Section
   ======================================== */
.services {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background-color: var(--background);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(30, 108, 181, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.1);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ========================================
   Products Section
   ======================================== */
.products {
  padding: 5rem 0;
  background-color: var(--background);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background-color: var(--secondary);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
}

.product-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: var(--background);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.product-card:hover .product-title {
  color: var(--primary);
}

.product-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========================================
   Quote Form Section
   ======================================== */
.quote-section {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.quote-wrapper {
  max-width: 56rem;
  margin: 0 auto;
}

.quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(30, 108, 181, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.quote-form {
  background-color: var(--background);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .quote-form {
    padding: 3rem;
  }
}

.form-section {
  margin-bottom: 2rem;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step-number {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 108, 181, 0.1);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--destructive);
}

.form-group textarea {
  resize: none;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.error-message {
  font-size: 0.75rem;
  color: var(--destructive);
}

.char-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.form-actions {
  padding-top: 1rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: 5rem 0;
  background: var(--gradient-hero);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-wrapper {
  background-color: var(--background);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .contact-form-wrapper {
    padding: 3rem;
  }
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .contact-title {
    font-size: 2.5rem;
  }
}

.contact-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 108, 181, 0.1);
}

.contact-form textarea {
  resize: none;
}

.contact-info {
  color: var(--primary-foreground);
}

.contact-info-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .contact-info-title {
    font-size: 2.5rem;
  }
}

.contact-info-text {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--accent);
}

.contact-value-sm {
  font-size: 1.125rem;
  transition: color 0.2s;
}

.contact-value-sm:hover {
  color: var(--accent);
}

.contact-secondary {
  font-size: 0.875rem;
  opacity: 0.75;
  margin-top: 0.25rem;
}

.contact-address {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--foreground);
  color: var(--background);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul li,
.footer-products ul li {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.footer-contact ul li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-contact ul li a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.5;
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background-color: #10b981;
}

.toast.error {
  background-color: var(--destructive);
}