/* ============================================================
   W Living Design 美創設計 — style.css
   Palette from logo: Deep Navy #03466E · Gold #FBC108 · Warm Ivory
   ============================================================ */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Warm ivory surfaces */
  --color-bg: #f6f2ea;
  --color-surface: #faf7f1;
  --color-surface-2: #fdfbf7;
  --color-surface-offset: #efe9dd;
  --color-surface-offset-2: #e8e0d1;
  --color-divider: #ddd5c6;
  --color-border: oklch(from var(--color-text) l c h / 0.14);

  /* Text */
  --color-text: #212b33;
  --color-text-muted: #59656e;
  --color-text-faint: #96a0a7;
  --color-text-inverse: #f6f2ea;

  /* Navy (primary + accents) */
  --color-primary: #03466e;
  --color-primary-hover: #0a3553;
  --color-primary-active: #062941;
  --color-navy-deep: #022e49;
  --color-primary-highlight: #d3e0e8;

  /* Gold */
  --color-gold: #fbc108;
  --color-gold-soft: #f5cf4a;
  --color-gold-ink: #4a3800;
  --color-gold-highlight: #f3e6bd;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions & shadows (warm-toned) */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px oklch(0.25 0.03 250 / 0.06);
  --shadow-md: 0 4px 14px oklch(0.25 0.03 250 / 0.08);
  --shadow-lg: 0 16px 40px oklch(0.25 0.03 250 / 0.14);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Noto Serif TC', 'Cormorant Garamond', Georgia, serif;
  --font-latin-display: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  --font-body: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;

  color-scheme: light;
}

[data-theme='dark'] {
  --color-bg: #0a151d;
  --color-surface: #0e1b25;
  --color-surface-2: #122230;
  --color-surface-offset: #132433;
  --color-surface-offset-2: #182c3e;
  --color-divider: #1d2f40;
  --color-border: oklch(from var(--color-text) l c h / 0.16);

  --color-text: #e7eaee;
  --color-text-muted: #9aa8b2;
  --color-text-faint: #5c6b76;
  --color-text-inverse: #101c26;

  --color-primary: #7fb3d6;
  --color-primary-hover: #9cc4e0;
  --color-primary-active: #b8d5ea;
  --color-navy-deep: #07121b;
  --color-primary-highlight: #1c3247;

  --color-gold: #fbc108;
  --color-gold-soft: #f5cf4a;
  --color-gold-ink: #4a3800;
  --color-gold-highlight: #3d3517;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a151d;
    --color-surface: #0e1b25;
    --color-surface-2: #122230;
    --color-surface-offset: #132433;
    --color-surface-offset-2: #182c3e;
    --color-divider: #1d2f40;
    --color-border: oklch(0.9 0 0 / 0.16);
    --color-text: #e7eaee;
    --color-text-muted: #9aa8b2;
    --color-text-faint: #5c6b76;
    --color-text-inverse: #101c26;
    --color-primary: #7fb3d6;
    --color-primary-hover: #9cc4e0;
    --color-primary-active: #b8d5ea;
    --color-navy-deep: #07121b;
    --color-primary-highlight: #1c3247;
    --color-gold-highlight: #3d3517;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

/* ---------- Generic ---------- */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  transform: translateY(-200%);
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus-visible {
  transform: translateY(0);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-gold);
  flex-shrink: 0;
}
.eyebrow .en {
  font-family: var(--font-latin-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.eyebrow-light {
  color: #bcd2e2;
}
.eyebrow-light .en {
  color: #8fa9bd;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.section-head {
  max-width: var(--content-narrow);
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-16));
}
.section-lead {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 44px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #f6f2ea;
}
[data-theme='dark'] .btn-primary {
  background: var(--color-gold);
  color: var(--color-gold-ink);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
[data-theme='dark'] .btn-primary:hover {
  background: var(--color-gold-soft);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-gold-ink);
}
.btn-gold:hover {
  background: var(--color-gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(0.8 0.15 95 / 0.35);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-ghost {
  background: oklch(1 0 0 / 0.1);
  color: #f6f2ea;
  border: 1px solid oklch(1 0 0 / 0.45);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: oklch(1 0 0 / 0.22);
  transform: translateY(-1px);
}

.btn-outline-light {
  border: 1px solid oklch(1 0 0 / 0.4);
  color: #f6f2ea;
}
.btn-outline-light:hover {
  background: oklch(1 0 0 / 0.12);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.header.is-scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .header-inner {
    padding-inline: var(--space-8);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 44px;
  width: auto;
}
@media (min-width: 768px) {
  .brand-logo {
    height: 50px;
  }
}
/* Swap logo variant per theme */
.logo-rev {
  display: none;
}
[data-theme='dark'] .logo-color {
  display: none;
}
[data-theme='dark'] .logo-rev {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-color {
    display: none;
  }
  :root:not([data-theme]) .logo-rev {
    display: block;
  }
}

.nav {
  display: none;
}
@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: var(--space-8);
  }
  .nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text);
    text-decoration: none;
    padding-block: var(--space-2);
    position: relative;
  }
  .nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-interactive);
  }
  .nav a:hover::after,
  .nav a:focus-visible::after {
    transform: scaleX(1);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.header-cta {
  display: none;
}
@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text);
}
.theme-toggle:hover {
  background: oklch(from var(--color-text) l c h / 0.08);
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}
.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition:
    transform var(--transition-interactive),
    opacity var(--transition-interactive);
}
.menu-btn[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 900px) {
  .menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}
