/* ═══════════════════════════════════════
   清境羊角村 · 藍天系 · style.css
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Noto+Sans+TC:wght@300;400&display=swap');

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

:root {
  --sky:        #4A7FA8;
  --sky-lt:     #6B9BBF;
  --sky-pale:   #A8C8E0;
  --sky-mist:   #D8EAF4;
  --sky-deep:   #2A5A7A;
  --sky-ink:    #163A52;
  --cloud:      #FFFFFF;
  --cloud-2:    #F6F9FC;
  --cloud-3:    #EBF3F9;
  --cloud-4:    #DCEEF7;
  --stone-ink:  #1A2C36;
  --stone-body: #1C3040;
  --stone-sub:  #2E4A5C;
  --stone-muted:#4A6475;
  --stone-line: #C4D8E4;

  /* Legacy aliases — maps to sky-blue palette */
  --ink:      #1A2C36;   /* = --stone-ink */
  --body:     #1C3040;   /* = --stone-body */
  --sub:      #2E4A5C;   /* = --stone-sub */
  --muted:    #4A6475;   /* = --stone-muted */
  --mist:     #F7F4EE;   /* warm white (text on dark bg) */
  --mist-2:   #EBF3F9;   /* = --cloud-3 */
  --mist-3:   #DCEEF7;   /* = --cloud-4 */
  --earth:    #163A52;   /* = --sky-ink (CTA dark bg) */
  --grey-lt:  #C4D8E4;   /* = --stone-line */
  --sage:     #4A7FA8;   /* = --sky */
  --wood:     #4A7FA8;   /* = --sky */
  --wood-dk:  #2A5A7A;   /* = --sky-deep */

  --serif-cn: 'Noto Serif TC', serif;
  --serif-en: 'Cormorant Garamond', serif;
  --sans-cn:  'Noto Sans TC', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--cloud); color: var(--stone-body); font-family: var(--sans-cn); font-weight: 400; font-size: 18px; line-height: 2.0; overflow-x: hidden; }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 14px 52px; background: rgba(255,255,255,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 0.5px solid var(--stone-line); }
.nav-brand { text-decoration: none; }
.nav-brand-cn { display: block; font-family: var(--serif-cn); font-size: 15px; font-weight: 500; letter-spacing: 0.15em; color: var(--stone-ink); line-height: 1.2; }
.nav-brand-en { display: block; font-family: var(--serif-en); font-size: 11px; font-style: italic; letter-spacing: 0.18em; color: var(--sky); }
.nav-links { display: flex; gap: 22px; list-style: none; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 400; letter-spacing: 0.05em; color: var(--stone-body); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--stone-ink); }
.nav-book { background: var(--sky-deep) !important; color: var(--cloud) !important; padding: 8px 18px !important; border-radius: 2px; transition: background 0.3s !important; }
.nav-book:hover { background: var(--sky) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--stone-ink); transition: all 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-drawer { display: none; flex-direction: column; position: fixed; top: 57px; left: 0; right: 0; background: var(--cloud); border-bottom: 0.5px solid var(--stone-line); z-index: 99; padding: 20px 24px; list-style: none; }
.nav-drawer.open { display: flex; }
.nav-drawer .dl { display: block; padding: 13px 0; font-size: 16px; color: var(--stone-body); text-decoration: none; border-bottom: 0.5px solid var(--cloud-3); letter-spacing: 0.05em; }
.nav-drawer .nav-book { margin-top: 12px; text-align: center; border-radius: 2px; padding: 13px 18px !important; }

/* PAGE HEADER */
.page-header { background: var(--sky-deep); padding: 72px 52px 64px; }
.page-header-eyebrow { font-family: var(--serif-en); font-size: 11px; font-style: italic; letter-spacing: 0.22em; color: var(--sky-pale); margin-bottom: 14px; display: flex; align-items: center; gap: 14px; }
.page-header-eyebrow::before { content: ''; display: block; width: 28px; height: 0.5px; background: var(--sky-pale); }
.page-header h1 { font-family: var(--serif-cn); font-size: clamp(32px, 4vw, 52px); font-weight: 400; letter-spacing: 0.06em; color: var(--cloud); margin-bottom: 10px; line-height: 1.2; }
.page-header p { font-size: 16px; color: rgba(255,255,255,0.55); font-family: var(--serif-en); font-style: italic; }

