/*
Theme Name: Martin's Lawn Detail
Theme URI: https://presencellc.net
Author: Presence LLC
Author URI: https://presencellc.net
Description: A custom WordPress theme built for Martin's Lawn Detail, a full-service lawn care and yard maintenance company serving Kissimmee, Saint Cloud, and the surrounding Central Florida area. Features a built-in photo gallery, a native contact form, and theme options for contact info, hero content, and social links — no page builder or extra plugins required.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: martins-lawn-detail
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root{
  /* Brand palette — pulled from the trailer signage: charcoal panel,
     sunset gradient, oak-tree green, brushed-silver script. */
  --charcoal-950: #0e1110;
  --charcoal-900: #141816;
  --charcoal-800: #1c2220;
  --charcoal-700: #29312e;
  --line-on-dark: rgba(245,242,232,0.12);

  --sunset-deep: #c8451f;
  --sunset-core: #f3811f;
  --sunset-gold: #ffc857;

  --pine-900: #1f3d24;
  --pine-700: #2e5e34;
  --leaf-500: #4f8a47;
  --leaf-400: #6fab5d;
  --leaf-300: #9bc98c;

  --cream-100: #f7f4ea;
  --cream-200: #ece6d3;
  --ink-900: #181a16;
  --ink-700: #3b3f37;
  --ink-500: #5c6158;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-soft: 0 18px 40px -18px rgba(14,17,16,0.45);
  --shadow-tight: 0 6px 16px -8px rgba(14,17,16,0.35);

  --font-script: "Pacifico", "Brush Script MT", cursive;
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

@media (prefers-color-scheme: dark){ /* theme is already dark-forward; no override needed */ }

/* =========================================================
   RESET / BASE
   ========================================================= */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; height: auto; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input,textarea,select{ font-family: inherit; font-size: 1rem; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; }
p{ margin: 0 0 1em; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section{ padding: clamp(56px, 9vw, 108px) 0; }
.section--tight{ padding: clamp(36px, 6vw, 64px) 0; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--leaf-500);
  margin-bottom: 0.9em;
}
.eyebrow::before{ content: ""; width: 22px; height: 2px; background: var(--leaf-500); border-radius: 2px; }
.section-head{ max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2{ font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--ink-900); }
.section-head p{ color: var(--ink-500); font-size: 1.05rem; margin-bottom: 0; }
.section-head--center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before{ display: none; }

/* Skip link */
.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--leaf-500); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus{ left: 0; }

