/* --- RA JOINERY | BRAND IDENTITY & COLOR PALETTE --- */

:root {
    --primary-dark: #0a161a;
    --accent-teal: #3b7a77;
    --accent-teal-light: #529b97;
    --stone-white: #e8e8e8;
    --bg-light: #f4f7f6;
    --text-main: #1a1a1a;
    --gold: #c5a059;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.8;
}

h1, h2, h3, .brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--white);
    padding: 0.8rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-logo {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-size: 1.8rem;
    color: var(--primary-dark);
    line-height: 1;
    letter-spacing: 2px;
}

.est {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-teal);
    letter-spacing: 3px;
    margin-top: 4px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-teal);
}

/* --- HERO SECTION --- */
.hero {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(rgba(10, 22, 26, 0.6), rgba(10, 22, 26, 0.6)),
                url('assets/img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--stone-white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
}

/* --- EXPERTISE SECTION --- */
.expertise {
    padding: 10rem 10%;
    background: var(--white);
    border-bottom: 1px solid var(--stone-white);
}

.content-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.expertise h2 {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.expertise h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-teal);
    margin: 1rem auto 0;
}

.expertise p {
    max-width: 850px;
    margin: 0 auto 2rem auto;
    text-align: center;
    color: var(--text-main);
    font-size: 1.25rem;
    line-height: 1.9;
}

/* ================================================================
   PORTFOLIO SECTION — Thumbnail Grid + Lightbox
   ================================================================ */

.portfolio-section {
    background: var(--primary-dark);
    padding: 5rem 5% 6rem;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--stone-white);
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
}

.portfolio-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent-teal);
    margin: 0.8rem auto 0;
}

.portfolio-header p {
    color: rgba(232, 232, 232, 0.6);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- Category Tabs --- */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    border: 1px solid var(--accent-teal);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(232, 232, 232, 0.55);
    padding: 0.85rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    border-right: 1px solid var(--accent-teal);
    width: auto;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: rgba(59, 122, 119, 0.2);
    color: var(--stone-white);
}

.tab-btn.active {
    background: var(--accent-teal);
    color: var(--white);
}

/* --- Thumbnail Grid --- */
.thumb-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 22vw, 280px), 1fr));
    gap: 10px;
    max-width: 1300px;
    margin: 0 auto;
}

.thumb-grid.active {
    display: grid;
}

/* "View All" link spans full width */
.portfolio-view-all {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1.5rem;
}

.view-all-btn {
    display: inline-block;
    color: var(--accent-teal-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-teal);
    padding-bottom: 3px;
    transition: color 0.3s, border-color 0.3s;
}

.view-all-btn:hover {
    color: var(--stone-white);
    border-color: var(--stone-white);
}

/* --- Individual Thumbnail --- */
.thumb-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: saturate(0.75);
}

.thumb-item:hover img {
    transform: scale(1.06);
    filter: saturate(1);
}

/* Hover overlay */
.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 26, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.thumb-item:hover .thumb-overlay {
    opacity: 1;
}

.thumb-overlay span {
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.7);
    padding: 0.5rem 1.1rem;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 12, 15, 0.96);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(90vw, 1100px);
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}

#lightbox-caption {
    color: rgba(232, 232, 232, 0.5);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 1rem;
    text-align: center;
}

/* Close button */
.lightbox-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--stone-white);
    font-size: 1.8rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

/* Prev / Next arrows */
.lightbox-prev,
.lightbox-next {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--stone-white);
    font-size: 2.5rem;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

/* --- CONTACT SECTION --- */
.inquiry-form {
    padding: 8rem 10%;
    background: var(--primary-dark);
    color: var(--stone-white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-text h2 {
    font-size: 2.8rem;
    color: var(--accent-teal-light);
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-teal);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--stone-white);
    background: rgba(255, 255, 255, 0.1);
}

/* --- BUTTONS & CTAs --- */
button {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent-teal);
    border: none;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: var(--accent-teal-light);
}

/* --- FOOTER --- */
footer {
    background: var(--primary-dark);
    color: rgba(232,232,232,0.4);
    text-align: center;
    padding: 2rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-top: 1px solid rgba(59,122,119,0.3);
}

/* --- REVIEWS --- */
.reviews-page {
    background-color: var(--bg-light);
    padding-bottom: 8rem;
}

.reviews-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.review-box {
    background: var(--white);
    padding: 3rem;
    border-left: 8px solid var(--accent-teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, border-left-color 0.3s ease;
}

.review-box:hover {
    transform: translateX(15px);
    border-left-color: var(--primary-dark);
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--stone-white);
    padding-bottom: 1rem;
}

.client-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.review-date {
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-main);
    font-style: italic;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 900px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .portfolio-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
    }

    .tab-btn {
        border-right: none;
        border-bottom: 1px solid var(--accent-teal);
    }

    .tab-btn:last-child {
        border-bottom: none;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }

    .brand-name { font-size: 1.3rem; }

    nav ul li { margin-left: 1rem; }
    nav ul li a { font-size: 0.75rem; }

    .expertise { padding: 5rem 6%; }
    .expertise h2 { font-size: 2.2rem; }
    .expertise p { font-size: 1rem; }

    .portfolio-section { padding: 3rem 4% 4rem; }

    .thumb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.8rem;
    }
}

/* --- ENQUIRY FORM (mailto-powered) --- */
.form-note {
    font-size: 0.72rem;
    color: rgba(232,232,232,0.4);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Success message shown after button click */
.form-success-msg {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1rem;
    min-height: 260px;
}

.success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--accent-teal);
    color: var(--white);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--accent-teal-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.success-body {
    color: rgba(232,232,232,0.7);
    font-size: 0.88rem;
    line-height: 1.9;
}
