/* ============================================
   Fig & Fable — Stylesheet
   Palette: deep charcoal, warm cream, gold
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #13111a;
  --bg-surface:  #1d1b27;
  --bg-card:     #221f30;
  --gold:        #c9a255;
  --gold-light:  #e0bc7a;
  --cream:       #ede8dc;
  --cream-muted: #a89f8c;
  --text:        #ede8dc;
  --text-muted:  #7e7869;
  --border:      rgba(201, 162, 85, 0.2);

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, sans-serif;

  --radius:      6px;
  --transition:  0.25s ease;
  --max-width:   1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-sub {
  color: var(--cream-muted);
  margin-bottom: 3rem;
  max-width: 460px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
}

/* --- Logo image --- */
.nav-logo-img {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity var(--transition);
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
}

.nav-logo-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bg);
  letter-spacing: 0.02em;
}

.about-logo-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================
   BANNER
   ============================================ */
.site-banner {
  background: var(--gold);
  color: var(--bg);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.5rem;
  position: relative;
  z-index: 101;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 2.4rem;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  background: rgba(237, 232, 220, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background var(--transition), top 0.2s ease;
}

body.banner-hidden .site-header {
  top: 0;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bg);
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(201, 162, 85, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(100, 80, 160, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-construction {
  margin-top: 3rem;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(201, 162, 85, 0.06);
}

.hero-construction-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hero-construction-body {
  font-size: 0.9rem;
  color: var(--cream-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--cream-muted);
  max-width: 400px;
  margin: 0 auto 2.5rem;
}

.hero-ornament {
  position: absolute;
  bottom: -50px;
  right: -40px;
  width: 400px;
  height: 400px;
  color: var(--gold);
  opacity: 0.06;
  pointer-events: none;
}

/* ============================================
   COLLECTIONS
   ============================================ */
.collections {
  background: var(--bg);
}

.collections-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 1.25rem;
}

.collection-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.collection-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 85, 0.45);
}

.collection-card:hover .collection-cta {
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

.collection-img-wrap {
  position: relative;
  height: 420px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.collection-card--featured .collection-img-wrap {
  height: 420px;
}

.collection-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-img-placeholder svg {
  width: 100px;
  height: 100px;
  color: var(--text-muted);
  opacity: 0.4;
}

.collection-card--magic .collection-img-placeholder svg {
  color: var(--gold);
  opacity: 0.35;
}

/* gradient overlay so text is readable over image */
.collection-label {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(19, 17, 26, 0.97) 0%, rgba(19, 17, 26, 0.6) 60%, transparent 100%);
}

.collection-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(201, 162, 85, 0.4);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

.collection-label h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.35rem;
  line-height: 1.1;
}

.collection-card--featured .collection-label h3 {
  font-size: 2rem;
}

.collection-label p {
  font-size: 0.85rem;
  color: var(--cream-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.collection-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color var(--transition), letter-spacing var(--transition);
}

/* ============================================
   SHOP
   ============================================ */
.shop {
  background: var(--bg-surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 85, 0.45);
}

.product-card--custom {
  border-style: dashed;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-placeholder {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
}

.product-img-placeholder--gold {
  color: var(--gold);
  opacity: 0.6;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.product-info {
  padding: 1.25rem 1.4rem 1.5rem;
}

.product-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.product-info p {
  font-size: 0.88rem;
  color: var(--cream-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 400;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--cream);
}

.about .section-title {
  color: #1D1B27;
}

.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 820px;
}

.about-mark {
  flex-shrink: 0;
}

.about-text p {
  color: #1D1B27;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ============================================
   MAILING LIST
   ============================================ */
.mailing-list {
  background: var(--cream);
  text-align: center;
}

.mailing-list .section-title {
  color: var(--bg);
}

.mailing-list-inner {
  max-width: 620px;
}

.mailing-list-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.mailing-list-text .section-title {
  margin-bottom: 0.6rem;
}

.mailing-list-text p {
  color: #4a4540;
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 2rem;
}

.mailing-list-fields {
  display: flex;
  gap: 0.5rem;
}

.mailing-list-fields input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition);
}

.mailing-list-fields input::placeholder {
  color: var(--text-muted);
}

.mailing-list-fields input:focus {
  border-color: var(--gold);
}

.mailing-list-note {
  font-size: 0.85rem;
  color: var(--gold);
  min-height: 1.2em;
  margin-top: 0.6rem;
}

.mailing-list-fine {
  font-size: 0.72rem;
  color: #9e9a8e;
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .mailing-list-fields {
    flex-direction: column;
  }

  .mailing-list-fields .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg-surface);
}

.contact-inner {
  max-width: 600px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.form-row input,
.form-row textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
}

.form-note {
  font-size: 0.85rem;
  color: var(--gold);
  min-height: 1.2em;
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 14, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--cream-muted);
  font-size: 1.3rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--cream);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 90vh;
  overflow: hidden;
}

/* Gallery */
.modal-gallery {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.modal-main-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 300px;
}

.modal-main-img svg {
  width: 140px;
  height: 140px;
  color: var(--text-muted);
  opacity: 0.5;
}

.modal-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
  overflow: hidden;
}

.modal-thumb svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  opacity: 0.4;
}

.modal-thumb.is-active {
  border-color: var(--gold);
}

.modal-thumb--empty {
  cursor: default;
  opacity: 0.35;
}

.modal-thumb--empty svg {
  opacity: 0.5;
}

/* Info panel */
.modal-info {
  padding: 2rem 2rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-collection {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.15;
  margin: 0;
}

.modal-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
}

.modal-description {
  font-size: 0.9rem;
  color: var(--cream-muted);
  line-height: 1.65;
}

/* Sizes */
.modal-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.5rem;
}

.modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.size-btn {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--cream-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.size-btn:hover {
  border-color: var(--cream-muted);
  color: var(--cream);
}

.size-btn.is-selected {
  border-color: var(--gold);
  color: var(--cream);
  background: rgba(201, 162, 85, 0.12);
}

.modal-size-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.modal-one-size {
  font-size: 0.85rem;
  color: var(--cream-muted);
  padding: 0.5rem 0;
}

/* Size guide */
.modal-guide-toggle {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.toggle-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.modal-guide-toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
}

.modal-size-guide {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.modal-size-guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.modal-size-guide th,
.modal-size-guide td {
  padding: 0.5rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.modal-size-guide th {
  background: rgba(255,255,255,0.03);
  color: var(--cream-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.modal-size-guide td {
  color: var(--cream);
}

.modal-size-guide tr:last-child td {
  border-bottom: none;
}

/* Details list */
.modal-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-details li {
  font-size: 0.85rem;
  color: var(--cream-muted);
  padding-left: 1rem;
  position: relative;
}

.modal-details li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

/* CTA */
.modal-cta {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

.modal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Product card cursor */
.product-card:not(.product-card--custom) {
  cursor: pointer;
}

/* Modal responsive */
@media (max-width: 680px) {
  .modal-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: 90vh;
  }

  .modal-gallery {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .modal-main-img {
    min-height: 200px;
  }

  .modal-info {
    overflow-y: visible;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color var(--transition);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(237, 232, 220, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: relative;
  }

  .hero-ornament {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-mark {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .collections-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .collection-card--featured {
    grid-column: 1 / -1;
  }

  .collection-img-wrap,
  .collection-card--featured .collection-img-wrap {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }

  .collection-card--featured {
    grid-column: auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
