/* ===== Loader ===== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-roof {
    width: 160px;
    height: auto;
    color: var(--color-accent);
    animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #1a1a1a;
    --color-text: #333;
    --color-muted: #666;
    --color-light: #f7f7f7;
    --color-white: #fff;
    --color-accent: #2d6a4f;
    --color-accent-light: #e9f5ef;
    --color-border: #e5e5e5;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
    --transition: 0.3s ease;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: #235c42;
    border-color: #235c42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,106,79,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.nav-logo img {
    height: 72px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.nav-cta {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
}

.nav-cta:hover {
    background: #235c42 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 24px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--color-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-image {
    position: relative;
    order: 2;
}

.hero-content {
    order: 1;
}

.hero-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
}

/* ===== Services Overview ===== */
.services-overview {
    padding: 100px 0;
    background: var(--color-light);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    display: block;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card-image {
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 28px;
}

.service-card-body h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.service-card-body p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* ===== Service Detail Sections ===== */
.service-detail {
    padding: 100px 0;
}

.service-detail.alt {
    background: var(--color-light);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.detail-grid.reverse {
    direction: rtl;
}

.detail-grid.reverse > * {
    direction: ltr;
}

.detail-img-main {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-img-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.detail-img-row img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.detail-badge {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.detail-content h2 {
    margin-bottom: 24px;
}

.detail-list {
    list-style: none;
    margin-bottom: 28px;
}

.detail-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--color-text);
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.detail-tags span {
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== About ===== */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: 56px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

.about-content p {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-quote {
    margin: 28px 0 8px;
    padding-left: 20px;
    border-left: 3px solid var(--color-accent);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-dark);
    line-height: 1.7;
}

.about-signature {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== Contact ===== */
.contact {
    padding: 100px 0;
    background: var(--color-light);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    text-align: left;
}

.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-info {
    display: flex;
    align-items: flex-start;
}

.contact-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.contact-photo {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--color-accent-light);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card h3 {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.contact-tagline {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.contact-details li svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.contact-details a {
    color: var(--color-accent);
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* ===== Roof Divider ===== */
.roof-divider {
    text-align: center;
    padding: 40px 0 20px;
    background: var(--color-white);
}

.roof-divider svg {
    width: 240px;
    height: auto;
    color: var(--color-border);
    transition: color 0.4s ease;
}

.roof-divider:hover svg {
    color: var(--color-accent);
}

.roof-divider-alt {
    background: var(--color-light);
}

.roof-footer {
    padding: 0 0 24px;
    background: transparent;
}

.roof-footer svg {
    width: 140px;
    opacity: 0.35;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    height: 60px;
    width: auto;
    opacity: 0.6;
}

.footer p {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.footer-credit {
    font-size: 0.75rem;
    opacity: 0.5;
    text-align: center;
    padding: 16px 0 0;
    margin-top: 24px;
    border-top: 1px solid var(--color-border);
}

.footer-credit a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive – Tablet ===== */
@media (max-width: 960px) {
    html {
        scroll-padding-top: 70px;
    }

    .nav-container {
        height: 70px;
    }

    .nav-logo img {
        height: 48px;
    }

    .nav-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle span {
        width: 22px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
        border-radius: var(--radius-sm) !important;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 70px 0 0;
        gap: 0;
        text-align: center;
        max-width: 100%;
    }

    .hero-image {
        order: 1;
    }

    .hero-content {
        order: 2;
        padding: 32px 20px 48px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 10px;
    }

    .hero-image img {
        height: 55vw;
        min-height: 220px;
        max-height: 340px;
        border-radius: 0;
        box-shadow: none;
    }

    .services-overview {
        padding: 64px 0;
    }

    .section-subtitle {
        margin-bottom: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 20px;
    }

    .service-card-image {
        height: 180px;
    }

    .service-card-body {
        padding: 20px;
    }

    .service-detail {
        padding: 64px 0;
    }

    .detail-grid,
    .detail-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
    }

    .detail-img-main {
        height: 240px;
    }

    .detail-img-row img {
        height: 130px;
    }

    .about {
        padding: 64px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image img {
        height: 320px;
    }

    .contact {
        padding: 64px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info {
        order: -1;
    }

    .contact-card {
        text-align: center;
    }

    .contact-photo {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-details {
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.6rem;
    }

    .footer-logo {
        height: 40px;
    }
}

/* ===== Responsive – Mobile ===== */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 70px 0 0;
    }

    .hero-content {
        padding: 24px 16px 40px;
    }

    .hero-content h1 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-image img {
        height: 50vw;
        min-height: 200px;
        max-height: 280px;
    }

    .services-overview {
        padding: 48px 0;
    }

    .services-grid {
        max-width: 100%;
    }

    .service-detail {
        padding: 48px 0;
    }

    .detail-img-main {
        height: 200px;
    }

    .detail-img-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .detail-img-row img {
        height: 110px;
    }

    .about {
        padding: 48px 0;
    }

    .about-image img {
        height: 260px;
    }

    .about-quote {
        font-size: 1rem;
    }

    .detail-content h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .detail-list li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .contact {
        padding: 48px 0;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-card {
        padding: 24px;
    }

    .contact-photo {
        width: 120px;
        height: 120px;
        border-radius: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 14px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .footer {
        padding: 28px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-logo {
        height: 32px;
    }

    h2 {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .detail-tags {
        gap: 6px;
    }

    .detail-tags span {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}
