@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Oswald:wght@500;700&display=swap');

:root {
    --navy: #001F3F;
    --orange: #FF851B;
    --white: #FFFFFF;
    --gray-bg: #F4F4F4;
    --text-main: #333333;
    --text-light: #777777;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Helpers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 100px 0;
}

.section-bg-dark {
    background-color: var(--navy);
    color: var(--white);
}

.section-bg-dark h2, .section-bg-dark h3 {
    color: var(--white);
}

.section-bg-gray {
    background-color: var(--gray-bg);
}

.accent-text {
    color: var(--orange);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e67515;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 133, 27, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
}

.btn-outline-navy {
    background-color: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}

.btn-outline-navy:hover {
    background-color: var(--navy);
    color: var(--white);
}

/* Header & Navbar */
.header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--navy);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-cta-btn {
    padding: 10px 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    background: linear-gradient(145deg, var(--orange), #e67515);
    box-shadow: 0 4px 15px rgba(255, 133, 27, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.nav-cta-btn:hover {
    background: linear-gradient(145deg, #f7963d, var(--orange));
    box-shadow: 0 6px 20px rgba(255, 133, 27, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.nav-right .social-icons {
    display: flex;
    gap: 15px;
    font-size: 1.2rem;
    margin-right: 15px; /* Adds space before the CTA button */
}

.nav-right .social-icons a {
    color: var(--navy);
}

.nav-right .social-icons a:hover {
    color: var(--orange);
}

.mobile-socials {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.logo-container img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background-color: var(--orange);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--orange);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--navy);
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden; /* Important for containing the video */
    background-color: var(--navy);
}

/* 
  Make the iframe responsive and cover the area like background-size: cover 
  Using a more robust aspect-ratio approach to ensure it fills the banner.
*/
.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
    .hero-video-wrapper iframe {
        width: 100vw;
        height: 56.25vw; /* 100 * 9 / 16 */
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video-wrapper iframe {
        width: 177.78vh; /* 100 * 16 / 9 */
        height: 100vh;
    }
}

/* Overlay dark blue to make text pop */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0, 31, 63, 0.95) 0%, rgba(0, 31, 63, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero p {
    color: var(--gray-bg);
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Perks Section */
.perks-section {
    position: relative;
    z-index: 2;
    margin-top: -50px; /* Overlaps hero section slightly for structured feel */
    background: transparent;
    padding-top: 0;
}

.perks-section .section-header {
    display: none; /* Hide header, grid speaks for itself */
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.perk-card {
    background-color: var(--white);
    padding: 50px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 5px solid var(--navy);
    transition: var(--transition);
    text-align: center;
}

.perk-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--orange);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.perk-icon {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 25px;
}

.perk-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.perk-card p {
    color: #777777;
    font-size: 1rem;
    line-height: 1.7;
}

/* Portfolio CTA Banner & CTA section */
.portfolio-banner, .portfolio-cta {
    position: relative;
    padding: 120px 0;
    background-image: url('assets/carpentry_banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
    border-top: 5px solid var(--orange);
    border-bottom: 5px solid var(--orange);
}

.portfolio-banner::before, .portfolio-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 31, 63, 0.85); /* Deep Navy Tint */
    z-index: 1;
}

.portfolio-banner .container, .portfolio-cta .container {
    position: relative;
    z-index: 2;
}

.banner-title {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.banner-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Education Section (Top-Tier vs The Rest) */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.education-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Add a bold top border depending on good vs bad */
.education-card.good {
    border-top: 5px solid var(--navy);
}

.education-card.bad {
    border-top: 5px solid #d9534f; /* A universally understood warning/bad red */
}

.education-card .ed-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.education-card.good .ed-icon {
    color: var(--navy);
}

.education-card.bad .ed-icon {
    color: #d9534f;
}

.education-card h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.education-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.education-card ul li i {
    margin-top: 5px;
    color: var(--orange);
    font-size: 1.1rem;
    min-width: 20px;
}

/* Footer */
.footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 5px solid var(--orange);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--orange);
    bottom: 0;
    left: 0;
}

.footer-col p {
    color: #cccccc;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: #cccccc;
    font-weight: 500;
}

.footer-col ul a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.footer-col.logo-col img {
    height: 80px;
    margin-bottom: 25px;
}

.footer-col.logo-col p {
    max-width: 300px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: 10px;
    }

    .nav-cta-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .nav-right {
        gap: 15px;
    }

    .nav-right .social-icons {
        display: none; /* Hide in header on mobile */
    }
    
    .mobile-socials {
        display: block; /* Show in dropdown menu on mobile */
        text-align: center;
    }
    
    .mobile-socials .social-icons {
        justify-content: center;
        gap: 30px;
        margin-right: 0;
    }
    
    .nav-right .social-icons .fa-brands {
        font-size: 1rem; /* Smaller icons on mobile */
    }

    .hero {
        text-align: center;
        padding: 0;
        height: 100vh;
        min-height: 600px;
    }

    .hero h1 {
        font-size: 1.8rem; /* Further reduced for extreme mobile balance */
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(0, 31, 63, 0.7) 0%, rgba(0, 31, 63, 0.8) 100%);
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-video-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    /* Ensure the iframe covers the area on mobile too, respecting aspect ratio */
    @media (max-aspect-ratio: 16/9) {
        .hero-video-wrapper iframe {
            width: 177.78vh;
            height: 100vh;
        }
    }
    @media (min-aspect-ratio: 16/9) {
        .hero-video-wrapper iframe {
            width: 100vw;
            height: 56.25vw;
        }
    }

    .perks-grid, .education-grid {
        grid-template-columns: 1fr;
    }

    .perks-section {
        margin-top: 40px;
        padding-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-col h3::after {
        left: 0;
    }
}

/* --- Inner Pages Styles --- */

/* Blueprint Layout (Services) */
.blueprint-section {
    background-color: var(--navy);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--white);
    padding: 100px 0;
    border-top: 5px solid var(--orange);
    border-bottom: 5px solid var(--orange);
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.blueprint-card {
    background: rgba(0, 31, 63, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
}

.blueprint-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-top: 2px solid var(--orange);
    border-left: 2px solid var(--orange);
}

.blueprint-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    border-bottom: 2px solid var(--orange);
    border-right: 2px solid var(--orange);
}

.blueprint-card:hover {
    background: rgba(0, 31, 63, 0.95);
    border-color: var(--orange);
    transform: translateY(-5px);
}

.blueprint-card h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.blueprint-card p {
    color: #e0e0e0;
}

/* Portfolio Gallery (Masonry Layout) */
.portfolio-grid {
    column-count: 3;
    column-gap: 20px;
    margin-top: 50px;
}

.portfolio-item {
    display: inline-block;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: var(--navy);
    border-radius: 2px;
    transition: box-shadow 0.3s ease;
}

.portfolio-item:hover {
    box-shadow: 0 0 0 4px #ef8c3b;
    z-index: 10;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    padding: 30px;
    z-index: 2;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(0, 31, 63, 0.8) 0%, rgba(0, 31, 63, 0.95) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

/* .portfolio-item:hover::after {
    opacity: 1;
} */

/* .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
} */

.portfolio-overlay .spec-tag {
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border: 1px solid var(--orange);
    padding: 4px 12px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    line-height: 1.2;
}

.portfolio-overlay p {
    color: #e0e0e0;
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
}

/* .portfolio-item:hover .portfolio-overlay .spec-tag,
.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
} */

@media (max-width: 992px) {
    .portfolio-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        column-count: 1;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* Contact Form */
.contact-section {
    padding: 100px 0;
    background-color: var(--gray-bg);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-top: 5px solid var(--navy);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--gray-bg);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
    background-color: var(--white);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.form-status {
    margin-top: 16px;
    font-size: 0.95rem;
    min-height: 1.2em;
    color: var(--text-light);
}

.form-status.success {
    color: #1b6b2a;
}

.form-status.error {
    color: #b91c1c;
}

.page-header {
    background-color: var(--navy);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-bottom: 4px solid var(--orange);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
}

/* Custom Contact Section */
.contact-images-section {
    background-color: var(--gray-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.contact-video-bg iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-images-section .container {
    position: relative;
    z-index: 2;
}

.contact-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-image-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.contact-image-item:hover img {
    transform: scale(1.05);
}

.cta-call-text {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.cta-number {
    font-size: 2.5rem;
    color: var(--navy);
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    transition: var(--transition);
}

.cta-number:hover {
    color: var(--orange);
}

@media (max-width: 768px) {
    .contact-images-grid {
        grid-template-columns: 1fr;
    }
    .cta-number {
        font-size: 2rem;
    }
}

