/* Poppins: Copyright Indian Type Foundry. SIL Open Font License 1.1. */
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-400-deva.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-600-deva.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/poppins-700-deva.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --rose: #b85c5c;
  --rose-text: #a04545; /* rose darkened for WCAG AA */
  --ink: #2a2430;
  --muted: #514a57;
  --off-white: #fbf7f4;
  --sky: #dcecf1;
  --sage: #e3efe3;
  --butter: #fff6dd;
  --blush: #fdeeea;
  --powder: #e4f0f4;
  --plum: #3b3142;
  --line: #eadfda;
  --gutter: 16px;
  --curve: 36px;
  --font: 'Poppins', 'Nirmala UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.splash { overflow: hidden; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--rose-text); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 24px;
  border-radius: 26px;
  border: 2px solid transparent;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.primary { background: var(--rose-text); color: #fff; }
.dark { background: var(--plum); color: #fff; }
.outline { border-color: var(--plum); background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px var(--gutter);
  background: #fff;
}
.brand { margin-right: auto; }
.brand img { width: auto; height: 50px; }
.menu {
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  border: 1px solid var(--rose-text);
  border-radius: 22px;
  background: none;
  color: var(--rose-text);
  font: 700 14px var(--font);
  cursor: pointer;
}
.lang {
  min-height: 36px;
  padding: 0 26px 0 12px;
  border: 1px solid var(--rose-text);
  border-radius: 22px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a04545' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  color: var(--rose-text);
  font: 700 13px var(--font);
  cursor: pointer;
}
#links { display: none; flex-basis: 100%; flex-direction: column; }
#links.open { display: flex; }
#links a { display: flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: none; }

/* Hero: full-width scene with the message on open sky */
.hero { display: flex; flex-direction: column; background: #b9d5f7; } /* matches the sky in hero.jpg */
.hero-img { order: -1; width: 100%; height: 300px; object-fit: cover; object-position: 50% 22%; }
.hero-text { padding: 24px var(--gutter) 64px; }
.tagline { color: var(--muted); font-size: 16px; font-weight: 700; }
h1 { margin: 10px 0 14px; font-size: clamp(36px, 9vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.intro { margin-bottom: 26px; max-width: 30em; font-size: 19px; }

/* Sections: each pastel overlaps the last with a soft curve */
.band {
  position: relative;
  margin-top: calc(var(--curve) * -1);
  padding: 56px var(--gutter) calc(56px + var(--curve));
  border-radius: var(--curve) var(--curve) 0 0;
  scroll-margin-top: 44px;
}
.white { background: #fff; }
.sage { background: var(--sage); }
.butter { background: var(--butter); }
.blush { background: var(--blush); }
.powder { background: var(--powder); }
h2 { font-size: clamp(28px, 5.5vw, 40px); line-height: 1.18; font-weight: 700; letter-spacing: -.015em; }
html[lang=mr] h1, html[lang=mr] h2 { line-height: 1.4; letter-spacing: 0; }
.lead { margin-top: 10px; max-width: 32em; color: var(--muted); }

/* Quick links */
.quick ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.quick a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
}
.quick li:nth-child(1) a { background: var(--rose-text); color: #fff; }
.quick li:nth-child(2) a { background: var(--butter); }
.quick li:nth-child(3) a { background: var(--blush); }
.quick li:nth-child(4) a { background: var(--powder); }

/* Picture and text pairs */
.pair { display: grid; gap: 28px; align-items: center; }
.pair img { width: 100%; aspect-ratio: 16 / 13; object-fit: cover; border-radius: 28px; }
.trust { margin-top: 18px; font-weight: 700; }
.trust li { padding: 4px 0; }
.trust li::before { content: '♥'; margin-right: 10px; color: var(--rose); }

/* Branches */
.branches { display: grid; gap: 20px; margin-top: 28px; }
.branch { overflow: hidden; border-radius: 28px; background: #fff; }
.branch img { width: 100%; }
.branch-body { padding: 22px; }
.branch h3 { margin: 12px 0 6px; font-size: 26px; line-height: 1.2; }
.branch address { color: var(--muted); font-style: normal; }
.phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 16px 0 20px; padding: 12px 0; border-block: 1px solid var(--line); }
.phone span { color: var(--muted); font-size: 15px; font-weight: 600; }
.phone a { color: var(--rose-text); font-size: 26px; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.branch .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.branch .wide { grid-column: 1 / -1; }
.branch .btn { padding-inline: 12px; }
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 14px;
  background: var(--butter);
  font-size: 14px;
  font-weight: 700;
}
.badge.solid { background: var(--rose-text); color: #fff; }

/* Service lists */
.services { display: grid; gap: 4px 28px; margin-top: 18px; }
.services li { position: relative; padding: 7px 0 7px 26px; }
.services li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
}
.services b { font-weight: 700; }
.services p { color: var(--muted); font-size: 16px; }
.services .soon::before { background: none; border: 2px solid var(--rose); }
.soon-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Footer */
.footer {
  position: relative;
  display: grid;
  gap: 16px 40px;
  margin-top: calc(var(--curve) * -1);
  padding: 40px var(--gutter) 24px;
  border-radius: var(--curve) var(--curve) 0 0;
  background: var(--plum);
  color: #dcd2e0;
  font-size: 14px;
  line-height: 1.5;
  scroll-margin-top: 44px;
}
.footer strong { color: #fff; font-size: 16px; }
.footer b { color: #fff; }
.footer a { display: inline-block; padding: 4px 0; color: #fff; font-weight: 600; }
#footer-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; }
.copyright { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; }

/* Sticky call bar (mobile) */
.callbar {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -1px 0 var(--line);
}
.callgroup span { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; text-align: center; }
.callgroup div { display: flex; gap: 6px; }
.callgroup .btn { flex: 1; min-height: 48px; padding: 6px; font-size: 15px; }

/* Splash */
#splash {
  --h: min(62vh, 118vw);
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  background: var(--off-white);
}
.splash #splash { display: block; }
.skip {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  min-width: 64px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 15px var(--font);
  text-decoration: underline;
  cursor: pointer;
}
.mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--h) * .709);
  height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--h) * -.3545);
}
.cloud { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none; }
.mark-icon { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.lockup {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: var(--gutter);
  text-align: center;
}
.logo-wrap { position: relative; width: min(100%, 460px); }
.logo { width: 100%; height: auto; }
.slot { position: absolute; left: .417%; top: 5.618%; width: 24.339%; height: 92.509%; } /* icon area of logo.png */
.splash-tag { color: var(--rose-text); font-size: 17px; font-weight: 600; }
.logo, .splash-tag { opacity: 0; }

/* Words scroll slowly across the whole screen from the start (5% opacity) while the cloud flies in (to 1.2s),
   holds 1s and settles into the logo (2.2-3.1s); the words clear by 3.6s, the logo stays alone 1s, then the splash fades */
.words {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  overflow: hidden;
  font-size: clamp(18px, 3.2vw, 34px);
  white-space: nowrap;
  opacity: 0;
}
.words p { margin-left: -20%; }
.words span { margin-right: 1.6em; }
/* each word gets one of four typefaces and one of five palette colours */
.words .f0 { font: 700 1em var(--font); }
.words .f1 { font: italic 400 1.1em Georgia, 'Times New Roman', serif; }
.words .f2 { font: 400 1.15em 'Segoe Script', 'Brush Script MT', cursive; }
.words .f3 { font: 400 1em 'Palatino Linotype', Palatino, serif; }
.words .c0 { color: var(--rose); }
.words .c1 { color: var(--plum); }
.words .c2 { color: #4f8a5b; }
.words .c3 { color: #3f7fa3; }
.words .c4 { color: #c4902a; }
.play .mark { animation: mark-settle 5.3s ease-in-out both; }
.play .cloud { animation: cloud-out 5.3s linear both; }
.play .mark-icon { animation: icon-in 5.3s linear both; }
.play .logo { animation: lockup-in 5.3s linear both; }
.play .splash-tag { animation: tag-in 5.3s linear both; }
.play .words { animation: words-in 3.6s linear both; }
.play .words p { animation: scroll-left 3.6s linear both; }
.play .words p:nth-child(even) { animation-name: scroll-right; }
#splash.play { animation: splash-out .3s 4.6s ease-in both; }
#splash.skipped { animation: splash-out .2s ease-in both; }

@keyframes mark-settle { 0%, 41.5% { transform: none; } 54%, 100% { transform: var(--to); } }
@keyframes cloud-out { 0%, 42.6% { opacity: 1; } 50.6%, 100% { opacity: 0; } }
@keyframes icon-in { 0%, 42.6% { opacity: 0; } 50.6%, 57.4% { opacity: 1; } 59.6%, 100% { opacity: 0; } }
@keyframes lockup-in { 0%, 51.7% { opacity: 0; } 58.5%, 100% { opacity: 1; } }
@keyframes words-in { 0% { opacity: 0; } 8%, 88% { opacity: .05; } 100% { opacity: 0; } }
@keyframes scroll-left { to { transform: translateX(-8%); } }
@keyframes scroll-right { from { transform: translateX(-8%); } }
@keyframes tag-in { 0%, 57.4% { opacity: 0; } 64.2%, 100% { opacity: 1; } }
@keyframes splash-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .words { display: none; }
  .mark { transform: var(--to); }
  .logo, .splash-tag { opacity: 1; }
  .play .mark, .play .mark-icon, .play .logo, .play .splash-tag { animation: none; }
  #splash.play:not(.skipped) { animation-delay: 1.5s; }
}

@media (min-width: 600px) {
  :root { --gutter: 32px; --curve: 48px; }
  #splash { --h: min(62vh, 80vw); }
  .splash-tag { font-size: 20px; }
  .hero-img { height: 360px; }
  .quick ul { grid-template-columns: repeat(4, 1fr); }
  /* line up badge, name, address, phone and buttons across both cards */
  .branches { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .branch { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .branch-body { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 0; }
  .badge { justify-self: start; }
  .services { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --gutter: max(64px, calc((100vw - 1240px) / 2)); }
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .footer { grid-template-columns: 240px 1fr; align-items: start; }
  .copyright { grid-column: 1 / -1; }
  .footer a { text-decoration: none; } /* tap-to-call still works; underline only helps on touch screens */
  .nav { flex-wrap: nowrap; gap: 24px; padding-block: 12px; }
  .brand img { height: 60px; }
  .menu { display: none; }
  #links { display: flex; order: 1; flex-basis: auto; flex-direction: row; gap: 24px; }
  .lang { order: 2; }
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: min(76vh, 640px); }
  .hero-img { order: 0; height: 100%; min-height: 560px; object-position: 50% 40%; mask-image: linear-gradient(to right, transparent, #000 14%); }
  .hero-text { padding: 48px 32px calc(48px + var(--curve)) var(--gutter); }
  .band { padding-block: 72px calc(72px + var(--curve)); scroll-margin-top: 36px; }
  .pair { grid-template-columns: 1fr 1fr; gap: 64px; }
  .pair.flip > img { order: 2; }
  .quick { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 40px; padding-block: 40px calc(40px + var(--curve)); }
  .quick h2 { font-size: 30px; }
  .quick ul { margin-top: 0; }
}