.mobile-menu[hidden] {
  display: none;
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}
.mobile-menu a:not(.btn) {
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.mobile-menu a:not(.btn):active {
  background: var(--color-surface-offset);
}
.mobile-menu .btn {
  margin-top: var(--space-3);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: max(640px, 88dvh);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    oklch(0.14 0.04 250 / 0.88) 0%,
    oklch(0.16 0.045 250 / 0.72) 38%,
    oklch(0.2 0.05 250 / 0.25) 72%,
    oklch(0.2 0.05 250 / 0.08) 100%
  );
}
@media (max-width: 767px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      oklch(0.14 0.04 250 / 0.82) 0%,
      oklch(0.16 0.045 250 / 0.62) 55%,
      oklch(0.16 0.045 250 / 0.72) 100%
    );
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  width: 100%;
  margin-inline: auto;
  padding: var(--space-20) var(--space-4) var(--space-16);
  color: #f6f2ea;
}
@media (min-width: 768px) {
  .hero-content {
    padding-inline: var(--space-8);
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  font-weight: 500;
  color: #e8dfc9;
  margin-bottom: var(--space-6);
}
.hero-eyebrow .rule {
  width: 44px;
  height: 2px;
  background: var(--color-gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.18;
  color: #fbf8f1;
  margin-bottom: var(--space-6);
}

.hero-sub {
  font-size: var(--text-base);
  color: #dde4ea;
  max-width: 46ch;
  margin-bottom: var(--space-8);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  gap: clamp(var(--space-6), 5vw, var(--space-16));
  border-top: 1px solid oklch(1 0 0 / 0.22);
  padding-top: var(--space-6);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.hero-stats strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--color-gold);
  letter-spacing: 0.02em;
}
.hero-stats span {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: #c3ccd4;
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--color-navy-deep);
  color: #d9e4ec;
  overflow: hidden;
  padding-block: var(--space-4);
  border-block: 1px solid oklch(1 0 0 / 0.08);
}
[data-theme='dark'] .marquee {
  background: var(--color-surface-offset);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  white-space: nowrap;
}
.marquee-track i {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--color-gold);
  flex-shrink: 0;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Services ---------- */

.services {
  background: var(--color-bg);
}

.svc-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
  }
  .svc-card-wide {
    grid-row: span 2;
  }
  .svc-card-wide figure {
    aspect-ratio: auto;
    flex: 1;
  }
}

.svc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
}
.svc-card figure {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.svc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-surface-offset);
}
.svc-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.svc-body h3 {
  color: var(--color-primary);
}
[data-theme='dark'] .svc-body h3 {
  color: #a8cbe4;
}
.svc-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.9;
}

/* ---------- Works ---------- */

.works {
  background: var(--color-surface-offset);
}
[data-theme='dark'] .works {
  background: var(--color-surface);
}

.works-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: var(--space-4);
  }
  .work-tall {
    grid-row: span 2;
  }
  .work-wide {
    grid-column: span 2;
  }
  .work-card:not(.work-tall):not(.work-wide) {
    grid-column: span 1;
  }
  /* 4-col × rows: tall(1×2) + bedroom + kitchen | office + wide(2) + japandi */
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.work-card:active {
  transform: scale(0.99);
}
.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-surface-offset-2);
  transition: transform 600ms var(--ease-out);
}
.work-card:hover img {
  transform: scale(1.045);
}
.work-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-8) var(--space-5) var(--space-5);
  background: linear-gradient(180deg, transparent, oklch(0.12 0.04 250 / 0.82));
  color: #f6f2ea;
}
.work-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.work-meta {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: #c9d3da;
}

