/* ═════════════════════════════════════════════════════════════
   Project Glacie LLC — Dual Theme
   Light: Cream Indigo. Dark: Matte Indigo.
   Toggle via data-theme="light|dark" on body.
   ═════════════════════════════════════════════════════════════ */

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 860px;
}

/* ── Light Theme (default) ── */
[data-theme="light"] {
  --color-bg: #f3f2f8;
  --color-surface: #fafaf8;
  --color-text: #1a1a2e;
  --color-heading: #1a1a2e;
  --color-accent: #c47a38;
  --color-muted: #5a5a72;
  --color-border: #dddae8;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --color-bg: #12121f;
  --color-surface: #1a1a2a;
  --color-text: #e4e0ee;
  --color-heading: #ffffff;
  --color-accent: #c47a38;
  --color-muted: #8a8a9e;
  --color-border: #2a2a3e;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body { 
  font-family: var(--font-serif); 
  color: var(--color-text); 
  background: var(--color-bg); 
  line-height: 1.7; 
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

/* ── Nav ── */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 2rem 2rem; max-width: 1100px; margin: 0 auto; }
.nav__brand { font-size: 1.2rem; font-weight: 600; color: var(--color-heading); text-decoration: none; }
.nav__right { display: flex; gap: 2rem; align-items: center; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-family: var(--font-sans); font-size: 0.8rem; color: var(--color-muted); text-decoration: none; }
.nav__links a:hover { color: var(--color-accent); }

/* ── Eden Sub-Nav ── */
.sub-nav { display: flex; gap: 2rem; justify-content: center; padding: 0 2rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.sub-nav a { font-family: var(--font-sans); font-size: 0.8rem; color: var(--color-muted); text-decoration: none; }
.sub-nav a:hover { color: var(--color-accent); }

/* ── Theme Toggle ── */
.theme-toggle {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  line-height: 1;
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1000;
}
.theme-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ── Header ── */
.header { max-width: var(--max-width); margin: 0 auto; padding: 5rem 2rem 3rem; text-align: center; }
.header__rule { width: 50px; height: 2px; background: var(--color-accent); margin: 0 auto 2rem; }
.header__ornament { width: 50px; height: 30px; margin: 0 auto 1.5rem; color: var(--color-accent); opacity: 0.85; animation: heartbeat 1.667s ease-in-out infinite; }
.ornament-svg { width: 100%; height: 100%; display: block; }

@keyframes heartbeat {
  0%, 100% { filter: drop-shadow(0 0 4px var(--color-accent)); transform: scale(1); }
  8%  { filter: drop-shadow(0 0 16px var(--color-accent)); transform: scale(1.08); }
  16% { filter: drop-shadow(0 0 4px var(--color-accent)); transform: scale(1); }
  24% { filter: drop-shadow(0 0 10px var(--color-accent)); transform: scale(1.04); }
  32% { filter: drop-shadow(0 0 4px var(--color-accent)); transform: scale(1); }
  58% { filter: drop-shadow(0 0 16px var(--color-accent)); transform: scale(1.08); }
  66% { filter: drop-shadow(0 0 4px var(--color-accent)); transform: scale(1); }
  74% { filter: drop-shadow(0 0 10px var(--color-accent)); transform: scale(1.04); }
  82% { filter: drop-shadow(0 0 4px var(--color-accent)); transform: scale(1); }
}
.header__title { font-size: 4.2rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--color-heading); margin-bottom: 2rem; }
.header__subtitle { font-family: var(--font-sans); font-size: 1rem; color: var(--color-muted); max-width: 560px; line-height: 1.7; margin: 0 auto; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 0.7rem 2rem; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; text-decoration: none; border-radius: 2px; transition: all 0.2s; background: var(--color-accent); color: white; border: none; cursor: pointer; }
.btn:hover { background: var(--color-heading); color: var(--color-bg); }

/* ── Sections ── */
.section { padding: 5rem 2rem; max-width: var(--max-width); margin: 0 auto; }
.section__title { font-size: 2.2rem; font-weight: 600; line-height: 1.2; margin-bottom: 3rem; color: var(--color-heading); text-align: center; }
.section--rule { border-top: 1px solid var(--color-border); }

/* ── Services ── */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.service { display: flex; gap: 1.5rem; }
.service__num { font-family: var(--font-sans); font-size: 0.7rem; color: var(--color-accent); min-width: 1.5rem; padding-top: 0.3rem; }
.service h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--color-heading); }
.service p { font-family: var(--font-sans); font-size: 0.9rem; color: var(--color-muted); line-height: 1.6; }

/* ── Ethos ── */
.ethos-block { max-width: 620px; margin: 0 auto; text-align: center; }
.ethos__lead { font-size: 1.1rem; line-height: 1.65; margin-bottom: 2rem; }
.ethos-block p { font-family: var(--font-sans); font-size: 0.95rem; color: var(--color-muted); margin-bottom: 1.5rem; line-height: 1.7; }

/* ── Portfolio ── */
.portfolio { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.portfolio__label { font-family: var(--font-sans); font-size: 0.7rem; color: var(--color-accent); margin-bottom: 0.4rem; }
.portfolio__item h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-heading); }
.portfolio__item p { font-family: var(--font-sans); font-size: 0.9rem; color: var(--color-muted); line-height: 1.6; }
.service p a, .ethos-block p a, .portfolio__link { color: var(--color-accent); text-decoration: none; font-weight: 500; }
.service p a:hover, .ethos-block p a:hover, .portfolio__link:hover { color: var(--color-heading); }
.portfolio__item--muted { opacity: 0.4; }

/* ── Contact ── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact__lead { font-size: 1rem; margin-bottom: 2rem; }
.contact__info p { font-family: var(--font-sans); font-size: 0.9rem; margin-bottom: 1rem; color: var(--color-muted); }
.contact__info strong { color: var(--color-heading); }
.contact__info a { color: var(--color-accent); }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form__group { display: flex; flex-direction: column; gap: 0.3rem; }
.form__group label { font-family: var(--font-sans); font-size: 0.75rem; color: var(--color-muted); }
.form__group input, .form__group textarea { padding: 0.8rem; border: 1px solid var(--color-border); font-family: var(--font-sans); font-size: 0.95rem; background: var(--color-surface); color: var(--color-text); border-radius: 2px; }
.form__group textarea { resize: vertical; }

/* ── Footer ── */
.footer { text-align: center; padding: 2rem 2rem 4rem; }
.footer__sigil { display: inline-block; width: 30px; height: 18px; margin: 0 auto; color: var(--color-muted); opacity: 0.4; transition: opacity 0.3s; text-decoration: none; cursor: pointer; }
.footer__sigil:hover { opacity: 0.7; color: var(--color-accent); }
.footer__credit { font-family: var(--font-sans); font-size: 0.7rem; color: var(--color-muted); }
.footer__credit a { color: var(--color-muted); text-decoration: none; }
.footer__credit a:hover { color: var(--color-accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .header__title { font-size: 3rem; }
  .services, .portfolio, .contact { grid-template-columns: 1fr; }
  .section { padding: 3rem 1.5rem; }
  .nav { padding: 1.5rem; }
  .header__ornament { width: 35px; height: 21px; }
  .footer__sigil { width: 25px; height: 15px; }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
  .header__title { font-size: 2.3rem; }
  .nav__links { gap: 1rem; }
  .header__ornament { width: 30px; height: 18px; }
  .footer__sigil { width: 20px; height: 12px; }
}
