/* Satya Prakash Garg & Co. — website styles (Liquid Glass) */

:root {
  --blue: #064791;
  --ink: #0B1220;
  --text: #4A5263;
  --label: #5B6475;
  --bg: #EEF2F8;
  --navy: #0B1A33;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", sans-serif;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (min-width: 900px) { html { scroll-padding-top: 110px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Soft brand light that sits behind every glass surface */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 8% 4%, rgba(40, 112, 224, 0.30), transparent 70%),
    radial-gradient(38vmax 38vmax at 94% 10%, rgba(142, 231, 111, 0.34), transparent 70%),
    radial-gradient(44vmax 44vmax at 12% 92%, rgba(40, 112, 224, 0.20), transparent 70%),
    radial-gradient(36vmax 36vmax at 90% 80%, rgba(142, 231, 111, 0.22), transparent 70%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
p, dl, dd, figure { margin: 0; }
button { font: inherit; }

:focus-visible { outline: 3px solid #0A66D8; outline-offset: 3px; }
.on-dark :focus-visible { outline-color: #FFFFFF; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: #FFFFFF; color: var(--blue); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; }
.text { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.62; color: var(--text); }

/* ---------- Glass materials ---------- */
.glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    0 16px 36px -18px rgba(12, 32, 72, 0.3),
    0 2px 6px -2px rgba(12, 32, 72, 0.08);
}
.glass--strong {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74));
}
.glass-blue {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(20, 94, 192, 0.8), rgba(6, 71, 145, 0.86));
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 40px -20px rgba(4, 30, 70, 0.6);
  color: #FFFFFF;
}
.glass-clear {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 55%),
    rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass--strong { background: rgba(255, 255, 255, 0.94); }
  .glass-blue { background: #0A4F9E; }
  .glass-clear { background: rgba(255, 255, 255, 0.18); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn--tint {
  background: linear-gradient(180deg, #2C76D2 0%, #0C57B2 48%, #064791 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 6px rgba(0, 20, 60, 0.25), 0 12px 26px -12px rgba(6, 71, 145, 0.75);
}
.btn--white {
  background: linear-gradient(180deg, #FFFFFF, #EDF2FA);
  color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 12px 26px -12px rgba(0, 20, 60, 0.5);
}
.btn--soft { background: rgba(6, 71, 145, 0.08); color: var(--blue); border: 1px solid rgba(6, 71, 145, 0.12); }
.btn--glass { color: var(--blue); }
.btn svg { flex-shrink: 0; }

/* ---------- Desktop header ---------- */
.site-header {
  position: fixed; top: 20px; left: 0; right: 0; z-index: 50;
  width: min(1200px, 100% - 64px); height: 68px; margin-inline: auto;
  padding: 0 10px 0 24px; border-radius: 999px;
  display: none; align-items: center; justify-content: space-between;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s ease;
}
.nav-item:hover { text-decoration: none; background-color: rgba(255, 255, 255, 0.6); }
.nav-item[aria-current="page"] {
  background: rgba(255, 255, 255, 0.95); color: var(--blue); font-weight: 600;
  box-shadow: 0 1px 3px rgba(12, 32, 72, 0.12), inset 0 1px 0 #FFFFFF;
}
.site-nav .btn { min-height: 48px; margin-left: 8px; padding: 0 20px 0 16px; font-size: 15px; }
@media (min-width: 900px) { .site-header { display: flex; } }

/* ---------- Mobile top controls and tab bar ---------- */
.mobile-top {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; right: 16px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-top__logo { display: flex; align-items: center; height: 52px; padding: 0 18px; border-radius: 999px; }
.mobile-top__logo img { height: 32px; width: auto; }
.icon-btn { width: 52px; height: 52px; min-height: 0; padding: 0; }

.tabbar-wrap {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 12px;
  max-width: 440px; margin-inline: auto;
}
.tabbar { flex: 1 1 auto; display: flex; gap: 2px; height: 64px; padding: 4px; border-radius: 999px; }
.tab {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 999px; font-size: 11px; font-weight: 600; color: #1B2433;
  transition: background-color 0.2s ease;
}
.tab:hover { text-decoration: none; background-color: rgba(255, 255, 255, 0.5); }
.tab[aria-current="page"] {
  background: rgba(255, 255, 255, 0.92); color: var(--blue);
  box-shadow: 0 1px 3px rgba(12, 32, 72, 0.12), inset 0 1px 0 #FFFFFF;
}
.call-fab { flex: 0 0 64px; width: 64px; height: 64px; min-height: 0; padding: 0; }
@media (min-width: 900px) { .mobile-top, .tabbar-wrap { display: none; } }

/* ---------- Heroes ---------- */
.hero, .page-hero { padding-top: calc(104px + env(safe-area-inset-top)); }
@media (min-width: 900px) { .hero, .page-hero { padding-top: 150px; } }

.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { max-width: 1040px; font-size: clamp(38px, 5.3vw, 76px); line-height: 1.03; letter-spacing: -0.035em; }
.hero__lead { max-width: 680px; margin-top: 16px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--text); text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.hero__media { position: relative; align-self: stretch; margin-top: 32px; text-align: left; }
.hero__frame { position: relative; }
.hero__img {
  width: 100%; height: clamp(320px, 40vw, 560px); object-fit: cover; object-position: 60% 45%;
  border-radius: clamp(28px, 3vw, 40px);
  box-shadow: 0 40px 80px -44px rgba(12, 32, 72, 0.5);
}
.hero__caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; border-radius: 22px;
}
.hero__caption span { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.84); }
.hero__caption strong { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; color: #FFFFFF; }
@media (min-width: 900px) {
  .hero__lead { margin-top: 22px; }
  .hero__actions { gap: 12px; margin-top: 34px; }
  .hero__media { margin-top: 64px; }
  .hero__caption { left: 28px; right: auto; bottom: 28px; width: 400px; gap: 10px; padding: 26px 30px 28px; border-radius: 30px; }
  .hero__caption span { font-size: 14px; }
}

.page-hero { text-align: center; }
.page-hero__title { font-size: clamp(40px, 5.3vw, 76px); line-height: 1.03; letter-spacing: -0.035em; }
.page-hero__sub { margin-top: 10px; font-size: clamp(21px, 2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--blue); }
.page-hero__lead { max-width: 760px; margin: 14px auto 0; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; color: var(--text); text-wrap: balance; }

/* Facts: 1984 / 5 partners / Noida */
.facts { display: flex; margin-top: 14px; padding: 16px 4px; border-radius: 26px; }
.facts__item { flex: 1 1 0; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; padding: 0 8px; text-align: center; }
.facts__item + .facts__item { border-left: 1px solid rgba(12, 32, 72, 0.12); }
.facts dt { font-size: 12.5px; line-height: 1.3; color: var(--text); }
.facts dd { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--blue); }
.page-hero .facts { margin: 22px auto 0; max-width: 560px; }
@media (min-width: 900px) {
  .facts__item { flex: none; align-items: flex-start; padding: 0 26px; text-align: left; }
  .facts dt { font-size: 14px; }
  .facts dd { font-size: 28px; line-height: 1.15; }
  .hero .facts { position: absolute; right: 28px; bottom: 28px; margin: 0; padding: 18px 6px; border-radius: 30px; }
  .page-hero .facts { display: inline-flex; max-width: none; margin-top: 40px; padding: 20px 8px; border-radius: 32px; }
  .page-hero .facts dd { font-size: 30px; }
}

/* ---------- Sections ---------- */
.section { padding-top: 56px; }
.section-title { margin-bottom: 22px; padding-inline: 8px; }
@media (min-width: 900px) {
  .section { padding-top: 120px; }
  .section-title { margin-bottom: 48px; padding-inline: 0; text-align: center; }
}

.platter { background: #FFFFFF; border-radius: 32px; box-shadow: 0 24px 60px -40px rgba(12, 32, 72, 0.35); }
@media (min-width: 900px) { .platter { border-radius: 40px; } }

/* Home: about intro */
.about-intro { display: grid; grid-template-areas: "title" "text" "action"; gap: 14px; justify-items: start; padding: 28px 22px 26px; }
.about-intro > h2 { grid-area: title; }
.about-intro > p { grid-area: text; }
.about-intro > .btn { grid-area: action; margin-top: 6px; }
@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "title text" "action text";
    column-gap: 64px; row-gap: 28px; padding: 64px;
  }
  .about-intro > .btn { margin-top: 0; }
}

/* Tiles: services and principles */
.tiles { display: grid; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 28px; }
.tile h3 { margin-top: 12px; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.tile p { font-size: clamp(15px, 1.1vw, 16px); line-height: 1.58; color: var(--text); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .tile { gap: 10px; padding: 32px; border-radius: 32px; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.icon-tile {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(160deg, #3284E4 0%, #0C57B2 55%, #064791 100%);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 20px -10px rgba(6, 71, 145, 0.7);
}
.icon-tile svg { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .icon-tile { width: 56px; height: 56px; border-radius: 16px; }
  .icon-tile svg { width: 28px; height: 28px; }
}
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-tile--sm svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .icon-tile--sm { width: 44px; height: 44px; border-radius: 13px; }
  .icon-tile--sm svg { width: 22px; height: 22px; }
}

/* Two-column image + text */
.split { display: grid; gap: 28px; }
.split__media { width: 100%; height: 260px; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -40px rgba(12, 32, 72, 0.5); }
.split__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-inline: 8px; }
.split__body .btn { margin-top: 4px; }
.split__figure { position: relative; }
.split__figure img { width: 100%; height: 260px; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -40px rgba(12, 32, 72, 0.5); }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
  .split__media { grid-column: 1 / span 6; height: 500px; border-radius: 36px; }
  .split__body { grid-column: 8 / span 5; gap: 22px; padding-inline: 0; }
  .split--text-first .split__body { grid-column: 1 / span 6; }
  .split--text-first .split__figure { grid-column: 8 / span 5; }
  .split__figure img { height: 420px; border-radius: 36px; }
}

.chips {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px; border-radius: 22px; list-style: none;
}
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 999px; background: rgba(6, 71, 145, 0.08);
  font-size: 13.5px; font-weight: 600; color: var(--blue);
}
@media (min-width: 900px) {
  .chips { left: -44px; right: auto; bottom: 32px; width: 330px; gap: 8px; padding: 16px; border-radius: 26px; }
  .chip { height: 36px; padding: 0 14px; font-size: 14px; }
}

/* About: the firm */
.firm { display: flex; flex-direction: column; padding: 14px 14px 26px; }
.firm__img { width: 100%; height: 250px; object-fit: cover; border-radius: 22px; }
.firm__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 8px 0; }
@media (min-width: 900px) {
  .firm { flex-direction: row; gap: 56px; padding: 40px; }
  .firm__img { flex: 0 0 38%; width: 38%; height: auto; min-height: 520px; align-self: stretch; border-radius: 28px; }
  .firm__body { flex: 1 1 auto; gap: 18px; padding: 24px 24px 24px 0; }
}

.checklist { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink); }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 999px;
  background: rgba(142, 231, 111, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F8A1E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (min-width: 1100px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; } }

