/*
Theme Name: AMCO Concrete
Author: AMCO Concrete
Description: Lightweight, mobile-first WordPress theme for AMCO Concrete serving Southern California counties.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: amco-concrete
*/

:root {
  --amco-orange: #ef6c22;
  --amco-orange-dark: #cc4e0d;
  --amco-charcoal: #35383b;
  --amco-steel: #666a6e;
  --amco-light: #f6f6f4;
  --amco-white: #ffffff;
  --amco-border: #dedede;
  --amco-shadow: 0 12px 30px rgba(0,0,0,.10);
  --amco-radius: 14px;
  --amco-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--amco-charcoal);
  background: var(--amco-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amco-orange-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--amco-orange); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #111; outline-offset: 3px; }

.container { width: min(calc(100% - 32px), var(--amco-max)); margin: 0 auto; }
.section { padding: 74px 0; }
.section--light { background: var(--amco-light); }
.section-title { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.section-lead { max-width: 760px; margin: 0 0 34px; font-size: 1.1rem; color: #555; }
.eyebrow { margin: 0 0 10px; color: var(--amco-orange-dark); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .83rem; }

.site-header { position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,.08); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo img { display: block; width: 360px; max-width: 44vw; }
.primary-nav ul { display: flex; gap: 26px; align-items: center; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--amco-charcoal); font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--amco-orange-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-link { font-weight: 900; color: var(--amco-charcoal); text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; border: 1px solid var(--amco-border); background: #fff; border-radius: 9px; padding: 9px 12px; font-weight: 800; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 9px; font-weight: 850; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amco-orange); color: #fff; }
.btn-primary:hover { background: var(--amco-orange-dark); color: #fff; }
.btn-dark { background: var(--amco-charcoal); color: #fff; }
.btn-dark:hover { background: #1f2123; color: #fff; }
.btn-outline { background: #fff; color: var(--amco-charcoal); border-color: var(--amco-charcoal); }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(35,37,39,.97) 0%, rgba(53,56,59,.90) 52%, rgba(53,56,59,.58) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 12px),
    #35383b;
}
.hero::after { content: ""; position: absolute; inset: auto -140px -160px auto; width: 460px; height: 460px; border: 80px solid rgba(239,108,34,.15); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; min-height: 620px; padding: 74px 0; }
.hero h1 { margin: 0 0 18px; max-width: 820px; font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.04em; }
.hero p { max-width: 720px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: #ececec; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.hero-badge { padding: 8px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .92rem; font-weight: 750; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { background: #fff; color: var(--amco-charcoal); border-radius: var(--amco-radius); padding: 30px; box-shadow: var(--amco-shadow); }
.hero-card h2 { margin-top: 0; font-size: 1.75rem; }
.hero-card .btn { width: 100%; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card { padding: 28px; background: #fff; border: 1px solid var(--amco-border); border-radius: var(--amco-radius); box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.icon-chip { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(239,108,34,.12); color: var(--amco-orange-dark); border-radius: 12px; font-size: 1.35rem; font-weight: 900; }

.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.license-panel { background: var(--amco-charcoal); color: #fff; border-radius: var(--amco-radius); padding: 36px; }
.license-panel img { background: #fff; border-radius: 10px; padding: 10px; }
.license-panel .license-number { font-size: 1.2rem; font-weight: 900; margin-top: 22px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding: 8px 0 8px 32px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--amco-orange); font-weight: 900; }

.process { counter-reset: steps; }
.process .card { position: relative; padding-top: 74px; }
.process .card::before { counter-increment: steps; content: counter(steps); position: absolute; top: 24px; left: 28px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--amco-orange); color: #fff; font-weight: 900; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { overflow: hidden; border: 1px solid var(--amco-border); border-radius: var(--amco-radius); background: #fff; }
.project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.project-card-body { padding: 18px; }

.faq details { border-top: 1px solid var(--amco-border); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--amco-border); }
.faq summary { cursor: pointer; font-weight: 850; font-size: 1.08rem; }
.faq p { margin-bottom: 0; max-width: 840px; }

.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.contact-card { padding: 30px; background: var(--amco-charcoal); color: #fff; border-radius: var(--amco-radius); }
.contact-card a { color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 750; margin-bottom: 5px; }
input, textarea, select { width: 100%; border: 1px solid #cfcfcf; border-radius: 8px; padding: 12px; background: #fff; color: #222; }
textarea { min-height: 130px; resize: vertical; }
.form-field { margin-bottom: 14px; }
.form-note { font-size: .86rem; color: #666; }
.notice { border-left: 4px solid var(--amco-orange); background: #fff5ef; padding: 12px 14px; margin-bottom: 18px; }

.cta-band { background: var(--amco-orange); color: #fff; }
.cta-band .container { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-band p { margin: 8px 0 0; font-size: 1.1rem; }

.site-footer { background: #242628; color: #ddd; padding: 54px 0 90px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 34px; }
.site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-logo { width: 300px; background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 18px; }
.footer-meta { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: .9rem; color: #aaa; }
.mobile-callbar { display: none; }

.page-hero { padding: 86px 0 52px; background: var(--amco-charcoal); color: #fff; }
.page-hero h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.page-content { padding: 58px 0 84px; }
.page-content h2 { margin-top: 1.8em; }

@media (max-width: 980px) {
  .header-actions .btn, .header-actions .phone-link { display: none; }
  .menu-toggle { display: inline-block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 86px; display: none; background: #fff; border-bottom: 1px solid var(--amco-border); padding: 18px 24px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-logo img { max-width: 66vw; }
  .hero-inner, .why-grid, .contact-wrap { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; }
  .hero-card { max-width: 650px; }
  .grid-3, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 58px 0; }
  .header-inner { min-height: 74px; }
  .primary-nav { top: 74px; }
  .site-logo img { max-width: 72vw; }
  .hero-inner { padding: 54px 0; gap: 34px; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 4.2rem); }
  .grid-3, .grid-2, .project-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .cta-band .container { padding: 38px 0; min-height: auto; flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 110px; }
  .mobile-callbar { position: fixed; z-index: 1000; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -6px 18px rgba(0,0,0,.18); }
  .mobile-callbar a { display: grid; place-items: center; min-height: 60px; font-weight: 900; text-decoration: none; }
  .mobile-callbar .call { background: var(--amco-charcoal); color: #fff; }
  .mobile-callbar .quote { background: var(--amco-orange); color: #fff; }
}


/* Expanded page system */
.page-content > .container > :first-child { margin-top: 0; }
.page-content h2 { line-height: 1.18; }
.page-content h2 a, .card h2 a, .card h3 a { color: var(--amco-charcoal); text-decoration: none; }
.page-content h2 a:hover, .card h2 a:hover, .card h3 a:hover { color: var(--amco-orange-dark); }
.text-link { font-weight: 800; }
.service-link-grid { margin-top: 34px; }
.service-link-grid .card { height: 100%; }
.content-band {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 38px;
  align-items: start;
  margin: 54px 0 0;
  padding: 38px;
  border-radius: var(--amco-radius);
  background: var(--amco-light);
  border: 1px solid var(--amco-border);
}
.content-band h2, .content-band h3 { margin-top: 0; }
.page-cta {
  margin-top: 54px;
  padding: 38px;
  border-radius: var(--amco-radius);
  background: var(--amco-charcoal);
  color: #fff;
}
.page-cta h2 { margin-top: 0; color: #fff; }
.page-cta a:not(.btn) { color: #fff; }
.page-cta .btn { margin-top: 8px; }
.project-card h3 a { color: var(--amco-charcoal); text-decoration: none; }
.project-card h3 a:hover { color: var(--amco-orange-dark); }
.project-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  padding: 24px;
  background: linear-gradient(135deg, #3d4043, #5a5e61);
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: .02em;
}
.project-empty { max-width: 760px; }
.amco-estimate-form .btn { width: 100%; }
.page-content .contact-card h2 { color: #fff; margin-top: 0; }
.page-content .contact-card .eyebrow { margin-bottom: 6px; }
.page-content .card > h2:first-child,
.page-content .card > h3:first-child { margin-top: 0; }
.page-content ul.check-list { max-width: 880px; }

@media (max-width: 980px) {
  .content-band { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .content-band, .page-cta { padding: 26px; }
}

/* v1.2 local landing pages */
.location-grid { margin-top: 32px; }
.location-grid .card { height: 100%; }
.local-areas .text-link { font-weight: 700; }


/* v1.3 Concrete Construction Guide */
.guide-home .card { height: 100%; }
.guide-alert, .guide-note {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--amco-orange);
  background: #fff6f0;
  border-radius: 0 10px 10px 0;
}
.guide-note { background: var(--amco-light); }
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 34px 0 46px;
  padding: 18px;
  border: 1px solid var(--amco-border);
  border-radius: var(--amco-radius);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.guide-toc strong { margin-right: 8px; }
.guide-toc a { padding: 7px 10px; border-radius: 7px; background: var(--amco-light); color: var(--amco-charcoal); font-weight: 750; text-decoration: none; }
.guide-toc a:hover { background: #ffe8db; color: var(--amco-orange-dark); }
.guide-section { scroll-margin-top: 110px; margin-top: 64px; }
.guide-section > h2 { margin-top: 0; }
.table-wrap { width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid var(--amco-border); border-radius: 12px; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td { padding: 15px 17px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--amco-border); }
.data-table th { background: var(--amco-charcoal); color: #fff; font-size: .94rem; letter-spacing: .01em; }
.data-table tbody tr:nth-child(even) { background: #fafafa; }
.data-table tr:last-child td { border-bottom: 0; }
.term-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.term-grid > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 15px 16px; border: 1px solid var(--amco-border); border-radius: 10px; background: #fff; }
.term-grid strong { color: var(--amco-orange-dark); }
.guide-timeline { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: guide-step; }
.guide-timeline li { position: relative; margin: 0 0 16px 22px; padding: 20px 20px 20px 58px; border: 1px solid var(--amco-border); border-radius: 12px; background: #fff; }
.guide-timeline li::before { counter-increment: guide-step; content: counter(guide-step); position: absolute; left: -22px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--amco-orange); color: #fff; font-weight: 900; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.guide-timeline span { display: block; margin-top: 4px; color: #555; }
.reference-box { padding: 30px; border: 1px solid var(--amco-border); border-radius: var(--amco-radius); background: var(--amco-light); }
.reference-box h2 { margin-top: 0; }
.reference-links a { font-weight: 800; }
.guide-next { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--amco-border); font-weight: 800; }
.page-content .guide-section .grid-2, .page-content .guide-section .grid-3 { margin-top: 24px; }
@media (max-width: 680px) {
  .guide-toc { align-items: stretch; }
  .guide-toc strong { width: 100%; }
  .guide-toc a { flex: 1 1 45%; text-align: center; }
  .term-grid { grid-template-columns: 1fr; }
  .term-grid > div { grid-template-columns: 1fr; gap: 3px; }
  .guide-next { flex-direction: column; }
  .guide-timeline li { margin-left: 14px; padding-left: 48px; }
}
