/* ============================================================
   GLOBAL STYLES — CLEAN, MODERN, BALANCED SPACING
   ============================================================ */

:root {
    --bronze-dark: #8b5a2b;
    --bronze-light: #d28a4b;
    --bg-dark: #050505;
    --text-light: #ffffff;

    /* Spacing scale */
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 40px;
    --space-xl: 80px;

    /* Typography */
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-size-body: 17px;
    --font-size-h1: 46px;
    --font-size-h2: 34px;
    --font-size-h3: 22px;
    --font-size-h4: 19px;

    /* Glow refinement */
    --glow-strong: 0 0 22px rgba(210,138,75,0.9), 0 0 45px rgba(210,138,75,0.6);
    --glow-soft: 0 0 12px rgba(210,138,75,0.6), 0 0 22px rgba(210,138,75,0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at top, #1a120a 0%, #050505 55%, #000 100%);
    color: var(--text-light);
    line-height: 1.6;
    font-size: var(--font-size-body);
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

body.fade-in {
    opacity: 1;
}

/* Bronze headings — premium identity */
h1, h2, h3, h4 {
    color: var(--bronze-light);
    text-shadow: 0 0 10px rgba(210,138,75,0.7);
}

/* ============================================================
   HEADER + NAVIGATION
   ============================================================ */

header {
    padding: var(--space-md) 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: bold;
    color: #fff;
}

.logo-container img {
    height: 55px;
    width: auto;
    margin-right: var(--space-sm);
}

/* Premium pulsing glow */
.logo-pulse {
    filter: drop-shadow(0 0 6px rgba(210,138,75,0.7));
    animation: logoPulse 2.8s infinite ease-in-out;
}

@keyframes logoPulse {
    0% {
        filter: drop-shadow(0 0 4px rgba(210,138,75,0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(210,138,75,1));
        transform: scale(1.06);
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(210,138,75,0.4));
        transform: scale(1);
    }
}

nav a {
    margin-left: var(--space-md);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    color: var(--bronze-light);
    text-shadow: var(--glow-soft);
}

/* ============================================================
   HERO SECTION — BALANCED SPACING + PREMIUM FEEL
   ============================================================ */

.hero {
    padding: var(--space-xl) 10% var(--space-lg);
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    align-items: center;
}

.hero-text {
    max-width: 520px;
}

.hero-text h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--space-md);
}

.hero-text p {
    opacity: 0.85;
    margin-bottom: var(--space-md);
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
}

/* Primary button */
.btn-primary {
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--bronze-dark), var(--bronze-light));
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
}

/* Ghost button */
.btn-ghost {
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid rgba(184,115,51,0.6);
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(184,115,51,0.15);
    box-shadow: var(--glow-soft);
}

/* Button pulse animation */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 10px rgba(210,138,75,0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: var(--glow-strong);
        transform: scale(1.04);
    }
    100% {
        box-shadow: 0 0 10px rgba(210,138,75,0.35);
        transform: scale(1);
    }
}

.hero-cta .btn-primary,
.hero-cta .btn-ghost {
    animation: buttonPulse 3s ease-in-out infinite;
}


/* ============================================================
   SERVICES — EXPANDING TILES (REFINED + PREMIUM)
   ============================================================ */

.services-section {
    padding: var(--space-xl) 10%;
    text-align: center;
}

.services-section h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-lg);
    text-shadow: var(--glow-soft);
}

/* Responsive auto-fit grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    position: relative;
}

/* Initial tile */
.service-tile {
    background: #111;
    border: 1px solid rgba(184,115,51,0.25);
    border-radius: 14px;
    padding: var(--space-lg) var(--space-md);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.45s ease, box-shadow 0.45s ease, opacity 1s ease;
}

/* Constant pulsating glow */
.service-tile {
    animation: servicePulse 3s ease-in-out infinite;
}