/* Call to action */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 36px 26px 30px; border-radius: 34px;
  background: linear-gradient(145deg, #0C5BC0 0%, #064791 58%, #053B78 100%);
  color: #FFFFFF;
  box-shadow: 0 40px 80px -48px rgba(6, 40, 90, 0.7);
}
.cta::before, .cta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.cta::before { right: -120px; top: -140px; width: 340px; height: 340px; background: radial-gradient(closest-side, rgba(142, 231, 111, 0.45), transparent); }
.cta::after { left: -140px; bottom: -180px; width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(120, 180, 255, 0.42), transparent); }
.cta h2 { color: #FFFFFF; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; }
.cta p { margin-top: 12px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.cta__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
@media (min-width: 900px) {
  .cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 72px; border-radius: 44px; }
  .cta::before { top: -200px; width: 540px; height: 540px; }
  .cta::after { left: -160px; bottom: -280px; width: 580px; height: 580px; }
  .cta__actions { flex-direction: row; flex-shrink: 0; gap: 12px; margin-top: 0; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; padding-top: 26px; }
.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.details { display: flex; flex-direction: column; margin: 0; padding: 4px 18px; border-radius: 28px; list-style: none; }
.detail { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.detail + .detail { border-top: 1px solid rgba(12, 32, 72, 0.08); }
.detail__label { display: block; font-size: 13px; color: var(--label); }
.detail__value { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.contact-photo { display: none; }
.contact-card { padding: 22px; border-radius: 32px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding-top: 64px; }
  .contact-aside { grid-column: 1 / span 5; }
  .contact-card { grid-column: 7 / span 6; padding: 40px; border-radius: 36px; }
  .details { padding: 8px 24px; border-radius: 30px; }
  .detail { gap: 16px; padding: 16px 0; }
  .detail__value { font-size: 17px; }
  .contact-photo { display: block; width: 100%; height: 300px; object-fit: cover; object-position: 50% 55%; border-radius: 30px; box-shadow: 0 30px 60px -40px rgba(12, 32, 72, 0.5); }
}

.form-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.025em; }
.form-note { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--label); }
.form-grid { display: grid; gap: 16px; margin-top: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid #8C95A5; border-radius: 14px; background: rgba(255, 255, 255, 0.85);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field::placeholder { color: #626A7C; }
.field:focus { outline: none; background: #FFFFFF; border-color: #0A66D8; box-shadow: 0 0 0 4px rgba(10, 102, 216, 0.2); }
textarea.field { height: auto; min-height: 136px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(190, 30, 30, 0.08); color: #9B1C1C; font-size: 14.5px; line-height: 1.5; }
.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 6px 0; }
.form-success:focus { outline: none; }
.form-success p { font-size: 16.5px; line-height: 1.55; color: var(--text); }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .form-group--full { grid-column: 1 / -1; }
  .form-actions .btn { width: auto; min-width: 160px; }
}
@media (min-width: 900px) {
  .form-grid { margin-top: 26px; }
  .field { height: 54px; }
  textarea.field { height: auto; min-height: 160px; }
  .form-actions { margin-top: 28px; }
}

.map { position: relative; overflow: hidden; height: 320px; border-radius: 32px; background: #E3EAF4; box-shadow: inset 0 0 0 1px rgba(12, 32, 72, 0.06); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__card {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 14px 14px 18px; border-radius: 22px;
}
.map__card strong { display: block; font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.map__card span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text); }
.map__card .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
@media (min-width: 600px) { .map__card { right: auto; width: 440px; } }
@media (min-width: 900px) {
  .map { height: 420px; border-radius: 40px; }
  .map__card { left: 24px; bottom: 24px; padding: 16px 16px 16px 22px; border-radius: 26px; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 56px;
  padding: 44px 0 calc(120px + env(safe-area-inset-bottom));
  border-radius: 34px 34px 0 0;
  background: var(--navy); color: #FFFFFF;
}
.site-footer a { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand brand" "pages contact"; gap: 30px 20px; }
.footer-brand { grid-area: brand; display: flex; flex-direction: column; gap: 6px; }
.footer-brand strong { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.footer-brand span { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.footer-brand span + span { margin-top: 6px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col--pages { grid-area: pages; }
.footer-col--contact { grid-area: contact; }
.footer-label { margin-bottom: 2px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.footer-col a { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
.footer-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
@media (min-width: 900px) {
  .site-footer { margin-top: 120px; padding: 72px 0 40px; border-radius: 44px 44px 0 0; }
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: none; column-gap: 24px; }
  .footer-brand { grid-area: auto; grid-column: 1 / span 5; }
  .footer-brand span { font-size: 15px; }
  .footer-col--pages { grid-area: auto; grid-column: 8 / span 2; }
  .footer-col--contact { grid-area: auto; grid-column: 10 / span 3; }
  .footer-col a { min-height: 36px; }
  .footer-legal { margin-top: 56px; padding-top: 22px; }
}

/* ---------- One page-load moment on the home hero ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: reveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both; }
  .hero__caption, .hero .facts { animation: rise 0.9s cubic-bezier(0.3, 1.35, 0.5, 1) 0.6s both; }
}
@keyframes reveal { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.95); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .btn, .nav-item, .tab, .field { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}

/* ---------- Phone refinements ---------- */
a, button { -webkit-tap-highlight-color: transparent; }

@media (max-width: 899px) {
  /* Hide the floating tab bar while typing, so it never sits over the field above the keyboard */
  .tabbar-wrap { transition: opacity 0.2s ease, transform 0.25s ease; }
  body:has(.field:focus) .tabbar-wrap { opacity: 0; transform: translateY(24px); pointer-events: none; }

  /* Lighter blur on content surfaces keeps scrolling smooth on phones */
  .tile.glass, .details.glass, .contact-card.glass, .facts.glass, .chips.glass, .map__card.glass {
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
  }
}

/* Honour the phone's "Reduce Transparency" setting with solid surfaces */
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass--strong { background: #FFFFFF !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass-blue { background: #064791 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass-clear { background: rgba(255, 255, 255, 0.16) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* Navigation surfaces carry a little more white, so labels stay legible over any content */
.site-header.glass, .tabbar.glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
}
