/* ==================================================
   LEGACY HOME SERVICES - MASTER STYLESHEET
   Updated: Dec 2025
   ================================================== */

/* ---- BRAND COLORS & FONTS ---- */
:root {
    --primary-blue: #2E648B;
    --background-cream: #F5F1E9;
    --dark-text: #333333;
    --accent-yellow: #FFC857;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Roboto', sans-serif;
}

/* ---- GENERAL STYLES ---- */
body {
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}
.container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}
.hidden { display: none; }

/* ---- HEADER & NAVIGATION ---- */
header {
    background: var(--background-cream);
    border-bottom: 2px solid var(--primary-blue);
    padding: 10px 0;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}
.logo img {
    height: 60px;
    width: auto;
}
.logo span {
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    line-height: 1.2;
}
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav ul li { margin-left: 30px; }
nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 1em;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* ---- HERO SECTION (Video Backgrounds) ---- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background-color: #000;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 20, 20, 0.4); /* Lightened overlay */
    z-index: 1;
}
.video-background-triptych {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    z-index: 0;
}
.video-panel {
    flex: 1;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    opacity: 0;
    animation-name: fadeInOut;
    animation-timing-function: ease-in-out;
    animation-duration: 15s;
    animation-iteration-count: infinite;
}
.video-panel video, .video-background-mobile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    11% { opacity: 1; }
    33% { opacity: 1; }
    44% { opacity: 0; }
    100% { opacity: 0; }
}
#panel1 { animation-delay: 0s; }
#panel2 { animation-delay: 5s; }
#panel3 { animation-delay: 10s; }

.video-background-mobile {
    display: none;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* ---- BUTTONS ---- */
.cta-button {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    font-size: 1.1em;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    background: #FFB627;
    transform: translateY(-2px);
}
.cta-button.secondary {
    background-color: #fff;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}
.cta-button.secondary:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

/* ---- STANDARD PAGE SECTIONS ---- */
.page-header {
    background: var(--background-cream);
    text-align: center;
    padding: 60px 20px;
}
.page-header h1 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 2.8em;
    margin: 0;
}
.page-header p {
    max-width: 600px;
    margin: 10px auto 0 auto;
    font-size: 1.1em;
}

/* ---- CONTENT SECTIONS ---- */
.features, .services-preview, .about-content, .page-cta, .services-list, .gallery, .contact-main {
    padding: 60px 20px;
}
.features, .gallery, .contact-main {
    text-align: center;
    background: var(--background-cream);
}
.features h2, .services-preview h2, .page-cta h2, .gallery h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-blue);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}
.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.feature-item h3 {
    font-family: var(--font-heading);
    margin-top: 0;
    color: var(--primary-blue);
}
.page-cta {
    background: var(--primary-blue);
    color: #fff;
    text-align: center;
}
.page-cta h2 { color: #fff; margin-top: 0; }

/* ---- ABOUT PAGE GRID ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .about-grid { grid-template-columns: 2fr 1fr; }
}

/* ---- SERVICES PAGE ---- */
.service-category { margin-bottom: 50px; }
.service-category h2 {
    font-family: var(--font-heading);
    font-size: 2.2em;
    color: var(--primary-blue);
    border-bottom: 3px solid var(--accent-yellow);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    text-align: left;
}
.service-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 5px;
}
.service-item h3 {
    font-family: var(--font-heading);
    margin-top: 0;
    color: var(--primary-blue);
}

/* ---- GALLERY ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid a:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ---- QUOTE TOOL FORMS (Unified) ---- */
.quote-page-section {
    padding: 60px 20px;
    background-color: #fff;
}
.form-card {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1.5px solid #ececec;
}
.section-box, .service-question-box {
    background: #fdfdfd;
    border: 1.5px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2em;
    margin-bottom: 2em;
    margin-top: 1.5em;
}
.section-header h3, .service-question-box h4 {
    font-size: 1.8em;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5em;
    margin-top: 0;
}
.section-underline {
    height: 3px;
    width: 100%;
    background: var(--accent-yellow);
    margin-bottom: 1.5em;
    border-radius: 2px;
}
.form-group { margin-bottom: 1.5em; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #333;
    font-size: 1.1em;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 1em;
    font-size: 1.1em;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    background: #fff;
    transition: border 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 100, 139, 0.1);
}
.service-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.service-selection-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}
.service-selection-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cta-button-large {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0 auto;
    text-align: center;
    font-size: 1.3em;
}

/* ---- PRIVACY & TERMS PAGE STYLES ---- */
.terms-wrapper, .privacy-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    line-height: 1.8;
    color: #444;
}
.terms-wrapper h2, .privacy-wrapper h2 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 10px;
    margin-top: 40px;
    font-size: 1.5rem;
}
.terms-wrapper p, .privacy-wrapper p {
    margin-bottom: 15px;
}
.terms-wrapper ul, .privacy-wrapper ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* ---- FOOTER ---- */
footer {
    background: #333;
    color: #eee;
    text-align: center;
    padding: 40px 0;
    margin-top: auto;
}
footer .container p { margin: 5px 0; color: #ccc; }
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-links a i {
    font-size: 24px;
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover .fa-facebook-f { color: #4267B2; transform: scale(1.2); }
.social-links a:hover .fa-instagram { color: #E1306C; transform: scale(1.2); }

/* ---- MOBILE RESPONSIVENESS ---- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--primary-blue);
}
@media (max-width: 768px) {
    header .container { flex-wrap: wrap; }
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        flex-direction: column;
        gap: 20px;
        background: #f9f9f9;
        padding: 0;
    }
    nav.active { max-height: 400px; padding: 20px 0; }
    nav ul { flex-direction: column; width: 100%; }
    nav ul li { margin: 10px 0; text-align: center; }
    .menu-toggle { display: block; }
    
    .hero .video-background-triptych { display: none; }
    .video-background-mobile { display: block; }
    .hero { height: 60vh; min-height: 400px; }
    
    .page-header h1 { font-size: 2em; }
    .form-card { padding: 20px; }
}

/* ---- TERMSFEED COOKIE BANNER OVERRIDE ---- */
.termsfeed-com---nb {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-width: 100% !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 99999 !important;
    box-shadow: 0px -2px 10px rgba(0,0,0,0.1) !important;
}
.termsfeed-com---nb .cc-nb-text {
    color: #000000 !important;
    font-size: 0.9em !important;
}