/* ============================================================
   Aureline Crafts — Botanical Atelier theme
   Shared design system for all pages.
   ============================================================ */

:root {
  --ink: #2b2016;
  --ink-soft: #4a3b2c;
  --paper: #f7f0e3;
  --paper-deep: #efe4cf;
  --card: #fffaf0;
  --terracotta: #c1502e;
  --terracotta-deep: #9c3d21;
  --moss: #3f4a34;
  --moss-deep: #2b3324;
  --gold: #ab7d28;
  --whatsapp-green: #25d366;
  --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --line: rgba(43, 32, 22, 0.14);
  --shadow-sm: 0 6px 16px rgba(43, 32, 22, 0.1);
  --shadow-md: 0 18px 40px rgba(43, 32, 22, 0.16);
  --shadow-lg: 0 28px 60px rgba(43, 32, 22, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Libre Franklin', 'Arial', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  color: var(--ink-soft);
  line-height: 1.65;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Fixed grain overlay — texture, never on scrolling containers */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

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

::selection {
  background: var(--terracotta);
  color: var(--paper);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta);
}

/* ============================================================
   Marquee ribbon
   ============================================================ */

.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(247, 240, 227, 0.12);
}

.marquee__track {
  display: inline-flex;
  width: max-content;
  animation: marquee 26s linear infinite;
  padding: 11px 0;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0 1.6rem;
  color: #e9dcc4;
}

.marquee__track span::after {
  content: '\2726';
  margin-left: 1.6rem;
  color: var(--terracotta);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Header / Navigation
   ============================================================ */

header {
  background: rgba(247, 240, 227, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  font-style: italic;
  color: var(--terracotta-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--terracotta);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta-deep);
}

/* ============================================================
   Reveal-on-scroll utility
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.41s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.59s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.68s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.77s; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Hero (index)
   ============================================================ */

.hero {
  position: relative;
  text-align: center;
  padding: 96px 20px 76px;
  overflow: hidden;
  isolation: isolate;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.45;
  animation: float 16s ease-in-out infinite;
}

.hero__blob--one {
  width: 340px;
  height: 340px;
  background: var(--terracotta);
  top: -120px;
  left: -80px;
  opacity: 0.22;
}

.hero__blob--two {
  width: 300px;
  height: 300px;
  background: var(--moss);
  bottom: -140px;
  right: -60px;
  opacity: 0.18;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -20px) scale(1.06); }
}

.hero__ornament {
  position: absolute;
  color: var(--moss);
  opacity: 0.35;
  z-index: -1;
}

.hero__ornament--tl { top: 18px; left: 4%; width: 90px; transform: rotate(-8deg); }
.hero__ornament--br { bottom: 8px; right: 4%; width: 110px; transform: rotate(178deg) scaleX(-1); }

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw + 1rem, 4rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 14px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero p.eyebrow {
  margin-top: 6px;
}

.hero__mark {
  display: block;
  margin: 22px auto 0;
  color: var(--gold);
  width: 26px;
  opacity: 0.8;
}

/* ============================================================
   Product Catalog Grid
   ============================================================ */

.main-container {
  max-width: 1200px;
  margin: 10px auto 70px auto;
  padding: 0 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 42px 34px;
}

.product-card {
  background: var(--card);
  border-radius: 22px 6px 22px 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), rotate 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  position: relative;
  rotate: -1.1deg;
}

.product-grid > .product-card:nth-child(even) {
  rotate: 1.3deg;
}

.product-grid > .product-card:nth-child(3n) {
  rotate: -0.7deg;
}

