/* ========================================
   RIDGELINE ROOF WORKS - STYLESHEET
   ======================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #000033;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444444;
}

/* ---- Layout Containers ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(3, 3, 58, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.logo-link {
    display: block;
}

.logo-img {
    height: 65px;
    width: auto;
}

/* ---- Navigation ---- */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    margin-left: 45px;
    position: relative;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

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

/* Dropdown */
.nav-item.has-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item.has-dropdown > .nav-link::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #ffffff;
    transition: transform 0.3s ease;
    order: 2;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #000033;
    min-width: 260px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-item.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Nested submenu */
.dropdown-item.has-submenu {
    position: relative;
}

.dropdown-item.has-submenu > .dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dropdown-item.has-submenu > .dropdown-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #ffffff;
    transition: transform 0.3s ease;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #000033;
    min-width: 240px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 70vh;
    overflow-y: auto;
}

.dropdown-item.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu .dropdown-link {
    font-size: 12px;
    padding: 8px 20px;
}

/* ---- Mobile Menu ---- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* ---- Hero Banner ---- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}

.hero-banner.hero-short {
    height: 50vh;
    min-height: 300px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-banner video.hero-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 3, 58, 0.3);
}

/* ---- Section Titles ---- */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #000033;
    text-align: center;
    margin-bottom: 15px;
}

.section-title-underline {
    width: 300px;
    height: 4px;
    background-color: #000033;
    margin: 0 auto 50px auto;
}

/* ---- Intro Section ---- */
.intro-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    color: #000033;
    margin-bottom: 0;
}

.intro-right p {
    font-size: 16px;
    color: #444444;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 16px 45px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #000033;
    color: #ffffff;
    border: 2px solid #000033;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #000033;
}

.btn-white {
    background-color: #ffffff;
    color: #000033;
    border: 2px solid #ffffff;
}

.btn-white:hover {
    background-color: transparent;
    color: #ffffff;
}

/* ---- Services Bar ---- */
.services-bar {
    background-color: #000033;
    padding: 60px 0;
}

.services-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.service-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-bar-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.service-bar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-bar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

/* ---- Content Section ---- */
.content-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-row-reverse {
    direction: rtl;
}

.content-row-reverse > * {
    direction: ltr;
}

.content-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.content-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #000033;
    margin-bottom: 25px;
}

.content-text p {
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ---- Quote Section ---- */
.quote-section {
    background-color: #e0e0e0;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.quote-bg-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    opacity: 0.15;
    pointer-events: none;
}

.quote-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.8;
    color: #000033;
    margin-bottom: 25px;
}

.quote-author {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000033;
}

/* ---- Partners ---- */
.partners-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.partners-grid img {
    max-height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.partner-logo {
    max-height: 80px;
    width: auto;
}

/* ---- Instagram ---- */
.instagram-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: block;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.instagram-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.instagram-play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #000033;
    margin-left: 3px;
}

/* ---- Footer ---- */
.footer {
    background-color: #000033;
    color: #ffffff;
    padding: 60px 0 30px 0;
}

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

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #ffffff;
}

.footer-contact-item img {
    width: 20px;
    height: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social-link {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.footer-social-link:hover {
    background-color: #cccccc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.footer-copyright {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-credit {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 5px;
}

.footer-credit a {
    text-decoration: underline;
    color: #ffffff;
}

.footer-credit a:hover {
    color: #cccccc;
}

/* ---- CTA Section ---- */
.cta-section {
    background-color: #4a4a4a;
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 30px;
}

/* ---- Values Grid ---- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    text-align: center;
}

.value-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000033;
    margin-bottom: 20px;
}

.value-item p {
    font-size: 15px;
    line-height: 1.8;
    color: #444444;
}

/* ---- Testimonials Grid ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 0 60px 0;
}

.testimonial-card {
    background-color: #e0e0e0;
    padding: 40px 35px;
    text-align: center;
}

.testimonial-stars {
    margin-bottom: 20px;
}

.testimonial-stars img {
    height: 25px;
    margin: 0 auto;
}

.testimonial-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #000033;
    margin-bottom: 20px;
}

.testimonial-author {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    color: #000033;
}

/* ---- Contact Form ---- */
.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000033;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 12px;
}

.contact-info a {
    color: #000033;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #cccccc;
    background-color: #f9f9f9;
    color: #333333;
    transition: border-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-input:focus {
    border-color: #000033;
    background-color: #ffffff;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background-color: #000033;
    color: #ffffff;
    padding: 16px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid #000033;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: #ffffff;
    color: #000033;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .header-inner {
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: #000033;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav.active {
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-item {
        margin: 0 0 15px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background-color: rgba(0, 0, 51, 0.5);
        min-width: 100%;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
    }

    .dropdown-menu.active {
        display: block;
    }

    .nav-item.has-dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        background-color: rgba(0, 0, 51, 0.3);
        min-width: 100%;
        box-shadow: none;
        padding: 0;
        max-height: none;
        padding-left: 15px;
    }

    .submenu.active {
        display: block;
    }

    .intro-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .intro-heading {
        font-size: 28px;
    }

    .services-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-image img {
        max-height: 250px;
    }

    .content-heading {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .footer-logo img {
        height: 50px;
    }

    .partners-grid img {
        max-height: 60px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        gap: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-banner {
        height: 100vh;
        min-height: 350px;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    }

    .hero-banner.hero-short {
        height: 50vh;
        min-height: 250px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    }

    .content-section {
        padding: 50px 0;
    }

    .intro-section {
        padding: 50px 0;
    }

    .cta-section {
        padding: 50px 0;
    }

    .contact-section {
        padding: 50px 0;
    }

    .services-bar {
        padding: 40px 0;
    }

    .section-title-underline {
        width: 200px;
    }

    .form-input {
        font-size: 16px;
    }

    .contact-info h3 {
        font-size: 24px;
    }

    .cta-title {
        font-size: 28px;
    }

    .footer-nav {
        gap: 25px;
    }

    .footer-contact {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-bar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .service-bar-icon {
        width: 80px;
        height: 80px;
    }

    .service-bar-title {
        font-size: 13px;
    }

    .section-title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .intro-heading {
        font-size: 22px;
    }

    .btn {
        padding: 14px 35px;
        font-size: 13px;
    }

    .instagram-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        gap: 30px;
    }

    .content-image img {
        max-height: 220px;
    }

    .form-submit {
        width: 100%;
        padding: 16px 20px;
    }

    .cta-title {
        font-size: 24px;
    }
}
