/* =====================================================
   Janine — janine.woosee.pro
   v2: contrast fixes, larger fonts, full responsive
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Sans+TC:wght@300;400;500&family=Noto+Serif+TC:wght@400;600&display=swap&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0d2244;
  --navy2:   #1a3a6e;          /* lightened from #122a56 for better hover contrast */
  --gold:    #E8C86A;
  --gold2:   #D4B55A;          /* hover: slightly darker */
  --cream:   #FAF7F2;
  --charcoal:#1A1A1A;
  --white:   #ffffff;
  --text-mid:#4a4a4a;          /* replaces #666/#777 — passes WCAG AA */
  --text-sub:#595959;          /* replaces #888 — 7:1 contrast on white */
  --font-heading: 'Cormorant Garamond', 'Noto Serif TC', serif;
  --font-body:    'Noto Sans TC', sans-serif;
  --section-pad:  80px 0;
  --container:    1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;              /* base up from browser default 16px */
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  padding: 14px 0; background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  transition: box-shadow .3s, padding .3s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.12); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo {
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  color: var(--charcoal); letter-spacing: .02em; white-space: nowrap;
}
.nav-logo span { color: var(--navy); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--charcoal); font-size: 17px;
  transition: color .2s; padding: 6px 0;          /* larger tap target */
}
.nav-links a:hover { color: var(--navy); }
.nav-right { display: flex; align-items: center; flex-shrink: 0; }
.nav-cta {
  background: var(--gold); color: var(--charcoal);
  font-size: 16px; font-weight: 700;
  padding: 10px 22px; border-radius: 4px;
  white-space: nowrap; transition: background .2s, transform .2s;
  min-height: 44px; display: flex; align-items: center;
}
.nav-cta:hover { background: var(--gold2); transform: translateY(-1px); }
.nav-mobile-toggle {
  display: none; background: none; border: none;
  color: var(--charcoal); font-size: 26px; cursor: pointer;
  padding: 6px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 88vh; position: relative; overflow: hidden;
}
.hero-left {
  background: var(--navy);
  padding: 80px 64px 80px 48px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.hero-left::after {
  content: ''; position: absolute; top: 0; right: -80px; bottom: 0; width: 120px;
  background: var(--navy);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: 3;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.18); color: #ffffff;   /* full white — passes 4.6:1+ */
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 2px; margin-bottom: 24px; width: fit-content;
}
.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(50px, 5vw, 70px);
  font-weight: 700; color: #ffffff; line-height: 1.15; margin-bottom: 16px;
}
.hero-h1 .gold { color: var(--gold); }
.hero-sub {
  color: #e8e8e8;                /* was rgba(.75) ≈ #bfbfbf — now passes AA */
  font-size: 20px; margin-bottom: 16px; line-height: 1.5;
}
.hero-body {
  color: #f0f0f0;                /* was rgba(.85) — now clearly readable */
  font-size: 19px; line-height: 1.8; margin-bottom: 28px;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.pill {
  background: rgba(255,255,255,.15); color: #ffffff;
  font-size: 15px; padding: 7px 16px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.35); white-space: nowrap;
}
.btn-gold {
  display: inline-flex; align-items: center;
  background: var(--gold); color: var(--charcoal);
  font-weight: 700; font-size: 18px; padding: 16px 36px; border-radius: 4px;
  letter-spacing: .04em; transition: background .2s, transform .2s;
  width: fit-content; min-height: 52px;
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-2px); }
.hero-right { position: relative; overflow: hidden; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-right::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,34,68,.4) 0%, rgba(13,34,68,.08) 50%, transparent 100%);
}

/* ── ABOUT / SERVICES ── */
.about { background: var(--cream); padding: var(--section-pad); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; color: var(--navy);
  font-size: 15px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 12px;
  font-weight: 600;
}
.section-h2 {
  font-family: var(--font-heading); font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 700; color: var(--charcoal); line-height: 1.25;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 40px;
}
.svc-item {
  background: var(--white); border-radius: 8px; padding: 36px 28px;
  border-top: 3px solid var(--gold); text-align: center;
  transition: box-shadow .3s, transform .3s;
}
.svc-item:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); transform: translateY(-3px); }
.svc-icon { font-size: 32px; margin-bottom: 16px; }
.svc-title {
  font-family: var(--font-heading); font-size: 24px; font-weight: 600;
  color: var(--charcoal); margin-bottom: 12px;
}
.svc-desc {
  font-size: 17px; line-height: 1.75; color: var(--text-mid);  /* was #666 — now #4a4a4a, passes AA */
}
.about-media {
  text-align: center; font-size: 17px; color: var(--text-sub);  /* was #888 — now #595959 */
  font-style: italic; padding-top: 8px; line-height: 1.7;
}

