/* ============================================
   JAK Papers - Main Stylesheet
   Palette: White, warm greys, earthy sage/stone
   ============================================ */

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

:root {
  --white: #ffffff;
  --off-white: #fafaf8;
  --cream: #f5f3ef;
  --stone-light: #e8e5df;
  --stone: #c4bfb6;
  --stone-dark: #8a8479;
  --charcoal: #3d3a35;
  --charcoal-deep: #2a2825;
  --sage: #7a8b6f;
  --sage-light: #a3b196;
  --sage-dark: #5a6b4f;
  --warm-tan: #b5a48a;
  --warm-tan-light: #d4c9b6;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;

  --header-height: 90px;
  --container-width: 1200px;
  --section-padding: 100px 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--white);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--stone-light);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  display: block;
  height: 71px;
  width: auto;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 10px 20px;
  position: relative;
  transition: color 0.3s ease;
}

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

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover > a::before {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--stone-light);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  padding: 12px 0;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 10px 24px;
  color: var(--charcoal);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--sage-dark);
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s ease;
}

/* --- Hero Slideshow --- */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8%;
}

.hero-text {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease 0.3s,
    transform 0.8s ease 0.3s;
}

.hero-slide.active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  color: var(--charcoal-deep);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero-text h1 .line-2 {
  display: block;
  color: var(--sage-dark);
}

/* Slide 2 needs white text (dark background) */
.hero-slide[data-slide="1"] .hero-text h1 {
  color: var(--white);
}

.hero-slide[data-slide="1"] .hero-text h1 .line-2 {
  color: #3d5a3a;
}
/* Slide indicators */
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-indicator {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.hero-indicator.active {
  background: rgba(90, 107, 79, 0.4);
  width: 60px;
}

.hero-slide[data-slide="1"] ~ .hero-indicators .hero-indicator {
  background: rgba(255, 255, 255, 0.4);
}
.hero-slide[data-slide="2"] .hero-text h1 .line-2 {
  color: #6b5340;
}

/* --- Welcome Section --- */
.welcome-section {
  padding: var(--section-padding);
  text-align: center;
  background: var(--white);
}

.welcome-section .section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.welcome-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  color: var(--charcoal-deep);
  margin-bottom: 16px;
  line-height: 1.2;
}

.welcome-section h2 strong {
  font-weight: 600;
}

.welcome-section .tagline {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--sage-dark);
  margin-bottom: 40px;
}

.welcome-section .welcome-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--stone-dark);
}

.welcome-section .welcome-text p + p {
  margin-top: 20px;
}

.section-divider {
  width: 50px;
  height: 1px;
  background: var(--sage);
  margin: 40px auto;
}

/* --- Products Section --- */
.products-section {
  padding: var(--section-padding);
  background: var(--cream);
}

.products-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-section .section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.products-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--charcoal-deep);
}

.products-enquiry-note {
  margin-top: 50px;
  text-align: center;
  font-size: 15px;
  font-style: italic;
  color: var(--stone-dark);
  letter-spacing: 0.02em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Stretch an orphan last card across the full row so it doesn't look isolated */
.products-grid > .product-card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
  text-align: center;
}

.product-card {
  background: var(--white);
  padding: 40px 32px;
  border: 1px solid var(--stone-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.product-card:hover {
  border-color: var(--sage-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal-deep);
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.product-card p {
  font-size: 15px;
  color: var(--stone-dark);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-card .card-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.product-card:hover .card-link {
  gap: 12px;
}

.product-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.product-card:hover .card-link svg {
  transform: translateX(2px);
}

/* --- Sustainability Section --- */
.sustainability-section {
  padding: var(--section-padding);
  background: var(--charcoal-deep);
  color: var(--white);
  text-align: center;
}

.sustainability-section .section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 16px;
}

.sustainability-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}

.sustainability-section .fsc-number {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--sage-light);
  margin-bottom: 30px;
}

.m-br {
  display: none;
}

.d-br {
  display: inline;
}

.sustainability-section .sustain-text {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--stone);
}

.sustainability-section .fsc-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-light);
  border: 1px solid var(--sage-dark);
  padding: 14px 36px;
  transition: all 0.3s ease;
}

.sustainability-section .fsc-link:hover {
  background: var(--sage-dark);
  color: var(--white);
  border-color: var(--sage-dark);
}

