/* ==========================================
   RESPONSIVE DESIGN 
   ========================================== */

/* ==========================================
   BASE STYLES (320px minimum)
   Applied to all screens 320px and up
   ========================================== */

/* This is your mobile-first base */
html {
  font-size: 14px; /* Small phones default */
}

body {
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================
   VERY SMALL PHONES (320px - 374px)
   iPhone SE (1st gen), small Android phones
   ========================================== */

@media (min-width: 320px) and (max-width: 374px) {
  html {
    font-size: 14px; /* Keep small */
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem; /* 24.5px */
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.9rem; /* 12.6px */
  }

  /* Sections */
  section {
    padding: 2rem 0.8rem;
  }

  /* Headings */
  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  /* Navigation */
  nav {
    padding: 0.8rem 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Newsletter */
  .newsletter-fields {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .newsletter-form input {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }

  .newsletter-form button {
    width: 70%;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

/* ==========================================
   SMALL PHONES (375px and up)
   iPhone SE (2nd gen), iPhone 12 mini
   ========================================== */

@media (min-width: 375px) {
  html {
    font-size: 15px; /* Slightly larger */
  }

  .hero h1 {
    font-size: 2rem; /* 30px */
  }

  .hero p {
    font-size: 1rem; /* 15px */
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
  }

  /* Newsletter */
  .newsletter-form button {
    width: 65%;
  }
}

/* ==========================================
   LARGE PHONES (425px and up)
   iPhone 14, Most Android phones
   ========================================== */

@media (min-width: 425px) {
  html {
    font-size: 16px; /* Standard size */
  }

  /* Hero section */
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2.25rem; /* 36px */
  }

  .hero p {
    font-size: 1.05rem; /* 16.8px */
  }

  /* Navigation */
  nav {
    padding: 1rem 1.5rem;
  }

  /* Sections */
  section {
    padding: 3rem 1.5rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  /* Newsletter */
  .newsletter-form button {
    width: 60%;
  }
}

/* ==========================================
   TABLETS (768px and up)
   iPad, Android tablets
   ========================================== */

@media (min-width: 768px) {
  html {
    font-size: 17px; /* Larger for tablets */
  }

  /* Navigation */
  nav {
    padding: 1rem 2rem;
  }

  .nav-links {
    gap: 2rem;
  }

  /* Hero section */
  .hero {
    padding: 4rem 2rem;
  }

  .hero h1 {
    font-size: 3rem; /* 51px */
  }

  .hero p {
    font-size: 1.2rem; /* 20.4px */
  }

  /* Sections */
  section {
    padding: 4rem 2rem;
  }

  /* Section headings */
  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.8rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    width: auto; /* Not full width anymore */
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }

  /* Footer - 3 columns */
  .footer-content {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 3rem;
    text-align: left;
  }

  /* Newsletter fields - side by side */
  .newsletter-fields {
    grid-template-columns: 1fr 1.5fr;
  }

  .newsletter-form button {
    width: 50%;
  }

  /* Social links - left aligned */
  .social-links {
    justify-content: flex-start;
  }

  /* Services list - left aligned */
  .services-list {
    text-align: left;
  }

  .services-list a {
    padding-left: 1.5rem;
  }

  .services-list a::before {
    display: block;
  }
}

/* ==========================================
   SMALL LAPTOPS (1024px and up)
   iPad Pro, Small laptops
   ========================================== */

@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }

  /* Container widths */
  .container {
    max-width: clamp(960px, 85vw, 1400px);
  }

  /* Navigation */
  nav {
    max-width: clamp(1200px, 90vw, 1800px);
  }

  .nav-links {
    gap: 2.5rem;
  }

  /* Hero section */
  .hero h1 {
    font-size: 3.5rem; /* 63px */
  }

  .hero p {
    font-size: 1.25rem; /* 22.5px */
  }

  /* Sections */
  section {
    padding: 5rem 2rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }

  /* Footer */
  .footer-content {
    gap: 4rem;
  }
}

/* ==========================================
   DESKTOPS (1200px and up)
   Standard monitors
   ========================================== */

@media (min-width: 1200px) {
  html {
    font-size: 19px;
  }

  /* Container widths */
  .container {
    max-width: clamp(1200px, 85vw, 1600px);
  }

  nav {
    max-width: clamp(1400px, 90vw, 1800px);
  }

  /* Hero section */
  .hero h1 {
    font-size: 4rem; /* 76px */
  }

  .hero p {
    font-size: 1.3rem; /* 24.7px */
  }

  /* Sections */
  section {
    padding: 6rem 2rem;
  }
}

/* ==========================================
   LARGE SCREENS (1440px and up)
   Large monitors
   ========================================== */

@media (min-width: 1440px) {
  html {
    font-size: 20px;
  }

  /* Container widths */
  .container {
    max-width: clamp(1400px, 85vw, 1800px);
  }

  nav {
    max-width: clamp(1600px, 90vw, 2000px);
  }

  /* Hero section */
  .hero h1 {
    font-size: 4.5rem; /* 90px */
  }

  .hero p {
    font-size: 1.4rem; /* 28px */
  }

  /* Footer */
  footer {
    padding: 3rem 2rem 2rem;
  }
  .footer-content {
    max-width: clamp(1600px, 90vw, 2000px);
  }
}

/* ==========================================
   ULTRA-WIDE (1920px and up)
   Very large monitors
   ========================================== */

/* @media (min-width: 1920px) {
  html {
    font-size: 20px;
  } */

/* Max containers */
/* .container {
    max-width: 1800px;
  }

  nav {
    max-width: 2000px;
  }

  .footer-content {
    max-width: 2000px;
  } */

/* Hero section */
/* .hero h1 {
    font-size: 5rem;
  }
} */

/* ==========================================
   LANDSCAPE ORIENTATION
   For phones/tablets in landscape
   ========================================== */

@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: 70vh; /* Reduce height */
    padding: 2rem 2rem;
  }

  section {
    padding: 2rem 2rem;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
  body {
    background: white;
    color: black;
  }

  nav,
  footer,
  .no-print {
    display: none;
  }

  .container {
    max-width: 100%;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
