/* =========================
   COTT - Optimized & Unified Stylesheet
   ========================= */

/* ===== 1. VARIABLES & BASE ===== */
:root {
  /* Colors */
  --ivory: #F9F9F4;
  --green: #128038;
  --green-600: #0d6e2e;
  --green-weak: #e6f4ea;
  --gray-900: #2b2f32;
  --gray-800: #2f3438;
  --gray-700: #495057;
  --gray-600: #555;
  --gray-500: #6c757d;
  --ink: #2e322d;
  
  /* Layout */
  --header-h: 72px;
  --page-max: min(1440px, calc(100% - 80px));
  --card-max: min(1320px, calc(100% - 64px));
  
  /* UI Elements */
  --radius: 10px;
  --card-radius: 14px;
  --glass-radius: 16px;
  --card-pad: clamp(24px, 3vw, 40px);
  
  /* Effects */
  --shadow: 0 6px 24px rgba(0,0,0,.04);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.04);
  --ring: 0 0 0 3px rgba(18,128,56,.18);
  
  /* Borders */
  --border: #E3E8E5;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;700&display=swap');

html, body {
  height: 100%;
  background: var(--ivory);
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans', sans-serif;
  color: #333;
}

/* ===== 2. HEADER & NAVIGATION ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1400;
  height: var(--header-h);
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #212529;
}

.logo-container img {
  height: 44px;
  margin-right: 12px;
}

.company-info h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}

.company-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-500);
}

/* Main Navigation */
.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 400;
  font-size: 16px;
  transition: color .3s;
}

.main-nav a:hover {
  color: var(--green);
}

/* Dropdown Menu */
.main-nav .has-submenu {
  position: relative;
}

.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  z-index: 2000;
}

.main-nav .submenu li {
  list-style: none;
}

.main-nav .submenu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #2f3438;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav .submenu a:hover {
  background: #f6f8f6;
}

/* Desktop hover bridge */
@media (min-width: 861px) {
  .main-nav .has-submenu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
  }
  
  .main-nav .has-submenu:hover > .submenu,
  .main-nav .has-submenu:focus-within > .submenu {
    display: block;
  }
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

#nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1200;
}

#nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#site-nav > .nav-close {
  display: none !important;
}

@media (max-width: 860px) {
  #site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(84vw, 360px);
    transform: translateX(100%);
    transition: transform .28s ease;
    background: #fff;
    padding: 20px 18px 24px;
    border-left: 1px solid #e9ecef;
    box-shadow: -14px 0 28px rgba(0,0,0,.12);
    z-index: 1500;
  }
  
  #site-nav.is-open,
  body.nav-open #site-nav {
    transform: translateX(0) !important;
  }
  
  #site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
  }
  
  #site-nav a {
    display: block;
    padding: 12px 6px;
    text-decoration: none;
    color: #2f3438;
    font-weight: 700;
    border-radius: 8px;
  }
  
  #site-nav a:hover {
    background: #f6f8f6;
  }
  
  .main-header .header-container > nav.main-nav:not(.is-open) ul {
    display: none;
  }
  
  .nav-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1400;
  }
  
  .logo-container a {
    padding-right: 56px;
  }
  
  #site-nav.is-open > .nav-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e7e3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    z-index: 2;
    pointer-events: auto;
  }
  
  #site-nav > .nav-close svg {
    width: 22px !important;
    height: 22px !important;
    display: block;
  }
  
  /* Mobile dropdown */
  #site-nav .has-submenu > .submenu {
    display: none;
    position: static;
    margin: 6px 0 0;
    padding: 6px 0 6px 8px;
    border: 0;
    box-shadow: none;
  }
  
  #site-nav .has-submenu.is-open > .submenu {
    display: block;
  }
  
  #site-nav .menu-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  #site-nav .menu-parent::after {
    content: '▾';
    font-size: 12px;
    opacity: .7;
    margin-left: 8px;
  }
  
  #site-nav .has-submenu.is-open > .menu-parent::after {
    content: '▴';
  }
}

@media (min-width: 861px) {
  #site-nav {
    position: static;
    transform: none;
    width: auto;
    padding: 0;
    box-shadow: none;
    border: 0;
  }
  
  #nav-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  
  .nav-toggle {
    display: none !important;
  }
  
  .main-header .header-container > nav.main-nav > ul {
    display: flex;
  }
  
  #site-nav > .nav-close {
    display: none !important;
  }
}

