/* =========================================
   Good Earth Website — Global Styles
   ========================================= */

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

:root {
  --sage: #8a9e85;
  --sage-dark: #6b7d67;
  --brown-light: #c4a882;
  --brown: #9b7d5a;
  --text-dark: #3a3530;
  --text-mid: #5c5550;
  --text-light: #8a8480;
  --nav-height: 80px;
  --flower-width: 280px;
}

html, body {
  height: 100%;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text-dark);
}

/* =========================================
   Fixed Background
   ========================================= */
body {
  background-image: url('../assets/flower-background.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* =========================================
   Navigation
   ========================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background-color: rgba(248, 245, 240, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(138, 158, 133, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 66px;
  width: auto;
  max-width: 220px;
  mix-blend-mode: multiply;
}

@media (max-width: 600px) {
  .nav-logo-img {
    height: 50px;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-links li a {
  display: block;
  padding: 0.4rem 0.7rem;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--sage-dark);
}

/* =========================================
   Focus styles (keyboard navigation)
   ========================================= */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 3px;
}

.nav-links li a.active {
  border-bottom: 2px solid var(--sage);
}

.nav-phone-link {
  display: block;
  padding: 0.35rem 0.85rem !important;
  font-size: 0.78rem !important;
  font-weight: bold !important;
  color: #9b7d3a !important;
  text-transform: none !important;
  letter-spacing: 0.03em !important;
  border: 1px solid rgba(155, 125, 58, 0.45);
  border-radius: 5px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s !important;
}

.nav-phone-link:hover {
  background: #b0956b !important;
  color: #fff !important;
  border-color: #b0956b;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-mid);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* Animate hamburger → X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   Page Layout
   ========================================= */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--nav-height);
  padding-left: calc(var(--flower-width) - 60px);
  padding-right: calc(var(--flower-width) - 60px);
  padding-bottom: 6rem;
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* =========================================
   Section Header
   ========================================= */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(138, 158, 133, 0.3);
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: normal;
  color: var(--sage-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem auto;
  width: fit-content;
}

.divider::before,
.divider::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--brown-light);
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brown-light);
}

/* =========================================
   Stub / Placeholder Content
   ========================================= */
.stub-block {
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(138, 158, 133, 0.4);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stub-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(138, 158, 133, 0.4);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.stub-card .stub-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* =========================================
   Site Footer
   ========================================= */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(248, 245, 240, 0.92);
  border-top: 1px solid rgba(176, 168, 152, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.site-footer-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-mid);
  white-space: nowrap;
  padding: 0 2rem;
}

.site-footer-item a {
  color: #b8962e;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s;
}

.site-footer-item a:hover {
  color: var(--brown);
}

.site-footer-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.site-footer-sep {
  width: 1px;
  height: 28px;
  background: rgba(176, 168, 152, 0.55);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .site-footer-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.5rem;
  }

  .site-footer-sep {
    width: 40px;
    height: 1px;
  }

  .site-footer-item {
    padding: 0;
    font-size: 1rem;
  }

  .site-footer-item a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

}

/* =========================================
   Responsive
   ========================================= */

/* Nav collapses to hamburger at 1100px to prevent overflow with 8+ links */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(248, 245, 240, 0.98);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(138, 158, 133, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

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

  .nav-links li a {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  .nav-phone-link {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  :root {
    --flower-width: 180px;
  }
}

@media (max-width: 600px) {
  :root {
    --flower-width: 100px;
  }

  .page-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}

.sticky-call {
  display: none;
}

/* iOS Safari does not support background-attachment: fixed —
   fall back to scroll so the background renders correctly */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}
