/* =====================================================================
   IVF Delivery — main stylesheet
   Clean, trustworthy medical aesthetic. Teal/green palette.
   Mobile-first, CSS grid + flex. No external dependencies.
   ===================================================================== */

:root {
  /* Palette */
  --teal-900: #0a3d33;
  --teal-800: #0d5346;
  --teal-700: #0e7c66;   /* primary */
  --teal-600: #12907a;
  --teal-500: #17a98d;
  --teal-100: #d4f0e8;
  --teal-50:  #eef8f5;
  --mint-bg:  #f4fbf9;

  --accent:   #e8794b;   /* warm accent, used sparingly */
  --accent-d: #cf6337;

  --ink:      #16231f;
  --body:     #33433d;
  --muted:    #647a72;
  --line:     #d9e6e1;
  --card:     #ffffff;
  --bg:       #ffffff;

  --ok-bg:    #e5f5ec; --ok-tx: #1c6b3f;
  --err-bg:   #fdecea; --err-tx: #a3341f;

  --radius:   14px;
  --radius-sm: 9px;
  --shadow:   0 1px 2px rgba(16,60,50,.06), 0 6px 20px rgba(16,60,50,.07);
  --shadow-sm: 0 1px 2px rgba(16,60,50,.08);

  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---- Reset-ish ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.22; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.75rem); letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 0 0 .55em; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: 3rem 0; }
.section-intro { color: var(--muted); max-width: 720px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--teal-700);
  color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-800); border-color: var(--teal-100); }