/* ---------- Divider ---------- */

.divider {
  position: relative;
  min-height: clamp(320px, 56vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.divider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(0.13 0.04 250 / 0.45);
}
.divider-quote {
  position: relative;
  z-index: 1;
  padding: var(--space-4);
  text-align: center;
}
.divider-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #fbf8f1;
  max-width: none;
}
@media (min-width: 768px) {
  .divider-quote p {
    font-size: var(--text-2xl);
    letter-spacing: 0.2em;
  }
}

/* ---------- Process ---------- */

.process {
  background: var(--color-bg);
}

.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-latin-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  font-style: italic;
  color: var(--color-gold);
  line-height: 1;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
}
.step h3 {
  margin-bottom: var(--space-2);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.9;
}

/* ---------- About ---------- */

.about {
  background: var(--color-surface);
}
[data-theme='dark'] .about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 5fr 6fr;
    gap: var(--space-16);
  }
}

.about-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  background: var(--color-surface-offset);
}

.about-copy h2 {
  margin-bottom: var(--space-6);
}
.about-copy > p {
  color: var(--color-text-muted);
  line-height: 1.95;
  margin-bottom: var(--space-4);
}
.about-points {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}
.about-points li {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.about-points strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-primary);
  flex-shrink: 0;
  min-width: 5.5em;
}
[data-theme='dark'] .about-points strong {
  color: #a8cbe4;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--color-bg);
  padding-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  background: linear-gradient(135deg, #045380, var(--color-navy-deep) 70%);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  color: #eef3f7;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -110px;
  right: -110px;
  width: 320px;
  height: 320px;
  border: 1px solid oklch(from var(--color-gold) l c h / 0.4);
  border-radius: var(--radius-full);
}
.contact-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border: 1px solid oklch(from var(--color-gold) l c h / 0.22);
  border-radius: var(--radius-full);
}
@media (min-width: 900px) {
  .contact-card {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }
}

.contact-copy {
  position: relative;
  z-index: 1;
}
.contact-copy h2 {
  color: #fbf8f1;
  margin-bottom: var(--space-5);
}
.contact-copy > p {
  color: #c4d4e0;
  line-height: 1.95;
  max-width: 52ch;
}

.contact-list {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  border-top: 1px solid oklch(1 0 0 / 0.18);
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-bottom: 1px solid oklch(1 0 0 / 0.18);
  color: #eef3f7;
}
@media (min-width: 560px) {
  .contact-list li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-6);
  }
}
.contact-label {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: #9fbdcf;
  flex-shrink: 0;
}
.contact-list a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fbf8f1;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-list a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.contact-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-note {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: #9fbdcf;
  margin-bottom: var(--space-2);
}

/* ---------- Footer ---------- */
/* Warm ivory backdrop (fixed, theme-independent) so the logo's
   original navy + gold colours stay true instead of blending
   into a navy background. */

.footer {
  background: #efe6d3;
  color: #4d443a;
  border-top: 1px solid #ddcdad;
  padding-block: var(--space-16) var(--space-8);
}
[data-theme='dark'] .footer {
  background: #efe6d3;
  color: #4d443a;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}
.footer-logo {
  height: 72px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}
.footer-nav a {
  color: #5a5040;
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  padding: var(--space-2) var(--space-1);
}
.footer-nav a:hover {
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
}
.footer-contact a {
  color: #362f26;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.footer-contact a:hover {
  color: var(--color-primary);
}
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.footer-social-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: #7a6f5f;
}
.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid #d3c4a0;
  color: #362f26;
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  background: #f8f2e6;
  transition:
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    color var(--transition-interactive);
}
.footer-social-btn svg {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: color var(--transition-interactive);
}
.footer-social-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-gold-ink);
}
.footer-social-btn:hover svg {
  color: var(--color-gold-ink);
}
.footer-copy {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: #8a7f6d;
  border-top: 1px solid #ddcdad;
  padding-top: var(--space-6);
  width: 100%;
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px oklch(0.62 0.19 150 / 0.4);
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px oklch(0.62 0.19 150 / 0.5);
}
.wa-float:active {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .wa-float {
    right: var(--space-8);
    bottom: var(--space-8);
  }
}

/* ---------- Scroll reveal (opacity/clip only — no CLS) ---------- */

.reveal {
  opacity: 1;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      animation: reveal-fade 0.9s var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
}
@keyframes reveal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Utility ---------- */

img {
  background: var(--color-surface-offset);
}
/* Transparent SVG logos must stay clean on any surface */
.brand-logo,
.footer-logo {
  background: none;
}
