/* ============================================================
   RTI – Roome Telecommunications Inc.
   Main Stylesheet
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Alyrica Brand Blues */
  --blue-dark:  #0A2334;
  --blue-mid:   #137287;
  --blue-main:  #137287;
  --blue-light: #33AAFF;
  --blue-pale:  #dff0f5;

  /* Alyrica Brand Teal */
  --teal-main:  #0AC4AE;
  --teal-pale:  #d6f7f4;

  /* Alyrica Brand Greens */
  --green-dark:  #2d8a36;
  --green-mid:   #35a040;
  --green-main:  #3EB549;
  --green-light: #6ccc74;
  --green-pale:  #e5f7e6;

  /* Alyrica Accent */
  --red-orange:  #EB4800;

  /* Neutrals */
  --white:      #ffffff;
  --gray-50:    #fafafa;
  --gray-100:   #f5f5f5;
  --gray-200:   #eeeeee;
  --gray-300:   #e0e0e0;
  --gray-600:   #757575;
  --gray-800:   #424242;
  --text-main:  #1A1A1A;
  --text-muted: #5a6a84;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transition */
  --ease: 0.25s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', 'Roboto', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

ul {
  list-style: none;
}

/* ── Layout Container ───────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Skip Link (accessibility) ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-main);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 999;
  transition: top var(--ease);
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
   HEADER / NAVIGATION  – dark theme matching Alyrica brand
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 35, 52, 0.97); /* --blue-dark */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  overflow: visible;
}

.logo-link .logo {
  height: 96px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--ease), color var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(10, 196, 174, 0.15);
  color: var(--teal-main);
  outline: none;
}

/* Hamburger button (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
}

/* Hamburger → X when menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0A2334; /* fallback while images load */
}

/* Slideshow panels – JS-driven via .hero-slide--active class */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.hero-slide--active {
  opacity: 1;
}

/* Dark gradient overlay so text stays readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 35, 52, 0.55) 0%,
    rgba(19, 114, 135, 0.42) 50%,
    rgba(10, 196, 174, 0.35) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2; /* above .hero-overlay (z-index: 1) */
  max-width: 700px;
  padding: 80px 24px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 20px;
}

.accent-green { color: #0AC4AE; }
.accent-blue  { color: #33AAFF; }

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
}
.btn-primary:hover {
  background: var(--blue-main);
  border-color: var(--blue-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 118, 210, 0.35);
}

.btn-secondary {
  background: var(--green-main);
  color: var(--white);
  border-color: var(--green-main);
}
.btn-secondary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 142, 60, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

/* Decorative underline on h2 */
.section-header h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-main), var(--teal-main));
  border-radius: 2px;
  margin: 12px auto 0;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--teal-main);
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease), border-top-color var(--ease);
}

/* Per-card top-border accent colors */
.feature-card:nth-child(1) { border-top-color: #1976d2; }
.feature-card:nth-child(2) { border-top-color: var(--blue-dark); }
.feature-card:nth-child(3) { border-top-color: var(--green-main); }

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Icon badge — circle with pale brand-color background */
.feature-icon {
  font-size: 2.2rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--teal-pale);
  transition: background var(--ease);
}

.feature-card:nth-child(1) .feature-icon { background: #e3f2fd; }
.feature-card:nth-child(2) .feature-icon { background: var(--blue-pale); }
.feature-card:nth-child(3) .feature-icon { background: var(--green-pale); }


.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================
   PAYMENTS SECTION
   ============================================================ */
.payments-section {
  background-color: #005685; /* fallback */
  background-image: linear-gradient(to bottom right, #1e40af, #166534);
}

/* Light text on the dark payments background */
.payments-section .section-header h2 {
  color: #ffffff;
}

.payments-section .section-header h2::after {
  background: linear-gradient(90deg, var(--teal-main), var(--blue-light));
}

.payments-section .section-sub {
  color: rgba(255, 255, 255, 0.72);
}

/* ── Integrated payment panel ───────────────────────────────── */
/* Payment cards */
.pay-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 780px;
  margin: 0 auto;
}

.pay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--teal-main);
  transition: box-shadow var(--ease), transform var(--ease), border-top-color var(--ease);
}

/* One-Time Payment = teal; Customer Portal = brand blue */
.pay-card:nth-child(1) { border-top-color: var(--teal-main); }
.pay-card:nth-child(2) { border-top-color: var(--red-orange); }