@keyframes servicePulse {
    0%   { box-shadow: 0 0 10px rgba(210,138,75,0.25); }
    50%  { box-shadow: 0 0 25px rgba(210,138,75,0.55); }
    100% { box-shadow: 0 0 10px rgba(210,138,75,0.25); }
}


/* Pulsating glow for service tiles */
.service-tile {
    animation: servicePulse 3s ease-in-out infinite;
}

@keyframes servicePulse {
    0%   { box-shadow: 0 0 10px rgba(210,138,75,0.25); }
    50%  { box-shadow: 0 0 25px rgba(210,138,75,0.55); }
    100% { box-shadow: 0 0 10px rgba(210,138,75,0.25); }
}

.service-tile:hover {
    transform: translateY(-6px);
}
}

.service-tile h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-h3);
}

.service-tile .short {
    color: #ccc;
    font-size: 15px;
    line-height: 1.5;
}

/* Constant pulsating glow for service tiles */
.service-tile {
    animation: servicePulse 3s ease-in-out infinite !important;
}

@keyframes servicePulse {
    0%   { box-shadow: 0 0 10px rgba(210,138,75,0.25); }
    50%  { box-shadow: 0 0 25px rgba(210,138,75,0.55); }
    100% { box-shadow: 0 0 10px rgba(210,138,75,0.25); }
}

/* ============================================================
   EXPANDED TILE — PREMIUM SCALE + GLOW PULSE
   ============================================================ */


/* CENTERED, RESPONSIVE EXPANDED TILE */
.service-tile.expanded {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: min(900px, 92%);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    background: #0d0d0d;
    border-radius: 18px;
    padding: var(--space-xl) var(--space-lg);
    box-shadow: 0 0 55px rgba(184,115,51,0.6), 0 0 90px rgba(184,115,51,0.4);
}
.service-tile.expanded {
    height: auto;
}

.service-tile.expanded {
    width: min(900px, 92%);
    max-height: 90vh;
    height: auto;
}


/* Premium glow‑pulse expand animation */
@keyframes expandGlow {
    0% {
        transform: scale(0.92);
        opacity: 0;
        box-shadow: none;
    }
    50% {
        transform: scale(1.02);
        box-shadow: var(--glow-strong);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 55px rgba(184,115,51,0.6), 0 0 90px rgba(184,115,51,0.4);
    }
}

/* Collapse animation for non-expanded tiles */
.service-tile:not(.expanded) {
    animation: collapseTile 0.9s ease-out forwards;
}

@keyframes collapseTile {
    from { transform: scale(1); opacity: 1; }
    to   { transform: scale(0.98); opacity: 1; }
}

/* Hide short text when expanded */
.service-tile.expanded .short {
    display: none;
}

/* Expanded content */
.expanded-content {
    display: none;
    margin-top: var(--space-md);
    text-align: left;
}

.service-tile.expanded .expanded-content {
    display: block;
}

/* Expanded image */
.expanded-content img.expanded-img {
    width: 40%;
    max-width: 320px;
    float: left;
    margin: 0 var(--space-md) var(--space-md) 0;
    border-radius: 12px;
    object-fit: cover;
}

/* Headings inside expanded tile */
.expanded-content h4 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-h4);
    text-shadow: var(--glow-soft);
}

.expanded-content p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

/* Close button */
.close-tile {
    margin-top: var(--space-lg);
    background: var(--bronze-light);
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    clear: both;
}

.close-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-soft);
}

/* Dim other tiles when one is open */
body.tile-open .service-tile:not(.expanded) {
    opacity: 0.15;
    pointer-events: none;
    filter: blur(2px);
    transition: opacity 1s ease, filter 1s ease;
}

/* Subtle blur/dim effect behind expanded tile */
body.tile-open {
    backdrop-filter: blur(6px) brightness(0.6);
    transition: backdrop-filter 1s ease;
}






/* ============================================================
   REVIEWS — CAROUSEL + TRUST BADGES (REFINED)
   ============================================================ */

.reviews-section {
    padding: var(--space-xl) 10%;
    text-align: center;
}