/* ===== 3. MAIN LAYOUT ===== */
main {
  flex: 1 0 auto;
  padding-top: var(--header-h);
}

[id], .care-section, .plant-card, .care-card, h2, h3, h4 {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ===== 4. HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('hero-image.jpg') center/cover no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.25));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
}

.hero-content p {
  margin: 0 0 36px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: #e9ecef;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 20px rgba(18,128,56,.18);
}

.cta-button:hover {
  background: var(--green-600);
  transform: translateY(-1px);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid #e9ecef;
  color: #e9ecef;
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(255,255,255,.12);
}

/* ===== 5. FOOTER ===== */
.main-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 -6px 20px rgba(0,0,0,.04) inset;
}

.main-footer p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.main-footer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.main-footer a:hover {
  text-decoration: underline;
}

/* ===== 6. UTILITY WIDGETS ===== */
#utility-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1200;
}

.scroll-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(18,128,56,.8);
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  transition: background .3s;
}

.scroll-button a {
  color: #fff;
  text-decoration: none;
  font-size: 26px;
}

.scroll-button:hover {
  background: var(--green-600);
}

/* Weather Widget */
#weather-widget {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  background: rgba(18,128,56,.8);
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  transition: .3s ease-in-out;
}

#weather-widget:hover {
  width: 300px;
  height: auto;
  border-radius: 20px;
  background: rgba(0,0,0,.8);
}

#weather-icon-small {
  position: absolute;
  font-size: 70px;
  color: #fff;
  transition: opacity .3s;
}

#weather-widget:hover #weather-icon-small {
  opacity: 0;
}

#weather-widget-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: #fff;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

#weather-widget:hover #weather-widget-full {
  opacity: 1;
  visibility: visible;
}

.weather-main-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#weather-widget-full h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

#weather-temp {
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
}

.weather-sub-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.weather-sub-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
}

.weather-sub-item .label {
  font-size: 14px;
  opacity: .9;
  margin-top: 2px;
}

#weather-icon-sub {
  font-size: 28px;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  #utility-container {
    right: 12px;
    bottom: 12px;
    gap: 14px;
  }
  
  #weather-widget {
    width: 44px;
    height: 44px;
  }
  
  #weather-icon-small {
    font-size: 36px;
  }
  
  #weather-widget:hover {
    width: 260px;
    padding: 20px;
  }
  
  #weather-temp {
    font-size: 52px;
  }
  
  .weather-sub-item {
    font-size: 14px;
  }
  
  #weather-icon-sub {
    font-size: 24px;
  }
  
  .scroll-button {
    width: 44px;
    height: 44px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  }
  
  .scroll-button a {
    font-size: 22px;
  }
}

/* ===== 7. BUTTONS & INTERACTIVE ELEMENTS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e2e7e3;
  background: #fff;
  color: #233128;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  background: #f8faf8;
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: .5;
  pointer-events: none;
}

.btn-primary,
.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-primary:hover,
.btn--primary:hover {
  background: var(--green-600);
}

.back-button,
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: #f6f8f6;
  color: var(--gray-800);
  border: 1px solid #e2e7e3;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
  margin-bottom: 14px;
}

.back-button:hover,
.btn-back:hover {
  background: #eaf5ee;
  border-color: #cfe3d6;
  box-shadow: 0 6px 14px rgba(18,128,56,.08);
  transform: translateY(-1px);
}

.back-button:focus-visible,
.btn-back:focus-visible {
  outline: 2px solid #86c09b;
  outline-offset: 2px;
}

.back-button svg,
.btn-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  display: block;
  flex: 0 0 auto;
}

/* Chips & Pills */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #1f2a1f;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.chip:hover,
.pill:hover {
  box-shadow: var(--shadow-sm);
}

.chip.is-active,
.pill.is-active {
  background: var(--green-weak);
  border-color: var(--green);
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 32px auto 28px;
  max-width: 900px;
}

.tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 38px;
  font-size: 1.05rem;
  font-weight: 700;
  border: 1px solid #e3e8e5;
  border-radius: 999px;
  background: #fff;
  color: #2f3438;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: all .2s ease;
}

