/* =========================================
   TWO ODDS LLC — Main Stylesheet
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* =========================================
   LIGHT / EARTHY THEME (default)
   ========================================= */
:root {
  --color-bg:        #f5f0e8;   /* warm linen */
  --color-surface:   #ede6d6;   /* parchment */
  --color-surface2:  #e4dac8;   /* darker parchment */
  --color-border:    #c8b99a;   /* warm tan */
  --color-accent:    #d4844a;   /* logo amber, darkened for light bg */
  --color-accent2:   #b86a32;   /* deeper logo amber */
  --color-text:      #2c1f0e;   /* dark walnut */
  --color-muted:     #6b5744;   /* warm bark / mid brown */
  --color-white:     #1e1208;   /* near-black walnut (for "white" text on dark surfaces) */

  /* Hard-coded value replacements */
  --color-header-bg:        rgba(237,230,214,0.95);
  --color-hero-overlay:     linear-gradient(to bottom, rgba(30,18,8,0.45) 0%, rgba(30,18,8,0.65) 60%, rgba(30,18,8,0.88) 100%);
  --color-cta-banner:       linear-gradient(135deg, #1e0e04 0%, #3a1e08 50%, #1e0e04 100%);
  --color-overlay:          rgba(30,18,8,0.75);
  --color-overlay-grad:     linear-gradient(to top, rgba(30,18,8,0.82) 0%, rgba(30,18,8,0.15) 60%, transparent 100%);
  --color-lightbox-bg:      rgba(20,12,4,0.94);
  --color-lightbox-ctrl:    rgba(58,30,8,0.85);
  --color-tag-bg:           rgba(237,230,214,0.88);
  --color-shadow:           rgba(44,31,14,0.25);
  --color-img-shadow:       0 20px 60px rgba(44,31,14,0.3);
  --color-form-success:     rgba(212,132,74,0.12);
  --color-btn-outline-border: rgba(44,31,14,0.4);
  --color-btn-outline-hover:  rgba(44,31,14,1);
  /* Text that always sits on top of dark photo overlays — never changes between themes */
  --color-on-photo:       #ffffff;
  --color-on-photo-muted: rgba(255,255,255,0.75);

  --font-heading:    'Oswald', sans-serif;
  --font-body:       'Open Sans', sans-serif;
  --radius:          4px;
  --radius-lg:       8px;
  --transition:      0.25s ease;
  --max-w:           1200px;
  --header-h:        70px;
}

/* =========================================
   DARK THEME
   ========================================= */
[data-theme="dark"] {
  --color-bg:        #0f0f0f;
  --color-surface:   #181818;
  --color-surface2:  #232323;
  --color-border:    #2e2e2e;
  --color-accent:    #efa162;   /* logo amber */
  --color-accent2:   #d4844a;   /* darker logo amber */
  --color-text:      #e8e8e8;
  --color-muted:     #8a8a8a;
  --color-white:     #ffffff;

  /* Hard-coded value replacements */
  --color-header-bg:        rgba(15,15,15,0.92);
  --color-hero-overlay:     linear-gradient(to bottom, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.82) 60%, rgba(10,10,10,0.97) 100%);
  --color-cta-banner:       linear-gradient(135deg, #1a0c08 0%, #2a1510 50%, #1a0c08 100%);
  --color-overlay:          rgba(0,0,0,0.85);
  --color-overlay-grad:     linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  --color-lightbox-bg:      rgba(0,0,0,0.92);
  --color-lightbox-ctrl:    rgba(30,30,30,0.8);
  --color-tag-bg:           rgba(15,15,15,0.85);
  --color-shadow:           rgba(0,0,0,0.5);
  --color-img-shadow:       0 20px 60px rgba(0,0,0,0.5);
  --color-form-success:     rgba(239,161,98,0.12);
  --color-btn-outline-border: rgba(255,255,255,0.5);
  --color-btn-outline-hover:  rgba(255,255,255,1);
  /* Text that always sits on top of dark photo overlays — never changes between themes */
  --color-on-photo:       #ffffff;
  --color-on-photo-muted: rgba(255,255,255,0.75);
}

html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--color-accent); }

/* --- Layout Helpers --- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-dark { background: var(--color-surface); }

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-intro {
  max-width: 680px;
  color: var(--color-muted);
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
}
.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75em 2em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-photo);
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent2); border-color: var(--color-accent2); }
.btn-outline {
  background: transparent;
  color: var(--color-on-photo);
  border-color: var(--color-btn-outline-border);
}
.btn-outline:hover { border-color: var(--color-btn-outline-hover); }
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-secondary:hover { background: var(--color-accent); color: var(--color-on-photo); }
.btn-lg { font-size: 1.1rem; padding: 0.85em 2.5em; }

/* --- Theme Toggle --- */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
.theme-toggle .icon-sun  { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Show/hide icons based on active theme */
.icon-moon { display: none; }
.icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: none; }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 900;
  background: var(--color-header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* Logo has earthy warm tones — works well on light theme as-is.
     On dark theme, brighten it slightly so it pops against the dark header. */
  transition: filter var(--transition);
}
/* On dark header, lift the brightness a touch */
.logo-img--footer {
  height: 36px;
}
/* Light theme: logo looks natural, no filter needed */
:root .logo-img { filter: none; }
/* Dark theme: logo colors are warm/earthy, add slight brightness boost */
[data-theme="dark"] .logo-img { filter: brightness(1.15) contrast(1.05); }
.main-nav ul {
  display: flex;
  gap: 2rem;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-bg) url('/images/hero-bg.webp') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.hero h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  color: var(--color-on-photo);
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.9);
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.service-icon {
  width: 52px; height: 52px;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.card-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: letter-spacing var(--transition);
}
.card-link:hover { letter-spacing: 0.15em; }