/* --- Footer --- */
.site-footer {
  background: #1a1917;
  color: var(--stone);
  padding: 60px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid > .footer-col:nth-child(4) {
  margin-left: 40px;
}

.footer-col .footer-logo {
  display: inline-block;
  margin-bottom: 4px;
  line-height: 1;
}

.footer-col .footer-logo img {
  display: block;
  width: 120px;
  height: auto;
}

.footer-col .footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone-dark);
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li + li {
  margin-top: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--stone-dark);
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: var(--sage-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--stone-dark);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact-item .footer-contact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--sage-light);
  margin-top: 3px;
}

.footer-contact-item .footer-contact-icon svg {
  width: 100%;
  height: 100%;
}

.footer-contact-item strong {
  font-weight: 400;
  color: var(--stone);
  margin-right: 4px;
}

.footer-contact-item a {
  color: var(--sage-light);
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--stone-dark);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--sage);
  color: var(--sage-light);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-disclaimer {
  padding: 24px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 24px;
}

.footer-disclaimer p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--stone-dark);
  letter-spacing: 0.02em;
  text-align: justify;
}

.footer-bottom {
  padding: 24px 0;
  font-size: 12px;
  color: var(--stone-dark);
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-right a {
  color: var(--stone-dark);
  transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
  color: var(--sage-light);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

.footer-credit a {
  color: var(--sage-light);
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--white);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid > .product-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .products-grid > .product-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --section-padding: 70px 0;
  }

  .container {
    padding: 0 24px;
  }

  .header-inner {
    padding: 0 24px;
  }

  .site-logo img {
    height: 55px;
  }

  /* Mobile Nav */
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    transform: none;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1000;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    font-size: 16px;
    padding: 16px 24px;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--cream);
    padding: 8px 0;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  /* Hero */
  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-text h1 {
    font-size: clamp(26px, 6vw, 36px);
  }

  .hero-overlay {
    padding: 0 24px;
  }

  .hero-slide:not([data-slide="0"]) .hero-text h1,
  .hero-slide:not([data-slide="0"]) .hero-text h1 .line-2 {
    color: var(--white);
  }

  .hero-slide[data-slide="2"] .hero-text h1 {
    color: var(--charcoal-deep);
  }

  .hero-slide[data-slide="2"] .hero-text h1 .line-2 {
    color: var(--white);
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    padding: 28px 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid > .footer-col:nth-child(4) {
    margin-left: 0;
  }

  .site-footer .footer-col {
    text-align: center;
  }

  .site-footer .footer-col .footer-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer .footer-col ul li br {
    display: none;
  }

  .site-footer .footer-col .footer-logo {
    display: inline-block;
  }

  .site-footer .footer-social {
    justify-content: center;
  }

  .site-footer .footer-contact-item {
    justify-content: center;
    text-align: left;
  }

  .site-footer .footer-disclaimer p {
    text-align: center;
  }

  /* Mobile-only break in sustainability copy */
  .m-br {
    display: inline;
  }

  .d-br {
    display: none;
  }
}


/* ============================================
   INNER PAGES
   ============================================ */

/* --- Page Hero (inner pages) --- */
.page-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 1000;
    max-height: 640px;
    min-height: 420px;
    margin-top: var(--header-height);
    background-color: var(--charcoal-deep);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 40, 37, 0.6);
    display: flex;
    align-items: center;
}

.page-hero--center .page-hero-overlay {
    justify-content: center;
    text-align: center;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.01em;
}

.page-hero-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--white);
    margin-top: 8px;
    letter-spacing: 0.04em;
}


/* --- Buttons --- */
.btn-sage {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--sage-dark);
    border: 1px solid var(--sage-dark);
    padding: 14px 36px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sage:hover {
    background: var(--charcoal-deep);
    border-color: var(--charcoal-deep);
    color: var(--white);
}

.btn-sage-sm {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--sage-dark);
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-sage-sm:hover {
    background: var(--charcoal-deep);
}

.btn-outline-sage {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage-dark);
    border: 1px solid var(--sage);
    padding: 12px 28px;
    transition: all 0.3s ease;
}

.btn-outline-sage:hover {
    background: var(--sage-dark);
    color: var(--white);
    border-color: var(--sage-dark);
}

.btn-outline-sage svg {
    width: 16px;
    height: 16px;
}


/* --- About Page --- */
.about-intro {
    padding: var(--section-padding);
    background: var(--white);
}

.about-intro-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.about-intro-content h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 400;
    color: var(--charcoal-deep);
    line-height: 1.3;
    margin-bottom: 12px;
}

.about-sub-tagline {
    font-size: 15px;
    color: var(--stone-dark);
    margin: 4px 0;
    letter-spacing: 0.02em;
}

.about-sub-tagline:first-of-type {
    margin-top: 18px;
}

