/*
Theme Name: Concrete Duluth
Theme URI: https://concreteduluth.com/
Description: Custom child theme for Concrete Duluth, a concrete contractor site with editable homepage, header, and footer.
Author: BuyerGain
Author URI: https://buyergain.com
Template: twentytwentyfive
Version: 1.1.2
*/

/* ══════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════ */
:root {
  --primary: #2D4654;
  --primary-rgb: 45, 70, 84;
  --primary-light: #3D5E70;
  --primary-dark: #1A2830;
  --accent: #B85024;
  --accent-rgb: 184, 80, 36;
  --accent-dark: #A34921;
  --accent-text: #A34921;
  --link: #2D4654;
  --link-dark: #1A2830;
  --charcoal: #1E2D36;
  --dark-bg: #141E24;
  --text: #1a1a1a;
  --text-secondary: #556670;
  --light-bg: #EFF2F4;
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --border: rgba(45, 70, 84, 0.12);
  --shadow: rgba(45, 70, 84, 0.08);
  --shadow-md: rgba(45, 70, 84, 0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.25s ease;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --section-padding: 64px 0;
  --container-width: 1160px;

  --text-base:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:    clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl:    clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  --text-2xl:   clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --text-hero:  clamp(2.5rem, 2rem + 2.5vw, 4rem);
}

/* ══════════════════════════════════
   RESET & BASE
   ══════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* TT5 reset overrides */
.wp-site-blocks { padding: 0 !important; }
.wp-block-group { margin-top: 0 !important; margin-bottom: 0 !important; }
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ══════════════════════════════════
   CONTAINER
   ══════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════════
   FOCUS
   ══════════════════════════════════ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ══════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  line-height: 1.2;
}
h1 { font-size: var(--text-hero); font-weight: 800; line-height: 1.08; }
h2 { font-size: var(--text-2xl); font-weight: 700; margin-bottom: 32px; padding-bottom: 4px; }
h3 { font-size: var(--text-xl); font-weight: 600; line-height: 1.45; margin-bottom: 12px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.65;
}
.section-subtitle.centered { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  /* Literal white, !important: the theme.json link color (#A34921) otherwise
     wins on .btn-primary anchors that sit in normal blocks (e.g. the 404 CTA),
     giving unreadable copper-on-copper text. */
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
  background: var(--accent-dark);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.2);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* ══════════════════════════════════
   SITE HEADER
   ══════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: 110px;
  display: flex;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 80px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.header-logo img {
  height: 90px;
  width: auto;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  object-fit: contain;
}
.scrolled .header-logo img { height: 60px; }

/* WP Navigation overrides in header */
.site-header .wp-block-navigation {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  gap: 20px;
}
.site-header .wp-block-navigation a {
  color: var(--charcoal);
  padding: 5px 0;
  position: relative;
  transition: color 0.3s;
}
.site-header .wp-block-navigation a:hover { color: var(--primary); }
.site-header .wp-block-navigation-link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(-50%);
}
.site-header .wp-block-navigation-link a:hover::after { width: 100%; }

/* Header CTA button */
.site-header .header-cta a {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
  font-size: 0.9rem !important;
  transition: all 0.25s ease;
}
.site-header .header-cta a:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.3);
}
.site-header .header-cta a::after { display: none !important; }

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 14vh, 180px) 0 clamp(60px, 8vh, 110px);
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(var(--primary-rgb), 0.85) 0%,
    rgba(26, 40, 48, 0.68) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 660px; }
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-text-link {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.hero-text-link:hover { border-color: var(--white); }
.hero-text-link svg { transition: transform 0.3s; }
.hero-text-link:hover svg { transform: translateX(4px); }

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s infinite;
}
.scroll-indicator svg { width: 28px; height: 28px; fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 2; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ══════════════════════════════════
   TRUST BAR
   ══════════════════════════════════ */
.trust-bar {
  background: var(--white);
  padding: 48px 20px;
  border-bottom: 1px solid var(--border);
}
.trust-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.trust-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center; min-width: 130px;
}
.trust-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.trust-icon svg { width: 36px; height: 36px; }
.trust-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--charcoal);
}

/* ══════════════════════════════════
   SERVICES
   ══════════════════════════════════ */
.services { padding: var(--section-padding); padding-left: 20px; padding-right: 20px; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 20px 32px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 50px; height: 50px; border-radius: 10px;
  background: var(--light-bg); display: flex; align-items: center;
  justify-content: center; margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.08); }
.service-icon svg { width: 26px; height: 26px; }
.service-card p { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.65; }
.card-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.3s;
}
.card-link::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.25s ease;
}
.card-link:hover::after { transform: translateX(5px); }
.card-link:hover { color: var(--accent-dark); }
.card-link svg { width: 15px; height: 15px; transition: transform 0.3s; }
.service-card:hover .card-link svg { transform: translateX(6px); }

/* ══════════════════════════════════
   WHY CHOOSE
   ══════════════════════════════════ */
