/* ===========================================================
   Naomie's Bead Work — stylesheet
   Palette pulled from the logo: cream, turquoise, rust red,
   gold, black, and leather brown.
=========================================================== */

:root {
  --cream: #f8f1e0;
  --cream-dark: #efe2c4;
  --white: #fffcf5;
  --turquoise: #1f9c93;
  --turquoise-dark: #12726b;
  --rust: #b8382a;
  --rust-dark: #8f2a1f;
  --gold: #dd9a2e;
  --gold-dark: #b97b1c;
  --brown: #6b4226;
  --brown-dark: #432a18;
  --black: #221810;
  --ink: #2b2018;
  --shadow: 0 10px 30px rgba(34, 24, 16, 0.18);
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Sacramento', cursive;
  --sans: 'Nunito', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Entrance animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.35) rotate(-6deg); }
  55%  { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Scroll-reveal utility — JS toggles .in-view via IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.25,.8,.35,1), transform 0.7s cubic-bezier(.25,.8,.35,1);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Staggered delays for grid children */
.card-grid .reveal:nth-child(1),
.values-grid .reveal:nth-child(1),
.photo-grid .reveal:nth-child(1) { transition-delay: 0s; }
.card-grid .reveal:nth-child(2),
.values-grid .reveal:nth-child(2),
.photo-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.card-grid .reveal:nth-child(3),
.values-grid .reveal:nth-child(3),
.photo-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.split .reveal:nth-child(2),
.contact-wrap .reveal:nth-child(2) { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-logo, .hero-eyebrow, .hero h1, .hero p.lede, .hero-buttons,
  .page-hero .eyebrow, .page-hero h1 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Beaded divider strip ---------- */
.bead-strip {
  height: 18px;
  width: 100%;
  background-color: var(--turquoise);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18'%3E%3Crect width='40' height='18' fill='%231f9c93'/%3E%3Cpolygon points='20,1 38,9 20,17 2,9' fill='%23f8f1e0' stroke='%23221810' stroke-width='1'/%3E%3Ccircle cx='20' cy='9' r='2.6' fill='%23b8382a'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 18px;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--black);
  color: var(--cream);
  text-align: center;
  font-size: 0.82rem;
  padding: 7px 12px;
  letter-spacing: 0.02em;
}
.topbar a { color: var(--gold); font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(34,24,16,0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(34,24,16,0.18); }
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; transition: opacity 0.25s ease, transform 0.25s ease; transform-origin: left center; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-script { font-family: var(--script); font-size: 2rem; color: var(--rust); }
.brand-sub { font-family: var(--sans); font-weight: 700; letter-spacing: 0.18em; font-size: 0.72rem; color: var(--brown); margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown-dark);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover, .site-nav a.active { background: var(--turquoise); color: var(--white); }
.site-nav a.nav-cta {
  background: var(--rust);
  color: var(--white);
  margin-left: 6px;
}
.site-nav a.nav-cta:hover { background: var(--rust-dark); }
.site-nav a.nav-cta.active { background: var(--rust-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--turquoise);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--white); margin: 0 auto; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34,20,12,0.55) 0%, rgba(34,20,12,0.72) 60%, rgba(34,20,12,0.9) 100%);
  z-index: -1;
}
.hero-content { max-width: 760px; padding: 40px 24px; }
.hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5));
  animation: popIn 1s cubic-bezier(.34,1.56,.64,1) 0.1s both;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(248,241,224,0.15);
  border: 1px solid rgba(248,241,224,0.5);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: fadeUp 0.7s ease 0.4s both;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin: 0 0 18px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: fadeUp 0.7s ease 0.55s both;
}
.hero .script { font-family: var(--script); color: var(--gold); font-size: 1.3em; }
.hero p.lede {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--cream);
  animation: fadeUp 0.7s ease 0.7s both;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.7s ease 0.85s both; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--brown-dark); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-dark); box-shadow: var(--shadow); }