.about-tagline {
    font-family: var(--font-display);
    font-size: 18px;
    font-style: italic;
    color: var(--sage-dark);
    margin-top: 18px;
    margin-bottom: 30px;
}

.about-intro-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--stone-dark);
}

.about-intro-content p + p {
    margin-top: 18px;
}

.about-people {
    padding: 0 0 80px;
    background: var(--white);
}

.about-people-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-people-inline {
    margin: 56px 0;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-cta {
    padding: 80px 0;
    background: var(--cream);
}

.about-cta h3 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 400;
    color: var(--charcoal-deep);
    margin-bottom: 12px;
}

.about-cta p {
    font-size: 16px;
    color: var(--stone-dark);
    margin-bottom: 30px;
}


/* --- Sustainability Page --- */
.sustain-intro {
    padding: var(--section-padding);
    background: var(--white);
}

.sustain-content {
    max-width: 800px;
    margin: 0 auto;
}

.sustain-badge {
    text-align: center;
    margin-bottom: 40px;
}

.fsc-badge-icon {
    display: inline-block;
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.fsc-badge-icon svg {
    width: 100%;
    height: 100%;
    color: var(--sage);
}

.fsc-badge-logo {
    display: block;
    width: 90px;
    height: auto;
    margin: 0 auto 20px;
}

.fsc-logo-inline {
    display: block;
    width: 48px;
    height: auto;
}

.sustainability-section .fsc-number-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.sustainability-section .fsc-number-row .fsc-number {
    margin-bottom: 0;
}

.hero-logo {
    display: block;
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.sustain-badge h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 400;
    color: var(--charcoal-deep);
    margin-bottom: 8px;
}

.fsc-cert-number {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--sage);
    margin-bottom: 8px;
}

.fsc-site-link {
    font-size: 13px;
    color: var(--sage-dark);
    transition: color 0.3s ease;
}

.fsc-site-link:hover {
    color: var(--charcoal);
}

.sustain-text {
    text-align: center;
}

.sustain-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--stone-dark);
    margin-bottom: 16px;
}

.sustain-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.sustain-action-card {
    background: var(--cream);
    padding: 36px 32px;
    text-align: center;
}

.sustain-action-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--charcoal-deep);
    margin-bottom: 12px;
}

.sustain-action-card p {
    font-size: 14px;
    color: var(--stone-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}


/* --- Contact Page --- */
.contact-section {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-intro {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.contact-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    color: var(--charcoal-deep);
    margin-bottom: 14px;
}

.contact-intro .form-intro {
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 100px;
    align-items: start;
}

.form-intro {
    font-size: 15px;
    color: var(--stone-dark);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-group label span {
    color: var(--sage);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--stone-light);
    padding: 12px 16px;
    transition: border-color 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--sage);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8479' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
}

.form-message svg {
    width: 48px;
    height: 48px;
}

.form-success svg {
    color: var(--sage);
}

.form-error svg {
    color: #C0392B;
}

.form-message h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--charcoal-deep);
}

.form-message p {
    font-size: 15px;
    color: var(--stone-dark);
}

/* Contact Info Sidebar */
.contact-info {
    margin-top: 30px;
}

.contact-info-card {
    background: var(--cream);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.contact-info-watermark {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.contact-info-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--charcoal-deep);
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--sage-dark);
    margin-top: 3px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-detail > div {
    font-size: 14px;
    line-height: 1.6;
    color: var(--stone-dark);
}

.contact-detail strong {
    font-weight: 400;
    color: var(--charcoal);
    margin-right: 4px;
}

.contact-detail a {
    color: var(--sage-dark);
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: var(--charcoal);
}


/* --- Product Detail Page --- */
.product-detail {
    padding: var(--section-padding);
    background: var(--white);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.product-body .product-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 20px;
    font-weight: 300;
}

.product-body p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--stone-dark);
    margin-bottom: 16px;
}

.product-features {
    list-style: none;
    margin: 28px 0;
    padding: 28px 0;
    border-top: 1px solid var(--stone-light);
    border-bottom: 1px solid var(--stone-light);
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--charcoal);
    padding: 8px 0;
}

.product-features li svg {
    width: 18px;
    height: 18px;
    color: var(--sage);
    flex-shrink: 0;
}

.product-actions {
    margin-top: 40px;
    max-width: 420px;
    background: var(--cream);
    border: 1px solid var(--stone-light);
}

.product-actions-col {
    padding: 24px 28px;
}

.product-actions-heading {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal-deep);
    margin: 0 0 14px;
}

