/* Organic — design-system tokens, adapted from the Kanak Claude Design project */
@import url('https://fonts.googleapis.com/css2?family=Caprasimo:wght@400&family=Figtree:wght@400;600;700&display=swap');

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 8px; }

a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }

img { display: block; max-width: 100%; }
figure { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 700;
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 11px 22px;
  border-radius: 999px;
}
.btn svg { display: block; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-600); color: #fff; }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ghost { color: var(--color-accent-700); padding-inline: 4px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

.card { border-radius: 32px; background: var(--color-surface); }

.input {
  width: 100%; min-height: 36px; padding: 10px 14px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 999px;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline: 2px solid var(--color-accent); outline-offset: 0; }
textarea.input { border-radius: 24px; resize: vertical; }

.nav {
  display: flex; align-items: center; gap: 26px;
  padding: 18px clamp(20px, 5vw, 64px);
  position: relative; z-index: 2; flex-wrap: wrap;
}
.nav-brand { margin-right: auto; }
.nav a { color: var(--color-text); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--color-accent-700); }

/* Placeholder tile used where a photo could not be sourced */
.ph-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-accent-200), var(--color-accent-2-200));
  color: var(--color-accent-800);
}
.ph-img svg { width: 34%; height: 34%; opacity: 0.55; }

/* Hover zoom: put .zoom-frame on the overflow:hidden container (a card link
   or figure) and .zoom-img on the <img> inside it. */
.zoom-frame { overflow: hidden; }
.zoom-img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
  will-change: transform;
}
.zoom-frame:hover .zoom-img {
  transform: scale(1.07);
}
@media (prefers-reduced-motion: reduce) {
  .zoom-img { transition: none; }
  .zoom-frame:hover .zoom-img { transform: none; }
}

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* Scroll-reveal: JS adds .js-reveal to <html> before paint, then toggles
   .is-visible per element via IntersectionObserver. No-JS visitors and
   reduced-motion users always see content, just without the animation. */
.reveal {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(36px);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Mobile Refinements */
@media (max-width: 768px) {
  /* Navigation spacing */
  .nav { gap: 14px; padding: 16px 20px !important; }
  .nav a { font-size: 13.5px; }
  
  /* Category Tabs Horizontal Scroll */
  #category-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin-bottom: 24px !important;
  }
  #category-tabs::-webkit-scrollbar { display: none; }
  #category-tabs button { white-space: nowrap; }

  /* Product Grids (2 columns on mobile) */
  #product-grid, #related-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 16px !important;
  }
  
  /* Dynamic frame height adjustment for 2 columns */
  .zoom-frame figure, .zoom-frame[href^="Kanak"] figure { height: 200px !important; border-radius: 24px !important; }
  .zoom-frame[href^="Kanak"] > div > span:first-child { font-size: 15px !important; }

  /* Contact Form & Main Section Grids (1-column on mobile to prevent overflow) */
  .contact-grid, 
  #bridal > div, 
  #story, 
  #contact > div {
    grid-template-columns: 1fr !important;
  }

  /* Reduce huge border radii and padding on mobile */
  #bridal > div, #contact > div {
    border-radius: 32px !important;
    padding: 32px 24px !important;
  }
  
  /* Ensure hero text doesn't overflow */
  #hero-video + div + div {
    left: 20px !important;
    right: 20px !important;
    bottom: 28px !important;
  }
  
  /* Story section image height */
  #story figure { height: 320px !important; border-radius: 32px 100px 32px 32px !important; }
}
