/* =====================================================================
   CONSTRO 2.0 Hyderabad 2027 | Mobile & iOS Safari Responsiveness Fixes
   Preserves all existing desktop styling, layout, fonts, and colors.
   ===================================================================== */

/* ── 1. iOS Safe Area & Viewport Fixes ────────────────────────────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

/* ── Container padding & gutter safety for all devices ─────────────── */
.container {
  width: 100%;
  max-width: calc(var(--ci-container, 1320px) + 2rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* ── 2. iOS Safari Form Zoom Prevention ───────────────────────────── */
/* iOS Safari auto-zooms any input/select/textarea with font-size < 16px */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="url"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ── 3. Touch Target Minimums (Apple HIG 44px min) ────────────────── */
@media (max-width: 991px) {
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__link,
  .nav__trigger,
  .dropdown a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .form input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
  }
}

/* ── 4. Mobile Sticky Navigation & Dynamic Viewport Height ───────── */
@media (max-width: 1199px) {
  .site-nav {
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── 5. Horizontal Overflow Protection ────────────────────────────── */
img, video, iframe, table {
  max-width: 100%;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── 6. Form Mobile Layout Fixes ──────────────────────────────────── */
@media (max-width: 575px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .form-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .phone-group {
    flex-direction: column;
  }

  .phone-group select {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ── 7. Hero & Page Banner Scaling ────────────────────────────────── */
@media (max-width: 767px) {
  .page-banner h1 {
    word-break: break-word;
    hyphens: auto;
  }
}

/* -- 8. Fresh Modern Layouts (Preserving Brand Colors & Styling) ---- */

/* Layout Style A: Timeline / Process Split Flow for "Why CONSTRO 2.0" */
.feature-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.timeline-item {
  display: flex;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--hyd-red);
}
.timeline-item:hover {
  transform: translateY(-2px);
  border-color: var(--hyd-red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.timeline-item__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--hyd-red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-item__badge svg {
  width: 24px;
  height: 24px;
}
.timeline-item__content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
  font-weight: 700;
}
.timeline-item__content p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}

@media (max-width: 900px) {
  .feature-timeline {
    grid-template-columns: 1fr;
  }
}

/* Layout Style B: Interactive Badge-Pill Grid for "Who Should Attend" */
.attend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.attend-pill {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.attend-pill:hover {
  border-color: var(--hyd-blue);
  background: #f8fafc;
}
.attend-pill__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(25, 118, 210, 0.08);
  color: var(--hyd-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.attend-pill__icon svg {
  width: 20px;
  height: 20px;
}
.attend-pill__text h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  color: var(--dark);
  font-weight: 700;
}
.attend-pill__text p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--body);
  margin: 0;
}

@media (max-width: 600px) {
  .attend-grid {
    grid-template-columns: 1fr;
  }
}

/* -- 9. Visual Polish & Section Elevation (Preserving Brand Colors) -- */

/* A. Subtle interactive depth & elevation for cards */
.card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  border-radius: 10px;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
}

/* Card Icons refinement */
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--surface-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--hyd-red);
  transition: background 0.2s, color 0.2s;
}
.card:hover .card__icon {
  background: rgba(211, 47, 47, 0.1);
  color: var(--hyd-red);
}

/* B. Hero section badge & typography lift */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}
.hero h1 {
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}

/* C. Target KPI counter badges */
.targets {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
}
.targets ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.targets li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.targets li b {
  font-size: 2.2rem;
  font-weight: 800;
  color: #e67e22;
  line-height: 1.1;
  font-family: var(--font-heading);
}

/* D. Meet the Organizers layout lift */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.org-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.org-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}
.org-card__logo {
  height: 70px;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}
.org-card__role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--hyd-blue);
  background: rgba(25, 118, 210, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}
.org-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--dark);
}
.org-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--body);
  flex-grow: 1;
}

@media (max-width: 900px) {
  .org-grid {
    grid-template-columns: 1fr;
  }
}

/* E. Sponsorship tier cards styling */
.card--olive {
  border-top: 4px solid var(--hyd-orange);
  background: #ffffff;
}
.card--olive:hover {
  border-top-color: var(--hyd-red);
}

/* -- 10. Modern Card Transformation & Polished Aesthetics ---------- */

/* Transform standard cards into sleek, contemporary interactive tiles */
.card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.85rem 1.65rem;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 32px -8px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
}

/* Red top accent strip for primary highlights */
.card--top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hyd-red) 0%, var(--hyd-orange) 100%);
  border-radius: 14px 14px 0 0;
}

/* Card Icons with smooth dual-tone backdrops */
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(211, 47, 47, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--hyd-red);
  transition: all 0.25s ease;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.card:hover .card__icon {
  background: rgba(211, 47, 47, 0.1);
  color: var(--hyd-red);
  transform: scale(1.05);
}


/* Distinct card styling in Exhibition Sectors section */
.section--sage .card {
  background: #ffffff;
  border: 1px solid rgba(46, 125, 50, 0.15);
}

.section--sage .card .card__icon {
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
}

.section--sage .card:hover .card__icon {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  transform: scale(1.05);
}
/*.section--sage .card:hover .card__icon svg {*/
/*  color: #2e7d32 !important;*/
/*  stroke: #2e7d32 !important;*/
/*}*/

.section--sage .card--top::before {
  background: linear-gradient(90deg, #2e7d32 0%, #66bb6a 100%);
}

/* Sponsorship Tier Cards Transformation */
.card--olive {
  border: 1px solid #fed7aa;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  position: relative;
  overflow: hidden;
}

.card--olive::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--hyd-orange) 0%, var(--hyd-red) 100%);
}

