/* ==========================================================================
   Our Fairy Godmama — styles
   Warm, whimsical, handmade. Cream backgrounds, dusty-rose accent, gold trim.
   ========================================================================== */

:root {
  --cream: #fdf8f3;
  --cream-2: #f6ece2;
  --ink: #4a3b3b;
  --ink-soft: #6f5c5c;
  --rose: #d98a94;
  --rose-dark: #c26f7b;
  --gold: #c9a24b;
  --line: #ecdccd;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(120, 86, 86, 0.12);
  --shadow-sm: 0 4px 14px rgba(120, 86, 86, 0.1);
  --radius: 16px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1120px;
}

* { 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;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }

a { color: var(--rose-dark); text-decoration: none; }
a:hover { color: var(--gold); }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--sans);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--rose-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--rose); color: var(--rose-dark); }
.btn-outline:hover { background: var(--rose); color: #fff; }
.btn-ig { background: #e1306c; color: #fff; }
.btn-ig:hover { background: #c62a5f; color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { background: #1362cc; color: #fff; }
.btn-mail { background: var(--ink); color: #fff; }
.btn-mail:hover { background: #362a2a; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 44px; width: auto; }
.brand .brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.98rem; }
.nav a:hover, .nav a.active { color: var(--rose-dark); }
.nav .socials { display: flex; gap: 0.8rem; align-items: center; }
.nav .socials a { line-height: 1; display: inline-flex; }
.ico-svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, #fbe7e9 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.6rem; max-width: 46ch; }
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-art {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); border: 6px solid #fff; transform: rotate(1.5deg);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

.ribbon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.95rem; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.ribbon .dot { color: var(--gold); }

/* ---------- Section ---------- */
.section { padding: 4rem 0; }
.section-head { max-width: 60ch; margin: 0 auto 2.4rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 0.6rem; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section.alt { background: var(--cream-2); }

/* ---------- Product grid ---------- */
.grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 3 / 4; background: var(--cream-2); margin: 12px 12px 0; border-radius: 12px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.95); color: var(--rose-dark);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.card-body h3 { font-size: 1.2rem; margin: 0; }
.card-body .price { color: var(--gold); font-weight: 800; font-family: var(--sans); }
.card-body .blurb { color: var(--ink-soft); font-size: 0.9rem; margin: 0.2rem 0 0.6rem; }
.card-body .view { color: var(--rose-dark); font-weight: 700; font-size: 0.9rem; margin-top: auto; }

/* ---------- Features / about ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.feature .ico { font-size: 1.8rem; }
.feature h3 { margin: 0.6rem 0 0.4rem; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Content pages (FAQ / Sizing) ---------- */
.page-hero { background: var(--cream-2); padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.2rem 0 0.4rem; }
.page-hero p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.prose { max-width: 780px; margin: 0 auto; padding: 3rem 20px; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 0.6rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.3rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-item h3 { margin: 0 0 0.4rem; color: var(--ink); }
.faq-item p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0 0.5rem; }
table.size {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
table.size th, table.size td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
table.size thead th { background: var(--cream-2); color: var(--ink); font-family: var(--serif); }
table.size tr:last-child td { border-bottom: 0; }

.callout {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--rose);
  border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0; color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #f3e7e7; padding: 2.6rem 0 1.6rem; margin-top: 2rem; }
.site-footer a { color: #f3d9dc; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer .brand-name { color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.site-footer .f-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer .socials { display: flex; gap: 1rem; font-size: 1.3rem; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 1.6rem; padding-top: 1rem; font-size: 0.85rem; color: #cbb6b6; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(60, 42, 42, 0.55); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 4vh 16px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--cream); border-radius: 20px; max-width: 900px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35); overflow: hidden; position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.9); font-size: 1.3rem; line-height: 1; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-gallery { background: var(--cream-2); }
.modal-gallery .main-img { aspect-ratio: 3 / 4; }
.modal-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 0.5rem; padding: 0.6rem; flex-wrap: wrap; }
.thumbs img {
  width: 58px; height: 74px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent;
}
.thumbs img.active { border-color: var(--rose); }
.modal-info { padding: 2rem 1.8rem; max-height: 86vh; overflow-y: auto; }
.modal-info .badge-inline { display: inline-block; color: var(--rose-dark); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-info h2 { font-size: 1.8rem; margin: 0.3rem 0 0.2rem; }
.modal-info .price { color: var(--gold); font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem; }
.modal-info p { color: var(--ink-soft); }
.modal-info h4 { margin: 1.3rem 0 0.4rem; font-size: 1rem; color: var(--ink); font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.spec-list li span:first-child { color: var(--ink-soft); }
.spec-list li span:last-child { font-weight: 700; color: var(--ink); text-align: right; }
.order-box { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.order-box .btns { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.6rem; }
.order-box .btns .btn { text-align: center; }
.order-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0.2rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-gallery .main-img { aspect-ratio: auto; }
  .modal-gallery .main-img img { height: auto; object-fit: contain; }
  .modal-info { max-height: none; }
}
@media (max-width: 640px) {
  .nav { position: fixed; inset: 74px 0 auto 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; gap: 0.4rem;
    padding: 1rem 20px 1.4rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform 0.25s ease; }
  .nav.open { transform: translateY(0); }
  .nav .socials { margin-top: 0.4rem; }
  .nav-toggle { display: block; }
  .brand .brand-name { font-size: 1rem; }
}
