/* Bay Carpentry — design system
   Black, white, deep bay blue. Mobile-first. No frameworks. */

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --white: #f5f5f3;
  --white-dim: #c9c9c6;
  --bay: #3d5a6c;
  --bay-light: #5b7d92;
  --bay-dark: #26394450;
  --gold: #c9a15a;
  --gold-light: #dcb972;
  --border: #26282b;
  --radius: 4px;
  --max-width: 1200px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* room for sticky mobile bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { color: var(--white-dim); }

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

section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  section { padding: 96px 0; }
}

.eyebrow {
  color: var(--bay-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p {
  margin-top: 14px;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--bay);
  color: var(--white);
}

.btn-primary:hover { background: var(--bay-light); }

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--white-dim); }

.btn-block { width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

@media (min-width: 480px) {
  .nav { padding: 16px 20px; }
}

@media (max-width: 899px) {
  .nav-actions .btn-primary {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-logo span { color: var(--bay-light); }

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-logo-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo-word {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  white-space: nowrap;
}

@media (min-width: 420px) {
  .nav-logo-text { display: flex; }
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--bay-light); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .nav-actions { gap: 16px; }
}

.nav-phone {
  display: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-light);
  white-space: nowrap;
}

.nav-phone:hover { color: var(--gold); }

@media (min-width: 560px) {
  .nav-phone { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
}

.nav-mobile-panel.open { display: flex; }

.nav-mobile-panel a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}

@media (min-width: 900px) {
  .nav-mobile-panel { display: none !important; }
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero { padding: 120px 0 90px; }
}

.hero-eyebrow {
  color: var(--bay-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 { max-width: 780px; }

.hero .lede {
  margin-top: 20px;
  max-width: 620px;
  font-size: 1.15rem;
}

.hero .btn-group { margin-top: 32px; }

.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--white-dim);
}

/* Hero with photo background */
.hero-photo {
  position: relative;
  padding: 0;
  background-size: cover;
  background-position: center 30%;
  border-bottom: 1px solid var(--border);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.72) 45%, rgba(10,10,10,0.88) 100%);
}

.hero-photo .container {
  position: relative;
  padding-top: 72px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .hero-photo .container { padding-top: 130px; padding-bottom: 110px; }
}

.hero-photo .lede { color: var(--white-dim); }

/* Trust bar */
.trust-bar {
  background: var(--black-soft);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: center;
}

@media (min-width: 768px) {
  .trust-bar .container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white-dim);
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

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

@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.service-card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.service-card:hover { border-color: var(--bay); }

.service-card-img {
  aspect-ratio: 16/10;
}

.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 { margin-bottom: 10px; }
.service-card-body p { flex: 1; margin-bottom: 18px; }

.card-link {
  font-weight: 600;
  color: var(--bay-light);
  font-size: 0.92rem;
}

.card-link::after { content: " \2192"; }

/* Why choose us / stats */
.diff-item {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.diff-item .num {
  font-family: var(--font-head);
  color: var(--bay-light);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--bay-light);
  min-width: 48px;
}

/* Reviews placeholder */
.review-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--white-dim);
  font-size: 0.92rem;
}

.review-card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.review-stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.rating-line {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.stat-callout {
  color: var(--gold);
  font-family: var(--font-head);
}

.heading-accent {
  color: var(--gold-light);
}

.review-name {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.gallery-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10,10,10,0.75);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Locations */
.location-card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.location-card h3 { margin-bottom: 10px; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--bay-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding-bottom: 20px;
}

/* Final CTA band */
.cta-band {
  background: var(--bay);
  text-align: center;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(245,245,243,0.85); margin-top: 14px; }
.cta-band .btn-group { justify-content: center; margin-top: 28px; }
.cta-band .btn-outline { border-color: rgba(245,245,243,0.5); }
.cta-band .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.cta-band .btn-primary { background: var(--black); }
.cta-band .btn-primary:hover { background: var(--black-soft); }

/* Footer */
.site-footer {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-logo span { color: var(--bay-light); }

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.92rem;
  color: var(--white-dim);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--white-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* Sticky mobile CTA bar */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black-soft);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .mobile-cta-bar { display: none; }
}

.mobile-cta-bar a {
  padding: 16px 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}

.mobile-cta-bar .call-btn {
  background: var(--black-soft);
  color: var(--white);
  border-right: 1px solid var(--border);
}

.mobile-cta-bar .book-btn {
  background: var(--bay);
  color: var(--white);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--white-dim);
  padding: 20px 0 0;
}

.breadcrumbs a:hover { color: var(--bay-light); }

.breadcrumbs .sep { margin: 0 6px; }

/* Forms */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.96rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--bay-light);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--white-dim);
  margin-top: 16px;
}

/* Pricing */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  white-space: nowrap;
}

.pricing-table th {
  color: var(--white-dim);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.pricing-note {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
  color: var(--white-dim);
  font-size: 0.92rem;
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.blog-card .eyebrow { margin-bottom: 14px; }
.blog-card h3 { margin-bottom: 10px; }

.blog-post {
  max-width: 720px;
  margin: 0 auto;
}

.blog-post h2 { margin-top: 40px; margin-bottom: 16px; }
.blog-post p { margin-bottom: 20px; font-size: 1.02rem; }
.blog-post ul, .blog-post ol { color: var(--white-dim); margin: 0 0 20px 20px; }
.blog-post li { margin-bottom: 8px; }

.blog-cta {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 40px 0;
}

.blog-cta p { margin-bottom: 18px; }

/* Placeholder graphic */
.ph-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--black-soft), #1c2226);
  color: var(--white-dim);
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
}

.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* Reviews strip (homepage, scrollable) */
.reviews-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.reviews-strip .review-card {
  min-width: 260px;
  max-width: 300px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.reviews-strip .review-town {
  font-size: 0.78rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Learning center */
.learn-intro {
  max-width: 680px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.article-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color 0.15s ease;
}

.article-row:hover { border-color: var(--bay); }

.article-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  justify-content: space-between;
}

.article-row h3 { font-size: 1.15rem; }

.article-read-time {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.article-row p { margin: 0; }

.learn-cta-inline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
}

/* Estimator */
.estimator-card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .estimator-grid { grid-template-columns: 1fr 1fr; }
}

.estimator-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: none;
}

.estimator-result.visible { display: block; }

.estimator-figure {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.estimator-note {
  font-size: 0.85rem;
  color: var(--white-dim);
}

.estimator-disclaimer {
  font-size: 0.78rem;
  color: var(--white-dim);
  margin-top: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.estimator-status {
  margin-top: 16px;
  font-size: 0.85rem;
  display: none;
}

.estimator-status.visible { display: block; }

.estimator-status.error { color: #d98c8c; }
.estimator-status.success { color: var(--gold-light); }

/* Trust/rating band with photo background */
.trust-photo-band {
  position: relative;
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--border);
}

.trust-photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,0.7));
}

.trust-photo-band .container {
  position: relative;
  text-align: center;
}

.trust-photo-band h2 { color: var(--white); }

.trust-checklist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

.trust-checklist-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-checklist-item::before {
  content: "\2713";
  color: var(--gold);
}
