/* ===========================================================
   Joyful Tiers — stylesheet
   Elegant · handmade · heritage-inspired
   =========================================================== */

:root {
  /* Palette */
  --ivory:      #fbf8f3;
  --cream:      #f3ebdd;
  --cream-deep: #ece0cd;
  --warm-white: #fffdf9;
  --gold:       #b8924f;
  --gold-soft:  #c8a96d;
  --rose:       #c98b8b;
  --rose-deep:  #b46e6e;
  --ink:        #3d3530;
  --ink-soft:   #6a5f56;
  --line:       #e4d8c6;
  --dark:       #443b34;
  --dark-2:     #3a322c;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 18px 50px -22px rgba(61, 53, 48, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

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

a { color: var(--gold); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--rose-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 760px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-cream { background: var(--cream); }
.section-dark  { background: var(--dark); color: #efe6d8; }
.section-dark h2 { color: #fff; }
.section-dark p  { color: #e3d8c8; }
.section-dark a  { color: var(--gold-soft); }

/* ---------- Shared typographic bits ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0 0 1.1em;
}
.eyebrow.light { color: var(--gold-soft); }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-sub { color: #d8ccba; }

.link-arrow {
  display: inline-block;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: .4em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .28s ease;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.75);
}
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: 10px 22px; font-size: .72rem; background: transparent; color: var(--gold); border-color: var(--line); }
.btn-small:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-block { width: 100%; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--dark);
  color: #ecdfca;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 16px;
  font-weight: 300;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .5px; }
.brand-tag { font-size: .62rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); }

.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a {
  color: var(--ink);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
}
.primary-nav a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 9px 20px;
  border-radius: var(--radius);
  color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(34,28,24,.80) 0%, rgba(34,28,24,.58) 40%, rgba(34,28,24,.22) 70%, rgba(34,28,24,.05) 100%),
    linear-gradient(to bottom, rgba(34,28,24,.18) 0%, rgba(34,28,24,0) 35%);
}
.hero-content { position: relative; color: #fff; padding-top: 60px; padding-bottom: 60px; max-width: 720px; }
.hero-content .eyebrow { color: #f0dec2; }
.hero-content h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .lede {
  font-size: 1.2rem;
  max-width: 540px;
  color: #f6efe4;
  margin: .4em 0 2em;
  font-weight: 300;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}
.split-text h2 { margin-bottom: .4em; }

/* steps list */
.steps { list-style: none; padding: 0; margin: 1.6em 0 2em; display: grid; gap: 14px; }
.steps li {
  display: flex; align-items: center; gap: 16px;
  font-size: 1.02rem; color: var(--ink);
}
.steps span {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.1rem;
}

/* features list */
.features { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 30px; font-size: 1.05rem; }
.features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--gold-soft);
  font-size: 1rem;
}

/* ---------- Brand emblem feature ---------- */
.emblem {
  text-align: center;
  padding-top: clamp(24px, 3vw, 44px);
  background:
    radial-gradient(circle at 50% 38%, rgba(200,169,109,.10), rgba(200,169,109,0) 58%),
    var(--ivory);
}
.emblem-inner { max-width: 760px; }
.emblem-art {
  width: min(460px, 80%);
  margin: 0 auto 20px;
}
.emblem-art img {
  width: 100%;
  /* drop-shadow traces the logo's circular shape (not its padded box),
     so the shadow hugs the artwork with no gap */
  filter: drop-shadow(0 20px 34px rgba(61, 53, 48, 0.34));
}
.emblem h2 { margin-bottom: .5em; }
.emblem-copy { color: var(--ink-soft); font-size: 1.1rem; max-width: 620px; margin: 0 auto 1.4em; }
.emblem-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0;
}
.emblem-tag::before,
.emblem-tag::after { content: "·"; margin: 0 .6em; color: var(--gold-soft); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(251,248,243,.94);
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.4rem; margin-bottom: .25em; }
.product-desc { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.collection-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: .92rem;
  margin: 44px auto 0;
  max-width: 560px;
}

/* ---------- Gallery (masonry-ish) ---------- */
.masonry {
  columns: 4;
  column-gap: 18px;
}
.masonry-item {
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -20px rgba(61,53,48,.4);
}
.masonry-item img { width: 100%; transition: transform .6s ease, filter .6s ease; filter: saturate(1.02); }
.masonry-item:hover img { transform: scale(1.05); }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.quote-grid blockquote {
  margin: 0;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  position: relative;
}
.quote-grid blockquote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--cream-deep);
  line-height: .1;
  position: absolute;
  top: 30px; left: 22px;
}
.quote-grid p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--ink); position: relative; }
.quote-grid cite { font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* ---------- FAQ ---------- */
.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.4rem;
  padding: 20px 40px 20px 0;
  position: relative;
  color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--gold); transition: transform .3s ease;
  font-family: var(--sans); font-weight: 300;
}
.accordion details[open] summary::after { content: "\2013"; }
.accordion details p { color: var(--ink-soft); padding: 0 40px 22px 0; margin: 0; }

/* ---------- Contact ---------- */
.contact-details { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 14px; }
.contact-details li { display: flex; flex-direction: column; }
.contact-details strong { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 2px; }
.contact-details a { color: #f1e7d7; }
.contact-details a:hover { color: #fff; }

.enquiry-form {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.enquiry-form label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.enquiry-form .optional { text-transform: none; letter-spacing: 0; color: var(--gold); }
.enquiry-form input,
.enquiry-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,79,.14);
}
.enquiry-form textarea { resize: vertical; }
.enquiry-form input[type="file"] { padding: 10px; background: var(--ivory); font-size: .85rem; }
.form-note { text-align: center; font-size: .82rem; color: var(--ink-soft); margin: 14px 0 0; }
.photo-note {
  font-size: .85rem;
  color: var(--ink-soft);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 15px;
  margin: 0 0 18px;
}
.form-success,
.form-error {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .92rem;
  text-align: center;
}
.form-success { background: #eef3ea; border: 1px solid #cdddc3; color: #4a6741; }
.form-error { background: #f7ece9; border: 1px solid #e6c9c2; color: #9a4a3a; }
.form-error a { color: inherit; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #d9cdbb; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-top: 64px; padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 18px; max-width: 360px; }
.footer-logo { width: 70px; height: 70px; border-radius: 50%; }
.footer-brand p { margin: 0; font-size: .95rem; color: #c9bba7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer-nav a { color: #d9cdbb; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-base p { margin: 0; font-size: .78rem; letter-spacing: .08em; color: #a89a86; text-align: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .masonry { columns: 3; }
  .quote-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  /* Drop the header's backdrop-filter on mobile: it would otherwise make the
     header the containing block for the fixed nav panel, collapsing the panel
     to the header's height and letting the page show through behind the menu. */
  .site-header { backdrop-filter: none; background: var(--ivory); }

  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 100px 36px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.5);
  }
  .primary-nav.open { transform: none; }
  .primary-nav a { padding: 14px 0; font-size: 1rem; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { border: 1px solid var(--gold); margin-top: 14px; text-align: center; }
  body.nav-open { overflow: hidden; }

  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masonry { columns: 2; column-gap: 12px; }
  .masonry-item { margin-bottom: 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .hero { min-height: 78vh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
