/* ============================================================
   Doug Snyder Painting, LLC — stylesheet
   Design: warm neutral base, deep navy + forest green + terracotta
   accent, serif/sans type pairing (system fonts, no external deps)
   ============================================================ */

:root {
  --navy: #182a3d;
  --navy-dark: #0e1c2b;
  --forest: #2f4d3a;
  --forest-dark: #223a2b;
  --terracotta: #b96a35;
  --terracotta-dark: #9a5427;
  --cream: #faf6ef;
  --cream-alt: #f2ead9;
  --cream-deep: #e9dfc8;
  --ink: #23303a;
  --ink-light: #5a6a74;
  --white: #ffffff;
  --border: #ddd3bd;
  --shadow: 0 12px 30px -14px rgba(14, 28, 43, 0.35);
  --radius: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--forest); text-decoration: underline; text-decoration-color: rgba(47,77,58,0.35); }
a:hover { text-decoration-color: currentColor; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.15;
}
.brand:hover { text-decoration: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream-deep);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(250,246,239,0.4);
  color: var(--cream);
  padding: 0.5em 0.75em;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-toggle .bars {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--cream);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.main-nav {
  display: none;
  width: 100%;
}
.main-nav.is-open { display: block; }

.main-nav ul {
  list-style: none;
  margin: 0.75rem 0 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-top: 1px solid rgba(250,246,239,0.15);
}

.main-nav a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  padding: 0.65em 0.2em;
  font-size: 1rem;
  border-bottom: 1px solid rgba(250,246,239,0.08);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--terracotta);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--terracotta);
  border-radius: var(--radius);
  padding: 0.6em 1em !important;
  text-align: center;
  margin-top: 0.4em;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--terracotta-dark); color: var(--white) !important; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; width: auto; }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    border-top: none;
    margin: 0;
  }
  .main-nav a {
    border-bottom: none;
    padding: 0.3em 0;
  }
  .nav-cta {
    margin-top: 0;
  }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 4rem;
  max-width: 720px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(24,42,61,0.92) 10%, rgba(14,28,43,0.75) 100%);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--cream-deep);
  margin-bottom: 0.9rem;
}
.hero h1 { color: var(--white); }
.hero .lead {
  font-size: 1.12rem;
  color: #dfe6ea;
  max-width: 54ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------------- Sections ---------------- */
section { padding: 3.5rem 0; }
.section-alt { background: var(--cream-alt); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2 { color: var(--white); }
.section-navy a { color: var(--cream-deep); }

.section-head {
  max-width: 62ch;
  margin: 0 0 2rem;
}
.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.section-navy .section-head .kicker { color: var(--terracotta); }

/* ---------------- Cards / grids ---------------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  font-size: 1.3rem;
}

/* ---------------- Trust strip ---------------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--navy);
}
.trust-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--forest);
  flex: none;
}

/* ---------------- Redesign concept points ---------------- */
.concept-point {
  background: var(--white);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.concept-point p.point-text {
  font-size: 1.02rem;
  color: var(--navy);
}

/* ---------------- Callout / flagged-info box ---------------- */
.callout {
  background: #fbf1df;
  border: 1px solid #e3c584;
  border-left: 5px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}
.callout h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--terracotta-dark);
}
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* ---------------- Gallery ---------------- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream-alt);
  cursor: zoom-in;
  padding: 0;
  display: block;
  width: 100%;
  font: inherit;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(14,28,43,0.85), rgba(14,28,43,0));
  color: var(--white);
  font-size: 0.78rem;
  padding: 1.4rem 0.6rem 0.5rem;
  text-align: left;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14,20,28,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 2rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: var(--cream);
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------------- FAQ / accordion ---------------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--terracotta);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-light);
}

/* ---------------- Service list page ---------------- */
.service-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail .icon-badge { margin-bottom: 0; }

/* ---------------- Contact / info blocks ---------------- */
.info-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .info-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label {
  font-weight: 700;
  color: var(--navy);
  min-width: 6.5em;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.area-tag {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.4em 0.85em;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-dark);
  color: #c9d3da;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.site-footer a { color: #c9d3da; text-decoration: none; }
.site-footer a:hover { color: var(--terracotta); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #93a2ac;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------------- Page header (interior pages) ---------------- */
.page-header {
  background: var(--forest);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.page-header h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-header p { color: #dfe9e1; max-width: 60ch; margin-bottom: 0; }
.breadcrumb {
  font-size: 0.82rem;
  color: #cfe0d5;
  margin-bottom: 0.8rem;
}
.breadcrumb a { color: #cfe0d5; }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 0.5rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
