/*
Theme Name: Wild Lens
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A bold, earthy one-page WordPress theme for bird and wildlife photographers. Features a full-bleed hero, about section, rounded-corner portfolio grid, and contact section.
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wild-lens
*/

/* =========================================================
   0. Design tokens
========================================================= */
:root {
  --charcoal: #2b2a26;
  --section-bg: #222222;
  --panel: #2e2e2e;
  --header-bg: rgba(34, 34, 34, 0.8);
  --sage: #8a9a82;
  --sage-accent: #7c9169;
  --sage-tint: #a8a8a8; /* light gray — secondary/muted text: eyebrows, captions, nav */
  --cream: #f0f0f0; /* neutral near-white — was a warm cream that read as yellow */
  --white: #fffdf8;
  --text-soft: #b8b8b8; /* neutral light gray — was a warm tan that read as yellow */
  --radius-sm: 6px; /* 1/16 inch at 96dpi */

  /* Strength of the dark tint over the hero photo, 0–1. Overridable from
     Customizer → Hero Section → Hero Screen Strength. The final fade to
     the next section's background color is unaffected by this value. */
  --hero-overlay: 1;

  /* Divider line between sections: the same light gray as --sage-tint,
     kept as its own named token so it can still be recolored independently
     if needed. */
  --divider: var(--sage-tint);

  /* Content color roles, all overridable from Customizer → Site Colors.
     Defaults are neutral (no warm/green cast) so nothing reads as "yellow"
     out of the box. */
  --color-heading: var(--cream);
  --color-paragraph: var(--text-soft);
  --color-blog-text: var(--text-soft);

  /* Hero buttons and the back-to-top button each get their own color
     tokens (rather than reusing --sage-accent/--sage directly) so they're
     independently adjustable from Customizer → Site Colors. */
  --hero-btn-color: var(--sage-accent);
  --hero-btn-text: var(--white);
  --back-to-top-color: var(--sage);

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;

  --max-width: 1180px;
  --radius: 18px;
}

/* =========================================================
   1. Reset & base
========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--section-bg);
  color: var(--color-paragraph);
  line-height: 1.7;
  font-size: 18px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--sage-accent); text-decoration: none; }
a:hover { color: var(--sage-accent); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--sage-accent);
  margin-bottom: 14px;
  font-weight: 600;
}

section { padding: 110px 0; }

/* =========================================================
   2. Site header / nav
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  padding: 14px 40px;
}

.site-branding a {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--white);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Shared by the social icons and the WooCommerce cart icon so every icon
   in the header/footer is exactly the same size. !important guards against
   another plugin's un-scoped "svg { width: ... }" reset (WooCommerce and
   others sometimes ship one) fighting this — icons are a case where
   pinning the size defensively matters more than avoiding !important. */
.icon-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--sage-tint);
  transition: color 0.2s ease;
  flex: 0 0 18px;
}

.icon-link:hover { color: var(--sage-accent); }

.icon-link svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
  flex-shrink: 0;
}

.cart-icon .cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--sage-accent);
  color: var(--section-bg);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

/* Empty (0-item cart) badge is hidden entirely rather than showing "0" —
   the element itself stays in the DOM so WooCommerce's cart-fragments
   script always has something to match and refresh. */
.cart-count:empty { display: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--sage-tint);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

/* =========================================================
   3. Hero
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--section-bg);
  background-image: url('assets/hero-placeholder.svg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Slideshow: only rendered when 2+ hero images are set. Sits behind the
   tint overlay (z-index below it) so the fade/legibility treatment still
   applies to every slide. */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--white);
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.hero-arrow:hover { opacity: 1; }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* Single overlay: dark tint for text legibility through the upper/middle
   hero, then fades to a fully opaque match of the next section's
   background color over the last stretch — one layer, so there's no
   stacking-order ambiguity between a tint and a separate fade. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(30,30,26, calc(0.55 * var(--hero-overlay))) 0%,
    rgba(30,30,26, calc(0.35 * var(--hero-overlay))) 30%,
    rgba(30,30,26, calc(0.7 * var(--hero-overlay))) 50%,
    var(--section-bg) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 24px;
  color: var(--white);
}

.hero .eyebrow { color: var(--sage-tint); }

.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 7vw, 84px);
  margin-bottom: 0.3em;
}

.hero p.subtitle {
  font-size: 20px;
  color: var(--sage-tint);
  max-width: 560px;
  margin: 0 auto 40px;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 16px 36px;
  border-radius: 999px;
  border: 2px solid var(--sage-accent);
  color: var(--white);
  transition: all 0.25s ease;
}

