/* ============================================================
   Arab Sheet Metal Heating & Cooling — Public Site CSS
   Light theme: clean, professional, bright HVAC company
   Brand: Red #CC1111 · Blue #0055CC · Navy #0f2d5e
   ============================================================ */

:root {
    --red:     #CC1111;
    --red-dk:  #aa0e0e;
    --red-lt:  #fef2f2;
    --blue:    #0055CC;
    --blue-dk: #0044aa;
    --blue-lt: #eff5ff;
    --navy:    #0f2d5e;

    /* Light theme */
    --bg:      #ffffff;
    --bg-alt:  #f4f7fc;
    --panel:   #ffffff;
    --text:    #1a2332;
    --muted:   #5c6f84;
    --line:    #dde4ed;
    --white:   #ffffff;
    --light:   #f4f7fc;

    --radius:    12px;
    --radius-sm: 8px;
    --shadow:    0 2px 12px rgba(15,45,94,.08);
    --shadow-md: 0 6px 28px rgba(15,45,94,.13);

    --nav-h:       72px;
    --announce-h:  40px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font: inherit; border: 0; background: none; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Utility ── */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-h  { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--navy); }
.section-sub{ font-size: 1.05rem; color: var(--muted); margin-top: .6rem; line-height: 1.65; }
.tag {
    display: inline-block; font-size: .72rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    padding: .3em 1em; border-radius: 99px;
    background: var(--red-lt); color: var(--red); margin-bottom: 1rem;
}
.tag-blue { background: var(--blue-lt); color: var(--blue); }
.center { text-align: center; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75em 1.8em; border-radius: 999px; font-weight: 700; font-size: 1rem;
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}
.btn-red   { background: var(--red);  color: #fff; box-shadow: 0 4px 16px rgba(204,17,17,.25); }
.btn-red:hover   { background: var(--red-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,17,17,.35); }
.btn-blue  { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(0,85,204,.22); }
.btn-blue:hover  { background: var(--blue-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-ghost-white:hover { border-color: #fff; transform: translateY(-2px); }
.btn-lg { font-size: 1.1rem; padding: .85em 2.2em; }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── Announcement Bar ── */
.announce-bar {
    background: var(--navy);
    color: #fff;
    font-size: .82rem; font-weight: 600;
    text-align: center;
    padding: .55rem 1rem;
    position: sticky; top: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.announce-bar a { color: #ffe066; text-decoration: underline; }
.announce-bar .phone-link { font-weight: 800; letter-spacing: .03em; color: #ffe066; }

/* ── Navigation ── */
.site-nav {
    position: sticky; top: 40px; z-index: 190;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 16px rgba(15,45,94,.07);
    height: var(--nav-h);
}
.nav-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
    height: 100%; display: flex; align-items: center; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav-links a {
    font-size: .9rem; font-weight: 600; color: var(--muted);
    padding: .5rem .9rem; border-radius: 6px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-alt); }
.nav-links a.active { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: .6rem; margin-left: 1rem; }
.nav-phone {
    font-size: .95rem; font-weight: 800; color: var(--red);
    display: flex; align-items: center; gap: .35rem;
    padding: .5rem 1.1rem; border-radius: 999px;
    background: var(--red-lt); border: 1.5px solid rgba(204,17,17,.2);
    transition: background .2s, border-color .2s;
}
.nav-phone:hover { background: #fde8e8; border-color: var(--red); }
.nav-burger { display: none; padding: .5rem; color: var(--navy); font-size: 1.5rem; }

/* Mobile nav — hidden by default on all screen sizes; opened via JS */
.mobile-nav { display: none; }

/* ── Hero ── */
.hero {
    position: relative; overflow: hidden;
    min-height: calc(100vh - 112px);
    display: flex; align-items: center;
    background: linear-gradient(135deg, #0f2d5e 0%, #1a4fa0 60%, #0055CC 100%);
}
/* Hero slides — crossfade layer system */
.hero-slide {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    animation: asm-kenburns 28s ease-in-out infinite alternate;
    animation-play-state: paused;
}
.hero-slide.is-active {
    opacity: 1;
    animation-play-state: running;
}
.hero-slide.is-intro {
    animation: asm-hero-intro 2200ms ease-out both, asm-kenburns 28s ease-in-out 2200ms infinite alternate;
    animation-play-state: running;
}
@keyframes asm-kenburns {
    0%   { transform: scale(1.06) translate(0, 0); }
    100% { transform: scale(1) translate(-1%, 1%); }
}
@keyframes asm-hero-intro {
    0%   { opacity: 0; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1.04); }
}
/* Veil overlay (color + opacity controlled by CSS vars set inline) */
.hero-veil {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: var(--hero-veil, #0f2d5e);
    opacity: var(--hero-veil-opacity, .60);
}
/* Vignette: darkens edges for depth */
.hero-vignette {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
}
/* Diagonal sheen sweep */
.hero-sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hero-sheen::before {
    content: ''; position: absolute; top: -30%; left: -60%; width: 40%; height: 160%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
    transform: skewX(-18deg); opacity: 0;
}
.hero-sheen.go::before { animation: asm-sheen 1.1s ease; }
@keyframes asm-sheen { 0% { left:-60%; opacity:0; } 15% { opacity:1; } 100% { left:130%; opacity:0; } }
/* Decorative warm sun glow in hero */
.hero::before {
    content: '';
    position: absolute; top: -20%; right: 5%; width: 55%; padding-top: 55%;
    background: radial-gradient(circle, rgba(255,200,60,.10) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 0;
}
.hero-content {
    position: relative; z-index: 4;
    max-width: 680px; padding: 5rem 1.5rem;
    margin-left: max(1.5rem, calc((100vw - 1160px) / 2));
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    background: rgba(255,220,60,.15); color: #ffe066;
    border: 1px solid rgba(255,220,60,.3);
    padding: .35em 1em; border-radius: 99px; margin-bottom: 1.4rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.1;
    letter-spacing: -.03em; color: #fff; margin-bottom: 1.2rem;
}
.hero h1 span { color: #ffe066; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.80); line-height: 1.65; margin-bottom: 2.2rem; max-width: 560px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
    display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.15);
    flex-wrap: wrap;
}
.hero-trust-item { display: flex; flex-direction: column; }
.hero-trust-item .num { font-size: 1.6rem; font-weight: 900; color: #ffe066; line-height: 1; }
.hero-trust-item .lbl { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: .15rem; }

/* ── Trust Bar ── */
.trust-bar {
    background: var(--blue);
    padding: 1.4rem 0;
}
.trust-bar-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem 3rem; flex-wrap: wrap;
}
.trust-item {
    display: flex; align-items: center; gap: .65rem;
    font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.9);
}
.trust-item .icon { font-size: 1.3rem; }

/* ── Services Grid ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.service-card {
    background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow);
    transition: border-color .2s, transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.service-card h2, .service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--navy); }
.service-card p { font-size: .88rem; color: var(--muted); line-height: 1.55; flex: 1; }
.service-card .card-link { margin-top: 1.2rem; font-size: .85rem; font-weight: 700; color: var(--blue); }
.service-card .card-link:hover { text-decoration: underline; }

/* ── Why Grid ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.why-item {
    display: flex; gap: 1rem;
    background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem; box-shadow: var(--shadow);
}
.why-icon { font-size: 1.8rem; flex-shrink: 0; }
.why-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; color: var(--navy); }
.why-item p  { font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* ── Refrigerant Notice ── */
.refrig-section { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.refrig-inner { display: flex; align-items: flex-start; gap: 2.5rem; }
.refrig-badge {
    background: var(--blue-lt); border: 1.5px solid rgba(0,85,204,.2); border-radius: var(--radius);
    padding: 1.2rem 1.6rem; flex-shrink: 0; text-align: center; min-width: 120px;
}
.refrig-badge .r-label { font-size: 1.8rem; font-weight: 900; color: var(--blue); }
.refrig-badge .r-sub   { font-size: .72rem; color: var(--muted); margin-top: .1rem; }

/* Refrigerant section text override for light bg */
.refrig-section p { color: var(--muted); }
.refrig-section h2.section-h { color: var(--navy); }

/* ── Brands ── */
.brands-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }
.brand-pill {
    background: var(--white); border: 1.5px solid var(--line); border-radius: 99px;
    padding: .6rem 1.4rem; font-size: .9rem; font-weight: 700; color: var(--text);
    box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
.brand-pill:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }

/* ── Reviews ── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.review-card {
    background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.review-stars { color: #e09a0a; letter-spacing: .08em; font-size: 1rem; margin-bottom: .8rem; }
.review-text  { font-size: .92rem; color: var(--text); line-height: 1.65; flex: 1; font-style: italic; }
.review-author { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--muted); }
.review-source { font-size: .75rem; color: var(--muted); font-weight: 400; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
    background: var(--white); border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow);
}
/* home.php FAQ (toggle style) */
.faq-question {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.3rem; cursor: pointer; font-size: .97rem; font-weight: 600;
    color: var(--navy); user-select: none;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-chevron { font-size: .8rem; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.3rem 1.2rem; font-size: .9rem; color: var(--muted); line-height: 1.65; }
.faq-item.open .faq-answer { display: block; }
/* faq.php (details/summary style) */
.faq-item summary.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.3rem; cursor: pointer; font-size: .97rem; font-weight: 600;
    color: var(--navy); list-style: none;
}
.faq-item summary.faq-q::-webkit-details-marker { display: none; }
.faq-item summary.faq-q:hover { background: var(--bg-alt); }
.faq-item[open] summary.faq-q { color: var(--blue); border-bottom: 1px solid var(--line); }
.faq-item .faq-a { padding: 1rem 1.3rem; font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ── Contact / Form ── */
.cta-section { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.1rem; }
.contact-detail .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .05rem; }
.contact-detail p   { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.contact-detail strong { color: var(--text); }
.contact-phone-big { display: flex; align-items: center; gap: .5rem; font-size: 1.6rem; font-weight: 900; color: var(--red); margin: 1.5rem 0; }

.contact-form {
    background: var(--white); border: 1.5px solid var(--line);
    border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md);
}
.contact-form h2, .contact-form h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--navy); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.cf-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .75rem; }
.cf-group label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.cf-group input, .cf-group select, .cf-group textarea {
    background: var(--bg-alt); border: 1.5px solid var(--line);
    color: var(--text); font: inherit; font-size: .92rem;
    padding: .65em 1em; border-radius: var(--radius-sm);
    transition: border-color .2s; outline: none;
}
.cf-group input:focus, .cf-group select:focus, .cf-group textarea:focus {
    border-color: var(--blue); background: #fff;
}
.cf-group input:focus-visible, .cf-group select:focus-visible, .cf-group textarea:focus-visible { outline: none; }
.cf-group textarea { resize: vertical; }
.cf-msg { font-size: .85rem; padding: .7rem 1rem; border-radius: var(--radius-sm); margin-bottom: .75rem; }
.field-error { font-size: .78rem; color: var(--red); margin-top: .25rem; }
.cf-msg-ok  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.cf-msg-err { background: var(--red-lt); color: var(--red); border: 1px solid rgba(204,17,17,.2); }

/* ── Footer ── */
.site-footer {
    background: var(--navy); color: rgba(255,255,255,.75);
    padding: 3.5rem 0 2rem; font-size: .88rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand img { height: 48px; margin-bottom: 1rem; }
.footer-brand p   { color: rgba(255,255,255,.55); line-height: 1.6; max-width: 280px; }
.footer-col h4 {
    font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: .07em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li { color: rgba(255,255,255,.55); }
.footer-col ul li a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; color: rgba(255,255,255,.4); font-size: .78rem;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ── Admin Preview Bar ── */
.asm-admin-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    background: var(--red); color: #fff;
    display: flex; align-items: center; flex-wrap: wrap;
    gap: .5rem 1rem; padding: .45rem 1.2rem;
    font-size: .82rem; font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,.25); min-height: 36px;
}
.asm-admin-bar a { color: #fff; text-decoration: underline; margin-left: .75rem; }
.asm-admin-bar .spacer { flex: 1; }

/* ── Alternate section backgrounds ── */
.section[style*="background:var(--panel)"],
section[style*="background:var(--panel)"] {
    background: var(--bg-alt) !important;
    border-color: var(--line) !important;
}

/* ── Mobile Nav ── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-burger { display: block; margin-left: auto; }
    .nav-phone span:not(:first-child) { display: none; }

    .mobile-nav {
        display: none;
        position: fixed; inset: 0; z-index: 300;
        background: rgba(15,45,94,.97);
        flex-direction: column;
        align-items: center; justify-content: center; gap: 1.2rem;
    }
    .mobile-nav.open { display: flex; }
    .mobile-nav a { font-size: 1.4rem; font-weight: 700; color: #fff; }
    .mobile-nav a:hover { color: #ffe066; }
    .mobile-nav .close-btn { position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; color: #fff; }

    .why-grid    { grid-template-columns: 1fr; }
    .contact-grid{ grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cf-row      { grid-template-columns: 1fr; }
    .refrig-inner{ flex-direction: column; }
}

@media (max-width: 600px) {
    .section   { padding: 3.5rem 0; }
    .section-h { font-size: 1.6rem; }
    .hero h1   { font-size: 2rem; }
    .hero-trust{ gap: 1rem; }
    .trust-bar-inner { gap: 1rem 2rem; }
    .hero-content { padding: 3.5rem 1.5rem; }
}
