/* RESET & BASE */
:root {
    --c-navy: #0F1E26;
    --c-navy-light: #1A3440;
    --c-gold: #C89B3F;
    --c-gold-hover: #E3B353;
    --c-cream: #F9F7F1;
    --c-white: #FFFFFF;
    --c-gray-light: #E5E5E5;
    --c-gray-mid: #8C8C8C;
    --c-text: #2A2A2A;
    --c-text-light: #5A5A5A;
    
    --f-heading: 'Playfair Display', serif;
    --f-body: 'Inter', sans-serif;
    --f-accent: 'Oswald', sans-serif;
    
    --w-container: 1280px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hard: 0 15px 40px rgba(15,30,38,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--f-body);
    color: var(--c-text);
    background-color: var(--c-white);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, ol { list-style: none; }

/* UTILITIES */
.container {
    max-width: var(--w-container);
    margin: 0 auto;
    padding: 0 24px;
}
.text-center { text-align: center; }
.text-gold { color: var(--c-gold); }
.bg-navy { background-color: var(--c-navy); color: var(--c-white); }
.bg-cream { background-color: var(--c-cream); }
.bg-pattern {
    background-image: linear-gradient(rgba(200,155,63,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,155,63,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.blueprint-bg {
    background-color: var(--c-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: 50px 50px;
    color: var(--c-white);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-family: var(--f-heading); color: var(--c-navy); font-weight: 700; line-height: 1.2; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .blueprint-bg h2 { color: var(--c-white); }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; position: relative; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
p { margin-bottom: 1.2rem; color: var(--c-text-light); }
.bg-navy p, .blueprint-bg p { color: #D0D0D0; }
.subtitle {
    font-family: var(--f-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-gold);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--f-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 2px; /* Slight structural radius */
}
.btn-primary {
    background-color: var(--c-gold);
    color: var(--c-navy);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
    background-color: var(--c-navy); transition: width 0.4s ease; z-index: -1;
}
.btn-primary:hover { color: var(--c-white); }
.btn-primary:hover::before { width: 100%; }

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

/* HEADER */
.site-header {
    background: var(--c-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--c-gray-light);
    padding: 15px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--f-heading);
    font-size: 28px;
    color: var(--c-navy);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--c-gold); }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-navy);
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--c-gold); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.mobile-toggle {
    display: none;
    font-size: 28px;
    color: var(--c-navy);
    cursor: pointer;
    background: none;
    border: none;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    background-color: var(--c-navy);
    overflow: hidden;
}
.hero-img {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, var(--c-navy) 0%, rgba(15,30,38,0.7) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* SECTIONS */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* GRID LAYOUTS */
.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* STRUCTURAL CARDS */
.card-service {
    background: var(--c-white);
    border: 1px solid var(--c-gray-light);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hard);
    border-color: var(--c-gold);
}
.card-service-img-wrapper {
    position: relative;
    padding-top: 65%; /* 3:2 aspect */
    overflow: hidden;
}
.card-service img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card-service:hover img { transform: scale(1.05); }
.card-service-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-service h3 { font-size: 1.5rem; margin-bottom: 12px; }
.card-service p { flex-grow: 1; margin-bottom: 24px; }
.card-service .btn-link {
    font-family: var(--f-accent);
    color: var(--c-gold);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.card-service .btn-link::after { content: '→'; transition: transform 0.3s; }
.card-service .btn-link:hover::after { transform: translateX(5px); }

/* PROCESS STEPS */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.process-step {
    position: relative;
    padding: 40px 30px;
    background: var(--c-white);
    border-top: 4px solid var(--c-gold);
    box-shadow: var(--shadow-soft);
}
.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: -25px;
    left: 30px;
    background: var(--c-navy);
    color: var(--c-gold);
    width: 50px; height: 50px;
    display: flex; justify-content: center; align-items: center;
    font-family: var(--f-accent);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
}
.process-step h3 { margin-top: 15px; font-size: 1.3rem; }

/* IMAGE OVERLAP (Structural visual) */
.img-overlap {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}
.img-overlap::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 80%; height: 80%;
    border: 4px solid var(--c-gold);
    z-index: 0;
}
.img-overlap img {
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-hard);
}

/* MATERIALS BANNER */
.materials-banner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
    margin-top: 60px;
}
.material-item {
    text-align: center;
    color: var(--c-white);
}
.material-item h4 { font-family: var(--f-accent); letter-spacing: 2px; color: var(--c-gold); margin-bottom: 8px; font-size: 1.2rem; }
.material-item p { margin: 0; font-size: 0.9rem; color: #aaa; }

/* FAQ ACCORDION */
.faq-item {
    border-bottom: 1px solid var(--c-gray-light);
    padding: 20px 0;
}
.faq-question {
    font-family: var(--f-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--c-text-light);
    padding-top: 0;
}
.faq-item.active .faq-answer {
    max-height: 300px; /* arbitrary max height */
    padding-top: 15px;
}

/* FOOTER */
.site-footer {
    background-color: var(--c-navy);
    color: #A0A0A0;
    padding: 80px 0 30px;
    border-top: 4px solid var(--c-gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-col h4 {
    color: var(--c-white);
    font-family: var(--f-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    font-size: 1.1rem;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #A0A0A0; }
.footer-col a:hover { color: var(--c-gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.footer-bottom-links a { margin-left: 20px; }

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 50px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    
    .mobile-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--c-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-hard);
        gap: 20px;
    }
    .nav-links.active { display: flex; }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero { padding: 60px 0; min-height: 60vh; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp 0.8s ease forwards; }

/* UTILITY SPACING */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* CONTACT FORM */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--c-navy); }
.form-input {
    width: 100%; padding: 16px; border: 1px solid var(--c-gray-light);
    border-radius: 2px; font-family: var(--f-body); font-size: 1rem;
    background: var(--c-cream); transition: border-color 0.3s;
}
.form-input:focus { outline: none; border-color: var(--c-gold); }
textarea.form-input { min-height: 150px; resize: vertical; }

/* GALLERY MASONRY */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 600px) { .gallery-grid { column-count: 1; } }
.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.gallery-item img {
    width: 100%; display: block; transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,30,38,0.8);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { color: var(--c-gold); font-family: var(--f-accent); font-size: 1.2rem; letter-spacing: 1px; }

/* TABLE FOR PRICING/SPECS */
.data-table {
    width: 100%; border-collapse: collapse; margin-top: 30px;
}
.data-table th, .data-table td {
    padding: 16px; text-align: left; border-bottom: 1px solid var(--c-gray-light);
}
.data-table th { font-family: var(--f-heading); color: var(--c-navy); }
.data-table tr:nth-child(even) { background-color: var(--c-cream); }

/* WIDE CALLOUT */
.callout {
    background-color: var(--c-cream);
    border-left: 4px solid var(--c-gold);
    padding: 30px;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--c-navy);
}