.btn-ghost:hover { background: var(--teal-50); color: var(--teal-900); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  background: var(--teal-700); color: #fff; border-radius: 8px; font-size: 1rem;
}
.brand-text { font-size: 1.12rem; letter-spacing: -.01em; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.primary-nav ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a {
  display: inline-block; padding: .5rem .7rem; border-radius: 8px;
  color: var(--body); font-weight: 550; font-size: .96rem;
}
.primary-nav a:hover { background: var(--teal-50); color: var(--teal-900); text-decoration: none; }
.primary-nav a.active { color: var(--teal-800); background: var(--teal-50); }

.lang-switch { display: inline-flex; gap: .25rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-opt { padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; color: var(--muted); }
.lang-opt.current { background: var(--teal-700); color: #fff; }
.lang-opt:hover { text-decoration: none; }
.lang-opt:not(.current):hover { background: var(--teal-50); color: var(--teal-800); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, var(--mint-bg), #fff); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 2.5rem; align-items: center; padding: 3.2rem 0; }
.hero-copy .eyebrow { color: var(--teal-700); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: .6rem; }
.hero .lead { font-size: 1.15rem; color: var(--body); max-width: 640px; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-info { background: linear-gradient(180deg, #f2f7fb, #fff); }
.geo-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

.hero-facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.4rem; }
.hero-facts dl { margin: 0; display: grid; gap: .9rem; }
.hero-facts dl > div { display: grid; gap: 2px; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.hero-facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 650; color: var(--ink); }

/* ---- Breadcrumb ---- */
.breadcrumb { padding-top: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumb .sep { margin: 0 .35rem; color: var(--line); }
.breadcrumb a { color: var(--teal-700); }

/* ---- Trust strip ---- */
.trust-strip { background: var(--teal-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.trust-item h3 { font-size: 1.02rem; color: var(--teal-800); }
.trust-item p { font-size: .93rem; color: var(--body); margin: 0; }

/* ---- Cost cards ---- */
.cost-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin: 1rem 0; }
.cost-card { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.cost-label { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .4rem; }
.cost-value { font-size: 1.5rem; font-weight: 750; color: var(--teal-900); }
.fineprint { font-size: .85rem; color: var(--muted); }

/* ---- Journey ---- */
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.journey-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; position: relative; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 700; margin-bottom: .7rem; }
.journey-step h3 { font-size: 1.02rem; }
.journey-step p { font-size: .92rem; color: var(--body); margin: 0; }

/* ---- Services grid ---- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; color: var(--body); transition: box-shadow .15s ease, transform .05s ease, border-color .15s; }
.service-card:hover { text-decoration: none; box-shadow: var(--shadow); border-color: var(--teal-100); transform: translateY(-2px); }
.service-card h3 { color: var(--teal-800); }
.service-card p { font-size: .9rem; color: var(--muted); margin: 0 0 .6rem; }
.service-more { font-weight: 650; color: var(--teal-700); font-size: .9rem; }

/* ---- Section heads ---- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.link-more { font-weight: 650; white-space: nowrap; }

/* ---- Blog / posts ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; }
.post-card h2, .post-card h3 { font-size: 1.1rem; margin: .2rem 0 .5rem; }
.post-meta { font-size: .82rem; color: var(--muted); margin: 0 0 .3rem; }
.post-excerpt { font-size: .93rem; color: var(--body); flex: 1; }
.post-article { padding-top: 1.4rem; padding-bottom: 1rem; }
.post-header h1 { margin-bottom: .3rem; }
.post-body { font-size: 1.03rem; }
.post-body h2 { margin-top: 1.6rem; }
.post-back { margin-top: 2rem; }

/* ---- Prose ---- */
.prose { max-width: 760px; }
.prose p { color: var(--body); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.callout { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 2rem 0; }
.callout h2 { font-size: 1.15rem; }

/* ---- How steps ---- */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.how-steps > li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal-500); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; }
.how-steps h2 { font-size: 1.15rem; margin-bottom: .3rem; }
.how-cta { margin-top: 2rem; }

/* ---- FAQ accordion ---- */
.faq-list { display: grid; gap: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 1.2rem; font-size: 1rem; font-weight: 650; color: var(--ink); }
.faq-q:hover { background: var(--teal-50); }
.faq-icon { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--teal-700); transition: transform .2s ease; }
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 1.2rem; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 1.2rem 1.1rem; }
.faq-a p { margin: 0; color: var(--body); }

/* ---- Forms ---- */
.enquiry-section { background: var(--mint-bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.enquiry-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 1rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.enquiry-form input[type=text], .enquiry-form input[type=email], .enquiry-form input[type=tel], .enquiry-form textarea {
  width: 100%; padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }
.req { color: var(--accent-d); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; font-size: .9rem; color: var(--body); }
.consent input { margin-top: .25rem; flex: 0 0 auto; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-weight: 550; }
.alert-ok { background: var(--ok-bg); color: var(--ok-tx); }
.alert-err { background: var(--err-bg); color: var(--err-tx); }

/* ---- Home: country selector ---- */
.region-block { margin-top: 1.8rem; }
.region-title { font-size: 1.05rem; color: var(--teal-800); border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: 1rem; }
.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.country-card { position: relative; display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .05s; }
.country-card:hover { text-decoration: none; border-color: var(--teal-100); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.country-name { font-weight: 700; }
.country-city { font-size: .84rem; color: var(--muted); }
.country-lang { position: absolute; top: .7rem; right: .7rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 999px; padding: 1px 7px; }

/* ---- Footer ---- */
.site-footer { background: var(--teal-900); color: #cfe6df; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { background: var(--teal-500); }
.footer-tagline { color: #a9cdc3; font-size: .92rem; max-width: 320px; }
.footer-heading { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links a { color: #bfded4; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-countries { grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; padding-bottom: 1.6rem; }
.disclaimer-title { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.disclaimer p { color: #a9cdc3; font-size: .85rem; max-width: 100%; margin: 0; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bar p { margin: 0; padding: 1rem 0; font-size: .85rem; color: #8fb6ab; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .trust-grid, .journey-steps, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .country-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-facts { order: 2; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 66px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: .5rem; padding: 1rem 20px; margin: 0;
    transform: translateY(-120%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: .2rem; }
  .primary-nav a { padding: .7rem .6rem; }
  .lang-switch { align-self: flex-start; margin-top: .3rem; }
  .cost-cards, .form-grid-2 { grid-template-columns: 1fr; }
  .trust-grid, .journey-steps, .services-grid, .post-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .section { padding: 2.2rem 0; }
}
@media (max-width: 420px) {
  .country-grid { grid-template-columns: 1fr; }
}

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 4px;
}