.why-choose { padding: var(--section-padding); padding-left: 20px; padding-right: 20px; background: var(--light-bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.why-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  border-left: 0 solid var(--accent);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.why-card:hover {
  transform: translateY(-5px);
  border-left-width: 3px;
  box-shadow: 0 8px 28px var(--shadow);
}
.why-card .service-icon { background: rgba(var(--accent-rgb), 0.1); }
.why-card p { color: var(--text-secondary); line-height: 1.65; }

/* ══════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════ */
.testimonials { padding: var(--section-padding); padding-left: 20px; padding-right: 20px; background: var(--white); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 12px 32px var(--shadow);
}
.testimonial-quote-icon { width: 36px; height: 36px; margin-bottom: 6px; transition: transform 0.35s; }
.testimonial-card:hover .testimonial-quote-icon { transform: scale(1.15); }
.testimonial-quote-icon svg { width: 36px; height: 36px; fill: var(--accent); opacity: 0.45; }
.testimonial-text {
  font-style: italic; color: var(--text); line-height: 1.7;
  margin-bottom: 20px; font-size: var(--text-base);
}
.testimonial-author { font-family: var(--font-heading); font-weight: 600; color: var(--charcoal); }
.testimonial-role { font-size: 0.82rem; color: var(--text-secondary); }

/* ══════════════════════════════════
   CTA STRIP
   ══════════════════════════════════ */
.cta-strip {
  padding: 64px 20px;
  background: var(--primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.035);
}
.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════
   DIVIDERS
   ══════════════════════════════════ */
.divider-wave { position: relative; margin-top: -1px; }
.divider-wave svg { display: block; width: 100%; height: 48px; }
.divider-diagonal { position: relative; margin-top: -1px; }
.divider-diagonal svg { display: block; width: 100%; height: 40px; }

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.site-footer {
  background: var(--dark-bg);
  padding: 64px 20px 20px;
  color: rgba(255,255,255,0.65);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container-width);
  margin: 0 auto 48px;
}
.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}
.footer-brand p { margin-bottom: 12px; line-height: 1.65; font-size: 0.92rem; }
.footer-contact-item {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px; font-size: 0.92rem;
}
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-contact-item a { transition: color 0.3s; color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--accent); }
.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links a {
  display: block; padding: 4px 0; font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* WP footer navigation overrides */
.site-footer .wp-block-navigation { gap: 0; }
.site-footer .wp-block-navigation a {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  padding: 4px 0;
  display: block;
  transition: color 0.3s;
}
.site-footer .wp-block-navigation a:hover { color: var(--accent); }

/* ══════════════════════════════════
   MOBILE STICKY CTA
   ══════════════════════════════════ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--accent);
  padding: 11px 20px;
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--white); font-family: var(--font-heading); font-size: 1.05rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.mobile-cta svg { width: 18px; height: 18px; }

/* ══════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════ */
/* Visible by default: never gate content visibility on JS/scroll.
   LiteSpeed defer/combine can break the IntersectionObserver, which would
   leave whole homepage sections blank. The reveal is enhancement-only. */
.fade-in-section {
  opacity: 1 !important;
  transform: none !important;
}
.fade-in-section.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in-section { opacity: 1; transform: none; }
}

/* ══════════════════════════════════
   INNER PAGE CONTENT
   ══════════════════════════════════ */
.page-content-wrap {
  max-width: 820px;
  /* Clear the fixed header with padding-top, NOT margin-top: the global
     .wp-block-group{margin-top:0!important} reset zeroes any top margin,
     which slid the H1 up under the header. Padding is not reset. */
  margin: 0 auto 80px;
  padding: 148px 20px 0;
  font-size: 1.06rem;
  line-height: 1.78;
}
.page-content-wrap h1 {
  font-size: var(--text-2xl);
  margin-bottom: 24px;
  line-height: 1.12;
}
.page-content-wrap h2 {
  font-size: var(--text-xl);
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
}
.page-content-wrap h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}
.page-content-wrap p { margin-bottom: 1.1rem; }
/* Restore list markers stripped by the global ul/ol reset */
.page-content-wrap ul,
.page-content-wrap ol { margin: 0 0 1.1rem; padding-left: 1.5em; }
.page-content-wrap ul { list-style: disc; }
.page-content-wrap ol { list-style: decimal; }
.page-content-wrap li { margin-bottom: 0.5rem; padding-left: 0.25em; }
.page-content-wrap img { border-radius: var(--radius); margin: 1.5rem 0; }
.page-content-wrap figure { margin: 2rem 0; }
.page-content-wrap figure figcaption {
  font-size: 0.9rem; color: var(--text-secondary);
  margin-top: 8px; text-align: center;
}
.page-content-wrap table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.page-content-wrap th,
.page-content-wrap td {
  border: 1px solid var(--border);
  padding: 12px 16px; text-align: left;
}
.page-content-wrap th { background: var(--light-bg); }
.page-content-wrap a { color: var(--accent-text); text-decoration: underline; }
.page-content-wrap a:hover { color: var(--accent-dark); }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
/* WCAG 2.2 minimum 24px tap targets on touch layouts */
@media (max-width: 900px) {
  .mobile-cta { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-links a { padding: 6px 0; min-height: 24px; }
  .footer-contact-item a { display: inline-block; min-height: 24px; line-height: 1.6; }
  .card-link, .hero-text-link { min-height: 24px; }
  .site-header .wp-block-navigation a { min-height: 24px; }
}
@media (max-width: 600px) {
  .site-header { height: 80px; }
  .site-header.scrolled { height: 66px; }
  .header-logo img { height: 70px; max-height: 70px; width: auto; }
  .scrolled .header-logo img { height: 50px; }
  .hero { min-height: 70vh; padding-top: 90px; }
  .page-content-wrap { padding-top: 104px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .trust-items { gap: 20px; }
  .trust-item { min-width: 110px; }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 50px; }
}