/* ── ENQUIRY FORM ── */
.enquiry { background: var(--white); padding: var(--section-pad); }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.enquiry-copy-h2 {
  font-family: var(--font-heading); font-size: 40px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 20px; line-height: 1.2;
}
.enquiry-copy-body {
  font-size: 19px; line-height: 1.85; color: var(--text-mid); margin-bottom: 28px;
}
.enquiry-note {
  border-left: 4px solid var(--gold); padding: 18px 20px;
  background: rgba(201,168,76,.08); border-radius: 0 6px 6px 0;
  font-size: 18px; line-height: 1.75; color: var(--text-mid);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 18px; font-weight: 500; color: var(--charcoal);  /* was #444 */
}
.form-group input:not([type=checkbox]),
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #ccc; border-radius: 4px;
  font-size: 18px; font-family: var(--font-body); color: var(--charcoal);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  min-height: 52px;
}
.form-group input:not([type=checkbox]):focus,
.form-group textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,34,68,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;   /* placeholder only — not body text */
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-gdpr {
  font-size: 17px; color: var(--text-mid); line-height: 1.75;
  margin-top: 4px; margin-bottom: 16px; cursor: pointer;
}
.form-gdpr input[type=checkbox] {
  width: 18px; height: 18px; vertical-align: middle;
  margin-right: 8px; accent-color: var(--navy); cursor: pointer;
  position: relative; top: -1px;
}
.form-gdpr a { color: var(--navy); text-decoration: underline; }
.form-gdpr a:hover { color: var(--navy2); }
.form-referral-note { font-size: 13px; color: #999; line-height: 1.6; margin-bottom: 16px; }
.cf-turnstile { margin: 16px 0; }
.btn-submit {
  width: 100%; background: var(--navy); color: var(--white);
  font-size: 20px; font-weight: 700; padding: 18px;
  border: none; border-radius: 4px; cursor: pointer;
  letter-spacing: .04em; transition: background .2s, transform .2s;
  font-family: var(--font-body); margin-top: 4px;
  min-height: 56px;
}
.btn-submit:hover { background: #1a3a6e; transform: translateY(-1px); }  /* clearly lighter on hover */
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-promise {
  text-align: center; font-size: 16px; color: var(--text-sub);   /* was #888 */
  margin-top: 12px;
}
.form-success {
  display: none; background: rgba(13,34,68,.06); border: 1.5px solid var(--navy);
  border-radius: 6px; padding: 28px; text-align: center;
}
.form-success h3 {
  font-family: var(--font-heading); font-size: 28px;
  color: var(--navy); margin-bottom: 10px;
}
.form-success p { color: var(--text-mid); font-size: 19px; }

/* ── FOOTER ── */
.footer { background: var(--charcoal); padding: 48px 0; border-top: 2px solid var(--gold); }
.footer-company {
  font-size: 16px; color: rgba(255,255,255,.75);   /* was .65 — now passes AA for small text */
  margin-bottom: 16px; line-height: 1.6;
}
.footer-disclaimer {
  font-size: 15px; line-height: 1.9;
  color: rgba(255,255,255,.55);   /* was .4 (failed) — .55 ≈ 5.5:1 contrast on charcoal */
  max-width: 860px;
}
.footer-legal {
  margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.55);
}
.footer-legal a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* ── STICKY CTA ── */
.sticky-cta {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  background: var(--gold); color: var(--charcoal);
  font-weight: 700; font-size: 15px; padding: 14px 24px;
  border-radius: 50px; box-shadow: 0 6px 30px rgba(201,168,76,.5);
  letter-spacing: .03em; transition: background .2s, transform .2s;
  white-space: nowrap; min-height: 52px; display: flex; align-items: center;
}
.sticky-cta:hover { background: var(--gold2); transform: translateY(-2px); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
  background: var(--charcoal); border-top: 2px solid var(--gold);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
.cookie-banner.hidden { display: none; }
.cookie-text { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.6; flex: 1; min-width: 240px; }
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--gold); color: var(--charcoal);
  border: none; padding: 10px 24px; border-radius: 4px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); min-height: 44px;
  transition: background .2s;
}
.cookie-accept:hover { background: var(--gold2); }
.cookie-decline {
  background: none; color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3); padding: 10px 24px; border-radius: 4px;
  font-size: 16px; cursor: pointer; font-family: var(--font-body); min-height: 44px;
  transition: border-color .2s, color .2s;
}
.cookie-decline:hover { border-color: rgba(255,255,255,.7); color: rgba(255,255,255,.95); }

/* ── ANIMATIONS ── */
.anim-fade { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.anim-fade.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════ RESPONSIVE ═══════════════ */

/* ── Tablet: ≤ 960px ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 64px 40px 56px; }
  .hero-left::after { display: none; }
  .hero-right { height: 380px; }
  .hero-right img { object-position: top center; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: flex; }   /* keep CTA visible on tablet */
  .nav.mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    padding: 20px 24px 28px; gap: 4px; z-index: 999;
  }
  .nav.mobile-open .nav-links a {
    padding: 12px 0; font-size: 18px; border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav.mobile-open .nav-links li:last-child a { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .enquiry-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Mobile: ≤ 600px ── */
@media (max-width: 600px) {
  :root { --section-pad: 60px 0; }
  .hero-left { padding: 48px 24px 44px; }
  .hero-h1 { font-size: 44px; }
  .hero-sub { font-size: 18px; }
  .hero-body { font-size: 18px; }
  .hero-right { height: 280px; }
  .nav-cta { display: none; }   /* hide CTA button at small size — mobile toggle sufficient */
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .enquiry-copy-h2 { font-size: 34px; }
  .section-h2 { font-size: 30px; }
  .sticky-cta { bottom: 16px; right: 16px; font-size: 14px; padding: 12px 18px; }
  .enquiry { padding-left: 0; padding-right: 0; }
  .enquiry .container { padding: 0 16px; }
  .cf-turnstile { max-width: 100%; overflow: hidden; }
  .cf-turnstile iframe { max-width: 100% !important; width: 100% !important; }
}

/* ── Small phone: ≤ 380px ── */
@media (max-width: 380px) {
  .hero-h1 { font-size: 38px; }
  .pill { font-size: 13px; padding: 6px 12px; }
  .btn-gold { font-size: 16px; padding: 14px 28px; }
  .hero-right { height: 240px; }
  .about-media { font-size: 15px; }
}