.reviews-section h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 10px;
    text-shadow: var(--glow-soft);
}

/* Carousel container */
.review-carousel {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Review cards */
.review-card {
    display: none;
    padding: var(--space-xl) var(--space-lg);
    background: #1a1a1a;
    border-radius: 14px;
    border: 1px solid rgba(184,115,51,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.review-card.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    box-shadow: 0 0 25px rgba(184,115,51,0.55),
                0 0 45px rgba(184,115,51,0.35),
                0 0 70px rgba(184,115,51,0.25);
}

/* Pulse on change */
@keyframes bronzePulseOnce {
    0% { box-shadow: 0 0 10px rgba(184,115,51,0.3); }
    50% { box-shadow: var(--glow-strong); }
    100% { box-shadow: 0 0 25px rgba(184,115,51,0.55); }
}

.review-card.pulse {
    animation: bronzePulseOnce 1.8s ease-out;
}

.review-card p {
    font-size: 18px;
    margin-bottom: var(--space-sm);
}

.review-card span {
    font-size: 14px;
    color: var(--bronze-light);
}

/* Carousel arrows */
.review-arrows {
    margin-top: var(--space-lg);
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

.arrow {
    font-size: 40px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.arrow:hover {
    color: var(--bronze-light);
    text-shadow: var(--glow-soft);
    transform: scale(1.2);
}

/* Divider line */
.divider-line {
    width: 120px;
    height: 2px;
    margin: var(--space-xl) auto var(--space-lg);
    background: linear-gradient(90deg, transparent, var(--bronze-light), transparent);
    box-shadow: var(--glow-soft);
}

/* Reduce space between heading and verified reviews */
.divider-line {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}


/* TrustATrader widget */
.tta-widget-section {
    padding: var(--space-xl) 10%;
    text-align: center;
}

.tta-widget-section h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-lg);
    text-shadow: var(--glow-soft);
}

.tta-widget-box {
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    background: transparent;
    border: none;
    box-shadow: none;
}

.fade-in-widget {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInWidget 1.2s ease-out forwards;
}

@keyframes fadeInWidget {
    to { opacity: 1; transform: translateY(0); }
}

/* Trust badges */
.trust-row {
    padding: var(--space-xl) 10%;
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

/* Trust badge text — white by default */
.trust-badge a,
.trust-badge h4,
.trust-badge p {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Hover: bronze colour + pulse glow */
.trust-badge:hover h4,
.trust-badge:hover p,
.trust-badge:hover a {
    color: var(--bronze-light) !important;
    animation: trustPulse 1.8s ease-in-out infinite;
}

/* Pulse animation (matches logo pulse style) */
@keyframes trustPulse {
    0%   { text-shadow: 0 0 6px rgba(210,138,75,0.4); }
    50%  { text-shadow: 0 0 14px rgba(210,138,75,1); }
    100% { text-shadow: 0 0 6px rgba(210,138,75,0.4); }
}


/* ============================================================
   TRUST BADGES — CONSTANT PULSE & NO BLUE LINES
   ============================================================ */

/* 1. Kill all potential link styling */
.trust-badge a, 
.trust-badge a:link, 
.trust-badge a:visited, 
.trust-badge a:hover, 
.trust-badge a:active {
    text-decoration: none !important;
    color: #fff !important;
    outline: none !important;
    border: none !important;
}

/* 2. Constant pulsing glow (Matches your logo style) */
.trust-icon {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: var(--space-sm);
    animation: trustPulse 2.8s infinite ease-in-out;
    transition: transform 0.3s ease;
}

@keyframes trustPulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(210,138,75,0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(210,138,75,0.9));
        transform: scale(1.05);
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(210,138,75,0.4));
        transform: scale(1);
    }
}

/* 3. Text Styling */
.trust-badge h4 {
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-h4);
    color: var(--bronze-light) !important; /* Constant bronze color */
    text-shadow: 0 0 8px rgba(210,138,75,0.5);
    text-decoration: none !important;
}