.tabs .tab:hover {
  background: #f8faf8;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.tabs .tab.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(18,128,56,0.18);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .tabs {
    gap: 12px;
    margin: 24px auto 20px;
  }
  
  .tabs .tab {
    padding: 12px 26px;
    font-size: 1rem;
  }
}

/* ===== 8. CARDS & CONTAINERS ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card--padded {
  padding: 24px;
}

@media (min-width: 1440px) {
  .card--padded {
    padding: 28px;
  }
}

/* Page Surface (unified white frame) */
.page-surface {
  max-width: min(1440px, calc(100% - 64px));
  margin: 12px auto 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: var(--card-pad);
}

.page-surface .section,
.page-surface .content {
  max-width: 100%;
}

/* Page Title */
.page-title {
  max-width: min(1440px, calc(100% - 64px));
  margin: calc(var(--header-h) + 10px) auto 12px;
  padding: 0 4px;
}

.page-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.01em;
}

.page-title .page-sub {
  margin: 6px 0 0;
  color: #58616a;
  line-height: 1.6;
}

/* Content Section */
.content-section {
  max-width: var(--page-max);
  margin: 28px auto 40px;
  padding: 0 24px;
}

.content-section h2 {
  font-size: 36px;
  color: var(--green);
  margin-bottom: 20px;
}

.content-section p {
  line-height: 1.8;
}

/* ===== 9. DETAIL PAGES (Plant/Care/News) ===== */
.detail-header {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 20;
  max-width: var(--card-max);
  margin: 8px auto 12px;
  padding: 0 4px;
  background: linear-gradient(#fafdfb 0%, rgba(250,253,251,0.92) 100%);
}

.detail-card {
  max-width: var(--card-max);
  margin: 20px auto 44px;
  padding: var(--card-pad);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.detail-card .hero-img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.detail-card .content {
  max-width: 1040px;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 1rem;
  color: #2f3438;
}

.detail-card .content p {
  margin: 0 0 .8em;
}

.detail-card .title {
  font-size: clamp(1.8rem, 2.3vw, 2.3rem);
  color: var(--green);
  font-weight: 800;
  margin: 6px 0 10px;
}

.detail-card .excerpt,
.detail-card .latin {
  color: #58616a;
  margin: 0 0 14px;
}

.detail-card .detail-meta {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
  color: #495057;
}

.detail-card .detail-meta li {
  margin: 4px 0;
}

.detail-card .rich {
  line-height: 1.85;
  color: #2f3438;
}

.detail-card .rich > * + * {
  margin-top: 0.9em;
}

.detail-card .rich img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (min-width: 1600px) {
  .detail-header {
    max-width: min(1500px, calc(100% - 96px));
  }
  
  .detail-card {
    max-width: min(1500px, calc(100% - 96px));
    padding: 48px 64px;
  }
}

@media (max-width: 860px) {
  .detail-card {
    padding: 18px;
    margin: 16px auto 28px;
  }
  
  .detail-card .hero-img {
    max-height: 420px;
  }
}

/* ===== 10. GRIDS (Plant/Care) ===== */
.plant-grid,
.care-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .plant-grid,
  .care-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .plant-grid,
  .care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .plant-grid,
  .care-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 11. PLANT & CARE CARDS ===== */
.plant-card,
.care-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
}

.plant-card:hover,
.care-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.plant-card > a,
.care-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.plant-card img,
.care-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform .25s ease;
}

.plant-card:hover img,
.care-card:hover img {
  transform: scale(1.02);
}

.care-card .card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plant-card .card-title,
.care-card .card-title,
.plant-card h3,
.care-card h4 {
  margin: 2px 0 0;
  font-weight: 800;
}

.plant-card .meta,
.plant-card .card-meta,
.care-card .card-meta,
.care-card p {
  color: #5b6b63;
  font-size: 0.95rem;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

/* ===== 12. NEWS SECTION ===== */
.news-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.news-section h2 {
  text-align: center;
  color: var(--green);
}

.news-section .news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

/* News Card */
.news-section .highlight-card.news-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--glass-radius);
  display: grid;
  gap: 8px 18px;
  align-items: start;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "date aux" "title aux" "excerpt aux";
  padding: 22px 24px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e7ebe8;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-section .highlight-card.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}

