/*
Theme Name: Natural Designs Landscape Co.
Theme URI: https://naturaldesignsls.com/
Author: Natural Designs Landscape Co.
Description: Lightweight custom theme for Natural Designs Landscape Co., based on the approved Modern Tropical Minimalism direction.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: natural-designs
*/

:root {
  --nd-evergreen: #123d32;
  --nd-deep: #0d2d25;
  --nd-leaf: #2f6b4f;
  --nd-lime: #c9dc71;
  --nd-sand: #f3efe4;
  --nd-paper: #fffdf7;
  --nd-clay: #b94d37;
  --nd-ink: #17322b;
  --nd-muted: #5e6d67;
  --nd-line: #d8d0c2;
  --nd-white: #ffffff;
  --nd-shadow: 0 18px 54px rgba(18, 61, 50, 0.12);
  --nd-wrap: min(1180px, calc(100vw - 40px));
  --nd-radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nd-paper);
  color: var(--nd-ink);
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--nd-evergreen); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  color: var(--nd-evergreen);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8vw, 6.8rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2.35rem, 5vw, 4.9rem); letter-spacing: -0.04em; }
h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--nd-clay); outline-offset: 4px; }
.wrap { width: var(--nd-wrap); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 12px 16px; background: var(--nd-white); }
.skip-link:not(:focus) { transform: translateY(-150%); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--nd-clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lede { max-width: 720px; color: var(--nd-muted); font-size: clamp(1.12rem, 2vw, 1.38rem); }
.utility-bar { padding: 8px 20px; background: var(--nd-deep); color: #e6efe9; text-align: center; font-size: 0.82rem; letter-spacing: 0.04em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 247, 0.96); border-bottom: 1px solid var(--nd-line); backdrop-filter: blur(14px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--nd-evergreen); text-decoration: none; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.brand-logo { display: block; width: 64px; height: 64px; flex: 0 0 auto; }
.brand-logo-image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: Georgia, serif; font-size: 1.05rem; }
.brand-copy span { margin-top: 5px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.menu-toggle { display: none; min-height: 44px; padding: 9px 13px; border: 1px solid var(--nd-evergreen); background: transparent; color: var(--nd-evergreen); font-weight: 800; }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: 0.92rem; font-weight: 750; white-space: nowrap; text-decoration: none; }
.primary-nav .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 2px; }
.primary-nav .menu-cta > a { padding: 12px 15px; background: var(--nd-evergreen); color: var(--nd-white); }
.services-menu { position: relative; }
.services-menu summary { display: flex; align-items: center; gap: 7px; color: var(--nd-evergreen); font-size: 0.92rem; font-weight: 750; white-space: nowrap; cursor: pointer; list-style: none; }
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu summary::after { content: "+"; color: var(--nd-clay); font-size: 1.05rem; font-weight: 900; }
.services-menu[open] summary::after { content: "\2212"; }
.primary-nav .sub-menu { position: absolute; top: calc(100% + 18px); left: -18px; z-index: 60; display: none; min-width: 250px; padding: 10px 0; background: var(--nd-paper); border: 1px solid var(--nd-line); box-shadow: var(--nd-shadow); }
.primary-nav .services-menu[open] > .sub-menu { display: grid; gap: 0; }
.primary-nav .sub-menu a { display: block; padding: 11px 18px; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus { background: var(--nd-sand); }
.button, .wp-element-button, button[type="submit"] {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 13px 18px; border: 2px solid var(--nd-evergreen); border-radius: var(--nd-radius);
  background: var(--nd-evergreen); color: var(--nd-white); font-weight: 850; line-height: 1.1; text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover, .wp-element-button:hover, button[type="submit"]:hover { background: var(--nd-leaf); border-color: var(--nd-leaf); transform: translateY(-2px); }
.button--light { background: transparent; color: var(--nd-evergreen); }
.button--light:hover { background: var(--nd-evergreen); color: var(--nd-white); }
.button--clay { background: var(--nd-clay); border-color: var(--nd-clay); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero { padding: clamp(64px, 10vw, 130px) 0 70px; background: linear-gradient(115deg, var(--nd-paper) 0 64%, var(--nd-sand) 64%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(36px, 6vw, 86px); align-items: center; }
.hero h1 { max-width: 760px; margin: 0 0 28px; }
.hero-visual, .media-placeholder {
  position: relative; min-height: 580px; overflow: hidden; border-radius: var(--nd-radius);
  background:
    radial-gradient(circle at 68% 35%, rgba(201, 220, 113, 0.82) 0 9%, transparent 9.5%),
    linear-gradient(145deg, transparent 0 42%, rgba(18, 61, 50, 0.2) 42.5% 58%, transparent 58.5%),
    linear-gradient(35deg, #d7dfc8, #7ea486 52%, #244e3c);
  box-shadow: var(--nd-shadow);
}
.hero-visual::before, .media-placeholder::before {
  content: ""; position: absolute; width: 55%; aspect-ratio: 1; right: -12%; bottom: -18%; border: 28px solid rgba(255,255,255,0.2); border-radius: 50%;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
}
.hero-visual--photo::before { display: none; }
.image-status {
  position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 10px 12px;
  background: rgba(13, 45, 37, 0.9); color: var(--nd-white); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-align: center; text-transform: uppercase;
}
.proof-note { position: absolute; left: 18px; bottom: 58px; width: min(280px, calc(100% - 36px)); padding: 20px; background: var(--nd-white); border-top: 5px solid var(--nd-lime); box-shadow: var(--nd-shadow); }
.proof-note strong { display: block; color: var(--nd-evergreen); font-family: Georgia, serif; font-size: 1.25rem; }
.trust-strip { background: var(--nd-evergreen); color: #edf5ef; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 132px; padding: 30px 24px; border-right: 1px solid rgba(255,255,255,0.2); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--nd-white); font-family: Georgia, serif; font-size: 1.18rem; }
.trust-item span { display: block; margin-top: 8px; color: #cbdcd3; font-size: 0.88rem; }
.trust-item--link { color: inherit; text-decoration: none; transition: background 160ms ease; }
.trust-item--link:hover, .trust-item--link:focus { background: rgba(255,255,255,0.08); }
.section { padding: clamp(74px, 10vw, 132px) 0; }
.section--sand { background: var(--nd-sand); }
.section--green { background: var(--nd-evergreen); color: #eaf2ed; }
.section--green h2, .section--green h3 { color: var(--nd-white); }
.section-heading { display: grid; grid-template-columns: 1fr 0.8fr; gap: 50px; align-items: end; margin-bottom: 44px; }
.section-heading h2 { margin: 0; }
.section-heading > p { max-width: 560px; color: var(--nd-muted); }
.project-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 18px; }
.project-card { position: relative; min-height: 430px; overflow: hidden; background: var(--nd-leaf); }
.project-card:first-child { min-height: 550px; }
.project-card .media-placeholder { min-height: 100%; box-shadow: none; border-radius: 0; }
.project-image { position: absolute; inset: 0; display: block; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-caption { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 16px; background: rgba(255,253,247,0.95); }
.project-caption strong { display: block; color: var(--nd-evergreen); font-family: Georgia, serif; font-size: 1.2rem; }
.project-caption a { color: inherit; text-decoration: none; }
.service-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 8vw, 110px); }
.service-list { border-top: 1px solid var(--nd-line); }
.service-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--nd-line); }
.service-card h3 { margin: 0 0 8px; }
.service-number { color: var(--nd-clay); font-weight: 900; }
.service-arrow { color: var(--nd-clay); font-size: 1.7rem; }
.service-card a { color: inherit; text-decoration: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: process; }
.step { padding: 28px; border: 1px solid var(--nd-line); background: var(--nd-paper); }
.step-count { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--nd-lime); color: var(--nd-evergreen); font-weight: 900; }
.step h3 { margin: 40px 0 10px; }
.feature-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card, .info-card { padding: 28px; border: 1px solid var(--nd-line); background: var(--nd-paper); }
.feature-card h3, .info-card h3 { margin-top: 0; }
.page-hero { padding: 80px 0 70px; background: var(--nd-sand); }
.page-hero h1 { max-width: 980px; margin: 0 0 22px; font-size: clamp(3.1rem, 7vw, 6rem); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(42px, 8vw, 110px); }
.content-grid h2 { margin-top: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > h2:not(:first-child) { margin-top: 1.2em; }
.entry-content .wp-block-buttons { margin-top: 28px; }
.page-featured-image { max-width: 720px; margin: 0 0 clamp(36px, 6vw, 64px); overflow: hidden; background: var(--nd-sand); box-shadow: var(--nd-shadow); }
.page-featured-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.page-featured-image--portrait { max-width: 620px; }
.page-featured-image--portrait img { aspect-ratio: 3 / 4; object-position: center 48%; }
.page-sidebar { min-width: 0; align-self: start; }
.page-sidebar .page-featured-image--portrait { width: 100%; max-width: 360px; margin-bottom: 20px; }
.sticky-card { position: sticky; top: 120px; min-width: 0; overflow: hidden; align-self: start; padding: 28px; background: var(--nd-evergreen); color: #e9f1ec; }
.sticky-card h2, .sticky-card h3 { color: var(--nd-white); }
.sticky-card h2 { font-size: clamp(2rem, 2.5vw, 2.35rem); overflow-wrap: anywhere; }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--nd-clay); font-weight: 900; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--nd-line); background: var(--nd-paper); }
.faq-list summary { cursor: pointer; padding: 20px 54px 20px 20px; color: var(--nd-evergreen); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.faq-list details p { padding: 0 20px 20px; }
.consultation-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 7vw, 90px); padding: clamp(28px, 5vw, 64px); background: var(--nd-sand); }
.ndlc-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ndlc-field { display: grid; gap: 7px; }
.ndlc-field--full { grid-column: 1 / -1; }
.ndlc-field label { color: var(--nd-evergreen); font-weight: 800; }
.ndlc-field input, .ndlc-field select, .ndlc-field textarea {
  width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid #8d9b94; border-radius: 2px; background: var(--nd-white); color: var(--nd-ink);
}
.ndlc-field textarea { min-height: 145px; resize: vertical; }
.ndlc-consent { display: flex; align-items: flex-start; gap: 10px; }
.ndlc-consent input { width: 20px; height: 20px; margin-top: 4px; }
.ndlc-form-note { grid-column: 1 / -1; color: var(--nd-muted); font-size: 0.88rem; }
.notice { padding: 16px; border-left: 5px solid var(--nd-leaf); background: #e9f3eb; }
.notice--error { border-color: var(--nd-clay); background: #fbece8; }
.empty-state { padding: 44px; border: 1px dashed var(--nd-leaf); background: var(--nd-sand); text-align: center; }
.final-cta { padding: clamp(50px, 8vw, 90px) 0; background: var(--nd-deep); color: #e8f0eb; }
.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-panel h2 { max-width: 850px; margin: 0; color: var(--nd-white); }
.site-footer { padding: 60px 0 26px; background: #09231c; color: #c9d9d0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(2, 0.8fr); gap: 44px; }
.site-footer h2, .site-footer h3 { color: var(--nd-white); }
.site-footer a { color: var(--nd-white); }
.footer-brand { display: flex; align-items: flex-start; gap: 20px; }
.footer-logo { width: 104px; flex: 0 0 auto; overflow: hidden; background: var(--nd-paper); }
.footer-logo-image { width: 100%; height: auto; }
.footer-links { display: grid; gap: 8px; padding: 0; list-style: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.16); font-size: 0.82rem; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 20px; background: var(--nd-paper); border-bottom: 1px solid var(--nd-line); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { width: var(--nd-wrap); margin-inline: auto; align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--nd-line); }
  .primary-nav a { display: block; padding: 14px 0; }
  .services-menu summary { padding: 14px 0; }
  .primary-nav .sub-menu { position: static; min-width: 0; padding: 0 0 8px 18px; border: 0; box-shadow: none; }
  .primary-nav .sub-menu li { border-bottom: 0; }
  .primary-nav .sub-menu a { padding: 10px 0; }
  .hero-grid, .service-layout, .consultation-panel, .content-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 500px; }
  .proof-note { left: 18px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card:first-child { grid-column: 1 / -1; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .sticky-card { position: static; }
  .cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --nd-wrap: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-copy span { display: none; }
  .hero { padding-top: 62px; background: var(--nd-paper); }
  .hero-visual { min-height: 390px; }
  .proof-note { right: 14px; bottom: 54px; left: 14px; width: auto; }
  .trust-grid, .project-grid, .steps, .feature-grid, .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .project-card, .project-card:first-child { min-height: 410px; grid-column: auto; }
  .service-card { grid-template-columns: 42px 1fr; }
  .service-arrow { display: none; }
  .ndlc-form { grid-template-columns: 1fr; }
  .ndlc-field--full, .ndlc-form-note { grid-column: auto; }
  .button-row { flex-direction: column; }
  .button-row .button { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .footer-brand { align-items: center; }
  .footer-logo { width: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
