@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:wght@400;500&display=swap');

/* ============================================================
   Rue's Candle Co - Global Stylesheet
   ============================================================ */

:root {
  --linen: #F5F0EA;
  --warm-sand: #C9A882;
  --espresso: #3B2F2F;
  --blush-cream: #E8DDD0;
  --toasted-oak: #7A6652;
  --white: #FFFFFF;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5.5rem;

  --radius: 4px;
  --radius-lg: 10px;

  --maxw: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--espresso);
  background-color: var(--linen);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  color: var(--espresso);
}

h1 {
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 2rem;
  font-style: italic;
  font-weight: 300;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1.0625rem;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--toasted-oak);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: var(--warm-sand);
  color: var(--espresso);
  border: 1px solid var(--warm-sand);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background-color: var(--toasted-oak);
  border-color: var(--toasted-oak);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--espresso);
  border-color: var(--toasted-oak);
}

.btn-outline:hover {
  background-color: var(--toasted-oak);
  color: var(--white);
}

.link-soft {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--toasted-oak);
  border-bottom: 1px solid var(--warm-sand);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-soft:hover {
  color: var(--espresso);
  border-color: var(--espresso);
}

/* ---------- Navigation ---------- */
.nav {
  background-color: var(--blush-cream);
  border-bottom: 1px solid rgba(122, 102, 82, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
}

.brand {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--espresso);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--toasted-oak);
}

.nav-links .nav-cta {
  color: var(--toasted-oak);
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--linen);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-xl);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.hero-text h1 {
  font-size: 2.4rem;
  max-width: 14ch;
}

.hero-text p {
  max-width: 46ch;
  color: var(--toasted-oak);
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero .btn {
  width: 100%;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background-color: var(--blush-cream);
  padding: var(--space-md) 0;
}

.trust-strip-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
}

.trust-item {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--toasted-oak);
}

/* ---------- Brand story strip ---------- */
.story {
  background-color: var(--linen);
}

.story-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.story-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.story-copy .quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--espresso);
}

.story-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Section heading block ---------- */
.section-head {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ---------- Product / card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.product-card {
  background-color: var(--blush-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(59, 47, 47, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.product-card-body h3 {
  font-style: italic;
  font-weight: 400;
}

.product-card-body p {
  font-size: 0.98rem;
  color: var(--toasted-oak);
  flex: 1;
}

.product-card-body .price {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--espresso);
}

.product-card-body .btn,
.product-card-body .link-soft {
  margin-top: var(--space-sm);
  align-self: flex-start;
}

.product-card-body .btn {
  width: 100%;
}

/* ---------- Gift callout banner ---------- */
.gift-banner {
  background-color: var(--toasted-oak);
  color: var(--white);
  text-align: center;
  padding: var(--space-xl) 0;
}

.gift-banner h2,
.gift-banner p {
  color: var(--white);
}

.gift-banner p {
  max-width: 40ch;
  margin: var(--space-sm) auto 0;
  opacity: 0.92;
}

/* ---------- Bottom CTA ---------- */
.cta-band {
  text-align: center;
  padding: var(--space-xl) 0;
}

.cta-band.linen {
  background-color: var(--linen);
}

.cta-band.cream {
  background-color: var(--blush-cream);
}

.cta-band-inner {
  max-width: 48ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.cta-band-inner p {
  color: var(--toasted-oak);
}

.cta-privacy {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--toasted-oak);
}

/* ---------- Page banner (shop / blog hero) ---------- */
.page-banner {
  background-color: var(--linen);
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-banner-inner {
  max-width: 50ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.page-banner h1 {
  font-size: 2.8rem;
}

.page-banner p {
  color: var(--toasted-oak);
}

/* ---------- Inline trust note ---------- */
.trust-note {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--toasted-oak);
  padding: var(--space-md) var(--space-md) 0;
}

/* ---------- Blog: featured post ---------- */
.featured-post {
  background-color: var(--blush-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured-post img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.featured-post-body {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
}

.featured-post-body h2 {
  font-size: 1.85rem;
}

.featured-post-body p {
  color: var(--toasted-oak);
}

.featured-post-body .link-soft {
  margin-top: var(--space-xs);
  align-self: flex-start;
}

/* ---------- Blog: post grid ---------- */
.post-card {
  background-color: var(--blush-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(59, 47, 47, 0.1);
}

.post-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.post-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.post-card-body h3 {
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
}

.post-card-body p {
  font-size: 0.96rem;
  color: var(--toasted-oak);
  flex: 1;
}

.post-card-body .link-soft {
  margin-top: var(--space-sm);
  align-self: flex-start;
}

/* ---------- Contact form ---------- */
.contact {
  background-color: var(--linen);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-intro p {
  color: var(--toasted-oak);
}

.contact-meta {
  font-size: 0.92rem;
  color: var(--toasted-oak);
}

.contact-form {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: 0 10px 30px rgba(59, 47, 47, 0.06);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.field label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--toasted-oak);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--espresso);
  background-color: var(--linen);
  border: 1px solid rgba(122, 102, 82, 0.25);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--warm-sand);
  background-color: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .btn {
  width: 100%;
}

.form-privacy {
  font-size: 0.82rem;
  color: var(--toasted-oak);
  text-align: center;
}

.form-success {
  display: none;
  background-color: var(--blush-cream);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  color: var(--espresso);
  font-size: 1rem;
}

.form-success.show {
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--toasted-oak);
  color: var(--white);
  padding: var(--space-lg) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.footer .brand {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
}

.footer-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.9;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-note {
  font-size: 0.82rem;
  opacity: 0.78;
}

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 768px) {
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.6rem; }

  .section { padding: var(--space-xl) 0; }

  /* Hero two-column, text left, media right */
  .hero-inner {
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
  }

  .hero-text {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  .hero-text h1 { font-size: 3.6rem; }

  .hero-media {
    flex: 1;
  }

  .hero .btn { width: auto; }

  /* Trust strip horizontal */
  .trust-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-md);
  }

  /* Story two-column */
  .story-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }

  .story-copy,
  .story-media {
    flex: 1;
  }

  .story-copy .quote { font-size: 1.9rem; }

  /* Card grids */
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-card-body .btn { width: auto; }

  /* Featured post two-column */
  .featured-post {
    flex-direction: row;
  }

  .featured-post img {
    width: 50%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .featured-post-body {
    width: 50%;
    padding: var(--space-lg);
  }

  /* Contact two-column */
  .contact-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
  }

  .contact-intro,
  .contact-form {
    flex: 1;
  }

  /* Footer horizontal */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-links {
    flex-direction: row;
    gap: var(--space-md);
  }
}