/* Identity line */
.news-section .highlight-card.news-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--green), #86c09b);
  opacity: .6;
  pointer-events: none;
  border-radius: var(--glass-radius) 0 0 var(--glass-radius);
}

/* Grid areas */
.news-section .highlight-card.news-card .news-date {
  grid-area: date;
}

.news-section .highlight-card.news-card h3 {
  grid-area: title;
}

.news-section .highlight-card.news-card .news-excerpt {
  grid-area: excerpt;
}

/* Date badge */
.news-section .highlight-card.news-card .news-date {
  display: inline-block;
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #5b7f67;
  background: #eaf5ee;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .03em;
}

/* Title */
.news-section .highlight-card.news-card h3 {
  margin: 4px 0 6px;
  font-size: 20px;
  color: var(--gray-800);
  font-weight: 800;
  line-height: 1.25;
}

/* Excerpt with truncation */
.news-section .highlight-card.news-card .news-excerpt {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-section .highlight-card.news-card .news-excerpt.is-truncated::after {
  content: " … Read more";
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  background: var(--ivory);
}

@media (max-width: 720px) {
  .news-section .highlight-card.news-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "date" "title" "excerpt";
    gap: 10px;
    padding: 18px 20px;
  }
}

/* News Detail */
.news-section .news-detail-container {
  background: #fff;
  border: 1px solid #e7ebe8;
  border-radius: var(--card-radius);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  padding: 28px 26px;
}

.news-section .news-detail-container h3 {
  font-size: 28px;
  color: var(--green);
  margin: 0 0 10px;
}

.news-section .news-detail-container .news-date {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 20px;
  display: block;
}

.news-section .news-detail-content {
  display: block;
}

.news-section .news-detail-content h1,
.news-section .news-detail-content h2,
.news-section .news-detail-content h3,
.news-section .news-detail-content h4,
.news-section .news-detail-content h5,
.news-section .news-detail-content h6 {
  margin: 18px 0 8px;
  color: var(--gray-800);
  line-height: 1.25;
  font-weight: 800;
}

.news-section .news-detail-content p {
  margin: 0 0 14px;
  color: var(--gray-700);
  line-height: 1.8;
  font-size: 16px;
}

.news-section .news-detail-content ul,
.news-section .news-detail-content ol {
  margin: 0 0 14px 0;
  padding-left: 1.2em;
}

.news-section .news-detail-content li {
  margin: 6px 0;
}

.news-section .news-detail-content img,
.news-section .news-detail-content video,
.news-section .news-detail-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.news-section .news-detail-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.news-section .news-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.news-section .news-detail-content td,
.news-section .news-detail-content th {
  border: 1px solid #e7ebe8;
  padding: 8px 10px;
  vertical-align: top;
}

.news-section .news-detail-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== 13. ABOUT PAGE ===== */
.page-about .about-shell {
  max-width: 1000px;
  margin: 40px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.page-about .about-panel,
.page-about .founder-panel {
  position: relative;
  background: #f7f7f5;
  border: 1px solid #e9e9e7;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(18,128,56,0.07);
  overflow: hidden;
  margin-bottom: 28px;
}

.page-about .about-panel::before,
.page-about .founder-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, #128038, #7fb995);
  opacity: .9;
}

.page-about .founder-panel {
  background: #fff;
}

.page-about .founder-panel::before {
  background: linear-gradient(180deg, #7fb995, #128038);
}

.page-about .about-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #128038;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
  margin-left: 6px;
  box-shadow: 0 6px 14px rgba(18,128,56,0.10);
}

.page-about .about-chip svg {
  width: 14px;
  height: 14px;
  opacity: .95;
}

.page-about .about-body {
  margin-top: 18px;
}

.page-about .about-body h2,
.page-about .founder-head h2 {
  font-size: 26px;
  font-weight: 800;
  color: #2f3438;
  margin: 0 0 6px;
}

.page-about .about-sub {
  color: #6f767c;
  font-size: 14px;
  margin-bottom: 18px;
}

.page-about .about-body p,
.page-about .founder-body p {
  margin: 0 0 14px;
  line-height: 1.75;
  color: #2f3438;
}

.page-about .soft-hr {
  border: 0;
  border-top: 1px solid #e9e9e7;
  margin: 28px 0 22px;
}

.page-about .founder-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