.product-actions-cta p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--stone-dark);
    margin: 0 0 16px;
}

.product-downloads {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.download-link svg {
    width: 18px;
    height: 18px;
}

/* Product sidebar */
.product-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.product-sidebar h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--charcoal-deep);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stone-light);
}

.product-nav-list {
    list-style: none;
}

.product-nav-list li {
    border-bottom: 1px solid var(--stone-light);
}

.product-nav-list li a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: var(--stone-dark);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.product-nav-list li a:hover {
    color: var(--sage-dark);
    padding-left: 6px;
}

.product-nav-list li.active a {
    color: var(--sage-dark);
    font-weight: 400;
    border-left: 2px solid var(--sage);
    padding-left: 12px;
}

.product-sidebar-cta {
    margin-top: 30px;
    padding: 24px;
    background: var(--cream);
    text-align: center;
}

.product-sidebar-cta p {
    font-size: 14px;
    color: var(--stone-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}



/* --- Responsive additions for inner pages --- */
@media (max-width: 768px) {
    .page-hero-overlay {
        justify-content: center;
        text-align: center;
    }

    .products-grid > .product-card:last-child:nth-child(2n + 1) {
        max-width: none;
        justify-self: stretch;
    }

    .products-grid > .product-card:last-child:nth-child(3n + 1) {
        text-align: left;
    }

    .about-people-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 280px;
    }

    .sustain-actions {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-intro .form-intro br {
        display: none;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-sidebar {
        position: static;
    }

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

    .product-actions-col + .product-actions-col {
        border-left: none;
        border-top: 1px solid var(--stone-light);
    }
}


/* ============================================
   ULTRA-WIDE SCREENS
   ============================================ */
@media (min-width: 1600px) {
  :root {
    --container-width: 1440px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container-width: 1560px;
  }
}


/* ============================================
   SMALL MOBILE (<=480px)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
    --section-padding: 56px 0;
  }

  .container,
  .header-inner {
    padding: 0 18px;
  }

  .site-logo img {
    height: 46px;
  }

  .hero {
    height: 56vh;
    min-height: 340px;
  }

  .hero-text h1 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .hero-overlay {
    padding: 0 18px;
  }

  .page-hero {
    min-height: 280px;
  }

  .page-hero-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .page-hero-subtitle {
    font-size: 13px;
  }

  .product-card {
    padding: 24px 20px;
  }

  .contact-info-card {
    padding: 24px 22px;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-grid > .footer-col:nth-child(4) {
    margin-left: 0;
  }

  .contact-intro {
    margin-bottom: 40px;
  }
}

/* ============================================
   Site Completion Protocol
   reCAPTCHA notice, form status, legal pages
   ============================================ */

/* Hide the reCAPTCHA badge — permitted by Google ONLY because the
   attribution text (.captcha-notice) is shown under every form. */
.grecaptcha-badge {
  visibility: hidden !important;
}

.captcha-notice {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--stone-dark, #8a8479);
  line-height: 1.55;
  margin-top: 1rem;
  max-width: 60ch;
}

.captcha-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.4em;
  margin: 0.75rem 0;
}
.form-status.is-success { color: var(--sage-dark, #5a6b4f); }
.form-status.is-error   { color: #c85454; }

/* Footer legal links */
.footer-legal-links {
  display: inline-flex;
  gap: 1.2rem;
  margin-left: 0.6rem;
}
.footer-legal-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal-links a:hover {
  color: var(--sage-light, #a3b196);
}

@media (max-width: 640px) {
  .footer-legal-links {
    display: flex;
    margin-left: 0;
    margin-top: 0.6rem;
  }
}

/* Legal pages (privacy / terms) — quiet typographic layout */
.legal-section {
  padding: 90px 0;
}

.legal-page {
  max-width: 72ch;
  margin: 0 auto;
  line-height: 1.85;
  font-weight: 300;
  color: var(--charcoal, #3d3a35);
}

.legal-page .legal-updated {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-dark, #8a8479);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--charcoal-deep, #2a2825);
  margin: 2.6rem 0 0.9rem;
}

.legal-page p {
  margin: 0 0 1.2rem;
}

.legal-page ul {
  margin: 0 0 1.4rem 1.2rem;
  padding: 0;
}

.legal-page li {
  margin-bottom: 0.6rem;
}

.legal-page a {
  color: var(--sage-dark, #5a6b4f);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page code {
  background: var(--cream, #f5f3ef);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.legal-page .legal-note {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--stone-light, #e8e5df);
  font-size: 0.85rem;
  color: var(--stone-dark, #8a8479);
  font-style: italic;
}
