/*
Theme Name: Editable Starter
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A flexible, fully editable starter theme controlled entirely from native WordPress settings.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: editable-starter
*/

:root {
  --es-primary: #174a43;
  --es-secondary: #d8a84e;
  --es-ink: #152521;
  --es-muted: #68736f;
  --es-surface: #f5f2ea;
  --es-white: #ffffff;
  --es-radius: 22px;
  --es-shadow: 0 18px 50px rgba(21, 37, 33, 0.11);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--es-ink);
  background: var(--es-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--es-white);
  border-bottom: 1px solid rgba(21, 37, 33, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 30px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.site-logo {
  width: auto;
  max-width: 180px;
  max-height: 54px;
}

.custom-logo-link {
  display: inline-flex;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--es-ink);
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  color: var(--es-muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: var(--es-primary);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 72px;
  min-height: 650px;
  padding: 92px 0;
  background: var(--es-surface);
}

.hero::before {
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(216, 168, 78, 0.25);
  border-radius: 50%;
  content: "";
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--es-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero-text {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--es-muted);
  font-size: 1.12rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--es-white);
  background: var(--es-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
button.button:hover {
  color: var(--es-white);
  background: #0e3823;
  box-shadow: 0 12px 26px rgba(23, 74, 67, 0.2);
  transform: translateY(-2px);
}

.button--light {
  color: var(--es-primary);
  background: var(--es-white);
}

.button--light:hover {
  color: var(--es-primary);
  background: #f8f8f5;
}

.hero .button {
  margin-top: 32px;
}

.hero-media {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--es-radius);
  background: #d9e2db;
  box-shadow: var(--es-shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 30px;
  color: var(--es-muted);
  text-align: center;
}

.section {
  padding: 110px 0;
}

.section--surface {
  background: var(--es-surface);
}

.section-heading {
  max-width: 670px;
  margin-bottom: 48px;
}

.section-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.section-text {
  margin: 18px 0 0;
  color: var(--es-muted);
  font-size: 1.05rem;
}

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

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

.product-card {
  overflow: hidden;
  border: 1px solid rgba(21, 37, 33, 0.1);
  border-radius: var(--es-radius);
  background: var(--es-white);
  box-shadow: 0 8px 24px rgba(21, 37, 33, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  box-shadow: var(--es-shadow);
  transform: translateY(-6px);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  background: #e7ece8;
}

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

.product-image-placeholder {
  padding: 28px;
  color: var(--es-muted);
  font-size: 0.86rem;
  text-align: center;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--es-primary);
  background: var(--es-white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card-content {
  padding: 26px 26px 30px;
}

.product-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.product-card-topline .feature-title {
  margin-bottom: 0;
}

.product-price {
  color: var(--es-primary);
  font-weight: 800;
  white-space: nowrap;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--es-primary);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.product-link span {
  transition: transform 180ms ease;
}

.product-link:hover span {
  transform: translateX(4px);
}

.product-button {
  min-height: 42px;
  margin-top: 22px;
  padding: 10px 18px;
  color: var(--es-white);
  background: #2563eb;
  font-size: 0.88rem;
}

.product-button:hover {
  color: var(--es-white);
  background: #1d4ed8;
}

.feature-card {
  padding: 32px;
  border: 1px solid rgba(21, 37, 33, 0.1);
  border-radius: var(--es-radius);
  background: var(--es-white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  box-shadow: var(--es-shadow);
  transform: translateY(-5px);
}

.feature-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 40px;
  border-radius: 50%;
  color: var(--es-white);
  background: var(--es-secondary);
  font-size: 0.86rem;
  font-weight: 800;
}

.feature-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.feature-text {
  margin: 0;
  color: var(--es-muted);
}

.story-section {
  background: var(--es-white);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 100px;
}

.story-panel {
  position: relative;
  padding: 52px;
  border-radius: var(--es-radius);
  background: var(--es-primary);
  color: var(--es-white);
}

.story-panel .eyebrow {
  color: var(--es-secondary);
}

.story-panel .section-title {
  color: var(--es-white);
}

.story-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 48px;
  border-radius: 50%;
  color: var(--es-primary);
  background: var(--es-secondary);
  font-size: 1.5rem;
}

.story-copy .section-text {
  margin-top: 0;
}

.button--outline {
  margin-top: 28px;
  border-color: var(--es-primary);
  color: var(--es-primary);
  background: transparent;
}

.button--outline:hover {
  color: var(--es-white);
  background: var(--es-primary);
}

.stats-strip {
  padding: 52px 0;
  color: var(--es-white);
  background: var(--es-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat-item {
  display: grid;
  gap: 6px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.stat-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat-item strong {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.testimonials-section {
  background: #fbfaf6;
}

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

.testimonial-card {
  min-height: 270px;
  padding: 30px;
  margin: 0;
  border: 1px solid rgba(21, 37, 33, 0.1);
  border-radius: var(--es-radius);
  background: var(--es-white);
}

.stars {
  color: var(--es-secondary);
  letter-spacing: 0.15em;
}

.testimonial-card p {
  margin: 24px 0 28px;
  color: var(--es-muted);
}

.testimonial-card footer {
  color: var(--es-primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 100px;
}

.faq-list {
  border-top: 1px solid rgba(21, 37, 33, 0.15);
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(21, 37, 33, 0.15);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--es-ink);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--es-primary);
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 600px;
  margin: 14px 34px 0 0;
  color: var(--es-muted);
}

.cta-band {
  padding: 74px 0;
  color: var(--es-white);
  background: var(--es-primary);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.site-footer {
  padding: 38px 0;
  color: var(--es-muted);
  background: var(--es-white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  margin: 0;
  font-size: 0.92rem;
}

.entry-content {
  max-width: 800px;
  padding: 90px 0;
}

.entry-content > * {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.entry-content a {
  color: var(--es-primary);
}

.post-card {
  padding: 30px 0;
  border-bottom: 1px solid rgba(21, 37, 33, 0.12);
}

.post-card-title {
  margin: 0;
  font-size: 1.8rem;
}

@media (max-width: 800px) {
  .container {
    width: min(100% - 32px, 640px);
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    display: none;
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;
    padding: 18px;
    border: 1px solid rgba(21, 37, 33, 0.1);
    border-radius: 16px;
    background: var(--es-white);
    box-shadow: var(--es-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
    padding: 70px 0;
  }

  .hero-media,
  .hero-media img,
  .hero-placeholder {
    min-height: 340px;
  }

  .section {
    padding: 76px 0;
  }

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

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .products-grid .product-image,
  .products-grid .product-image img {
    min-height: 170px;
    height: 170px;
  }

  .products-grid .product-card-content {
    padding: 16px;
  }

  .products-grid .product-card-topline {
    display: block;
  }

  .products-grid .product-card-topline .feature-title {
    font-size: 1rem;
  }

  .products-grid .product-price {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
  }

  .products-grid .feature-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .products-grid .product-button {
    width: 100%;
    min-height: 38px;
    margin-top: 14px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

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

  .story-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .story-panel {
    padding: 34px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
  }

  .stat-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .cta-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}