/* ==========================================================================
   Turner2 Renovations — Design System
   Warm tone · Plus Jakarta Sans + Crimson Pro · Balanced photography
   ========================================================================== */

:root {
  /* Brand palette, sourced from client reference */
  --t2-cream: #FBF3EB;
  --t2-cream-soft: #F5EAE1;
  --t2-tan: #E0CEC4;
  --t2-terracotta: #8D604C;
  --t2-terracotta-dark: #6E4A3A;
  --t2-ink: #2B221D;
  --t2-ink-soft: #5B4C43;
  --t2-line: #D9C7BC;
  --t2-white: #FFFFFF;

  /* Type */
  --font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Crimson Pro', Georgia, serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  /* Layout */
  --container-width: 1200px;
  --container-pad: 1.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Type scale */
  --fs-body: 1.125rem;
  --fs-small: 0.95rem;
  --fs-h1: clamp(2.4rem, 4.5vw, 3.6rem);
  --fs-h2: clamp(1.9rem, 3vw, 2.6rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--t2-cream);
  color: var(--t2-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--t2-ink);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 var(--space-2); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section {
  padding: var(--space-6) 0;
}
.section-tight { padding: var(--space-5) 0; }
.section-alt { background: var(--t2-cream-soft); }
.section-band { background: var(--t2-tan); }

.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--t2-terracotta);
  margin-bottom: var(--space-1);
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--t2-terracotta);
  color: var(--t2-white);
}
.btn-primary:hover { background: var(--t2-terracotta-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--t2-terracotta);
  color: var(--t2-terracotta-dark);
}
.btn-outline:hover { background: var(--t2-terracotta); color: var(--t2-white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--t2-cream);
  border-bottom: 1px solid var(--t2-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo-mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--t2-ink);
}
.logo-mark span { color: var(--t2-terracotta); }

.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.nav-list { display: flex; align-items: center; gap: var(--space-3); }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button.nav-top-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--t2-ink);
  background: none;
  border: none;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-list > li > a:hover,
.nav-list > li > button.nav-top-link:hover { color: var(--t2-terracotta-dark); }

.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--t2-white);
  border: 1px solid var(--t2-line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(43,34,29,0.12);
  padding: var(--space-2);
  min-width: 260px;
  max-height: 60vh;
  overflow-y: auto;
}
.dropdown-panel.is-open { display: block; }
.dropdown-panel .dd-group-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--t2-terracotta);
  padding: 0.4rem 0.6rem 0.2rem;
}
.dropdown-panel a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--t2-ink-soft);
}
.dropdown-panel a:hover { background: var(--t2-cream-soft); color: var(--t2-ink); }
.dropdown-panel.two-col { columns: 2; column-gap: 1rem; }
.dropdown-panel.two-col .dd-group-label { break-after: avoid; }

.nav-cta { flex-shrink: 0; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: 68px;
    right: -340px;
    bottom: 0;
    width: 320px;
    background: var(--t2-cream);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3);
    transition: right 0.25s ease;
    overflow-y: auto;
    gap: var(--space-3);
    box-shadow: -8px 0 24px rgba(43,34,29,0.15);
  }
  .main-nav.is-open { right: 0; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--t2-line); }
  .nav-list > li > a, .nav-list > li > button.nav-top-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0.2rem;
  }
  .dropdown-panel {
    position: static;
    box-shadow: none;
    border: none;
    width: 100%;
    columns: 1 !important;
    max-height: none;
    padding: 0 0 0.5rem 0.6rem;
  }
  .nav-cta { padding-top: var(--space-2); }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-6) 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-copy .supporting {
  font-size: 1.2rem;
  color: var(--t2-ink-soft);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.hero-media img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--t2-terracotta);
  color: var(--t2-cream);
  padding: var(--space-3) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  text-align: center;
}
.trust-grid dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
}
.trust-grid dd {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--t2-tan);
}
@media (max-width: 700px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Section headers ---------- */
.section-head { max-width: 60ch; margin-bottom: var(--space-4); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service cards ---------- */
.service-card {
  background: var(--t2-white);
  border: 1px solid var(--t2-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--t2-cream-soft);
  border-bottom: 1px solid var(--t2-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t2-ink-soft);
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-2);
}
.service-card-body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { margin-bottom: 0.4rem; }
.service-card-body h3 a:hover { color: var(--t2-terracotta-dark); }
.service-card-body p { font-size: 1rem; color: var(--t2-ink-soft); flex: 1; }
.service-card-body .card-link {
  margin-top: var(--space-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--t2-terracotta-dark);
}

/* ---------- Case study preview ---------- */
.case-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.case-preview img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .case-preview { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--t2-white);
  border: 1px solid var(--t2-line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.testimonial-card p.quote { font-size: 1.15rem; color: var(--t2-ink); }
.testimonial-card .attribution {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--t2-ink-soft);
  margin-top: var(--space-2);
}
.placeholder-note {
  border: 1px dashed var(--t2-terracotta);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  color: var(--t2-ink-soft);
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.process-step { border-top: 3px solid var(--t2-terracotta); padding-top: var(--space-2); }
.process-step h3 { font-size: 1.15rem; }
.process-step p { font-size: 1rem; color: var(--t2-ink-soft); }
@media (max-width: 900px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--t2-line);
  padding: var(--space-2) 0;
}
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .faq-answer { margin-top: 0.6rem; color: var(--t2-ink-soft); }

/* ---------- CTA section ---------- */
.cta-section {
  background: var(--t2-ink);
  color: var(--t2-cream);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}
.cta-section h2 { color: var(--t2-cream); }
.cta-section p { color: var(--t2-tan); margin-left: auto; margin-right: auto; }
.cta-section .hero-actions { justify-content: center; }
.form-placeholder {
  border: 1px dashed var(--t2-tan);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-top: var(--space-3);
  color: var(--t2-tan);
  font-family: var(--font-head);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--t2-ink);
  color: var(--t2-tan);
  padding-top: var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}
.footer-grid h4 {
  color: var(--t2-cream);
  font-size: 0.95rem;
  text-transform: none;
  margin-bottom: var(--space-2);
}
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--t2-tan); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--t2-cream); }
.footer-brand p { color: var(--t2-tan); font-size: 0.95rem; }
.footer-nap p { margin: 0 0 0.3rem; font-size: 0.95rem; }
.footer-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius-md);
}
.footer-bottom {
  border-top: 1px solid rgba(251,243,235,0.15);
  padding: var(--space-3) 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--t2-tan); }
.footer-bottom a:hover { color: var(--t2-cream); }

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