/*
Theme Name: Sobo Custom Site
Author: Ashley Blose
Version: 1.0
*/

:root {
    --primary-black: #1A1A1A;
    --brand-blue: #0056b3;
    --brand-green: #1e7e34;
    --brand-orange: #a64d00; 
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); line-height: 1.6; color: var(--primary-black); background: var(--white); }
h1, h2, h3 { line-height: 1.2; margin-bottom: 1rem; }
a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }

.skip-link { position: absolute; top: -100px; left: 0; background: var(--brand-orange); color: white; padding: 10px; z-index: 2000; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 4px; }

header { background: var(--white); border-bottom: 4px solid var(--brand-blue); padding: .25rem 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.logo img { height: 75px; }

#main-nav ul { display: flex; list-style: none; gap: 2rem; }
.menu-toggle { display: none; background: var(--primary-black); color: white; border: none; padding: 8px 15px; cursor: pointer; border-radius: 4px; }

.hero { 
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/sobo-telecom-fiber-optic-cable.webp') center/cover no-repeat; 
    color: var(--white); 
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 5%; 
}

.hero-subhead {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 800px; 
    margin: 0 auto 2.5rem; 
    color: var(--white);
    font-weight: 400;   
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); 
}

@media (max-width: 768px) {
    .hero-subhead {
        font-size: 1.15rem;
        padding: 0 5%;
    }
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

.btn { display: inline-block; padding: 12px 28px; background: var(--brand-blue); color: white; border-radius: 5px; border: none; cursor: pointer; }
.btn-alt { background: var(--brand-orange); } 
.btn:hover { opacity: 0.9; transform: translateY(-2px); text-decoration: none; }
.btn-full { width: 100%; }

section { padding: 4rem 5%; }
#services {
    padding: 4rem 5%;
}

.services-container {
    max-width: 1200px; 
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
}

@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.card-icon {
    font-size: 3rem; 
    color: var(--brand-blue); 
    margin-bottom: 2rem; 
    display: inline-block;
    transition: transform 0.3s ease;
}

.icon-blue, .icon-orange {
    color: var(--brand-blue); 
}

.card {
    padding: 3rem 2rem; 
    text-align: left;
    background: var(--white);
    border-top: 6px solid var(--brand-green); 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.border-blue { border-top-color: var(--brand-blue); }
.border-orange { border-top-color: var(--brand-orange); }

.card:hover, .card:focus-within {
    transform: translateY(-8px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.15); 
    cursor: pointer;
}
.card:hover .card-icon {
    transform: scale(1.1);
}

.container-narrow { max-width: 800px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 2.5rem; }

.bg-light { background-color: var(--light-bg); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group input, .form-group textarea { padding: 12px; border: 1px solid #ccc; border-radius: 4px; }

footer { background: var(--primary-black); color: #fff; padding: 2rem 5%; text-align: center; }

.container-wide { max-width: 1200px; margin: 0 auto; }

.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center; 
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.5rem; }

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    background-color: var(--brand-green); 
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-call:hover, .btn-call:focus {
    background-color: #145523; 
    color: var(--white);
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .btn-call {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

.location-info { 
    background: var(--white); 
    padding: 1.5rem; 
    border-radius: 8px; 
    border-left: 4px solid var(--brand-blue); 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}

.location-info h3 { 
    font-size: 1.25rem; 
    color: var(--brand-blue); 
    margin-bottom: 0.75rem; 
}

.location-info p { 
    margin-bottom: 0.5rem; 
    font-size: 1rem; 
}

.about-map iframe { 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1001; 
}

.back-to-top:hover {
    background-color: var(--brand-orange);
    transform: scale(1.1);
}

.back-to-top[hidden] {
    display: none;
    opacity: 0;
}

.back-to-top:focus-visible {
    outline: 3px solid var(--primary-black);
    outline-offset: 4px;
}

@media (max-width: 992px) {
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 2.5rem; 
    }
    
    .about-map { order: -1; } 
}

@media (max-width: 850px) {
    .menu-toggle { display: block; }
    #main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); box-shadow: 0 10px 10px rgba(0,0,0,0.1); }
    #main-nav.active { display: block !important; }
    #main-nav ul { flex-direction: column; padding: 1.5rem; gap: 1rem; }
}

footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 3rem 5% 2rem;
    text-align: center; 
}

.footer-rows {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; 
}

.badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-badge {
    height: 175px; 
    width: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--brand-blue);
    transform: translateY(-3px);
}

.row-legal {
    padding-top: 1.5rem;
}

.copyright-info p {
    margin-bottom: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.legal-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
}

.legal-links a {
    color: #bbb;
    font-size: 0.85rem;
    font-weight: normal;
}

.legal-links a:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

.separator {
    color: #cccccc;
    margin: 0 5px;
    user-select: none;
}

@media (max-width: 600px) {
    .badge-container {
        gap: 15px;
    }
    .footer-badge {
        height: 50px;
    }
}

.legal-page {
    padding: 4rem 0;
    background-color: var(--white);
}

.page-title {
    font-size: 2.5rem;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--brand-orange);
    padding-left: 15px;
}

.legal-content p, .legal-content li {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.logo a {
    display: block;
}

.restriction-box {
    background-color: #fff4e5;
    border-left: 5px solid var(--brand-orange);
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 1.5rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.badge-label {
    display: inline-block;
    background: var(--brand-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.cert-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.cert-list li {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-black);
}

.cert-list i {
    color: var(--brand-green);
    margin-right: 8px;
}

.booking-container {
    max-width: 1200px; 
    margin: 40px auto;
    padding: 0 20px;
}

.zuper-embed {
    border: 1px solid #ddd; 
    border-radius: 8px;
    overflow: hidden;
    margin-top: 50px;
}

section[id] {
    scroll-margin-top: 120px;
}

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-black);
    color: white;
    padding: 1.5rem 5%; 
    z-index: 2000;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}
.consent-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.btn-accept {
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 20px;
}
@media (max-width: 600px) {
    .consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .btn-accept {
        width: 100%;
        margin-left: 0;
    }
}