/* ===========================
   ARA Theme — Allied Recycled Aggregates
   =========================== */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: #333;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    background: #f2f2f0;
}
body.home {
    background: #fff;
}

a { color: #cc0000; text-decoration: none; }
a:hover { color: #990000; }

h1, h2, h3, h4, h5 {
    font-family: 'Chakra Petch', sans-serif;
    line-height: 1.2;
    margin: 0 0 0.6em;
}
h1 { font-size: 2.2rem; color: #1a1a1a; }
h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-top: 2em;
    padding-bottom: 0.35em;
    border-bottom: 2px solid var(--accent);
}
h3 { font-size: 1.15rem; color: #333; margin-top: 1.4em; }
h4 { font-size: 0.85rem; color: #888; text-transform: uppercase; letter-spacing: 0.1em; }

p { margin: 0 0 1em; }
address { font-style: normal; line-height: 1.8; margin: 0 0 1em; }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.3em; }

strong { color: #222; }

hr { border: none; border-top: 1px solid #ddd; margin: 2em 0; }

/* ----- Tables ----- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 0 0 1.5em;
}
th {
    background: #1a1a1a;
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 9px 10px;
    text-align: center;
}
td {
    padding: 7px 10px;
    text-align: center;
    border-bottom: 1px solid #e8e8e6;
    vertical-align: middle;
}
tr:nth-child(even) td { background: #f9f9f7; }
tr:hover td { background: #fff5f5; }

.hours-table { margin: 0; }
.hours-table th { display: none; }
.hours-table td { text-align: left; border: none; padding: 3px 0; background: transparent !important; }
.hours-table td:first-child { font-weight: 600; width: 120px; }
.hours-table td:last-child { white-space: nowrap; }

/* ----- Buttons ----- */
.cta-block { margin: 1.5rem 0; }
.btn-sm { font-size: 0.75rem; padding: 6px 14px; margin-top: 0.75rem; }
.btn {
    display: inline-block;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 28px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #bb0000; border-color: #bb0000; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

/* ----- Header ----- */
.site-header {
    background: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 66px;
}

.logo-wrap { display: flex; align-items: center; flex-shrink: 0; background: #fff; padding: 4px 10px; border-radius: 3px; gap: 10px; }
.site-logo { height: 40px; width: auto; display: block; }
.site-title { font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 0.85rem; color: #1a1a1a; white-space: nowrap; margin-left: 8px; }

.main-nav { flex: 1; display: flex; justify-content: flex-end; }

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.nav-item a {
    display: flex;
    align-items: center;
    color: #bbb;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 0 14px;
    height: 66px;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-item a:hover,
.nav-item.active a {
    color: #fff;
    border-bottom-color: var(--accent);
    background: rgba(255,255,255,0.04);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #bbb;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Dropdown Nav ----- */
.nav-item { position: relative; }

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #111;
    border-top: 2px solid var(--accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 200;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown { display: block; }

.dropdown-item a {
    display: block;
    color: #bbb;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 11px 20px;
    border-bottom: 1px solid #1e1e1e;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.dropdown-item a:hover,
.dropdown-item.active a { color: #fff; background: rgba(255,255,255,0.06); }

/* ----- Hero ----- */
.hero {
    background-image: url('../images/header.jpg');
    background-position: center 40%;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.45) 60%, rgba(10,10,10,0.2) 100%);
}
.hero-inner {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 3%;
}
.hero-text { max-width: 580px; }

.hero-eyebrow {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin: 0 0 0.75em;
}
.hero h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 0.5em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    line-height: 1.1;
}
.hero-tagline {
    color: #ccc;
    font-size: 1rem;
    margin: 0 0 2em;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ----- Highlight Cards ----- */
.highlights {
    background: #fff;
    border-bottom: 1px solid #e8e8e6;
}
.highlights-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.highlight-card {
    padding: 32px 24px;
    border-right: 1px solid #ebebea;
}
.highlight-card:last-child { border-right: none; }
.highlight-card:hover { background: #fafaf8; }

.highlight-icon {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 0.75em;
    line-height: 1;
}
.highlight-card h3 {
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0 0 0.5em;
}
.highlight-card p {
    font-size: 0.88rem;
    color: #666;
    margin: 0;
    line-height: 1.55;
}

/* ----- Page Content ----- */
.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 3%;
}

.page-content {
    background: #fff;
    padding: 44px 52px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.04);
}

.page-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 0.2em;
    padding-bottom: 0.4em;
    border-bottom: 3px solid var(--accent);
}

.content-body { margin-top: 1.5em; }
.content-body h2:first-child { margin-top: 0; }


/* ----- Footer ----- */
.site-footer {
    background: #111;
    color: #888;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 3% 36px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h4 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    margin: 0 0 1em;
    padding-bottom: 0.6em;
    border-bottom: 1px solid #2a2a2a;
}
.footer-col a { color: #888; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.88rem; line-height: 1.8; margin: 0 0 0.75em; }
.footer-col address { font-size: 0.88rem; line-height: 1.8; }

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav li { margin-bottom: 0; }
.footer-nav a { font-size: 0.88rem; }

.footer-bottom {
    border-top: 1px solid #1e1e1e;
    text-align: center;
    padding: 14px 3%;
    font-size: 0.78rem;
    color: #444;
}
.footer-bottom p { margin: 0; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .highlights-inner { grid-template-columns: repeat(2, 1fr); }
    .highlight-card:nth-child(2) { border-right: none; }
    .highlight-card:nth-child(3) { border-top: 1px solid #ebebea; }
    .highlight-card:nth-child(4) { border-top: 1px solid #ebebea; }
}

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

    .main-nav {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: #111;
        border-top: 1px solid #2a2a2a;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }
    .main-nav.open { display: block; }

    .nav-list { flex-direction: column; }
    .nav-item a {
        height: auto;
        padding: 15px 24px;
        border-bottom: 1px solid #1e1e1e;
        border-left: 3px solid transparent;
    }
    .nav-item a:hover,
    .nav-item.active a {
        border-bottom: 1px solid #1e1e1e;
        border-left-color: var(--accent);
        background: rgba(255,255,255,0.03);
    }

    .header-inner { position: relative; }

    .dropdown {
        display: block;
        position: static;
        border-top: none;
        box-shadow: none;
        background: #0a0a0a;
    }
    .dropdown-item a {
        padding: 11px 24px 11px 44px;
        font-size: 0.72rem;
        border-bottom-color: #141414;
    }

    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child { grid-column: 1 / -1; }

    .page-content { padding: 32px 28px; }
    .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 600px) {
    .highlights-inner { grid-template-columns: 1fr; }
    .highlight-card { border-right: none; border-top: 1px solid #ebebea; }
    .highlight-card:first-child { border-top: none; }
    .home-info { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-col:first-child { grid-column: auto; }
    .page-content { padding: 24px 18px; }
    .page-title { font-size: 1.6rem; }
    table { font-size: 0.72rem; }
    th, td { padding: 5px 6px; }
    .hero { min-height: 340px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-actions { flex-direction: column; }
    .btn { text-align: center; }
}

/* ----- Map Embed ----- */
.map-embed {
    position: relative;
    width: 100%;
    padding-bottom: 45%;
    height: 0;
    margin-top: 2rem;
}
.map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ----- Forms ----- */
.page-content form { margin-top: 2rem; }

.page-content .form-field {
    margin-bottom: 1.25rem;
}

.page-content label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #222;
}

.page-content input[type=text],
.page-content input[type=email],
.page-content input[type=date],
.page-content textarea,
.page-content select {
    width: 100%;
    max-width: 480px;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: border-color 0.15s;
}

.page-content input[type=text]:focus,
.page-content input[type=email]:focus,
.page-content textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.page-content textarea { min-height: 100px; resize: vertical; }

.page-content .checkboxes { display: grid; grid-template-columns: 18px 1fr; gap: 0.4rem 0.6rem; align-items: center; margin-top: 0.25rem; }
.page-content .checkboxes input[type=checkbox] { width: 16px; height: 16px; max-width: none; margin: 0; accent-color: var(--accent); cursor: pointer; justify-self: start; }
.page-content .checkboxes label { display: block !important; font-weight: 400; cursor: pointer; margin: 0; }

.page-content .form-field input[type=submit],
.page-content button[type=submit] {
    margin-top: 0.5rem;
    padding: 11px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
}

.page-content .form-field input[type=submit]:hover,
.page-content button[type=submit]:hover { background: #bb0000; }

.page-content .form-errors,
.page-content .form-error {
    color: #cc0000;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.page-content .form-messages { margin-top: 1rem; padding: 12px 16px; background: #f0faf0; border-left: 4px solid #2a2; color: #1a4a1a; border-radius: 2px; }

.disclaimer {
    margin-top: 2rem;
    padding: 12px 16px;
    background: #f8f8f8;
    border-left: 4px solid #aaa;
    border-radius: 2px;
    font-size: 0.8rem;
    color: #555;
}
.disclaimer p { margin: 0; }