.card--olive h3 {
  font-size: 1.3rem;
  color: #9a3412;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.card--olive strong {
  font-size: 1.2rem;
  color: var(--dark);
}

.card--olive:hover {
  border-color: #fb923c;
  box-shadow: 0 16px 30px -6px rgba(245, 124, 0, 0.15);
}

/* Card Typography Polish */
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  flex-grow: 1;
}

/* Interactive link cards ("See every product category") */
.card--link {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  text-decoration: none;
}

.card--link:hover {
  border-style: solid;
  border-color: var(--hyd-blue);
  background: #ffffff;
}

.card--link .text-link {
  margin-top: 1.2rem;
  font-weight: 700;
  color: var(--hyd-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* -- 11. Zig-Zag Alternating Layout -------------------------------- */
.split--reverse {
  grid-template-columns: .9fr 1.1fr;
}
.split--reverse > figure,
.split--reverse > .figure {
  grid-column: 1;
  grid-row: 1;
}
.split--reverse > div {
  grid-column: 2;
  grid-row: 1;
}

@media (max-width: 991px) {
  .split--reverse {
    grid-template-columns: 1fr;
  }
  .split--reverse > div {
    grid-column: 1;
    grid-row: 1;
  }
  .split--reverse > figure,
  .split--reverse > .figure {
    grid-column: 1;
    grid-row: 2;
  }
}

/* -- 12. Exhibition Sectors Interactive Showcase ------------------- */
.sectors-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.sector-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04);
}

.sector-tile:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 32px -8px rgba(15, 23, 42, 0.09);
}

.sector-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.sector-tile__number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #cbd5e1;
  line-height: 1;
  font-family: var(--font-heading);
  transition: color 0.25s;
}

.sector-tile:hover .sector-tile__number {
  color: var(--hyd-red);
}

.sector-tile__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(211, 47, 47, 0.08);
  color: var(--hyd-red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.sector-tile__icon svg {
  width: 24px;
  height: 24px;
}

.sector-tile:hover .sector-tile__icon {
  background: rgba(211, 47, 47, 0.14);
  transform: scale(1.05);
}

.sector-tile h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.6rem;
}

.sector-tile p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  flex-grow: 1;
}

/* 6th Tile - High impact explore action card */
.sector-tile--cta {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  text-decoration: none;
  justify-content: center;
}

.sector-tile--cta:hover {
  border-color: #e8a000;
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.25);
}

.sector-tile--cta .sector-tile__icon {
  background: rgba(232, 160, 0, 0.15);
  color: #e8a000;
}

.sector-tile--cta h3 {
  color: #ffffff;
  font-size: 1.25rem;
}

.sector-tile--cta p {
  color: #94a3b8;
}

.sector-tile--cta .sector-tile__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: #e8a000;
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .sectors-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sectors-showcase {
    grid-template-columns: 1fr;
  }
}

/* -- 13. Blog Showcase Styles (Global) ----------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}

.blog-card__media {
  height: 220px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: block;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.blog-card__badge {
  background: rgba(211, 47, 47, 0.08);
  color: var(--hyd-red);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.blog-card h3,
.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--hyd-red);
  font-size: 0.88rem;
  margin-top: auto;
}

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card__media {
    height: 190px;
  }
}

/* -- 14. Universal Page Polish & Design Consistency ---------------- */

/* Hero & Page Banners Elevation across all subpages */
.page-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1e1e 0%, #111111 100%);
  color: #ffffff;
}
.page-banner h1 {
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.page-banner .lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #d1d5db;
  max-width: 820px;
}

/* Form Cards & Side Panels Elevation across all Form Pages */
.form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.06);
}

.side-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 1.65rem;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.5rem;
}
.side-panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(211, 47, 47, 0.15);
}

/* Sector & Venue Detail Cards */
.sector-detail, .venue-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sector-detail:hover, .venue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

/* Checklist items lift across all subpages */
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}
.check-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  font-weight: 800;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* FAQ Accordion Polish */
.faq details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: var(--hyd-red);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.05);
}
.faq summary {
  padding: 1.2rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  outline: none;
}
.faq__body {
  padding: 0 1.4rem 1.2rem;
  color: #475569;
  line-height: 1.65;
}

/* -- 15. Advanced iPhone & Mobile Specific Optimization -------------- */
@media screen and (max-width: 767px) {
  /* Dynamic viewport safety & iOS notch bar */
  .site-header {
    padding-top: max(0.5rem, env(safe-area-inset-top));
  }
  
  /* Touch target safety for iOS Safari */
  button, a.btn, input, select {
    touch-action: manipulation;
  }

  /* Form actions full-width on mobile with comfortable finger targets */
  .form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch !important;
  }
  .form-actions .btn {
    width: 100% !important;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 700;
  }

  /* Compact padding for smaller screens */
  .form-card {
    padding: 1.5rem 1.15rem;
    border-radius: 12px;
  }
  .side-panel {
    padding: 1.25rem 1rem;
  }

  /* Mobile page banner typography scale */
  .page-banner {
    padding: 2.75rem 0 2.25rem;
  }
  .page-banner h1 {
    font-size: 1.75rem;
  }
  .page-banner .lead {
    font-size: 0.98rem;
  }

  /* Mobile table responsiveness */
  .table-wrap table {
    font-size: 0.82rem;
  }
  .table-wrap th, 
  .table-wrap td {
    padding: 0.65rem 0.75rem;
  }

  /* Bottom fixed CTA bar support for mobile devices */
  .site-footer {
    padding-bottom: max(2rem, calc(1rem + env(safe-area-inset-bottom)));
  }
}

/* iPad & Tablet Grid Adjustments */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .split {
    gap: 2rem;
  }
}