@media (max-width: 860px) {
  .page-about .about-shell {
    margin: 24px auto 50px;
    padding: 0 18px;
  }
  
  .page-about .about-body h2 {
    font-size: 22px;
  }
}

/* ===== 14. CONTACT PAGE ===== */
.page-contact .contact-section {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}

.page-contact .contact-section h2 {
  font-size: 32px;
  color: #128038;
  margin-bottom: 10px;
  font-weight: 800;
}

.page-contact .contact-intro {
  max-width: 680px;
  margin: 0 auto 26px;
  color: #4c5358;
  line-height: 1.75;
}

.page-contact .contact-container {
  display: flex;
  justify-content: center;
}

.page-contact .contact-details {
  position: relative;
  text-align: left;
  width: 100%;
  max-width: 680px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 18px 40px rgba(18,128,56,0.08);
}

.page-contact .contact-details::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #128038, #86c09b);
  opacity: .9;
  border-radius: 16px 0 0 16px;
}

.page-contact .contact-details h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: #2f3438;
}

.page-contact .contact-details p {
  margin: 8px 0 0;
  color: #40443f;
}

.page-contact .contact-details p strong {
  color: #2f3438;
}

.page-contact .contact-details a {
  color: #128038;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(18,128,56,.25);
  padding-bottom: 1px;
}

.page-contact .contact-details a:hover {
  border-bottom-color: rgba(18,128,56,.5);
}

@media (max-width: 720px) {
  .page-contact .contact-details {
    padding: 22px 20px;
  }
}

/* ===== 15. SUPPORT / FAQ PAGE ===== */
.page-support .faq-list h3 {
  text-align: center;
  color: var(--green);
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 800;
}

.page-support .faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  padding: 20px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid rgba(0,0,0,.04);
}

.page-support .faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,249,244,.96));
}

.page-support .faq-item h4 {
  margin: 0;
  font-size: 18px;
  color: var(--gray-800);
  font-weight: 700;
}

.page-support .faq-detail {
  background: #fff;
  border: 1px solid #e7ebe8;
  border-radius: var(--card-radius);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}

.page-support .faq-detail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--green), #86c09b);
  opacity: .9;
  border-radius: var(--card-radius) 0 0 var(--card-radius);
  pointer-events: none;
}

.page-support .faq-detail-content {
  display: block;
}

.page-support .faq-detail-content h1,
.page-support .faq-detail-content h2,
.page-support .faq-detail-content h3,
.page-support .faq-detail-content h4,
.page-support .faq-detail-content h5,
.page-support .faq-detail-content h6 {
  margin: 18px 0 8px;
  color: var(--gray-800);
  line-height: 1.25;
  font-weight: 800;
}

.page-support .faq-detail-content h3 {
  font-size: 22px;
}

.page-support .faq-detail-content p {
  margin: 0 0 14px;
  color: var(--gray-700);
  line-height: 1.8;
  font-size: 16px;
}

.page-support .faq-detail-content ul,
.page-support .faq-detail-content ol {
  margin: 0 0 14px 0;
  padding-left: 1.2em;
  color: var(--gray-700);
}

.page-support .faq-detail-content li {
  margin: 6px 0;
}

.page-support .faq-detail-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-support .faq-detail-content img,
.page-support .faq-detail-content video,
.page-support .faq-detail-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-support .faq-detail-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.page-support .faq-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.page-support .faq-detail-content th,
.page-support .faq-detail-content td {
  border: 1px solid #e7ebe8;
  padding: 8px 10px;
  vertical-align: top;
}

@media (max-width: 860px) {
  .page-support .faq-detail {
    padding: 22px 20px;
  }
}

/* ===== 16. FORM / INQUIRY PAGE ===== */
.form-page main {
  padding-top: 100px;
}

.form-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.form-title {
  text-align: left;
  max-width: 680px;
  margin: 0 auto 16px;
  padding-left: 28px;
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
}

.form-card {
  position: relative;
  text-align: left;
  width: 100%;
  max-width: 680px;
  margin: 12px auto 80px;
  padding: 26px 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(18,128,56,.08);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--green), #86c09b);
  border-radius: 16px 0 0 16px;
  opacity: .9;
  pointer-events: none;
}

.form-row {
  margin-bottom: 12px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e7ebe8;
  background: #fff;
  font: inherit;
  color: var(--gray-800);
  transition: box-shadow .18s, border-color .18s;
}

