/* style.css — STIX&STONES CO. Design System + Components */

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* --- Type Scale (fluid) --- */
  --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.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- 4px Spacing System --- */
  --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;

  /* --- Font Families --- */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'Manrope', 'Helvetica Neue', sans-serif;

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

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

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

/* ============================================
   LIGHT MODE (Default)
   ============================================ */
:root, [data-theme="light"] {
  /* Surfaces — warm cream/off-white */
  --color-bg:             #faf9f6;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f3ef;
  --color-surface-offset: #f0ede8;
  --color-surface-dynamic: #e8e5df;
  --color-divider:        #ddd9d2;
  --color-border:         #d4d0c8;

  /* Text — warm dark brown */
  --color-text:           #2c2418;
  --color-text-muted:     #7a7264;
  --color-text-faint:     #b5ae9f;
  --color-text-inverse:   #faf9f6;

  /* Primary — sage green */
  --color-primary:        #7a8b6f;
  --color-primary-hover:  #647558;
  --color-primary-active: #4e5e44;
  --color-primary-highlight: #e3e9df;

  /* Secondary — dusty rose */
  --color-secondary:      #c4a48d;
  --color-secondary-hover: #b08e75;
  --color-secondary-active: #9a7a62;

  /* Semantic */
  --color-error:          #a13544;
  --color-success:        #5a7a45;

  /* Shadows — warm toned */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 70 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 70 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 70 / 0.12);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg:             #1a1814;
  --color-surface:        #211f1a;
  --color-surface-2:      #282520;
  --color-surface-offset: #1e1c17;
  --color-surface-dynamic: #302d27;
  --color-divider:        #2e2b25;
  --color-border:         #3d3a33;

  --color-text:           #d8d2c6;
  --color-text-muted:     #8a8275;
  --color-text-faint:     #5e584d;
  --color-text-inverse:   #1a1814;

  --color-primary:        #97ab8c;
  --color-primary-hover:  #adc0a2;
  --color-primary-active: #7a8b6f;
  --color-primary-highlight: #2c312a;

  --color-secondary:      #c4a48d;
  --color-secondary-hover: #d4b49d;
  --color-secondary-active: #b08e75;

  --color-error:          #d06a78;
  --color-success:        #7aaa55;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #1a1814;
    --color-surface:        #211f1a;
    --color-surface-2:      #282520;
    --color-surface-offset: #1e1c17;
    --color-surface-dynamic: #302d27;
    --color-divider:        #2e2b25;
    --color-border:         #3d3a33;
    --color-text:           #d8d2c6;
    --color-text-muted:     #8a8275;
    --color-text-faint:     #5e584d;
    --color-text-inverse:   #1a1814;
    --color-primary:        #97ab8c;
    --color-primary-hover:  #adc0a2;
    --color-primary-active: #7a8b6f;
    --color-primary-highlight: #2c312a;
    --color-secondary:      #c4a48d;
    --color-secondary-hover: #d4b49d;
    --color-secondary-active: #b08e75;
    --color-error:          #d06a78;
    --color-success:        #7aaa55;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  z-index: 1000;
  transition: top var(--transition-interactive);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.3);
  transition: background var(--transition-interactive),
              border-color var(--transition-interactive);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.brand-logo {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.brand-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-interactive);
  padding: var(--space-1) 0;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-text);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-dynamic);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive);
}
.hamburger:hover {
  background: var(--color-surface-dynamic);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: oklch(from var(--color-bg) l c h / 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  padding: var(--space-24) var(--space-6);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition-interactive);
}
.mobile-nav a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .brand-text {
    display: none;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(0.15 0.02 70 / 0.4) 0%,
    oklch(0.15 0.02 70 / 0.65) 60%,
    oklch(0.15 0.02 70 / 0.8) 100%
  );
  z-index: 1;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    180deg,
    oklch(0.1 0.02 70 / 0.5) 0%,
    oklch(0.1 0.02 70 / 0.75) 60%,
    oklch(0.1 0.02 70 / 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-default);
  padding: var(--space-32) var(--space-6) var(--space-16);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #faf9f6;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: normal;
  color: oklch(0.9 0.02 70 / 0.85);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
}

.hero-description {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: oklch(0.88 0.01 70 / 0.8);
  max-width: 50ch;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-secondary {
  background: transparent;
  color: #faf9f6;
  border: 1px solid oklch(0.9 0 0 / 0.4);
}
.btn-secondary:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(0.9 0 0 / 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-highlight);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 500;
}
.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-surface-dynamic);
}

/* ============================================
   SECTIONS — Shared
   ============================================ */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* Alternating section backgrounds */
.section-alt {
  background: var(--color-surface-2);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: oklch(from var(--color-border) l c h / 0.7);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-offset);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}

.product-info {
  padding: var(--space-5);
}

.product-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.product-description {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.product-price {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.product-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.product-actions .btn {
  flex: 1;
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}

.product-actions .btn-ghost {
  flex: 0 0 auto;
  font-size: var(--text-xs);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: var(--space-3);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item--wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
}

/* ============================================
   OUR STORY SECTION
   ============================================ */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}

.story-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-text {
  max-width: 55ch;
}

.story-text p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.story-text p:first-of-type {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.6;
}

.story-signature {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-primary);
  margin-top: var(--space-6);
}

@media (max-width: 768px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .story-image-wrap {
    aspect-ratio: 16/10;
  }
}

/* ============================================
   REVIEWS / TESTIMONIALS
   ============================================ */
.reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.reviews-stars {
  display: flex;
  gap: var(--space-1);
}

.reviews-count {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.reviews-count a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-interactive);
}
.reviews-count a:hover {
  color: var(--color-primary-hover);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.review-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-border) l c h / 0.5);
}

.review-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover .review-photo img {
  transform: scale(1.03);
}

.review-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

/* Cards without photos get padding on top */
.review-card:not(:has(.review-photo)) .review-body {
  padding-top: var(--space-6);
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.review-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid oklch(from var(--color-border) l c h / 0.2);
}

.review-author {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  font-style: normal;
  color: var(--color-text);
}

.review-product {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.reviews-cta {
  text-align: center;
  margin-top: var(--space-8);
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   CUSTOM ORDERS
   ============================================ */
.custom-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: start;
}

.custom-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.custom-features h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.custom-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.custom-feature-list li {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.6;
}

.custom-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 0.6;
}

/* Custom order hero image */
.custom-hero {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
  aspect-ratio: 21/9;
}

.custom-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Contact form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.4);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid oklch(from var(--color-border) l c h / 0.5);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}

@media (max-width: 768px) {
  .custom-layout {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: var(--space-6);
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  text-align: center;
}

.contact-item {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
  border-radius: var(--radius-lg);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-full);
  color: var(--color-primary);
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.contact-item p,
.contact-item a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.contact-item a:hover {
  color: var(--color-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid oklch(from var(--color-border) l c h / 0.3);
  padding: var(--space-12) var(--space-6) var(--space-6);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.3);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.06em;
}

.footer-brand-tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  text-align: center;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* JS fallback class */
.js-fade-in {
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-fade-in.is-visible {
  opacity: 1;
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