.pay-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Icon badge circle */
.pay-card-icon {
  font-size: 2.2rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  transition: background var(--ease);
}

.pay-card:nth-child(1) .pay-card-icon { background: var(--teal-pale); }
.pay-card:nth-child(2) .pay-card-icon { background: #fde8dc; }

.pay-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.pay-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.pay-card .btn {
  margin-top: 8px;
  min-width: 180px;
}

/* Portal result panel */
.portal-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--green-pale);
  border-left: 4px solid var(--green-main);
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.65;
}

/* ============================================================
   FORMS (shared across payment & contact)
   ============================================================ */
.payment-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #aab4c0;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6a84' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Shared card shell — matches pay-card aesthetic */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--teal-main);
  padding: 40px 36px;
  transition: box-shadow var(--ease), transform var(--ease), border-top-color var(--ease);
}

/* Contact info = teal; Trouble ticket = dark blue */
.contact-info  { border-top-color: #1976d2; }
.ticket-card   { border-top-color: var(--red-orange); }

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.contact-info h3,
.ticket-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--teal-pale);
  text-align: center;
}

.contact-info h3 { color: #1976d2; }
.ticket-card  h3 { color: #1976d2; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}

.contact-item address {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-item a {
  color: var(--blue-main);
  font-weight: 500;
  display: inline-block;
  transition: color var(--ease);
  font-size: 1rem;
}

.contact-item a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* Trouble Ticket card */
.ticket-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.ticket-icon {
  font-size: 3rem;
  line-height: 1;
  background: var(--blue-pale);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(10, 196, 174, 0.25);
}

.ticket-card h3 {
  width: 100%;
}

.ticket-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

.ticket-btn {
  margin-top: 8px;
  min-width: 220px;
}

.ticket-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.ticket-note a {
  color: var(--blue-main);
  font-weight: 500;
  transition: color var(--ease);
}

.ticket-note a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0A2334;
  color: #ffffff;
}

/* ── Main footer body ── */
.footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 40px;
  padding: 48px 24px 40px;
  align-items: center;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding-top: 16px;
}

.footer-logo {
  height: 130px;
  width: auto;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 24px;
}

.footer-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 0;
  line-height: 1.3;
}

/* Column headings */
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin-bottom: 16px;
}

/* Quick links list */
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 0.95rem;
  color: #ffffff;
  transition: color var(--ease), padding-left var(--ease);
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--blue-light);
  padding-left: 4px;
}

/* Contact list */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.55;
}

.footer-contact-list span {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}

.footer-contact-list address {
  font-style: normal;
  color: #ffffff;
}

.footer-contact-list a {
  color: #ffffff;
  transition: color var(--ease);
}

.footer-contact-list a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

/* ── Bottom bar ── */
.footer-bottom {
  padding: 16px 24px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ease);
}

.footer-legal a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Show hamburger, hide nav links by default */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    /* Override desktop inline-flex; use absolute dropdown */
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
    background: #0A2334;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    gap: 2px;
    /* Smooth open/close */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0s linear 0.35s;
    z-index: 99;
  }

  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    padding: 12px 16px 20px;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0s linear 0s;
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  /* Logo – scale down so it doesn't crowd the hamburger */
  .logo-link .logo {
    height: 84px;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Pay cards – stack on mobile */
  .pay-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact */
  .contact-grid {
    gap: 32px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .logo-link .logo {
    height: 70px;
  }

  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding: 56px 16px;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 36px;
  }

  /* Footer bottom stacks cleanly */
  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }

  .footer-legal span[aria-hidden] {
    display: none;
  }
}

/* ============================================================
   REDUCED MOTION
   (Hero slideshow reduced-motion handled in main.js)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   LARGE DESKTOP (≥ 1280px)
   ============================================================ */
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }

  .hero-content {
    max-width: 780px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   iOS SAFE AREA & TOUCH IMPROVEMENTS
   ============================================================ */

/* Support iPhone notch / Dynamic Island padding */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .site-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Ensure tap targets meet 44px minimum on touch devices */
@media (hover: none) and (pointer: coarse) {
  .nav-links a,
  .btn,
  .nav-toggle {
    min-height: 44px;
  }

  /* Remove hover transforms that feel wrong on touch */
  .feature-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .btn:hover {
    transform: none;
    box-shadow: none;
  }
}
