/* ==========================================================================
   FINE LINE CONSTRUCTION PROJECTS - CORE STYLES
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-bg: #F5F1E9;
    --color-surface: #EAE2D6;
    --color-primary: #B6532D;
    --color-primary-dark: #913E23;
    --color-secondary: #53634C;
    --color-tertiary: #263C32;
    --color-text: #202521;
    --color-muted: #5B5F5B;
    --color-white: #FFFFFF;
    --color-on-dark: #F5F5F7;
    --color-on-dark-muted: #A1A1AA;
    --color-on-primary: #FFFFFF;
    --color-card-text: #18181B;
    --color-card-muted: #3F3F46;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Spacing */
    --section-padding: 8rem 0;
    --container-padding: 2rem;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    width: 100%;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
.section-padding {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 4rem;
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-surface);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0.9rem;
    left: 50%;
    width: min(1440px, calc(100% - 2rem));
    z-index: 1000;
    padding: 0.65rem 0;
    border: 1px solid rgba(53, 47, 39, 0.24);
    border-radius: 999px;
    background: rgba(250, 248, 244, 0.9);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    transform: translateX(-50%);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(250, 248, 244, 0.86);
    border-color: rgba(53, 47, 39, 0.2);
}

.site-header .container-fluid {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
}

body.dark-mode .site-header {
    background: rgba(25, 29, 25, 0.9);
    border-color: rgba(245, 241, 233, 0.3);
}

body.dark-mode .site-header.scrolled {
    background: rgba(25, 29, 25, 0.86);
    border-color: rgba(245, 241, 233, 0.26);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1;
}

.brand-logo-mark {
    width: clamp(2.5rem, 3.5vw, 3rem);
    height: clamp(2.5rem, 3.5vw, 3rem);
    flex: 0 0 auto;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: filter 0.3s ease;
}

body.dark-mode .brand-logo-mark {
    mix-blend-mode: normal;
    filter: brightness(0) invert(1);
}

.brand-logo-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.02rem;
}

.brand-logo small {
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.045em;
    line-height: 1.25;
}

.brand-logo small strong {
    color: var(--color-text);
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-bottom: 3rem;
}

.hero-subtitle {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--color-muted);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero-image-wrapper {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
}

/* Trust Section (Asymmetrical Grid) */
.trust-section {
    background-color: var(--color-bg);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.trust-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trust-img-card {
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
}

.trust-img-card.tall {
    height: 400px;
}

.trust-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trust-img-card:hover img {
    transform: scale(1.05);
}

.trust-stat-card {
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: 20px;
}

.trust-stat-card h3 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.trust-stat-card h4 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trust-stat-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Mobile Menu */
.mobile-menu-btn {
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    cursor: pointer;
    flex: 0 0 auto;
}

.mobile-menu-btn span {
    display: block;
    width: 23px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.6s ease-in-out;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.active {
    clip-path: circle(150% at 100% 0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-tertiary);
    color: var(--color-on-dark);
    padding-top: 6rem;
    overflow: hidden;
}

.footer-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    max-width: 390px;
    margin-bottom: 1.25rem;
    color: var(--color-on-dark-muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-bg);
    font-size: 0.84rem;
    font-weight: 600;
}

.footer-contact-link svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.footer-contact-link:hover svg {
    transform: translateX(3px);
}

.footer-newsletter {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.footer-newsletter input {
    background: transparent;
    border: none;
    color: var(--color-white);
    width: 100%;
    padding: 0.5rem 0;
    outline: none;
}

.footer-newsletter button {
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-links li {
    color: var(--color-on-dark-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-social-list {
    display: grid;
    gap: 0.15rem;
}

.footer-social-list li {
    margin: 0;
}

.footer-social-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 30px;
}

.footer-brand-icon,
.footer-contact-icon {
    display: inline-flex;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    align-items: center;
    justify-content: center;
}

.footer-contact-icon {
    color: #fff;
    stroke-width: 1.8;
}

.footer-social-list svg,
.footer-icon-list svg {
    display: block;
    width: 18px;
    height: 18px;
    color: currentColor;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-icon-list a {
    width: 40px;
    height: 40px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer-icon-list a[href*="whatsapp.com/channel"] svg {
    display: none;
}

.footer-icon-list a[href*="whatsapp.com/channel"]::before {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-color: currentColor;
    content: "";
    -webkit-mask: url("../images/whatsapp-mark.svg") center / contain no-repeat;
    mask: url("../images/whatsapp-mark.svg") center / contain no-repeat;
}

.footer-icon-list a:hover {
    border-color: var(--color-bg);
    background: var(--color-bg);
    color: var(--color-tertiary);
}

body.dark-mode .footer-icon-list a:hover {
    color: var(--color-on-dark);
}

.footer-icon-list .footer-contact-icon {
    color: currentColor;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--color-on-dark-muted);
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
}

.footer-heart {
    width: 14px;
    height: 14px;
    fill: #d27b55;
    color: #d27b55;
    stroke-width: 2.5;
    vertical-align: middle;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .trust-img-card.tall {
        height: 250px;
    }
    .hero-image-wrapper {
        height: 50vh;
    }
}

@media (max-width: 600px) {
    .site-header {
        top: 0.5rem;
        width: calc(100% - 1rem);
        padding: 0.45rem 0;
    }

    .site-header .container-fluid {
        width: 100%;
        padding-right: 0.35rem !important;
        padding-left: 0.35rem !important;
    }

    .brand-logo {
        min-width: 0;
        gap: 0.45rem;
        font-size: clamp(1rem, 4.2vw, 1.28rem);
        white-space: nowrap;
    }

    .brand-logo-mark {
        width: clamp(2.2rem, 10vw, 2.85rem);
        height: clamp(2.2rem, 10vw, 2.85rem);
    }

    .brand-logo small {
        font-size: clamp(0.44rem, 2vw, 0.52rem);
        white-space: nowrap;
    }

    .main-nav {
        display: none !important;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 0.35rem;
    }
}

@media (max-width: 360px) {
    .brand-logo {
        font-size: 0.96rem;
    }

    .brand-logo-mark {
        width: 2.2rem;
        height: 2.2rem;
    }

    .brand-logo small {
        font-size: 0.42rem;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    .footer-credit {
        justify-content: center;
    }
    .section-padding {
        padding: 4rem 0;
    }
}