.trust-badge p {
    opacity: 0.85;
    font-size: 14px;
    color: #fff !important;
    text-decoration: none !important;
}

/* 4. Extra "Pop" on actual hover */
.trust-badge:hover .trust-icon {
    animation-play-state: paused; /* Optional: freeze the pulse on hover to focus */
    filter: drop-shadow(0 0 25px rgba(210,138,75,1));
    transform: scale(1.1);
}


/* ============================================================
   CONTACT PAGE — FORM + VALIDATION
   ============================================================ */

.contact-section {
    padding: var(--space-xl) 10%;
    text-align: center;
}

.contact-section h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-lg);
    text-shadow: var(--glow-soft);
}

.contact-section p {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #1a1a1a;

    /* Tighter padding */
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);

    border-radius: 14px;
    border: 1px solid rgba(184,115,51,0.25);
    box-shadow: 0 0 25px rgba(184,115,51,0.35),
                0 0 45px rgba(184,115,51,0.25);

    text-align: left;
}

/* Keep checkbox and label on one line */
/* Checkbox row: left aligned, tight spacing */
.checkbox-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;              /* space between tick and text */
    margin: 4px 0;
    white-space: nowrap;
    width: 100%;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    padding: 0;
    display: inline-block;
}


.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--bronze-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(184,115,51,0.25);
    background: #0f0f0f;
    color: #fff;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--bronze-light);
    box-shadow: var(--glow-soft);
    outline: none;
}

.contact-btn {
    margin-top: var(--space-sm);
    padding: 14px 30px;
    background: linear-gradient(90deg, var(--bronze-dark), var(--bronze-light));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.back-btn {
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(184,115,51,0.6);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.back-btn:hover {
    background: rgba(184,115,51,0.15);
    box-shadow: var(--glow-soft);
    transform: translateY(-2px);
}

/* Validation */
.error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 4px;
}

.valid { border-color: #2ecc71 !important; }
.invalid { border-color: #ff6b6b !important; }

/* ============================================================
   PROJECTS — AUTO-GENERATED GRID + MODAL GALLERY
   ============================================================ */

.projects-section {
    max-width: 1200px;
    margin: var(--space-xl) auto;
    padding: 0 20px;
    text-align: center;
}

.projects-section h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-lg);
    text-shadow: var(--glow-soft);
}

/* ============================================================
   GRID OF TILES
   ============================================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ============================================================
   PROJECT TILE (PULSING GLOW)
   ============================================================ */

.project-tile {
    height: 22vh;       /* scales with screen height */
    min-height: 160px;  /* never too small */
    max-height: 260px;  /* never too large */

    background: #111;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(184,115,51,0.25);
    box-shadow: 0 0 20px rgba(184,115,51,0.25);
    animation: tilePulse 3s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px rgba(184,115,51,0.45);
}

@keyframes tilePulse {
    0% { box-shadow: 0 0 15px rgba(184,115,51,0.25); }
    50% { box-shadow: 0 0 35px rgba(184,115,51,0.45); }
    100% { box-shadow: 0 0 15px rgba(184,115,51,0.25); }
}

/* ============================================================
   UNIFIED TILE TEXT STYLE (White & Readable)
   ============================================================ */

/* Targets both auto-generated and manual Instagram titles */
.project-title {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    /* Dark shadow to make white text pop on light wood */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 
                 0px 0px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

/* Ensure the Instagram overlay uses the same dark tint as others */
.insta-tile {
    min-height: 250px; /* Adjust to match your other project tiles */
    width: 100%;
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
    border-radius: 15px;
    cursor: pointer;
}
/* Hover Effects */
.project-tile:hover .project-title,
.insta-tile:hover .project-title {
    color: var(--bronze-light) !important;
    text-shadow: 0 0 10px rgba(210, 138, 75, 0.5);
}

.insta-tile:hover .project-overlay {
    background: rgba(0, 0, 0, 0.3); /* Slightly reveals more photo on hover */
}
/* Optional: Make the text glow slightly when you hover over the tile */
.project-tile:hover .project-title {
    color: var(--bronze-light) !important; /* Swaps back to bronze on hover */
    text-shadow: 0 0 15px rgba(210, 138, 75, 0.6);
}
/* ============================================================
   FULLSCREEN MODAL
   ============================================================ */

.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.project-modal.active {
    display: flex;
}

.project-modal-content {
    height: 90vh;               /* fixed height */
    max-height: 90vh;
    width: min(90%, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;           /* prevents content from expanding */
    border-radius: 14px;
    background: #111;
}

@keyframes expandModal {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============================================================
   GALLERY IMAGE
   ============================================================ */

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* image fits inside the frame */
    background: #000;           /* optional */
}

.gallery-image.fade-out {
    opacity: 0;
}

.gallery-loading {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: var(--bronze-light);
    text-shadow: var(--glow-soft);
    pointer-events: none;
}


/* ============================================================
   FLOATING ARROWS FIX
   ============================================================ */

.project-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%); /* Centers them perfectly vertically */
    display: flex;
    justify-content: space-between; /* Pushes one to the left, one to the right */
    padding: 0 20px;
    pointer-events: none; /* Allows you to click the image through the transparent div */
    z-index: 100; /* Keeps arrows above the image */
}

.proj-arrow {
    font-size: 60px; /* Made slightly larger for better visibility */
    cursor: pointer;
    color: var(--bronze-light);
    user-select: none;
    pointer-events: auto; /* Re-enables clicking on the actual arrows */
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8); /* Ensures they are visible on light wood */
    transition: transform 0.25s ease, color 0.25s ease;
}