.product-card:hover {
  rotate: 0deg;
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.product-card__tape {
  position: absolute;
  top: -8px;
  left: 50%;
  translate: -50% 0;
  width: 74px;
  height: 26px;
  background: rgba(171, 125, 40, 0.35);
  border: 1px solid rgba(171, 125, 40, 0.3);
  z-index: 3;
  box-shadow: 0 2px 6px rgba(43, 32, 22, 0.15);
}

.img-container {
  width: 100%;
  height: 440px;
  overflow: hidden;
  position: relative;
  background: var(--paper-deep);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-price {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 3px 12px 3px 12px;
  box-shadow: var(--shadow-sm);
}

.product-info {
  padding: 24px 22px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  opacity: 0.85;
  margin-bottom: 22px;
  font-family: var(--font-body);
  font-style: normal;
  line-height: 1.65;
  flex-grow: 1;
}

/* Buttons — sweep-fill hover */
.btn-enquire, .btn-wa-direct, .btn-insta-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  padding: 15px;
  border-radius: 3px 12px 3px 12px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn-enquire {
  background: var(--moss-deep);
  border: 1px solid var(--moss-deep);
}

.btn-enquire::before, .btn-wa-direct::before, .btn-insta-direct::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.btn-wa-direct::before { background: #1ea952; }
.btn-insta-direct::before { background: #b0195f; }

.btn-enquire:hover, .btn-wa-direct:hover, .btn-insta-direct:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-enquire:hover::before, .btn-wa-direct:hover::before, .btn-insta-direct:hover::before {
  transform: translateX(0);
}

.btn-wa-direct { background: var(--whatsapp-green); }
.btn-insta-direct { background: var(--insta-gradient); }

.icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   Story page (aboutus)
   ============================================================ */

.story-container {
  max-width: 760px;
  margin: 56px auto 90px auto;
  padding: 0 20px;
}

.story-header {
  text-align: center;
  margin-bottom: 48px;
}

.story-header h1 {
  font-size: clamp(2.2rem, 3.6vw + 1rem, 3rem);
  font-weight: 500;
  margin-bottom: 12px;
}

.story-content p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
  text-align: left;
}

.story-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--terracotta);
  float: left;
  line-height: 0.8;
  margin: 8px 8px 0 0;
}

/* Seal badge — replaces the old quote box */
.seal {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px;
  margin: 40px 0;
  border-radius: 6px 26px 6px 26px;
  box-shadow: var(--shadow-sm);
}

.seal__ring {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 34s linear infinite;
  color: var(--terracotta-deep);
}

.seal__ring svg { width: 40px; height: 40px; animation: counter-spin 34s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter-spin { to { transform: rotate(-360deg); } }

.seal__text h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.seal__text p {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ============================================================
   Contact page
   ============================================================ */

.content-container {
  max-width: 660px;
  margin: 56px auto 90px auto;
  background: var(--card);
  padding: 46px 30px;
  border-radius: 6px 30px 6px 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.content-container h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
  font-weight: 500;
  margin-bottom: 12px;
}

.subtitle {
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--paper-deep);
  padding: 20px;
  border-radius: 4px 16px 4px 16px;
  margin-bottom: 18px;
  border-left: 3px solid var(--terracotta);
  text-align: left;
}

.contact-method .icon-svg {
  width: 22px;
  height: 22px;
  color: var(--terracotta-deep);
  margin-top: 2px;
}

.contact-method strong {
  color: var(--terracotta-deep);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 4px;
}

.contact-text {
  font-size: 0.95rem;
  color: var(--ink);
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 36px;
}

/* ============================================================
   Privacy page
   ============================================================ */

.legal-container {
  max-width: 780px;
  margin: 56px auto 90px auto;
  background: var(--card);
  padding: 44px 40px;
  border-radius: 6px 26px 6px 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.legal-container h1 {
  font-size: 2.1rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.legal-container h2 {
  font-size: 1.2rem;
  color: var(--terracotta-deep);
  margin: 30px 0 10px 0;
  font-weight: 600;
}

.legal-container p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-size: 0.96rem;
}

.legal-container ul {
  margin-left: 22px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.legal-container li {
  margin-bottom: 6px;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  background: var(--moss-deep);
  color: #cfc9b4;
  text-align: center;
  padding: 62px 20px 44px;
  position: relative;
  margin-top: 20px;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--moss-deep);
  clip-path: polygon(0% 100%, 4% 0%, 8% 100%, 12% 0%, 16% 100%, 20% 0%, 24% 100%, 28% 0%, 32% 100%, 36% 0%, 40% 100%, 44% 0%, 48% 100%, 52% 0%, 56% 100%, 60% 0%, 64% 100%, 68% 0%, 72% 100%, 76% 0%, 80% 100%, 84% 0%, 88% 100%, 92% 0%, 96% 100%, 100% 0%);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--paper);
  margin-bottom: 14px;
}

.footer-text {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.footer-links {
  margin-top: 22px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cfc9b4;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--paper);
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 480px) {
  nav { flex-direction: column; gap: 12px; padding: 15px 10px; }
  .logo { font-size: 1.5rem; }
  .nav-links { gap: 16px; }
  .hero { padding: 56px 16px 44px; }
  .hero__ornament { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 34px; }
  .product-grid > .product-card { rotate: 0deg !important; }
  .img-container { height: 340px; }
  .product-info { padding: 18px; }
  .story-container, .content-container, .legal-container { margin: 34px auto 60px; }
  .content-container, .legal-container { padding: 30px 20px; }
  .seal { flex-direction: column; text-align: center; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .hero__blob, .seal__ring, .seal__ring svg {
    animation: none !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