.btn-dark { background: var(--brown); color: var(--white); }
.btn-dark:hover { background: var(--brown-dark); }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-dark { background: var(--brown-dark); color: var(--cream); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .eyebrow {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--rust);
  display: block;
  margin-bottom: 4px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 14px;
  color: var(--brown-dark);
}
.section-dark .section-head h2 { color: var(--cream); }
.section-head p { color: #5a4a3a; font-size: 1.05rem; }
.section-dark .section-head p { color: var(--cream-dark); }

/* ---------- Intro / story teaser ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-text .eyebrow { font-family: var(--script); font-size: 1.7rem; color: var(--rust); display: block; margin-bottom: 6px; }
.split-text h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--brown-dark); margin: 0 0 16px; }
.split-text p { color: #4a3a2c; margin-bottom: 16px; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ---------- Category / craft cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.craft-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  transition: transform 0.2s ease;
}
.craft-card:hover { transform: translateY(-6px); }
.craft-card .img-wrap { position: relative; height: 230px; overflow: hidden; }
.craft-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.craft-card:hover .img-wrap img { transform: scale(1.08); }
.craft-card .tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--turquoise);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.craft-card .card-body { padding: 22px; }
.craft-card h3 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 8px; color: var(--brown-dark); }
.craft-card p { color: #5a4a3a; font-size: 0.95rem; margin: 0 0 16px; }
.craft-card a.card-link { color: var(--rust); font-weight: 700; font-size: 0.9rem; }
.craft-card a.card-link:hover { text-decoration: underline; }

/* ---------- Quote / heritage banner ---------- */
.quote-banner {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  padding: 70px 24px;
  position: relative;
}
.quote-banner blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  max-width: 780px;
  margin: 0 auto 16px;
  line-height: 1.5;
}
.quote-banner cite { font-family: var(--script); font-size: 1.4rem; color: var(--gold); font-style: normal; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--turquoise), var(--turquoise-dark));
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
}
.cta-banner h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cta-banner p { margin: 0 0 26px; opacity: 0.95; }

/* ---------- About page ---------- */
.page-hero {
  position: relative;
  padding: 90px 24px 70px;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(34,20,12,0.68);
  z-index: -1;
}
.page-hero .eyebrow { font-family: var(--script); font-size: 1.8rem; color: var(--gold); animation: fadeUp 0.6s ease 0.15s both; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); margin: 6px 0 0; animation: fadeUp 0.6s ease 0.3s both; }

.story-block { max-width: 780px; margin: 0 auto; }
.story-block p { color: #4a3a2c; font-size: 1.06rem; margin-bottom: 20px; }
.story-block h3 { font-family: var(--serif); color: var(--brown-dark); font-size: 1.5rem; margin: 34px 0 12px; }
.drop-cap:first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  color: var(--rust);
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 6px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.value-card .icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-dark);
  border-radius: 50%;
  color: var(--rust);
}
.value-card h4 { font-family: var(--serif); margin: 0 0 8px; color: var(--brown-dark); }
.value-card p { color: #5a4a3a; font-size: 0.92rem; margin: 0; }

/* ---------- Gallery page ---------- */
.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.gallery-nav a {
  background: var(--white);
  border: 2px solid var(--turquoise);
  color: var(--turquoise-dark);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.gallery-nav a:hover { background: var(--turquoise); color: var(--white); }

.gallery-section { padding: 70px 0; scroll-margin-top: 110px; }
.gallery-section:nth-of-type(even) { background: var(--white); }
.gallery-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.gallery-heading h2 { font-family: var(--serif); font-size: 2rem; color: var(--brown-dark); margin: 0; }
.gallery-heading span { font-family: var(--script); color: var(--rust); font-size: 1.4rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.photo-card .img-wrap { height: 260px; overflow: hidden; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card .cap { padding: 16px 18px; }
.photo-card .cap h4 { font-family: var(--serif); margin: 0 0 4px; color: var(--brown-dark); font-size: 1.1rem; }
.photo-card .cap p { margin: 0; color: #5a4a3a; font-size: 0.88rem; }

.gallery-note {
  max-width: 720px;
  margin: 0 auto 10px;
  text-align: center;
  background: var(--gold);
  color: var(--black);
  padding: 16px 22px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: flex-start;
}
.contact-info {
  background: var(--brown);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-info h3 { font-family: var(--serif); font-size: 1.5rem; margin-top: 0; color: var(--white); }
.contact-info ul { margin-top: 20px; }
.contact-info li { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-info li .ic { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-info .divider { border: none; border-top: 1px solid rgba(248,241,224,0.25); margin: 26px 0; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--brown-dark); font-size: 0.94rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.96rem;
  background: var(--cream);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  background: var(--white);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
#formMsg { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-weight: 700; display: none; }
#formMsg.show { display: block; }
#formMsg.success { background: #dff2ea; color: var(--turquoise-dark); border: 1px solid var(--turquoise); }
#formMsg.error { background: #fbe4e0; color: var(--rust-dark); border: 1px solid var(--rust); }
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--cream-dark); padding-top: 54px; }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer-logo { width: 64px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; color: #cbb99e; }
.footer-col h4 { font-family: var(--serif); color: var(--gold); margin: 0 0 14px; font-size: 1.05rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: #d8c9ae; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(248,241,224,0.12);
  text-align: center;
  padding: 18px 24px;
  font-size: 0.82rem;
  color: #a3927a;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .card-grid, .values-grid, .photo-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: center; margin: 4px 0; }
  .card-grid, .values-grid, .photo-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-col li, .contact-info li { text-align: left; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .brand-logo { width: 46px; height: 46px; }
  .brand-script { font-size: 1.5rem; }
  .hero-logo { width: 225px; height: 225px; margin-bottom: 20px; }
}