/* --- Portfolio Preview --- */
.portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.portfolio-preview-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  aspect-ratio: 4/3;
  background: var(--color-surface2);
}
.ppc-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.portfolio-preview-card:hover .ppc-img { transform: scale(1.05); }
.ppc-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--color-overlay);
  padding: 2rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-on-photo);
}

/* --- About Strip --- */
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-strip-text h2 { margin-bottom: 1.25rem; }
.about-strip-text p { color: var(--color-muted); margin-bottom: 1rem; }
.about-strip-text .btn { margin-top: 0.75rem; }
.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--color-img-shadow);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-cta-banner);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--color-on-photo); margin-bottom: 1rem; }
.cta-banner p { color: var(--color-on-photo-muted); max-width: 560px; margin: 0 auto 2rem; }
[data-theme="dark"] .cta-banner p { color: rgba(255,255,255,0.75); }
:root .cta-banner p { color: #ffffff; font-weight: 600; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.page-hero .section-label { margin-bottom: 0.5rem; }
.page-hero .section-label a { color: var(--color-accent); }
.page-hero h1 { color: var(--color-text); }
.page-subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}
.page-home .hero { padding-top: 0; }

/* --- Prose (content pages) --- */
.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--color-accent); }
.prose p, .prose li { color: var(--color-muted); }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ul li { margin-bottom: 0.5rem; }
.prose strong { color: var(--color-text); }

/* --- Services Page --- */
.services-section { margin-bottom: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--color-border); }
.services-section:last-child { border-bottom: none; margin-bottom: 0; }
.services-section h2 { color: var(--color-text); margin-bottom: 1rem; }
.services-section h2 .num {
  font-size: 0.75em;
  color: var(--color-accent);
  margin-right: 0.4em;
  opacity: 0.7;
}

/* --- Portfolio Categories (list) --- */
.portfolio-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.port-cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  aspect-ratio: 3/2;
  background: var(--color-surface2);
}
.port-cat-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.port-cat-card:hover .port-cat-img { transform: scale(1.06); }
.port-cat-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-grad);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.port-cat-overlay h2 {
  font-size: 1.6rem;
  color: var(--color-on-photo);
  margin-bottom: 0.25rem;
}
.port-cat-overlay p { color: var(--color-on-photo-muted); font-size: 0.9rem; margin: 0; }

/* --- Photo Grid / Gallery --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.photo-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface2);
}
.photo-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease, opacity 0.25s ease;
  opacity: 0.85;
}
.photo-item:hover .photo-thumb { transform: scale(1.07); opacity: 1; }

.subgallery { margin-bottom: 4rem; }
.subgallery-title {
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.subgallery-desc { color: var(--color-muted); margin-bottom: 1.5rem; }

/* --- Before / After Pairs --- */
.ba-pairs {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.ba-pair-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.ba-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ba-photo {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface2);
}
.ba-photo .photo-thumb { opacity: 1; }
.ba-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.35em 0.85em;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-on-photo);
  border-radius: var(--radius);
  background: var(--color-tag-bg);
  border: 1px solid var(--color-border);
}
.ba-tag-after {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.port-desc { margin-bottom: 3rem; }

/* --- List page (generic) --- */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.list-card a { display: block; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--transition), transform var(--transition); }
.list-card a:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.list-card-img { height: 200px; background-size: cover; background-position: center; }
.list-card-body { padding: 1.5rem; }
.list-card-body h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.list-card-body p { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--color-lightbox-bg);
  cursor: pointer;
}
.lightbox-backdrop.open { display: block; }
.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1400px);
  max-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 90svh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 25px 80px rgba(0,0,0,0.8);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: var(--color-lightbox-ctrl);
  border: 1px solid var(--color-border);
  color: var(--color-on-photo);
  cursor: pointer;
  z-index: 10000;
  transition: background var(--transition);
  line-height: 1;
  border-radius: 50%;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--color-accent); border-color: var(--color-accent); }
.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.8rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.lightbox-counter { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 0.1em; color: var(--color-muted); z-index: 10000; }

/* --- Footer --- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand p { color: var(--color-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 0.25rem;
}
.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-accent); }
.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-info { padding-top: 0.5rem; }
.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.contact-form-wrap h2 {
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.btn-full { width: 100%; justify-content: center; }
.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.form-note a { color: var(--color-accent); text-decoration: underline; }

/* --- Form States: success / error --- */
.form-success,
.form-error {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-success { display: none; }
.form-error:empty { display: none; }
.contact-form-wrap.is-success .form-success { display: block; }
.contact-form-wrap.is-success #contact-form { display: none; }
.form-success {
  background: var(--color-form-success);
  border: 1px solid var(--color-accent);
  color: var(--color-text);
}
.form-success strong { color: var(--color-accent); display: block; margin-bottom: 0.25rem; }
.form-error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid #dc3545;
  color: #ffb4ba;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0 1.5rem; }
  .main-nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
  .main-nav li:last-child a { border-bottom: none; }

  .about-strip-inner { grid-template-columns: 1fr; }
  .about-strip-image { order: -1; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-wrap { order: -1; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }

  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .ba-pair-grid { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .portfolio-categories { grid-template-columns: 1fr; }
  .portfolio-preview-grid { grid-template-columns: 1fr; }
}