.proj-arrow:hover {
    transform: scale(1.2);
    color: #fff;
}


/* ============================================================
   DESCRIPTION + CLOSE BUTTON
   ============================================================ */

.project-description {
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.close-project {
    width: auto; /* stop stretching */ 
    align-self: center; /* center it */ 
    padding: 10px 20px; 
    margin-top: 10px;
    border-radius: 999px;
    background: var(--bronze-light);
    color: #050505;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.close-project:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
   .project-gallery {
    flex: 1;                    /* takes remaining space */
    height: 60vh;               /* FIXED gallery height */
    max-height: 60vh;
    min-height: 60vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;           /* image cannot escape */
}



    .proj-arrow {
        font-size: 32px;
    }
}





/* ============================================================
   FOOTER — CLEAN + PREMIUM
   ============================================================ */

.footer {
    background: #0f0f0f;
    padding: var(--space-xl) 10% var(--space-lg);
    color: #fff;
    border-top: 1px solid rgba(184,115,51,0.25);
    box-shadow: 0 -10px 40px rgba(184,115,51,0.15);
    margin-top: var(--space-xl);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-h4);
    text-shadow: var(--glow-soft);
}

.footer-col p {
    line-height: 1.6;
    opacity: 0.85;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--space-xs);
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--bronze-light);
    text-shadow: var(--glow-soft);
}

/* Instagram icon */
.instagram-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--glow-soft);
    animation: instaPulse 3s ease-in-out infinite;
}

.instagram-img:hover {
    transform: translateY(-2px) scale(1.05);
    animation-duration: 1.8s;
}

@keyframes instaPulse {
    0% { box-shadow: var(--glow-soft); }
    50% { box-shadow: var(--glow-strong); }
    100% { box-shadow: var(--glow-soft); }
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(184,115,51,0.15);
    opacity: 0.7;
}

/* ============================================================
   RESPONSIVE — CLEAN + MODERN
   ============================================================ */

