/* ================================================================
   UAIA PERTH — GLOBAL STYLES
   Option B: Sage & White — Full Light Mode
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* ── OPTION B: Sage & White ── */
  --sage:        #edf3ed;
  --sage-light:  #f5f8f5;
  --white:       #ffffff;
  --card-hover:  #f0f7f0;
  --accent:      #e4f0e4;

  --txt:         #1a2e1a;
  --txt-mid:     #2a2a2a;
  --txt-light:   #5a7a5a;

  --green:       #5DC85A;
  --green-dark:  #44a641;
  --green-dim:   rgba(93,200,90,0.12);
  --border:      rgba(93,200,90,0.2);
  --border-str:  rgba(93,200,90,0.35);

  --nav-bg:      #edf3ed;
  --foot-bg:     #1a3d1a;
  --foot-dk:     #163318;

  /* Keep for any legacy refs */
  --navy:        #1a3d1a;
  --navy-mid:    #edf3ed;
  --navy-light:  #f5f8f5;
  --ivory:       #f5f8f5;
  --ivory-dark:  #edf3ed;
  --gold:        #44a641;
  --gold-light:  #5DC85A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --radius-xl:   36px;
  --radius-pill: 999px;

  --shadow-xs:   0 2px 8px rgba(26,46,26,0.06);
  --shadow-sm:   0 4px 16px rgba(26,46,26,0.08);
  --shadow-md:   0 8px 32px rgba(26,46,26,0.1);
  --shadow-lg:   0 16px 48px rgba(26,46,26,0.12);
  --shadow-xl:   0 24px 64px rgba(26,46,26,0.15);
  --shadow-green: 0 8px 32px rgba(93,200,90,0.25);

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:      0.18s;
  --t-base:      0.32s;
  --t-slow:      0.6s;
  --t-xslow:     0.9s;

  --container:   1200px;
  --section-pad: clamp(4rem, 8vw, 8rem);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--sage);
  color: var(--txt);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.72s var(--ease), transform 0.72s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-left.visible, .reveal-right.visible { transform: none; }
.reveal-scale { transform: scale(0.94); }
.reveal-scale.visible { transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }
.d5 { transition-delay: 0.50s; }
.d6 { transition-delay: 0.62s; }

/* ── LAYOUT ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3rem); }

/* ── GRADIENT ITALIC FIX ──
   Italic text with background-clip:text overhangs its box on the right,
   causing the last character to be visually clipped. Padding-right fixes it. */
h1 em, h2 em, h3 em { padding-right: 0.07em; }
.section-pad { padding: var(--section-pad) 0; }

/* ── TYPOGRAPHY UTILITIES ── */
.section-label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 0.85rem;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1.5px; background: currentColor; flex-shrink: 0; }
.section-label.gold  { color: var(--green-dark); }
.section-label.light { color: var(--txt-light); }
.section-label.light::before { background: var(--txt-light); }
.section-label.white { color: rgba(255,255,255,0.8); }
.section-label.white::before { background: rgba(255,255,255,0.8); }

.display-heading { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }
.section-heading { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.card-heading { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.03em; padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill); white-space: nowrap; cursor: pointer;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-green { background: var(--green); color: #ffffff; box-shadow: var(--shadow-green); }
.btn-green:hover { background: var(--green-dark); box-shadow: 0 12px 36px rgba(93,200,90,0.35); }

.btn-gold  { background: var(--green-dark); color: #ffffff; box-shadow: var(--shadow-green); }
.btn-gold:hover { background: var(--green); }

.btn-navy  { background: var(--foot-bg); color: #ffffff; box-shadow: var(--shadow-md); }
.btn-navy:hover { background: #224d22; }

.btn-outline-white { background: transparent; color: #ffffff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #ffffff; }

.btn-outline-green { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn-outline-green:hover { background: var(--green); color: #ffffff; }

.btn-outline-navy { background: transparent; color: var(--txt); border: 1.5px solid var(--border-str); }
.btn-outline-navy:hover { background: var(--green); color: #ffffff; border-color: var(--green); }

.btn-lg { font-size: 1rem; padding: 1rem 2.4rem; }
.btn-sm { font-size: 0.78rem; padding: 0.5rem 1.2rem; }

/* ── ORNAMENT / DIVIDER ── */
.ornament-divider { display: flex; align-items: center; gap: 1rem; justify-content: center; margin: 0 auto 2rem; }
.ornament-line { flex: 1; max-width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-str), transparent); }
.ornament-diamond { width: 7px; height: 7px; background: var(--green-dark); transform: rotate(45deg); flex-shrink: 0; }

/* ── PAGE HERO ── */
.page-hero { background: var(--sage); padding: 9rem 0 5rem; position: relative; overflow: hidden; }
.page-hero-geo { position: absolute; inset: 0; opacity: 0.07; pointer-events: none; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--txt); font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem; }
.page-hero p { color: var(--txt-mid); font-size: 1.05rem; max-width: 560px; line-height: 1.75; }
.page-breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--txt-light); margin-bottom: 1.25rem; font-weight: 500; }
.page-breadcrumb a { color: var(--green-dark); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--green); }
.page-breadcrumb span { color: var(--txt-light); }

/* ── SECTION INTRO ── */
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-intro p { color: var(--txt-mid); font-size: 1.02rem; line-height: 1.8; margin-top: 0.9rem; }
.section-intro.left { text-align: left; margin-left: 0; }

/* ── CARD ── */
.card-lift { transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--sage); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── SELECTION ── */
::selection { background: var(--green-dim); color: var(--txt); }

/* Section dividers handled in home.css */
