/* --------------------------------------
   FIRE & ICE base styles
   Fonts:
   - Cormorant Unicase (headings / brand)
   - Montserrat (UI / nav / buttons)
   - Lucida Grande (body / paragraphs)
---------------------------------------*/

/* Google Fonts for headings + UI */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Unicase:wght@400;500;600;700&family=Montserrat:wght@400;500;600&display=swap');

:root {
  /* Colours */
  --dark: #0b0b0b;
  --light: #ffffff;
  --text: #222222;
  --muted: #777777;

  --gold: #b38b59; /* antique gold - primary accent */
  --cool-gold: #c5a25e; /* cooler gold - occasions/categories accent */

  /* Typography */
  --ff-head: 'Cormorant Unicase', serif; /* big headings, brand */
  --ff-ui: 'Montserrat', -apple-system, system-ui, sans-serif; /* nav, buttons, small labels */
  --ff-body: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Dimensions */
  --container: 1180px;
  --space: 16px;
  --radius: 10px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Typography scale */
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-nav: 14px;
  --fs-h1: clamp(2.3rem, 1.6rem + 2vw, 3.1rem);
  --fs-h2: clamp(1.8rem, 1.3rem + 1.4vw, 2.3rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem);
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: 0.02em; /* a bit wider, closer to Lucida on Mac */
  color: var(--text);
  background: var(--light);
}

/* Themes */
.theme--dark {
  background: var(--dark);
  color: var(--light);
}
.theme--light {
  background: var(--light);
  color: var(--text);
}

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space);
}
.section,
.section--light {
  padding: 56px 0;
}
.section--light {
  background: #f8f8f8;
}
.page-hero {
  padding: 64px 0 40px;
}
.page-hero h1 {
  margin-bottom: 0.25em;
}
.stack > *:not(:last-child) {
  margin-bottom: 32px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.3em;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
p {
  margin: 0 0 1em;
}
small {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Links */
a {
  color: inherit;
}
a:hover {
  color: var(--gold);
}

/* --------------------------------------
   HEADER & NAV
---------------------------------------*/
.site-header {
  position: sticky; /* keeps header visible on scroll */
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e7e7e7;
  backdrop-filter: blur(10px);
}
.site-header .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 10px;
}

/* Brand (big, centred) */
.brand {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--text);
  padding: 4px 0 8px;
}

/* Mobile nav toggle */
.nav-toggle {
  position: absolute;
  right: var(--space);
  top: 18px;
  background: none;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover {
  border-color: var(--gold);
}

/* Primary nav */
.nav {
  font-family: var(--ff-ui);
  font-size: var(--fs-nav);
  text-transform: uppercase;
  letter-spacing: 0.18em; /* slightly stronger luxury feel */
  margin-top: 4px;
  color: #333333;
}
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Desktop layout */
@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
  .nav {
    display: block;
  }
  .nav ul {
    display: flex;
    gap: 18px;
  }
  .nav a {
    text-decoration: none;
    padding: 6px 2px;
    position: relative;
  }
  .nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.2s ease-out;
  }
  .nav a:hover::after {
    width: 100%;
  }
}

/* Mobile nav: collapsed by default */
@media (max-width: 991px) {
  .nav {
    display: none;
    width: 100%;
  }
  .nav.is-open {
    display: block;
  }
  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0 10px;
  }
  .nav a {
    text-decoration: none;
    padding: 6px 0;
  }
}

/* Dropdowns */
.has-sub {
  position: relative;
}
.has-sub > .sub {
  position: absolute;
  left: 0;
  top: calc(100% + 8px); /* dropdown appears just below underline */
  min-width: 180px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e7e7e7;
  box-shadow: var(--shadow-soft);
  padding: 6px 0;
  display: none;
  z-index: 20;
}
.has-sub:hover > .sub {
  display: block;
}
.sub li {
  white-space: nowrap;
}
.sub a {
  display: block;
  padding: 6px 14px;
  text-decoration: none;
}
.sub a:hover {
  background: #f4f4f4;
}

/* On mobile, show dropdown items inline */
@media (max-width: 991px) {
  .has-sub > .sub {
    position: static;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: block;
  }
}

/* --------------------------------------
   HERO & BASIC SECTIONS
---------------------------------------*/
#hero {
  padding: 80px 0 60px;
}
.theme--dark #hero {
  background: linear-gradient(160deg, #050505, #1c1a1a);
}
#hero h1 {
  margin-bottom: 0.3em;
}
#hero p {
  max-width: 420px;
  color: #dddddd;
}
.cta-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Section headings */
.section-head {
  margin-bottom: 24px;
}
.section-head p {
  color: var(--muted);
}

/* --------------------------------------
   BUTTONS / CTA / PILL NAV
---------------------------------------*/
.btn,
.cta,
.pill-nav a,
.contact-cards a {
  font-family: var(--ff-ui);
  font-size: var(--fs-nav);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.btn,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}
.cta:nth-child(1) {
  background: var(--gold);
  color: #fff;
}
.cta:nth-child(1):hover {
  background: transparent;
  color: var(--gold);
}
.cta:nth-child(2) {
  border-color: #888;
}
.cta:nth-child(2):hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn:hover {
  background: var(--gold);
  color: #fff;
}

/* Pill nav (categories/occasions) */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pill-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d6d6d6;
  text-decoration: none;
}
.pill-nav a:hover {
  border-color: var(--cool-gold);
}

/* --------------------------------------
   GRID / CARDS / PLACEHOLDERS
---------------------------------------*/
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .md-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .lg-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tiles for collections / simple cards */
.tile {
  border-radius: var(--radius);
  border: 1px solid #e4e4e4;
  padding: 18px 18px 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.tile h3 {
  margin-bottom: 0.2em;
}
.tile p {
  color: var(--muted);
}

/* Product cards */
.card {
  border-radius: var(--radius);
  border: 1px solid #e4e4e4;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-body {
  padding: 10px 12px 14px;
}
.card-body h3 {
  margin-bottom: 0.1em;
}
.card-body p {
  margin-bottom: 0.5em;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Placeholder blocks for now */
.ph {
  background: #e3e3e3;
  border-radius: 8px;
}
.ph-img {
  aspect-ratio: 4/5;
}
.ph.lg {
  height: 280px;
}

/* Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gallery--hero .ph {
  aspect-ratio: 4/5;
}

/* --------------------------------------
   MODAL
---------------------------------------*/

/* Modal mount: don't block clicks when empty */
#modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
/* When content is present, allow interaction */
#modal-root > * {
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #111;
  color: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 20px 20px 24px;
}
.modal-body h2 {
  margin-top: 10px;
}
.modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 22px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}
.no-scroll {
  overflow: hidden;
}

/* --------------------------------------
   CONTACT CARDS
---------------------------------------*/
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.contact-cards article {
  border-radius: var(--radius);
  border: 1px solid #e4e4e4;
  padding: 18px 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.contact-cards h2 {
  margin-bottom: 0.3em;
}
.contact-cards a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-cards a:hover {
  border-color: var(--cool-gold);
}

/* --------------------------------------
   FOOTER
---------------------------------------*/
.site-footer {
  border-top: 2px solid var(--gold);
  padding: 22px 0;
  background: #ffffff;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-mini {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal a {
  font-family: var(--ff-ui);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--muted);
}
.legal a:hover {
  color: var(--gold);
}

/* Footer layout on larger screens */
@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --------------------------------------
   RESPONSIVE TWEAKS
---------------------------------------*/
@media (max-width: 575px) {
  #hero {
    padding-top: 56px;
  }
  .cta-row {
    flex-direction: column;
  }
}
