/* ============================================
   The Gentle Word Co. — Design System
   ============================================ */

:root {
  --cream: #F8F4EC;
  --cream-warm: #F4EDE3;
  --eucalyptus: #5C6B5E;
  --eucalyptus-dark: #4A5750;
  --gold: #C5A880;
  --text-deep: #3F3A33;
  --text-light: #6B655C;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(63, 58, 51, 0.08);
  --shadow-soft: 0 2px 12px rgba(63, 58, 51, 0.05);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1100px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-deep);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

/* Links */
a {
  color: var(--eucalyptus);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

/* Skip to content — accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--eucalyptus);
  color: var(--white);
  padding: 8px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* Focus visibility — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--eucalyptus);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-align: center;
}

.btn:hover {
  background: var(--eucalyptus-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--eucalyptus);
  border: 1px solid var(--eucalyptus);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--eucalyptus);
  color: var(--white);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* Header & Navigation */
header {
  background: var(--cream);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(92, 107, 94, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: var(--text-deep);
  letter-spacing: 1px;
}

.logo:hover {
  color: var(--eucalyptus);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.95rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-deep);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer */
footer {
  background: var(--eucalyptus);
  color: var(--cream);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

footer a {
  color: var(--cream);
  opacity: 0.85;
}

footer a:hover {
  opacity: 1;
  color: var(--gold);
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
}

/* Forms */
input[type="email"] {
  padding: 14px 20px;
  border: 1px solid rgba(92, 107, 94, 0.25);
  border-radius: 50px;
  font-size: 1rem;
  width: 100%;
  max-width: 340px;
  background: var(--white);
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.card-flush {
  margin-bottom: 0;
}

/* Blog styles */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
}

.blog-post h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.blog-meta {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.blog-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.blog-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content img {
  border-radius: var(--radius);
  margin: 2rem auto;
}

/* FAQ */
details {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

details + details {
  margin-top: 1rem;
}

summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  float: right;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

details[open] summary::after {
  content: '−';
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-light);
}

.breadcrumbs a:hover {
  color: var(--eucalyptus);
}

.breadcrumbs span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Image placeholder boxes */
.img-placeholder {
  background: #EDE4D8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B8173;
  font-size: 0.9rem;
  text-align: center;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text-deep);
}

/* Utility */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.grid-mockups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

/* Mixed-orientation gallery — preserves natural aspect ratios */
.gallery-mixed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  margin: 0;
}

.gallery-item .img-placeholder,
.gallery-item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.gallery-item figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.6rem;
}

/* Feature image — larger emotional image */
.feature-image .img-placeholder,
.feature-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-image figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ============================================
   Responsive — Mobile
   ============================================ */

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  h3 { font-size: 1.3rem; }

  .container,
  .container-narrow {
    padding: 0 1.25rem;
  }

  section {
    padding: 2.5rem 0;
  }

  /* Mobile navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    border-bottom: 1px solid rgba(92, 107, 94, 0.1);
    z-index: 99;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links a {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(92, 107, 94, 0.08);
    width: 100%;
  }

  /* Grids collapse */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-mockups {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery: 2 columns on tablet */
  .gallery-mixed {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Buttons full width on mobile */
  .btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

  /* Footer stacks */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  /* Forms */
  input[type="email"] {
    max-width: 100%;
  }

  /* Blog */
  .blog-post h1 {
    font-size: 1.9rem;
  }

  .blog-content {
    font-size: 1rem;
  }

  /* Section inner padding */
  .section-warm {
    padding: 2rem 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .grid-mockups {
    grid-template-columns: 1fr;
  }

  /* Gallery: single column on mobile */
  .gallery-mixed {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 1.75rem; }
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Homepage hero background */
.homepage-hero {
  background-image:
    linear-gradient(rgba(248, 244, 236, 0.40), rgba(244, 237, 227, 0.40)),
    url("/assets/images/homepage-hero-eucalyptus-lavender.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Give the mission statement room to breathe between the hero and first content card. */
.homepage-mission {
  padding: 5rem 2rem 5.75rem;
}

@media (max-width: 620px) {
  .homepage-hero {
    background-position: center center;
  }

  .homepage-mission {
    padding: 4rem 1.5rem 4.75rem;
  }
}

/* ============================================
   Print
   ============================================ */

@media print {
  header, footer, .nav-toggle, .btn, .btn-secondary {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}


/* ============================================
   Product heroes & article cards
   ============================================ */
.product-hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-warm) 100%);
  padding: 4.5rem 0;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 4rem;
  align-items: center;
}

.product-hero-copy h1 {
  margin: 0.75rem 0 1.25rem;
}

.product-hero-copy p {
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--text-light);
}

.product-hero-image {
  position: relative;
}

.product-hero-image::before {
  content: "";
  position: absolute;
  inset: 9% -4% -7% 8%;
  background: rgba(197, 168, 128, 0.18);
  border-radius: var(--radius-lg);
  transform: rotate(2deg);
}

.product-hero-image img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(63, 58, 51, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.article-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-warm);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-body h2,
.article-card-body h3 {
  margin: 0.45rem 0 0.75rem;
}

.article-card-body p {
  color: var(--text-light);
}

.article-card-link {
  margin-top: auto;
  font-weight: 500;
}

.article-kicker {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.article-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.article-hero p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--text-light);
  font-size: 1.08rem;
}

.article-feature {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.article-feature img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.next-step-panel {
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.check-list {
  list-style: none;
  max-width: 650px;
  margin: 0 auto;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.85rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--eucalyptus);
  font-weight: 700;
}

@media (max-width: 900px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-hero-copy {
    text-align: center;
  }

  .product-hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .product-hero-image {
    max-width: 700px;
    margin: 0 auto;
  }

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

@media (max-width: 620px) {
  .product-hero {
    padding: 3rem 0;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .hero-actions .btn-secondary {
    width: 100%;
  }
}


/* About and contact pages */
.page-hero { text-align: center; padding: 5rem 0 3rem; }
.page-hero p { max-width: 650px; margin: 1rem auto 0; color: var(--text-light); font-size: 1.1rem; }
.story-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.story-panel { background: var(--cream-warm); padding: 2.5rem; border-radius: var(--radius-lg); }
.belief-card { border-left: 4px solid var(--gold); background: var(--white); padding: 2rem 2.25rem; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-soft); }
.contact-card { max-width: 720px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); padding: 3rem; box-shadow: var(--shadow); text-align: center; }
.contact-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; margin: 2rem 0; text-align: left; }
.contact-option { background: var(--cream-warm); padding: 1.5rem; border-radius: var(--radius); }
.contact-option h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.footer-brand-line { width: 100%; font-size: .9rem; opacity: .86; margin-top: .25rem; }
@media (max-width: 760px) { .story-grid, .contact-options { grid-template-columns: 1fr; } .page-hero { padding: 3.5rem 0 2rem; } .contact-card { padding: 2rem 1.5rem; } }

/* Refined wordmark and consistent interior pages */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.site-wordmark {
  width: 255px;
  max-width: 100%;
  height: auto;
}
.footer-wordmark {
  display: block;
  width: 100%;
  margin-bottom: .35rem;
}
.footer-wordmark img {
  width: 245px;
  height: auto;
}
.interior-page {
  max-width: 900px;
}
.interior-page section {
  text-align: left;
}
.page-hero-left {
  padding: 4rem 0 2.5rem;
}
.page-hero-left h1 {
  font-size: clamp(2.15rem, 4vw, 3rem);
  margin-top: .45rem;
  max-width: 760px;
}
.page-hero-left p {
  max-width: 760px;
  margin: 1rem 0 0;
}
.interior-section {
  padding: 2.75rem 0;
}
.interior-section h2 {
  margin: .5rem 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
}
.soft-panel {
  background: var(--cream-warm);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin: 1rem 0;
}
.interior-page .belief-card {
  margin: 1rem 0;
}
.final-cta {
  max-width: 760px;
}
.final-cta .btn {
  margin-top: 1rem;
}
.contact-options-wide {
  margin: 0;
}
.contact-option h2 {
  font-size: 1.35rem;
  margin: 0 0 .7rem;
}
.contact-note {
  color: var(--text-light);
  margin: 1.5rem 0 0;
  max-width: 760px;
}

@media (max-width: 900px) {
  .site-wordmark { width: 225px; }
  .nav-links { gap: 1.5rem; }
}
@media (max-width: 760px) {
  header { padding: .9rem 0; }
  .site-wordmark { width: 205px; }
  .page-hero-left { padding: 3rem 0 1.75rem; }
  .page-hero-left h1 { font-size: 2.15rem; }
  .interior-section { padding: 2.15rem 0; }
  .soft-panel { padding: 1.75rem; }
  .footer-wordmark img { width: 215px; }
}
@media (max-width: 420px) {
  .site-wordmark { width: 180px; }
  .page-hero-left h1 { font-size: 1.95rem; }
}

/* July 2026 refinement: quieter page titles, tighter rhythm, elegant wordmark */
.site-wordmark { width: 238px; }
.footer-wordmark img { width: 228px; }
.interior-page { max-width: 860px; }
.page-hero-left { padding: 2.5rem 0 1.25rem; }
.page-hero-left h1 {
  font-size: clamp(1.7rem, 2.6vw, 2rem);
  line-height: 1.25;
  margin-top: .35rem;
  max-width: 760px;
}
.page-hero-left p { margin-top: .7rem; }
.interior-section { padding: 1.35rem 0; }
.interior-section h2 {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  margin: .35rem 0 .7rem;
}
.interior-section p:last-child { margin-bottom: 0; }
.soft-panel {
  padding: 1.8rem 2rem;
  margin: .55rem 0;
}
.interior-page .belief-card {
  margin: .55rem 0;
  padding: 1.7rem 2rem;
}
.final-cta { padding-bottom: 2.25rem; }
.contact-options {
  gap: 1rem;
  margin: .4rem 0 .8rem;
}
.contact-option { padding: 1.35rem; }
.contact-note { margin-top: .9rem; }
@media (max-width: 900px) {
  .site-wordmark { width: 215px; }
}
@media (max-width: 760px) {
  .site-wordmark { width: 198px; }
  .page-hero-left { padding: 2rem 0 1rem; }
  .page-hero-left h1 { font-size: 1.7rem; }
  .interior-section { padding: 1.15rem 0; }
  .soft-panel,
  .interior-page .belief-card { padding: 1.45rem 1.35rem; }
  .footer-wordmark img { width: 205px; }
}
@media (max-width: 420px) {
  .site-wordmark { width: 178px; }
  .page-hero-left h1 { font-size: 1.6rem; }
}

/* v4: unmistakably smaller interior headings and compact vertical rhythm */
.interior-page {
  max-width: 820px;
}
.interior-page .page-hero-left {
  padding: 1.6rem 0 .65rem;
}
.interior-page .page-hero-left h1 {
  font-size: 1.45rem !important;
  line-height: 1.2;
  margin: .2rem 0 0;
  letter-spacing: .005em;
}
.interior-page .page-hero-left p {
  margin-top: .45rem;
  font-size: 1rem;
}
.interior-page .interior-section {
  padding: .75rem 0;
}
.interior-page .interior-section h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: .2rem 0 .45rem;
}
.interior-page .interior-section p {
  margin-bottom: .65rem;
}
.interior-page .soft-panel {
  margin: .25rem 0;
  padding: 1.25rem 1.4rem;
}
.interior-page .belief-card {
  margin: .25rem 0;
  padding: 1.25rem 1.4rem;
}
.interior-page .final-cta {
  padding-top: .8rem;
  padding-bottom: 1.5rem;
}
.interior-page .contact-options {
  gap: .75rem;
  margin: .15rem 0 .45rem;
}
.interior-page .contact-option {
  padding: 1rem 1.1rem;
}
.interior-page .contact-option h2 {
  font-size: 1.16rem;
  margin-bottom: .35rem;
}
.interior-page .contact-note {
  margin-top: .55rem;
}
.site-wordmark {
  width: 250px;
}
.footer-wordmark img {
  width: 238px;
}
@media (max-width:760px) {
  .interior-page .page-hero-left { padding: 1.25rem 0 .5rem; }
  .interior-page .page-hero-left h1 { font-size: 1.35rem !important; }
  .interior-page .interior-section { padding: .6rem 0; }
  .interior-page .interior-section h2 { font-size: 1.34rem; }
  .interior-page .soft-panel,
  .interior-page .belief-card { padding: 1rem 1.05rem; }
  .site-wordmark { width: 220px; }
  .footer-wordmark img { width: 210px; }
}
