/* DEPENDABLE CONCRETE, INC. - BASE STYLES & TOKENS */

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;600&family=Cousine:wght@400;700&family=Josefin+Slab:wght@700&display=swap');

:root {
  --color-pine-black: #2B362F;
  --color-pine-green: #354D43;
  --color-cream: #F3EDD2;
  --color-sage-grey: #5B6E64;
  --color-white: #FFFFFF;
  --color-sage-wash: #ECEFE9;
  
  --font-display: 'Josefin Slab', serif;
  --font-body: 'Albert Sans', sans-serif;
  --font-mono: 'Cousine', monospace;
  
  --layout-max-width: 1400px;
  --spacing-section: 6rem;
  --spacing-section-mobile: 4rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body); background-color: var(--color-white);
  color: var(--color-pine-black); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--color-pine-green); line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p { max-width: 65ch; margin-bottom: 1rem; }
a { color: var(--color-pine-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* UTILITIES */
.kicker { font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-sage-grey); display: block; margin-bottom: 1rem; font-weight: 700;}
.kicker-cream { color: var(--color-cream); }
.text-cream { color: var(--color-cream); }
.text-white { color: var(--color-white); }
.bg-pine-black { background-color: var(--color-pine-black); }
.bg-pine-green { background-color: var(--color-pine-green); }
.bg-sage-wash { background-color: var(--color-sage-wash); }
.bg-cream { background-color: var(--color-cream); }

.container { max-width: var(--layout-max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--spacing-section) 0; }
@media (max-width: 768px) { .section { padding: var(--spacing-section-mobile) 0; } }

.stone-texture {
  background-image: linear-gradient(rgba(53, 77, 67, 0.9), rgba(53, 77, 67, 0.4)), url('img/bg-banner.jpg');
  background-size: cover;
  background-position: center bottom;
  color: var(--color-white);
}
.stone-texture h1, .stone-texture h2, .stone-texture h3 { color: var(--color-cream); }
.stone-texture p { color: var(--color-white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 1rem 2rem; transition: all 0.2s ease;
  cursor: pointer; border: 2px solid transparent; font-size: 0.9rem;
}
.btn-primary { background-color: var(--color-pine-green); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-pine-black); text-decoration: none; color: var(--color-white); }
.btn-secondary { background-color: transparent; color: var(--color-pine-green); border-color: var(--color-pine-green); }
.btn-secondary:hover { background-color: var(--color-pine-green); color: var(--color-white); text-decoration: none; }
.btn-cream { background-color: var(--color-cream); color: var(--color-pine-black); }
.btn-cream:hover { background-color: var(--color-white); text-decoration: none; color: var(--color-pine-black); }
.btn-cream-outline { background-color: transparent; color: var(--color-cream); border-color: var(--color-cream); }
.btn-cream-outline:hover { background-color: var(--color-cream); color: var(--color-pine-black); text-decoration: none; }
.full-width { width: 100%; }

/* LUCIDE ICONS */
.lucide { width: 1.25rem; height: 1.25rem; }

/* PREVIEW RIBBON */
.preview-ribbon { background: #111; color: #fff; font-size: 0.875rem; padding: 0.75rem 0; z-index: 9999; position: relative; }
.preview-ribbon-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.preview-actions { display: flex; gap: 0.5rem; align-items: center; }
.preview-chip { background: #333; color: #fff; padding: 0.25rem 0.75rem; border-radius: 99px; font-weight: 600; text-decoration: none; font-size: 0.75rem;}
.preview-dismiss { background: transparent; border: 1px solid #555; color: #ccc; padding: 0.25rem 0.75rem; border-radius: 99px; cursor: pointer; font-size: 0.75rem;}

/* HEADER (MASTHEAD) */
.masthead { height: 76px; display: flex; align-items: center; padding: 0; position: relative; z-index: 50; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.logo { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; text-decoration: none; display: flex; flex-direction: column; }
.logo-dependable { color: var(--color-cream); font-size: 2rem; }
.logo-concrete { color: var(--color-white); font-size: 1.25rem; font-family: var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }

.desktop-nav { display: flex; gap: 1.5rem; align-items: center; }
.desktop-nav a { color: var(--color-white); font-weight: 600; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.05em; }
.desktop-nav a:hover { color: var(--color-cream); }
.masthead-cta { padding: 0.75rem 1.5rem; }

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .masthead-cta { display: none; }
}

/* MOBILE CALL BAR */
.mobile-call-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9900; background: var(--color-white); padding: 0.75rem; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
@media (max-width: 1024px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 120px; }
}

/* FOOTER */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-link { color: var(--color-cream); text-decoration: none; font-size: 1.5rem; font-family: var(--font-display); }

/* THE BASE LINE COMPONENT (Below-grade core cutaway) */
.baseline-diagram {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  border-left: 4px solid var(--color-pine-green);
  margin: 2rem 0;
  font-family: var(--font-mono);
}
.baseline-layer {
  padding: 12px 20px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  min-height: 64px;
  height: auto;
}
.baseline-layer::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
}
.layer-surface { background-color: #DDE2DE; } /* Sealed finish */
.layer-surface::before { background-color: #8C9991; }
.layer-slab { background-color: #EAECE9; } /* Poured Concrete */
.layer-slab::before { background-color: #B4BCB7; }
.layer-reinforcement { background-color: #F2F4F1; border-bottom: 2px dashed #999; } /* Wire mesh */
.layer-base { background-color: #D6CCC2; } /* Gravel/stone */
.layer-base::before { background-color: #A69586; }
.layer-subgrade { background-color: #5C4D42; color: var(--color-white); } /* Dirt */
.layer-subgrade::before { background-color: #3A2F27; }

.layer-label { font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; }
.layer-desc { font-family: var(--font-body); font-size: 0.875rem; color: #5B6E64; font-weight: 400; margin-top: 0.25rem; }
.layer-subgrade .layer-desc { color: #F3EDD2; }
@media (max-width: 768px) { .layer-desc { font-size: 12px; } }

/* Ground glyph for kickers */
.ground-glyph { display: inline-block; width: 24px; height: 12px; vertical-align: middle; margin-right: 8px; border-bottom: 2px solid currentColor; position: relative; }
.ground-glyph::before { content: ''; position: absolute; bottom: -6px; left: 4px; right: 4px; border-bottom: 2px solid currentColor; }
.ground-glyph::after { content: ''; position: absolute; bottom: -10px; left: 8px; right: 8px; border-bottom: 2px solid currentColor; }

/* COMPACT BASE LINE STRIP (For Hero Fold Base) */
.hero-baseline-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  height: 64px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--color-white);
}
.hbs-segment { padding: 0 0.5rem; display: flex; flex-direction: column; justify-content: center; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.hbs-segment:last-child { border-right: none; }
.hbs-label { font-weight: 700; font-size: 10px; line-height: 12px; }
.hbs-desc { font-weight: 400; font-size: 10px; line-height: 12px; font-family: var(--font-body); text-transform: lowercase; opacity: 0.9; }
@media (max-width: 768px) {
  .hbs-label { font-size: 10px; font-weight: 700; line-height: 12px; }
  .hbs-desc { font-size: 8px; line-height: 10px; }
  .hero-baseline-strip { min-height: 84px; height: auto; padding: 0; }
  .hbs-segment { padding: 6px 4px; }
}
.hbs-1 { background-color: #8C9991; }
.hbs-2 { background-color: #B4BCB7; color: var(--color-pine-black); }
.hbs-3 { background-color: #F2F4F1; color: var(--color-pine-black); }
.hbs-4 { background-color: #A69586; }
.hbs-5 { background-color: #3A2F27; }

/* INDEX HERO: THE STONE BANNER */
.hero-section { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.hero-content { height: calc(100svh - 50px - 76px - 64px); min-height: 500px; max-height: calc(820px - 64px); display: flex; }
.hero-left { flex: 0 0 54%; padding: 2rem 4rem 2rem 0; display: flex; flex-direction: column; justify-content: center; background-color: var(--color-white); }
@media (max-width: 1024px) { .hero-left { flex: 1; padding: 2rem 0; } }
.hero-right { flex: 0 0 46%; position: relative; padding: 2rem 0; display: flex; align-items: center; }
@media (max-width: 1024px) { .hero-right { display: none; } }

@media (min-width: 1200px) {
  .hero-content { display: grid; grid-template-columns: 54fr 46fr; column-gap: 56px; }
  .hero-left { padding-right: 0; }
  .hero-h1 { font-size: 52px; line-height: 1.08; max-width: 680px; }
}
.hero-photo-container { width: 100%; height: 100%; max-height: 566px; border: 8px solid var(--color-sage-wash); position: relative; overflow: hidden; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-caption { position: absolute; bottom: 0; left: 0; background-color: var(--color-cream); color: var(--color-pine-black); padding: 0.5rem 1rem; font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; z-index: 10; }
.hero-photo-mobile { display: none; }
@media (max-width: 1024px) {
  .hero-photo-mobile { display: block; margin: 0 20px 24px; position: relative; border: 6px solid var(--color-sage-wash); }
  .hero-photo-mobile .hero-photo { aspect-ratio: 16 / 9; object-fit: cover; display: block; }
  .hero-photo-caption-mobile { background-color: var(--color-cream); color: var(--color-pine-black); padding: 0 1rem; font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; height: 32px; display: flex; align-items: center; }
}
.hero-h1 { margin-bottom: 24px; font-size: 58px; line-height: 1.02; }
.hero-subhead { font-size: 1.125rem; margin-bottom: 24px; color: var(--color-pine-black); }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 24px; flex-wrap: wrap; }
.micro-trust { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; font-size: 0.75rem; font-family: var(--font-mono); color: var(--color-sage-grey); text-transform: uppercase; align-items: start; }
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero-h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.015em; }
  .micro-trust { grid-template-columns: 1fr; row-gap: 8px; position: static; margin: 16px 20px 0; transform: none; }
  .micro-trust-item { min-height: 24px; }
}
.micro-trust-item { display: flex; align-items: center; gap: 0.25rem; }

/* WHY LAYOUT */
.why-layout { display: flex; gap: 4rem; }
.why-lead { flex: 0 0 42%; }
.why-lead h3 { font-size: 2rem; margin-bottom: 1rem; }
.why-lead p { font-size: 1.125rem; }
.why-stacked { flex: 1; display: flex; flex-direction: column; }
.why-proof { padding: 1.5rem 0; border-bottom: 1px solid var(--color-sage-wash); }
.why-proof:first-child { padding-top: 0; }
.why-proof:last-child { border-bottom: none; padding-bottom: 0; }
.why-proof h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
@media (max-width: 768px) {
  .why-layout { flex-direction: column; gap: 2rem; }
  .why-lead h3 { font-size: 1.5rem; }
}

/* BASE LINE SECTION */
.baseline-section { background-color: var(--color-sage-wash); }
.baseline-flex { display: flex; gap: 4rem; align-items: center; }
@media (max-width: 1024px) { .baseline-flex { flex-direction: column; } }
.baseline-text { flex: 1; }
.baseline-visual { flex: 1; display: flex; justify-content: center; width: 100%; }

/* SERVICES LIST */
.services-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; margin: 2rem 0; }
.service-item { border-top: 1px solid var(--color-pine-green); padding: 20px 0; font-family: var(--font-display); font-size: 18px; color: var(--color-pine-black); font-weight: 700; }
@media (max-width: 768px) {
  .services-list { grid-template-columns: 1fr; }
}

/* REVIEWS */
.reviews-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
.reviews-col { display: flex; flex-direction: column; gap: 2rem; }
.offset-col { margin-top: 24px; }
.review-card { padding: 0 0 0 1.5rem; border-left: 2px solid var(--color-pine-green); background: transparent; }
.review-quote { font-family: var(--font-body); font-style: italic; margin-bottom: 1rem; }
.review-attr { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; color: var(--color-pine-green); }
@media (max-width: 768px) {
  .reviews-masonry { grid-template-columns: 1fr; }
  .offset-col { margin-top: 0; }
}

/* SERVICE AREA */
.towns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; font-family: var(--font-mono); font-size: 0.875rem; color: var(--color-sage-grey); margin-bottom: 2rem; }

/* MOCK FORM */
.mock-form { background: var(--color-white); padding: 2rem; border: 1px solid var(--color-sage-wash); }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; }
.form-input { width: 100%; padding: 0.75rem; border: 1px solid #ccc; font-family: var(--font-body); }
textarea.form-input { min-height: 100px; resize: vertical; }

/* POST-SERVICES ALIGNMENT */
.post-services {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 32px;
  row-gap: 14px;
}
.post-services-quote {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-pine-black);
  margin: 0;
}
.post-services-plate {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-sage-grey);
  margin: 0;
}

/* Mobile Masthead & Hero Layout Fixes */
@media (max-width: 768px) {
  .preview-ribbon { position: fixed; top: 0; left: 0; right: 0; height: 40px; padding: 0 1rem; display: flex; align-items: center; z-index: 9999; }
  .preview-ribbon-content { flex-wrap: nowrap; gap: 0.5rem; width: 100%; }
  .masthead { position: fixed; top: 40px; left: 0; right: 0; height: 60px; z-index: 9998; }
  body { padding-top: 100px; }
  .hero-content { height: auto; min-height: 0; max-height: none; }
  .hero-left { justify-content: flex-start; padding-top: 24px; padding-bottom: 0; }
  .hero-photo-mobile { margin-bottom: 8px; }
}