/* TABLETS */
@media (max-width: 992px) {

    header {
        padding: var(--space-md) 6%;
        flex-direction: column;
        gap: var(--space-sm);
    }

    nav a {
        margin-left: var(--space-sm);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg) 6%;
    }

    .services-section,
    .projects-section,
    .reviews-section,
    .contact-section {
        padding: var(--space-lg) 6%;
    }

    .trust-row {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-lg) 6%;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .back-btn {
        width: 100%;
        text-align: center;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    nav a {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: var(--space-lg);
    }

    .arrow {
        font-size: 34px;
    }

    .contact-form {
        padding: var(--space-lg);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .expanded-content img.expanded-img {
        width: 100%;
        float: none;
        margin: 0 0 var(--space-md) 0;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        padding: 16px;
        font-size: 15px;
    }

    .arrow {
        font-size: 32px;
    }

    .contact-form {
        padding: var(--space-md);
    }

    .footer {
        padding: var(--space-lg) 6% var(--space-md);
    }
}

/* Match index page button style + pulsing glow */
/* Base button style for both */
.contact-btn,
.back-btn {
    padding: 14px 32px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 15px;
    animation: buttonPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Contact button = bronze gradient */
.contact-btn {
    background: linear-gradient(90deg, var(--bronze-dark), var(--bronze-light));
    color: #fff;
}

/* Back button = black pill */
.back-btn {
    background: #000;
    color: #fff !important;
}

/* Hover effect for both */
.contact-btn:hover,
.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
}

/* Pulse animation (same as index) */
@keyframes buttonPulse {
    0%   { box-shadow: 0 0 10px rgba(210,138,75,0.35); transform: scale(1); }
    50%  { box-shadow: var(--glow-strong); transform: scale(1.04); }
    100% { box-shadow: 0 0 10px rgba(210,138,75,0.35); transform: scale(1); }
}

/* Reset checkbox to normal size */
.checkbox-group input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    transform: none !important;
    appearance: checkbox !important;
    margin: 0;
}

/* ============================================================
   MODAL FIXES (Portrait Containment + Dots)
   ============================================================ */

/* Force the gallery container to keep its shape */
.project-gallery {
    flex: 1; /* Tells it to take up all available space but no more */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}

/* Force the image to fit without expanding the modal */
#galleryImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* This prevents portrait photos from pushing text out */
}

/* Dots Styling */
.dot-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 30;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: 0.3s;
}

.dot.active {
    background: var(--bronze-light);
    box-shadow: 0 0 10px var(--bronze-light);
}

/* Ensure footer text and button don't get squashed */
.project-description {
    padding: 15px 20px 5px;
    flex-shrink: 0;
}

.close-project {
    margin-bottom: 20px;
    flex-shrink: 0;
}


/* ============================================================
   TRUSTATRADER WIDGET — VISIBILITY & CONSTANT GLOW
   ============================================================ */

/* 1. Force the widget container to be visible */
.fade-in-widget {
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
}