/* Hero buttons are rectangles with 1/16" rounded corners, distinct from
   the pill-shaped .btn used elsewhere (e.g. the contact form), and use
   their own color tokens so they're adjustable independently of the
   rest of the site's buttons/links. */
.hero .btn {
  border-radius: var(--radius-sm);
  border-color: var(--hero-btn-color);
  color: var(--hero-btn-text);
}

.hero .btn:hover {
  background: var(--hero-btn-color);
  color: var(--charcoal);
}

.btn:hover {
  background: var(--sage-accent);
  color: var(--charcoal);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--sage-tint);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: var(--sage-tint);
  margin: 10px auto 0;
  animation: scrollpulse 2s infinite;
}
@keyframes scrollpulse {
  0% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
}

/* =========================================================
   4. About
========================================================= */
.about {
  background: var(--section-bg);
  text-align: center;
}

.about-container {
  max-width: 640px;
}

/* Shared size for every section's primary title (About, Portfolio,
   Field Notes, Contact) so they all match. */
.section-title { font-size: clamp(34px, 4vw, 48px); }

.about-photo {
  width: 180px;
  height: 180px;
  margin: 32px auto 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--sage);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.5);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  user-select: none;
  -webkit-user-drag: none;
}

.about-text p { color: var(--color-paragraph); }

.about-more {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 0.5px solid var(--divider);
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
}

.about-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--sage-accent);
}

.about-stats div span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-paragraph);
}

/* =========================================================
   5. Portfolio
========================================================= */
.portfolio {
  background: var(--section-bg);
  text-align: center;
  border-top: 0.5px solid var(--divider);
}

.portfolio .section-head {
  max-width: 620px;
  margin: 0 auto 60px;
}

.portfolio-grid {
  columns: 3 260px;
  column-gap: 28px;
  text-align: left;
}

.portfolio-item {
  position: relative;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.5);
  cursor: pointer;
}

.portfolio-item:focus-visible {
  outline: 2px solid var(--sage-tint);
  outline-offset: 3px;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 18px;
  background: linear-gradient(0deg, rgba(20,19,16,0.85) 0%, rgba(20,19,16,0) 100%);
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
}

.portfolio-item:hover .portfolio-caption {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-caption .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  display: block;
}

.portfolio-caption .meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-tint);
}

.portfolio-more {
  margin-top: 56px;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.nav-links .page-numbers {
  color: var(--sage-tint);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a.page-numbers:hover,
.nav-links .page-numbers.current {
  color: var(--sage-accent);
}

/* =========================================================
   6. Field Notes (blog)
========================================================= */
.blog {
  background: var(--section-bg);
  border-top: 0.5px solid var(--divider);
}

.blog .section-head {
  max-width: 620px;
  margin: 0 auto 60px;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.blog-card-media {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-media img { transform: scale(1.05); }

.blog-card-body { padding-top: 20px; }

.blog-card-date {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-tint);
}

.blog-card h3 {
  font-size: 22px;
  margin: 8px 0 10px;
}

.blog-card h3 a { color: var(--color-heading); }
.blog-card h3 a:hover { color: var(--sage-accent); }

.blog-card-body p {
  color: var(--color-blog-text);
  margin: 0 0 14px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-accent);
}

.read-more::after { content: '\2192'; transition: transform 0.2s ease; }
.read-more:hover::after { transform: translateX(3px); }

.blog-empty {
  text-align: center;
  color: var(--color-paragraph);
}

.blog-more {
  margin-top: 56px;
  text-align: center;
}

/* Rectangle with 1/16" rounded corners, matching the hero buttons rather
   than the pill-shaped .btn used elsewhere. */
.blog-more .btn {
  border-radius: var(--radius-sm);
}

/* =========================================================
   7. Contact
========================================================= */
.contact {
  background: var(--section-bg);
  color: var(--sage-tint);
  border-top: 0.5px solid var(--divider);
}

.contact .eyebrow { color: var(--sage); }

.contact h2 { color: var(--color-heading); }

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.contact-intro p { color: var(--sage-tint); max-width: 440px; }

.wpcf7, .contact-form {
  background: var(--panel);
  padding: 40px;
  border-radius: var(--radius);
}

.contact-form p { margin: 0 0 20px; }

.contact-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(230, 217, 191, 0.35);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sage-accent);
}

.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form .btn {
  border-color: var(--sage);
  margin-top: 10px;
  cursor: pointer;
  background: transparent;
}
.contact-form .btn:hover { background: var(--sage); border-color: var(--sage); color: var(--charcoal); }