/* SECTION */
section { padding: 88px 52px; }

/* EYEBROW */
.sec-eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--serif-en); font-size: 11px; font-style: italic; letter-spacing: 0.2em; color: var(--sky); margin-bottom: 44px; }
.sec-eyebrow::after { content: ''; width: 44px; height: 0.5px; background: var(--sky); }
.sec-eyebrow.light { color: var(--sky-pale); }
.sec-eyebrow.light::after { background: var(--sky-pale); }

/* TITLES */
.sec-title { font-family: var(--serif-cn); font-size: clamp(26px, 3.5vw, 38px); font-weight: 400; color: var(--stone-ink); margin-bottom: 36px; line-height: 1.4; }
.sec-title span { display: block; font-family: var(--serif-en); font-size: 16px; font-style: italic; color: var(--sky); margin-bottom: 6px; font-weight: 400; }
.sec-title.light { color: var(--cloud); }
.sec-title.light span { color: var(--sky-pale); }

/* BUTTONS */
.btn-primary { background: var(--sky-deep); color: var(--cloud); padding: 14px 30px; font-family: var(--sans-cn); font-size: 15px; font-weight: 400; letter-spacing: 0.12em; text-decoration: none; border-radius: 2px; display: inline-block; transition: background 0.3s; }
.btn-primary:hover { background: var(--sky); }
.btn-light { background: var(--cloud); color: var(--sky-deep); padding: 14px 30px; font-family: var(--sans-cn); font-size: 15px; font-weight: 400; letter-spacing: 0.12em; text-decoration: none; border-radius: 2px; display: inline-block; transition: background 0.3s; }
.btn-light:hover { background: var(--cloud-2); }
.btn-ghost { color: var(--sky); font-size: 15px; letter-spacing: 0.1em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.btn-ghost::after { content: '→'; }
.btn-ghost:hover { gap: 14px; }
.btn-ghost-lt { color: rgba(255,255,255,0.72); font-size: 15px; letter-spacing: 0.1em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.btn-ghost-lt::after { content: '→'; }
.btn-ghost-lt:hover { gap: 14px; color: var(--cloud); }

/* CTA BAND */
.cta-band { background: var(--sky-deep); padding: 72px 52px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif-cn); font-size: clamp(22px, 3vw, 30px); font-weight: 400; color: var(--cloud); line-height: 1.5; }
.cta-band h2 span { display: block; font-family: var(--serif-en); font-size: 14px; font-style: italic; color: rgba(255,255,255,0.45); margin-bottom: 6px; }
.cta-btns { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* FADE-UP */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* FOOTER */
footer { background: var(--sky-ink); padding: 72px 52px 44px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 0.5px solid rgba(255,255,255,0.07); margin-bottom: 26px; }
.footer-brand-cn { font-family: var(--serif-cn); font-size: 19px; font-weight: 500; letter-spacing: 0.12em; color: var(--cloud); margin-bottom: 4px; }
.footer-brand-en { font-family: var(--serif-en); font-size: 13px; font-style: italic; color: var(--sky-pale); margin-bottom: 14px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.9; max-width: 240px; margin-bottom: 18px; }
.footer-contact a { display: block; font-size: 15px; color: rgba(255,255,255,0.78); text-decoration: none; margin-bottom: 6px; transition: color 0.3s; }
.footer-contact a:hover { color: var(--sky-pale); }
.footer-col-title { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky-pale); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 15px; color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: rgba(255,255,255,0.95); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.16); }

/* RWD */
@media (max-width: 1024px) {
  nav { padding: 14px 28px; }
  section { padding: 72px 28px; }
  .page-header { padding: 60px 28px 52px; }
  .cta-band { padding: 56px 28px; }
  footer { padding: 56px 28px 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 56px 18px; }
  .page-header { padding: 48px 18px 40px; }
  .cta-band { padding: 44px 18px; flex-direction: column; align-items: flex-start; }
  footer { padding: 44px 18px 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .sec-eyebrow { margin-bottom: 28px; }
}