:focus-visible{ outline: 3px solid var(--sunset-gold); outline-offset: 2px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--leaf-500); color: #fff; box-shadow: var(--shadow-tight); }
.btn-primary:hover{ background: var(--leaf-400); }
.btn-ghost{ border-color: var(--line-on-dark); color: var(--cream-100); }
.btn-ghost:hover{ border-color: var(--sunset-gold); color: var(--sunset-gold); }
.btn-outline-dark{ border-color: var(--ink-900); color: var(--ink-900); }
.btn-outline-dark:hover{ background: var(--ink-900); color: #fff; }
.btn-sm{ padding: 10px 20px; font-size: 0.88rem; }

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header{
  position: sticky; top: 0; z-index: 500;
  background: var(--charcoal-950);
  border-bottom: 1px solid var(--line-on-dark);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); max-width: var(--container); margin: 0 auto; gap: 24px;
}
.brand{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark{ width: 50px; height: 50px; flex-shrink: 0; }
.brand-text{ display: flex; flex-direction: column; line-height: 1; }
.brand-script{ font-family: var(--font-script); font-size: 1.7rem; color: var(--cream-100); }
.brand-sub{
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; color: var(--leaf-400); margin-top: 2px;
}
.main-nav ul{ display: flex; align-items: center; gap: 30px; }
.main-nav a{
  font-family: var(--font-display); font-weight: 500; font-size: 0.92rem;
  color: var(--cream-200); position: relative; padding: 6px 0;
}
.main-nav a::after{
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--sunset-gold); transition: width 0.2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after{ width: 100%; }
.header-cta{ display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone{
  display: flex; align-items: center; gap: 8px; color: var(--cream-100);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.header-phone svg{ width: 18px; height: 18px; color: var(--sunset-gold); flex-shrink: 0; }
.nav-toggle{
  display: none; background: none; border: none; color: var(--cream-100);
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-toggle svg{ width: 26px; height: 26px; }

@media (max-width: 900px){
  .main-nav{
    position: fixed; inset: 0; top: 78px; background: var(--charcoal-950);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    padding: 28px var(--gutter); overflow-y: auto;
  }
  .main-nav.is-open{ opacity: 1; transform: translateY(0); visibility: visible; }
  .main-nav ul{ flex-direction: column; align-items: flex-start; gap: 22px; }
  .main-nav a{ font-size: 1.2rem; }
  .header-phone span{ display: none; }
  .nav-toggle{ display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 60% at 78% 8%, var(--sunset-core) 0%, var(--sunset-deep) 38%, transparent 70%),
              linear-gradient(180deg, var(--charcoal-900) 0%, var(--charcoal-950) 100%);
  color: var(--cream-100);
  padding: clamp(72px, 13vw, 140px) 0 clamp(56px, 9vw, 96px);
}
.hero-glow{
  position: absolute; inset: 0; z-index: -1; opacity: 0.9;
  animation: glow-pulse 7s ease-in-out infinite;
}
@keyframes glow-pulse{
  0%,100%{ opacity: 0.85; }
  50%{ opacity: 1; }
}
.hero-grid{
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sunset-gold); background: rgba(255,200,87,0.12); border: 1px solid rgba(255,200,87,0.35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1{
  font-family: var(--font-script); font-weight: 400; font-size: clamp(3rem, 6.4vw, 5.4rem);
  color: var(--cream-100); margin-bottom: 0.05em; letter-spacing: 0.01em;
}
.hero-lockup{
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf-300); margin-bottom: 22px;
}
.hero p.lede{ font-size: 1.15rem; color: var(--cream-200); max-width: 520px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-art{ position: relative; }
.hero-art svg{ width: 100%; max-width: 420px; margin: 0 auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4)); }

.trust-strip{
  background: var(--charcoal-900); border-top: 1px solid var(--line-on-dark);
  padding: 22px 0;
}
.trust-strip ul{
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 44px;
}
.trust-strip li{
  display: flex; align-items: center; gap: 10px; color: var(--cream-200);
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.02em;
}
.trust-strip svg{ width: 20px; height: 20px; color: var(--sunset-gold); flex-shrink: 0; }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; text-align: center; }
  .hero p.lede{ margin-left: auto; margin-right: auto; }
  .hero-actions{ justify-content: center; }
  .hero-art{ order: -1; max-width: 280px; margin: 0 auto 12px; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.service-card{
  background: #fff; border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-tight); transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(20,24,22,0.05);
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-icon{
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--leaf-500), var(--pine-700)); margin-bottom: 18px;
}
.service-icon svg{ width: 28px; height: 28px; color: #fff; }
.service-card h3{ font-size: 1.08rem; color: var(--ink-900); margin-bottom: 0.4em; }
.service-card p{ color: var(--ink-500); font-size: 0.93rem; margin-bottom: 0; }

@media (max-width: 1020px){ .services-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px){ .services-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   WHY CHOOSE US (split, dark band)
   ========================================================= */
.why{ background: var(--charcoal-950); color: var(--cream-100); position: relative; overflow: hidden; }
.why-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.why .section-head h2{ color: var(--cream-100); }
.why .section-head p{ color: var(--cream-200); }
.why-art{ position: relative; }
.why-art svg{ width: 100%; max-width: 380px; margin: 0 auto; display: block; }
.why-list{ display: grid; gap: 22px; }
.why-item{ display: flex; gap: 16px; }
.why-item .icon{
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,200,87,0.14);
  border: 1px solid rgba(255,200,87,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-item .icon svg{ width: 20px; height: 20px; color: var(--sunset-gold); }
.why-item h3{ font-size: 1.06rem; color: var(--cream-100); margin-bottom: 0.3em; }
.why-item p{ color: var(--cream-200); font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 860px){ .why-grid{ grid-template-columns: 1fr; } .why-art{ order: -1; max-width: 240px; margin: 0 auto; } }

/* =========================================================
   SERVICE AREA
   ========================================================= */
.area-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.area-list{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.area-pill{
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem;
  background: var(--cream-200); color: var(--ink-700); padding: 8px 16px; border-radius: 999px;
}
.area-map{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.06); }
.area-map iframe{ width: 100%; height: 360px; border: 0; display: block; }

@media (max-width: 860px){ .area-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials{ background: var(--cream-200); }
.testi-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card{ background: #fff; border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-tight); }
.testi-stars{ display: flex; gap: 3px; margin-bottom: 14px; color: var(--sunset-core); }
.testi-stars svg{ width: 16px; height: 16px; }
.testi-card p{ color: var(--ink-700); font-size: 0.96rem; margin-bottom: 18px; }
.testi-name{ font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--ink-900); }
.testi-loc{ font-size: 0.82rem; color: var(--ink-500); }

@media (max-width: 900px){ .testi-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   GALLERY (preview + full page)
   ========================================================= */
.gallery-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px;
}
.gallery-grid .g-item:nth-child(5n+1){ grid-row: span 2; grid-column: span 2; }
.gallery-grid .g-item{
  position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in;
  background: var(--charcoal-800);
}
.gallery-grid .g-item img{
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.gallery-grid .g-item:hover img{ transform: scale(1.06); }
.gallery-grid .g-item::after{
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(14,17,16,0.55));
  opacity: 0; transition: opacity 0.25s ease;
}
.gallery-grid .g-item:hover::after{ opacity: 1; }
.g-item--placeholder{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--charcoal-800), var(--charcoal-700)); cursor: default;
  border: 1.5px dashed var(--line-on-dark);
}
.placeholder-icon{ width: 30px; height: 30px; color: var(--leaf-400); }
.placeholder-label{ font-family: var(--font-display); font-size: 0.78rem; color: var(--cream-200); letter-spacing: 0.04em; }

@media (max-width: 1020px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } .gallery-grid .g-item:nth-child(5n+1){ grid-column: span 2; grid-row: span 1; } }
@media (max-width: 560px){ .gallery-grid{ grid-template-columns: 1fr; grid-auto-rows: 220px; } }

/* Native WP gallery block / shortcode markup on the Gallery page template */
.gallery-page .wp-block-gallery,
.gallery-page .gallery{
  display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px !important; list-style: none;
}
.gallery-page .wp-block-gallery figure,
.gallery-page .gallery-item{
  margin: 0 !important; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3;
}
.gallery-page .wp-block-gallery img,
.gallery-page .gallery-item img{
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; border-radius: 0 !important;
}
.gallery-page .wp-block-gallery figure:hover img,
.gallery-page .gallery-item:hover img{ transform: scale(1.06); }
@media (max-width: 860px){
  .gallery-page .wp-block-gallery, .gallery-page .gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .gallery-page .wp-block-gallery, .gallery-page .gallery{ grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox{
  position: fixed; inset: 0; z-index: 2000; background: rgba(14,17,16,0.92);
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease; padding: 24px;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox img{ max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(255,255,255,0.2); }
.lightbox-close{ top: 22px; right: 22px; }
.lightbox-prev{ left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg{ width: 22px; height: 22px; }
.lightbox-counter{
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.05em;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner{
  background: linear-gradient(120deg, var(--sunset-deep), var(--sunset-core) 55%, var(--sunset-gold));
  color: var(--charcoal-950); text-align: center;
}
.cta-banner h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--charcoal-950); }
.cta-banner p{ font-size: 1.05rem; max-width: 560px; margin: 0 auto 1.6em; color: rgba(14,17,16,0.8); }
.cta-banner .btn-primary{ background: var(--charcoal-950); }
.cta-banner .btn-primary:hover{ background: #000; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid{ display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contact-card{ background: var(--charcoal-950); color: var(--cream-100); border-radius: var(--radius-lg); padding: 36px; }
.contact-card h3{ color: var(--cream-100); font-size: 1.2rem; }
.contact-info-list{ display: grid; gap: 18px; margin-top: 22px; }
.contact-info-list li{ display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .icon{
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,200,87,0.14);
  border: 1px solid rgba(255,200,87,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-list .icon svg{ width: 18px; height: 18px; color: var(--sunset-gold); }
.contact-info-list a, .contact-info-list span{ color: var(--cream-200); font-size: 0.95rem; }
.contact-social{ display: flex; gap: 10px; margin-top: 26px; }
.contact-social a{
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-on-dark);
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.contact-social a:hover{ background: var(--leaf-500); }
.contact-social svg{ width: 17px; height: 17px; color: var(--cream-100); }

.contact-form{ background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-tight); }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field{ margin-bottom: 18px; }
.form-field label{
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.86rem;
  color: var(--ink-900); margin-bottom: 7px;
}
.form-field input, .form-field select, .form-field textarea{
  width: 100%; padding: 13px 15px; border: 1.5px solid #dcd7c8; border-radius: var(--radius-sm);
  background: var(--cream-100); color: var(--ink-900); transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  border-color: var(--leaf-500); background: #fff; outline: none;
}
.form-field textarea{ min-height: 130px; resize: vertical; }
.form-hp{ position: absolute; left: -9999px; opacity: 0; }
.form-note{ font-size: 0.82rem; color: var(--ink-500); margin-top: -6px; margin-bottom: 18px; }
.form-status{
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; font-weight: 600;
}
.form-status--success{ background: rgba(111,171,93,0.16); color: var(--pine-900); border: 1px solid var(--leaf-400); }
.form-status--error{ background: rgba(200,69,31,0.12); color: var(--sunset-deep); border: 1px solid var(--sunset-deep); }

@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } .form-row{ grid-template-columns: 1fr; } }

/* =========================================================
   BLOG / ARCHIVE / SINGLE
   ========================================================= */
.post-list{ display: grid; gap: 32px; max-width: 760px; margin: 0 auto; }
.post-card{ border-bottom: 1px solid rgba(20,24,22,0.1); padding-bottom: 32px; }
.post-card .post-thumb{ border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px; aspect-ratio: 16/9; }
.post-card .post-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-card h2{ font-size: 1.5rem; }
.post-card h2 a:hover{ color: var(--leaf-500); }
.post-meta{ font-size: 0.84rem; color: var(--ink-500); margin-bottom: 0.6em; font-family: var(--font-display); letter-spacing: 0.02em; }
.single-content{ max-width: 720px; margin: 0 auto; }
.single-content .post-thumb{ border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px; }
.single-content h1{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.single-content p{ font-size: 1.05rem; color: var(--ink-700); }
.pagination{ display: flex; justify-content: center; gap: 12px; margin-top: 40px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--charcoal-950); color: var(--cream-200); }
.footer-top{ padding: 64px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand .brand-script{ font-size: 1.9rem; }
.footer-brand p{ color: var(--cream-200); font-size: 0.92rem; margin-top: 14px; max-width: 280px; }
.footer-col h4{ font-family: var(--font-display); font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sunset-gold); margin-bottom: 18px; }
.footer-col ul{ display: grid; gap: 12px; }
.footer-col a{ color: var(--cream-200); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover{ color: var(--sunset-gold); }
.footer-social{ display: flex; gap: 10px; margin-top: 18px; }
.footer-social a{
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-on-dark);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover{ background: var(--leaf-500); border-color: var(--leaf-500); }
.footer-social svg{ width: 16px; height: 16px; }
.footer-bottom{
  border-top: 1px solid var(--line-on-dark); padding: 22px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--ink-500);
}
.footer-bottom a{ color: var(--cream-200); }
.footer-bottom a:hover{ color: var(--sunset-gold); }

@media (max-width: 980px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }

/* =========================================================
   404
   ========================================================= */
.error-404{ text-align: center; padding: 100px 0; }
.error-404 .code{ font-family: var(--font-script); font-size: 6rem; color: var(--leaf-500); line-height: 1; }

/* =========================================================
   SEARCH FORM
   ========================================================= */
.search-form{ display: flex; gap: 10px; max-width: 420px; margin: 0 auto 40px; }
.search-form input[type="search"]{
  flex: 1; padding: 12px 16px; border: 1.5px solid #dcd7c8; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink-900);
}
.search-form input[type="search"]:focus{ outline: none; border-color: var(--leaf-500); }
.search-form button{
  width: 48px; flex-shrink: 0; border: none; border-radius: var(--radius-sm);
  background: var(--leaf-500); color: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: background 0.2s ease;
}
.search-form button:hover{ background: var(--leaf-400); }
.search-form button svg{ width: 16px; height: 16px; }

/* =========================================================
   ACCESSIBILITY HELPER
   ========================================================= */
.screen-reader-text{
  position: absolute !important; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* =========================================================
   POST CARD EXTRAS (index.php / archive.php)
   ========================================================= */
.post-card .excerpt{ color: var(--ink-700); margin: 10px 0 14px; }
.post-link{
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--leaf-600);
  display: inline-flex; align-items: center; gap: 6px;
}
.post-link:hover{ color: var(--leaf-500); }
.post-link svg{ width: 14px; height: 14px; }
.pagination .page-numbers{
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px;
  height: 42px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid #dcd7c8;
  font-family: var(--font-display); font-size: 0.88rem; color: var(--ink-700); transition: border-color 0.2s ease, color 0.2s ease;
}
.pagination .page-numbers.current{ background: var(--leaf-500); border-color: var(--leaf-500); color: #fff; }
.pagination a.page-numbers:hover{ border-color: var(--leaf-500); color: var(--leaf-500); }
.pagination .page-numbers svg{ width: 14px; height: 14px; }

/* =========================================================
   404 EXTRAS
   ========================================================= */
.error-404__actions{ display: flex; gap: 14px; justify-content: center; margin: 28px 0 36px; flex-wrap: wrap; }
.error-404__search{ max-width: 420px; margin: 0 auto; }

/* =========================================================
   WIDGET AREA (sidebar.php — optional, unused by default templates)
   ========================================================= */
.widget-area{ display: grid; gap: 32px; }
.widget-area .widget{ background: #fff; border: 1px solid rgba(20,24,22,0.08); border-radius: var(--radius-md); padding: 24px; }
.widget-area .widget h2,
.widget-area .widget .widget-title{
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--pine-900); margin-bottom: 14px;
}
.widget-area ul{ display: grid; gap: 10px; }
.widget-area a{ color: var(--ink-700); }
.widget-area a:hover{ color: var(--leaf-500); }
