/* ==========================================================================
   DeCamp Electric — static site styles
   Palette: accent orange #ff9800, dark #000 / #222427, light #f5f5f5
   ========================================================================== */

:root {
    --accent: #ff9800;
    --accent-dark: #e88900;
    --dark: #1c1e21;
    --dark-2: #222427;
    --header-bg: #2b2d30;
    --text: #444;
    --heading: #1c1e21;
    --muted: #777;
    --border: #e6e6e6;
    --bg-light: #f5f5f5;
    --container: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    color: var(--heading);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 700;
}

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

p { margin: 0 0 1.2em; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- Top bar */
.top-bar {
    background: #000;
    color: #cfcfcf;
    font-size: 14px;
}
.top-bar-inner { display: flex; align-items: center; min-height: 44px; }
.quick-contact {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
}
.quick-contact li { display: flex; align-items: center; gap: 8px; }
.quick-contact i { color: var(--accent); }
.quick-contact span {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .06em;
    color: #8b8b8b;
}
.quick-contact a { color: #e9e9e9; }
.quick-contact a:hover { color: var(--accent); }

/* --------------------------------------------------------------- Header */
.site-header {
    background: var(--header-bg);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    position: relative;
    z-index: 20;
}
.site-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 84px;
}
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-logo img { width: 212px; height: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}
.main-nav a {
    display: block;
    padding: 10px 16px;
    color: #f2f2f2;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 15px;
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); }

.header-call {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, .15);
}
.header-call > i {
    font-size: 18px;
    color: #fff;
    background: var(--accent);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.header-call span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #aeb2b8;
    letter-spacing: .05em;
}
.header-call a {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.header-call a:hover { color: var(--accent); }

.menu-toggle {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 4px;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    cursor: pointer;
}

/* --------------------------------------------------------------- Hero */
.hero {
    position: relative;
    background: url("/assets/img/cropped-iStock-468173049.jpg") center / cover no-repeat;
    background-color: #222;
    color: #fff;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: .5;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 95px 20px;
}
.hero-title {
    color: #fff;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    text-transform: capitalize;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* --------------------------------------------------------------- Embed mode */
/* Used for "?embed=1" — a slim, chrome-free layout for mobile-app webviews. */
.embed-header {
    background: var(--header-bg);
    border-bottom: 3px solid var(--accent);
    text-align: center;
    padding: 22px 0 18px;
}
.embed-logo {
    width: 190px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}
.embed-title {
    color: #fff;
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 2rem);
}
.embed-footer {
    background: var(--dark);
    color: #8e9298;
    text-align: center;
    font-size: 13px;
    padding: 18px 0;
}
.embed-page .page-section { padding: 32px 0; }

/* --------------------------------------------------------------- Content */
.site-content { padding: 0; }

.section { padding: 70px 0; }
.section-light { background: var(--bg-light); }

.page-section { padding: 60px 0; }
.page-section .entry h2 { margin-top: 1.4em; }
.page-section .entry h2:first-child { margin-top: 0; }

.content-narrow { max-width: 860px; margin: 0 auto; }

/* Service cards (home "what we do") */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: #fff;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
    padding: 40px 30px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}
.service-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--dark-2);
    color: var(--accent);
    font-size: 30px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    transition: background .25s ease, color .25s ease;
}
.service-card:hover .service-icon { background: var(--accent); color: #fff; }
.service-title { margin-bottom: 14px; }
.service-title a { color: var(--heading); }
.service-card:hover .service-title a { color: var(--accent); }
.service-card p { margin-bottom: 18px; }

.more-link {
    display: inline-block;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--accent);
}
.more-link::after { content: " \203A"; }

/* Headings with the orange underline accent (matches original) */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
    margin: 0;
    font-size: 2.2rem;
}
.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 13px 30px;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

/* --------------------------------------------------------------- Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-form .field { margin-bottom: 20px; }
.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--heading);
}
.contact-form label .req { color: var(--accent); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font: inherit;
    color: var(--text);
    background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, .15);
}
.contact-form textarea { min-height: 150px; resize: vertical; }

/* Honeypot — hidden from humans, visible to dumb bots */
.hp-field {
    position: absolute !important;
    left: -5000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-info-card {
    background: var(--bg-light);
    border-radius: 6px;
    padding: 30px;
}
.contact-info-card ul { list-style: none; margin: 0; padding: 0; }
.contact-info-card li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-info-card li:last-child { margin-bottom: 0; }
.contact-info-card i {
    color: #fff;
    background: var(--accent);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.contact-info-card strong { display: block; color: var(--heading); }

.alert {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 24px;
}
.alert-success { background: #e7f6e7; border: 1px solid #43a047; color: #2e7d32; }
.alert-error   { background: #fdecea; border: 1px solid #e53935; color: #c62828; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

/* --------------------------------------------------------------- Footer */
.site-footer {
    background: var(--dark);
    color: #b9bcc1;
    padding: 40px 0 30px;
    text-align: center;
}
.footer-nav ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 26px;
}
.footer-nav a {
    color: #d6d8db;
    font-size: 15px;
    position: relative;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copyright { font-size: 14px; color: #8e9298; }
.footer-copyright a { color: #d6d8db; }
.footer-copyright a:hover { color: var(--accent); }

/* --------------------------------------------------------------- Scroll top */
.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 50;
}
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-dark); color: #fff; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .services { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .header-call { display: none; }
}

@media (max-width: 768px) {
    .quick-contact { justify-content: center; gap: 4px 18px; font-size: 13px; }
    .quick-contact span { display: none; }

    .site-header-inner { flex-wrap: wrap; min-height: 70px; }
    .menu-toggle { display: inline-flex; }

    .main-nav {
        flex-basis: 100%;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 500px; }
    .main-nav ul { flex-direction: column; gap: 0; padding-bottom: 12px; }
    .main-nav a { padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); }

    .hero-content { padding: 60px 20px; }
    .section, .page-section { padding: 45px 0; }
}
