/* F. Peters Excavating: site styles */

:root {
    --navy: #13294b;
    --navy-2: #1c3a68;
    --blue: #2a5aa8;
    --yellow: #f6b40e;
    --yellow-dark: #d99a00;
    --bronze: #b98546;
    --ink: #1d232b;
    --muted: #5c6672;
    --line: #e3e6ea;
    --tint: #f4f5f7;
    --white: #fff;
    --radius: 10px;
    --wrap: 1180px;
    --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --body: "Mulish", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); color: var(--ink); font-size: 17px; line-height: 1.65; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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

/* ---------- Buttons & links ---------- */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; text-decoration: none;
       background: var(--yellow); color: var(--navy); padding: 14px 26px; border-radius: 6px;
       border: 2px solid var(--yellow); transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-small { padding: 9px 16px; font-size: .95rem; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
               border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-family: var(--head); font-weight: 600; color: var(--navy); text-decoration: none; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--blue); }
.site-nav .btn { color: var(--navy); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides img.is-active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0;
               background: linear-gradient(90deg, rgba(10,24,46,.88) 0%, rgba(10,24,46,.65) 45%, rgba(10,24,46,.15) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; width: 100%; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; max-width: 13ch; letter-spacing: -.02em; }
.eyebrow { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--yellow); }
.lead { font-size: 1.2rem; max-width: 34ch; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.85);
                    background: transparent; cursor: pointer; transition: background .2s, transform .2s; }
.hero-dots button.is-active { background: var(--yellow); border-color: var(--yellow); transform: scale(1.15); }
.hero-dots button:hover { background: rgba(255,255,255,.6); }

/* ---------- Facts strip ---------- */
.facts { background: var(--navy); color: var(--white); border-top: 4px solid var(--yellow); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,.12); }
.fact:first-child { border-left: 0; }
.fact-n { font-family: var(--head); font-weight: 800; font-size: 1.9rem; color: var(--yellow); line-height: 1.1; }
.fact-l { color: rgba(255,255,255,.8); font-size: .95rem; }
.fact-cor { flex-direction: row; align-items: center; gap: 14px; }
.fact-cor img { height: 52px; width: auto; border-radius: 4px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.88); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.kicker { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--blue); margin-bottom: .6em; }
.section-dark .kicker { color: var(--yellow); }
.section-intro { color: var(--muted); max-width: 60ch; font-size: 1.08rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 0 18px 40px rgba(19,41,75,.18); }
.about-photo::before { content: ""; position: absolute; left: -16px; bottom: -16px; width: 45%; height: 45%;
                       background: var(--yellow); border-radius: var(--radius); z-index: -1; }

/* 70th anniversary */
.anniversary { padding: 80px 0; border-top: 4px solid var(--bronze); background: #fff; }
.anniversary-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.anniversary-grid img { width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.anniversary .kicker { color: var(--bronze); }
.anniversary h2 { color: #111; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line);
        border-top: 4px solid var(--yellow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(19,41,75,.1); }
.card svg { width: 44px; height: 44px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Equipment */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 14px; margin: 36px 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; }
.equip-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 24px; }
.equip-list li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; font-weight: 600; }
.equip-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; background: var(--yellow); border-radius: 2px; }

/* Safety */
.safety-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.beliefs { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 32px; }
.beliefs ul { list-style: none; padding: 0; margin: 0; }
.beliefs li { padding: 14px 0 14px 34px; position: relative; border-top: 1px solid rgba(255,255,255,.1); }
.beliefs li:first-child { border-top: 0; }
.beliefs li::before { content: "✓"; position: absolute; left: 0; top: 12px; color: var(--yellow); font-weight: 800; font-size: 1.1rem; }
.cor-badge { display: inline-flex; align-items: center; gap: 16px; margin-top: 12px; background: var(--white); color: var(--navy);
             padding: 10px 18px 10px 10px; border-radius: var(--radius); font-weight: 700; }
.cor-badge img { height: 56px; width: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.phone-big { display: inline-block; font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); text-decoration: none; border-bottom: 4px solid var(--yellow); }
.contact-list { margin: 0; background: var(--tint); border-radius: var(--radius); padding: 12px 32px; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list div:first-child { border-top: 0; }
.contact-list dt { font-family: var(--head); font-weight: 700; color: var(--navy); }
.contact-list dd { margin: 0; }
.contact-list dd a:not(.text-link) { color: var(--ink); font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: #0c1c35; color: rgba(255,255,255,.7); padding: 28px 0; font-size: .92rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner img { height: 34px; width: auto; background: var(--white); padding: 4px 8px; border-radius: 4px; }
.footer-inner p { margin: 0; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .equip-list { grid-template-columns: repeat(3, 1fr); }
    .about-grid, .safety-grid, .contact-grid, .anniversary-grid { grid-template-columns: 1fr; gap: 40px; }
    .anniversary-grid img { max-width: 300px; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
    body { font-size: 16px; }
    .header-inner { height: 66px; }
    .brand img { height: 40px; }
    .menu-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--white);
                flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line);
                box-shadow: 0 12px 24px rgba(0,0,0,.08); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav .btn { margin-top: 12px; text-align: center; border-bottom: 2px solid var(--yellow); }
    .hero { min-height: 560px; }
    .hero::after { background: linear-gradient(180deg, rgba(10,24,46,.55) 0%, rgba(10,24,46,.85) 100%); }
    .section, .anniversary { padding: 64px 0; }
    .cards { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .gallery img:first-child { grid-column: span 2; grid-row: span 2; }
    .equip-list { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
    .equip-list li { font-size: .95rem; }
    .contact-list { padding: 8px 20px; }
    .contact-list div { grid-template-columns: 80px 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .about-photo::before { left: -10px; bottom: -10px; }
}