.form-control:focus {
  border-color: #cfe3d6;
  box-shadow: 0 0 0 3px rgba(18,128,56,.10);
  outline: none;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}

.file-input {
  display: none;
}

.file-name {
  font-size: 14px;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 44px;
  flex: 1 1 auto;
  min-width: 180px;
}

.btn-file {
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  min-width: 150px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .25s, transform .15s;
}

.btn-file:hover {
  background: var(--green-600);
}

.btn-file svg {
  width: 18px;
  height: 18px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .form-card {
    padding: 22px 20px;
  }
  
  .form-title {
    padding-left: 20px;
  }
  
  .file-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .btn,
  .btn-file {
    width: 100%;
    min-width: 0;
  }
  
  .file-name {
    line-height: 1.4;
  }
}

/* ===== 17. DECORATIVE ELEMENTS ===== */
.decor-leaves::before,
.decor-leaves::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  width: min(28vw, 420px);
  opacity: .08;
  background: url("bg-leaf-texture.png") center/cover no-repeat;
}

.decor-leaves::before {
  left: 0;
}

.decor-leaves::after {
  right: 0;
}

@media (min-width: 1024px) {
  .decor-leaves main,
  .decor-leaves .content-section {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 900px) {
  .decor-leaves::before,
  .decor-leaves::after {
    opacity: .05;
    width: 22vw;
  }
}

@media (max-width: 640px) {
  .decor-leaves::before,
  .decor-leaves::after {
    display: none;
  }
}

/* Service intro quote */
.service-intro-quote {
  max-width: 980px;
  margin: 140px auto 120px;
  padding: 56px 40px 52px;
  text-align: center;
  line-height: 1.6;
  font-weight: 400;
  color: var(--gray-900);
  font-size: clamp(22px, 3.2vw, 34px);
  background: radial-gradient(1200px 400px at 50% -10%, rgba(18,128,56,.06), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.85));
  border: 1px solid #e7ebe8;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(18,128,56,.07);
  position: relative;
  overflow: hidden;
}

.service-intro-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--green), #7fb995);
  opacity: .9;
}

.service-intro-quote::after {
  content: "";
  position: absolute;
  right: 24px;
  top: -22px;
  font-size: 180px;
  line-height: 1;
  color: var(--green);
  opacity: .06;
  font-weight: 700;
  pointer-events: none;
}

.service-intro-quote strong {
  font-weight: 800;
  color: var(--green);
  position: relative;
}

.service-intro-quote strong::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: .55em;
  background: linear-gradient(90deg, rgba(18,128,56,.18), rgba(18,128,56,.06));
  border-radius: 6px;
  z-index: -1;
}

@media (max-width: 860px) {
  .service-intro-quote {
    margin: 120px 18px 90px;
    padding: 36px 22px 34px;
    font-size: clamp(18px, 4.4vw, 24px);
  }
  
  .service-intro-quote::after {
    font-size: 120px;
    right: 12px;
    top: -10px;
  }
  
  .content-section {
    padding: 40px 24px;
  }
  
  .header-container {
    padding: 0 18px;
  }
  
  .page-title {
    max-width: min(1440px, calc(100% - 32px));
  }
  
  .page-surface {
    max-width: min(1440px, calc(100% - 32px));
    padding: 18px;
  }
}

/* ===== 18. A-Z INDEX ===== */
.az-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 10px 0 18px;
}

.az-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: #1f2a1f;
  text-decoration: none;
  font-weight: 600;
}

.az-index a:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

/* ===== 19. FILTERS ===== */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.filters input,
.filters select {
  padding: 10px 12px;
  border: 1px solid #e7ebe8;
  border-radius: 8px;
}

/* ===== 20. CARE SECTION SPECIFIC ===== */
.care-section {
  margin-top: 26px;
}

.quick-steps {
  margin: 10px 0 0;
  padding-left: 20px;
}

/* ===== 21. RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 18px;
  }
  
  .content-section {
    padding: 40px 18px;
  }
  
  .form-card {
    padding: 24px 24px;
  }
  
  .form-title {
    padding-left: 24px;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 72px;
  }
}

@media (min-width: 1200px) {
  :root {
    --header-h: 80px;
  }
}