/* =========================================================
   8. Footer
========================================================= */
.site-footer {
  background: var(--section-bg);
  color: rgba(244,239,228,0.55);
  text-align: center;
  padding: 28px 0 40px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-top: 0.5px solid var(--divider);
}

.site-footer a { color: rgba(244,239,228,0.75); }

.footer-social {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--section-bg);
  border: 1.5px solid var(--back-to-top-color);
  border-radius: var(--radius-sm);
  color: var(--back-to-top-color);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--back-to-top-color);
  color: var(--section-bg);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--sage-tint);
  outline-offset: 3px;
}

/* =========================================================
   9. Lightbox
========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(10, 10, 8, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.lightbox-open { overflow: hidden; }

.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 1200px);
  text-align: center;
}

.lightbox-figure img {
  display: block;
  /* Longest side capped at 800px: the browser scales to satisfy whichever
     of these two limits is tighter, while width/height:auto preserves
     the image's own aspect ratio. */
  max-width: min(100%, 800px);
  max-height: min(78vh, 800px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-figure figcaption { margin-top: 18px; }

.lightbox-title {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
}

.lightbox-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-tint);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--sage-tint);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--sage-accent);
  color: var(--charcoal);
}

.lightbox-close {
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  font-size: 26px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 28px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* =========================================================
   10. Single Post
========================================================= */
.post-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--section-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,30,26,0.55) 0%, rgba(30,30,26,0.35) 45%, rgba(30,30,26,0.8) 100%);
}

.post-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 120px 24px 40px;
  color: var(--white);
}

.post-hero .eyebrow { color: var(--sage-tint); }

.post-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 56px);
  margin: 0;
}

.post-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 72px;
  padding: 90px 0 110px;
  align-items: start;
}

.post-content { color: var(--color-blog-text); }

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--color-heading);
  margin-top: 1.6em;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child {
  margin-top: 0;
}

.post-content p { margin: 0 0 1.4em; }

.post-content a { color: var(--sage-accent); text-decoration: underline; }
.post-content a:hover { color: var(--sage-tint); }

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  margin: 1.6em 0;
}

.post-content blockquote {
  margin: 1.6em 0;
  padding-left: 22px;
  border-left: 3px solid var(--sage);
  font-style: italic;
  color: var(--sage-tint);
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.post-content li { margin-bottom: 0.4em; }

.page-links { margin-top: 2em; font-size: 14px; color: var(--color-paragraph); }

.post-back {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--hairline, rgba(207,217,196,0.16));
}

.post-back a {
  color: var(--sage-accent);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-back a:hover { color: var(--sage-tint); }

.post-sidebar .widget { margin-bottom: 44px; }

.post-sidebar .widget-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--color-heading);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sage-tint);
}

.post-sidebar p { color: var(--color-paragraph); margin: 0 0 1em; }

.post-sidebar ul { list-style: none; margin: 0; padding: 0; }

.post-sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(207, 217, 196, 0.14);
}

.post-sidebar a { color: var(--sage-tint); text-decoration: none; }
.post-sidebar a:hover { color: var(--sage-accent); }

.post-sidebar input[type="text"],
.post-sidebar input[type="search"],
.post-sidebar input[type="email"] {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--sage-tint);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
}

.post-sidebar button,
.post-sidebar input[type="submit"] {
  margin-top: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--sage-accent);
  background: transparent;
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.post-sidebar button:hover,
.post-sidebar input[type="submit"]:hover {
  background: var(--sage-accent);
  color: var(--charcoal);
}

/* =========================================================
   11. Responsive
========================================================= */
@media (max-width: 900px) {
  .contact .container {
    grid-template-columns: 1fr;
  }
  .portfolio-grid { columns: 2 220px; }
  .post-layout { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .container { padding: 0 22px; }
  .main-nav { display: none; }
  .header-social { display: none; }
  .nav-toggle { display: block; }
  .portfolio-grid { columns: 1; }
  .about-photo { width: 140px; height: 140px; }
  .about-stats { flex-wrap: wrap; gap: 28px; }
  .hero-arrow { width: 34px; height: 34px; }
  .hero-arrow-prev { left: 8px; }
  .hero-arrow-next { right: 8px; }
  body { font-size: 16px; }
  .lightbox { padding: 20px; }
  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 22px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 22px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .post-hero-inner { padding-top: 96px; }
  .post-layout { padding: 60px 0 80px; gap: 44px; }
  .back-to-top { right: 18px; bottom: 18px; width: 42px; height: 42px; font-size: 18px; }
}