/* 2. Style the "Halo" (The outer glow container) */
.tta-widget-halo {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* 3. The Box with the Constant Pulse */
.tta-widget-box {
    width: 100%;
    min-height: 200px; /* Prevents collapsing while loading */
    background: #0d0d0d; /* Dark background */
    border: 1px solid rgba(184,115,51,0.4);
    border-radius: 18px;
    padding: 20px;
    
    /* Constant Pulse Animation */
    animation: widgetPulse 3s infinite ease-in-out;
}

@keyframes widgetPulse {
    0% {
        box-shadow: 0 0 10px rgba(210,138,75,0.2);
        border-color: rgba(184,115,51,0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(210,138,75,0.6);
        border-color: rgba(210,138,75,0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(210,138,75,0.2);
        border-color: rgba(184,115,51,0.3);
    }
}

/* 4. Force widget content to look better (if possible) */
.tta-widget-box a {
    color: var(--bronze-light) !important;
    text-decoration: none !important;
}

/* ============================================================
   INSTAGRAM MODAL FIXES
   ============================================================ */

.insta-modal {
    display: none; 
    position: fixed;
    z-index: 99999; /* Higher than project-modal to prevent overlap */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); 
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 20px 0;
}

.insta-modal-content {
    background: #0d0d0d;
    margin: auto;
    padding: 30px;
    border: 1px solid rgba(184, 115, 51, 0.4);
    width: min(95%, 1100px);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 50px rgba(210, 138, 75, 0.3);
    position: relative;
}

/* Close button for Insta Modal */
.close-insta {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 101;
}

.close-insta:hover {
    color: var(--bronze-light);
}

/* ============================================================
   BEHOLD WIDGET - FORCE VISIBILITY
   ============================================================ */

.behold-container {
    min-height: 500px; /* Essential: creates space for the widget to load */
    width: 100%;
    margin: 20px 0;
    display: block !important;
}

behold-widget {
    display: block !important;
    width: 100% !important;
    min-height: 400px;
}

/* ============================================================
   INSTAGRAM FOLLOW BUTTON - GLOW EFFECT
   ============================================================ */

.insta-follow-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 32px;
    border-radius: 999px;
    border: 1px solid var(--bronze-light);
    background: transparent;
    color: #fff !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    animation: buttonPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.insta-follow-btn:hover {
    background: rgba(210, 138, 75, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
}

/* ============================================================
   INSTAGRAM TILE FIX (Image Scaling & Icon)
   ============================================================ */

.insta-tile {
    height: 22vh;
    min-height: 160px;
    max-height: 260px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 14px;
    border: 1px solid rgba(184, 115, 51, 0.25);
    
    /* FIX FOR THE PHOTO: This forces it to fit the tile */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Position the badge so it's actually visible */
.insta-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--bronze-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20; /* High z-index to stay above overlay */
    transition: all 0.3s ease;
}

.insta-badge img {
    width: 22px !important; /* Force small size */
    height: 22px !important;
    object-fit: contain;
}

/* Ensure the text overlay doesn't block the badge */
.insta-tile .project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3); /* Slightly lighter so photo shows */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background 0.3s ease;
}
/* Ensure the Behold widget looks premium */
behold-widget {
    display: block;
    margin-top: 20px;
}

.modal-counter {
    color: var(--bronze-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0;
    letter-spacing: 2px;
    text-align: center;
    font-family: sans-serif; /* Clean, modern numbers */
}


/* ============================================================
   FINAL GRID & INSTAGRAM FIXES (Paste at bottom of style.css)
   ============================================================ */

/* 1. FORCE UNIFIED TILE SIZES */
.project-tile, .insta-tile {
    height: 22vh !important;
    min-height: 180px !important;
    max-height: 280px !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 14px;
    border: 1px solid rgba(184, 115, 51, 0.25);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 2. FORCE TEXT TO WHITE WITH SHADOWS */
.project-title {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 15px;
    z-index: 15;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0px 0px 12px rgba(0, 0, 0, 0.4);
}

/* 3. FIX THE OVERLAY TINT */
.project-title-overlay, .project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 4. RE-FIX THE INSTAGRAM BADGE SIZE */
.insta-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--bronze-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.insta-badge img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

/* 5. MODAL COUNTER STYLE */
.modal-counter {
    color: var(--bronze-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0;
    letter-spacing: 2px;
    text-align: center;
}

/* ============================================================
   PROJECT TILE HOVER & GLOW EFFECTS
   ============================================================ */

/* 1. Make the tile lift and glow on hover */
.project-tile:hover, .insta-tile:hover {
    transform: translateY(-8px) scale(1.02); /* Slight lift and zoom */
    border-color: var(--bronze-light) !important;
    box-shadow: 0 10px 30px rgba(210, 138, 75, 0.4); /* Bronze glow */
    z-index: 50; /* Ensure the glowing tile stays on top */
}

/* 2. Change text color to bronze on hover */
.project-tile:hover .project-title, 
.insta-tile:hover .project-title {
    color: var(--bronze-light) !important;
    text-shadow: 0 0 15px rgba(210, 138, 75, 0.6);
}

/* 3. Lighten the overlay so the photo "pops" on hover */
.project-tile:hover .project-title-overlay, 
.insta-tile:hover .project-overlay {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* 4. Smooth out all transitions */
.project-tile, .insta-tile, .project-title, .project-overlay, .project-title-overlay {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}


