/* =========================================================
   Stone Oak Painters — Site Stylesheet
   Pure CSS, no external frameworks. Mobile-first, responsive.
   ========================================================= */

:root {
  --color-navy: #1c2b3a;
  --color-navy-dark: #121d28;
  --color-terracotta: #bf7a3d;
  --color-terracotta-dark: #a2652f;
  --color-cream: #f8f5ef;
  --color-white: #ffffff;
  --color-text: #2a2f35;
  --color-text-light: #5a6270;
  --color-border: #e2ddd2;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(28, 43, 58, 0.08);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--color-terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
}
.brand span { color: var(--color-terracotta); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--color-terracotta); text-decoration: none; }

.nav-phone {
  color: var(--color-terracotta);
  font-weight: bold;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding: 72px 0 64px;
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
  max-width: 900px;
  margin: 0 auto 18px;
}

.hero .subhead {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  color: #d7dde3;
}

.btn {
  display: inline-block;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 15px 32px;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--color-terracotta-dark); text-decoration: none; }

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  margin-left: 12px;
}
.btn-secondary:hover { background: var(--color-white); color: var(--color-navy); }

.hero-cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section {
  padding: 64px 0;
}

section.alt { background: var(--color-cream); }

.section-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-terracotta-dark);
  font-size: 0.82rem;
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-light); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Process Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 18px 10px;
}

.step .step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 12px;
}

.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--color-text-light); margin: 0; }

/* ---------- Trust Signals ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  background: var(--color-white);
  border-left: 4px solid var(--color-terracotta);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.trust-item h4 { margin-bottom: 6px; font-size: 1rem; }
.trust-item p { margin: 0; font-size: 0.9rem; color: var(--color-text-light); }

/* ---------- Placeholders (before/after, reviews, warranty) ---------- */
.placeholder-box {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  color: var(--color-text-light);
  background: var(--color-cream);
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ---------- Service Area List ---------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.area-list li a {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--color-navy);
  font-weight: 600;
}
.area-list li a:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta-dark);
  text-decoration: none;
}

.nearby-links { margin-top: 10px; }
.nearby-links a { margin-right: 14px; font-weight: 600; }

/* ---------- Contact Form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

form.quote-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

form.quote-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

form.quote-form input,
form.quote-form textarea,
form.quote-form select {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
}

form.quote-form textarea { min-height: 110px; resize: vertical; }

.contact-info h3 { margin-bottom: 14px; }
.contact-info p { margin-bottom: 10px; color: var(--color-text-light); }
.contact-info .phone-big {
  font-size: 1.6rem;
  color: var(--color-terracotta-dark);
  font-weight: bold;
  display: block;
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--color-navy-dark);
  color: #b9c1cb;
  padding: 48px 0 24px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #b9c1cb; }
.footer-grid a:hover { color: var(--color-terracotta); }

.footer-bottom {
  border-top: 1px solid #2c3c4c;
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #8b96a3;
}

/* ---------- Breadcrumb (city pages) ---------- */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--color-terracotta-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .placeholder-grid { grid-template-columns: repeat(2, 1fr); }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .nav-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav-links { gap: 14px; }
  .grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .placeholder-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .hero { padding: 52px 0 44px; }
  .btn-secondary { margin-left: 0; margin-top: 10px; }
}


/* ---------- Hero Photo (added) ---------- */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  opacity: 0.85;
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }

/* ---------- Card Photos (added) ---------- */
.card { overflow: hidden; padding: 0 0 26px; }
.card img { width: 100%; height: 170px; object-fit: cover; display: block; margin: 0 0 18px; }
.card h3 { margin: 18px 26px 10px; }
.card p { margin: 0 26px 0; }

/* ---------- Before/After Gallery (added) ---------- */
.gallery-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.gallery-box h4 { margin-bottom: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery-grid img { width: 100%; height: 90px; object-fit: cover; border-radius: 4px; display: block; }
