/* ============================================
   V STONE STUDIO — Premium Website Styles
   Theme: #1e1e1e Dark + Gold (#c9a84c)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #1e1e1e;
    --bg-secondary: #161616;
    --bg-card: #252525;
    --bg-card-hover: #2c2c2c;
    --gold: #c9a84c;
    --gold-light: #dbc06e;
    --gold-dark: #a8893d;
    --gold-glow: rgba(201, 168, 76, 0.3);
    --gold-subtle: rgba(201, 168, 76, 0.08);
    --text-primary: #f0ece4;
    --text-secondary: #a8a29e;
    --text-muted: #6b6560;
    --border: rgba(201, 168, 76, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-gold: 0 4px 30px rgba(201, 168, 76, 0.15);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 24px;
    display: block;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 2px;
    animation: preloaderProgress 1.5s ease-out forwards;
}

@keyframes preloaderProgress {
    to { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* ---------- Typography ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 6px 20px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--gold-subtle);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.gold-text {
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(201, 168, 76, 0.3);
    color: var(--bg-primary);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
    transform: translateY(-2px);
    color: var(--gold-light);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ---------- Navigation ---------- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:not(.nav-cta):hover {
    color: var(--text-primary);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary) !important;
    border-radius: 8px;
    font-weight: 500 !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-primary) !important;
    transform: translateY(-1px);
}

.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(--gold);
    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 Section ---------- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Reserve room for the fixed navbar (top) and scroll indicator (bottom)
       so content never overlaps them on short viewports. */
    padding: 110px 0 90px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('images/hero.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 24, 22, 0.86) 0%,
        rgba(26, 24, 22, 0.76) 50%,
        rgba(26, 24, 22, 0.64) 100%
    );
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float 8s infinite;
}

@keyframes float {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    padding: 8px 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(201, 168, 76, 0.06);
    animation: fadeInDown 1s 0.3s both;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 1s 0.5s both;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s 0.7s both;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 1s 0.9s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s 1.1s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-plus {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s 1.3s both;
    text-decoration: none;
}

.hero-scroll:hover {
    color: var(--gold);
}

.hero-scroll-icon {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--gold);
    border-radius: 3px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Short viewports (e.g. 1280x591 laptops) — compress hero so badge,
   title, subtitle, CTAs and stats all fit between navbar and scroll
   indicator without overlapping. */
@media (max-height: 720px) {
    #hero {
        padding: 100px 0 70px;
    }
    .hero-badge {
        margin-bottom: 14px;
        font-size: 0.68rem;
        padding: 6px 18px;
    }
    .hero-title {
        font-size: clamp(2rem, 5.5vw, 3.5rem);
        margin-bottom: 14px;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    .hero-cta-group {
        margin-bottom: 28px;
    }
    .hero-stats {
        gap: 32px;
    }
    .hero-stat-number {
        font-size: 1.8rem;
    }
    .hero-stat-label {
        font-size: 0.72rem;
    }
    .hero-scroll {
        bottom: 16px;
    }
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1.02rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--gold);
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--gold-subtle);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.about-feature:hover {
    border-color: var(--border);
    background: rgba(201, 168, 76, 0.1);
}

.about-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
}

.about-feature-icon svg {
    width: 20px;
    height: 20px;
}

.about-feature h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-image-accent {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    z-index: -1;
    transform: rotate(3deg);
}

/* ---------- Services Section ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border);
    box-shadow: var(--shadow-gold);
}

.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 30, 30, 0.6), transparent);
}

.service-card-content {
    padding: 28px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gold-subtle);
    border: 1px solid var(--border);
    color: var(--gold);
    margin-bottom: 16px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Featured/Signature service card (wide) */
.service-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(201, 168, 76, 0.04) 100%);
}

.service-card-featured .service-card-image {
    height: 100%;
    min-height: 280px;
}

.service-card-featured .service-card-content {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-featured h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.service-card-featured p {
    font-size: 0.95rem;
    line-height: 1.75;
}

.service-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-subtle);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 5px 14px;
    margin-bottom: 18px;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .service-card-featured {
        grid-template-columns: 1fr;
    }
    .service-card-featured .service-card-content {
        padding: 28px;
    }
    .service-card-featured h3 {
        font-size: 1.3rem;
    }
}

/* ---------- Materials Section ---------- */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.material-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    group: true;
}

.material-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.material-card:hover .material-image img {
    transform: scale(1.08);
}

.material-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px;
    background: linear-gradient(to top, rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.7), transparent);
}

.material-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.material-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.material-card:hover .material-info p {
    opacity: 1;
    max-height: 160px;
    transform: translateY(0);
}

/* ---------- Portfolio Section ---------- */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 56px;
}

.portfolio-header-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portfolio-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow-dash {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.gold-italic {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--border);
    color: var(--gold);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-color: var(--gold);
    color: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 16px;
}

.portfolio-large {
    grid-column: span 7;
    grid-row: span 2;
}

.portfolio-medium {
    grid-column: span 5;
}

.portfolio-small {
    grid-column: span 4;
}

.portfolio-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-slow);
    background: var(--bg-card);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-placeholder {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.45);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-placeholder {
    color: rgba(201, 168, 76, 0.75);
}

/* Real project photos filling a portfolio tile */
.portfolio-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: var(--transition-slow);
}
.portfolio-item.has-photo::before { display: none; }
.portfolio-item.has-photo:hover .portfolio-photo { transform: scale(1.05); }
.portfolio-item.has-photo .portfolio-overlay { opacity: 1; }

/* Placeholder background tones */
.portfolio-bg-warm {
    background:
        radial-gradient(circle at 30% 40%, rgba(120, 80, 40, 0.6), rgba(45, 30, 20, 0.95) 70%),
        #2a1f15;
}

.portfolio-bg-forest {
    background:
        radial-gradient(circle at 60% 50%, rgba(50, 80, 60, 0.55), rgba(20, 35, 28, 0.95) 70%),
        #1a2620;
}

.portfolio-bg-bronze {
    background:
        radial-gradient(circle at 50% 50%, rgba(140, 95, 50, 0.5), rgba(40, 28, 18, 0.95) 70%),
        #2c1f14;
}

.portfolio-bg-amber {
    background:
        radial-gradient(circle at 40% 40%, rgba(150, 110, 60, 0.45), rgba(35, 25, 15, 0.95) 70%),
        #251a10;
}

.portfolio-bg-slate {
    background:
        radial-gradient(circle at 50% 50%, rgba(70, 70, 80, 0.5), rgba(25, 25, 30, 0.95) 70%),
        #1c1c20;
}

.portfolio-bg-cocoa {
    background:
        radial-gradient(circle at 50% 60%, rgba(90, 60, 35, 0.55), rgba(30, 20, 12, 0.95) 70%),
        #20140c;
}

.portfolio-bg-moss {
    background:
        radial-gradient(circle at 35% 45%, rgba(70, 90, 55, 0.5), rgba(22, 30, 18, 0.95) 70%),
        #1a201a;
}

.portfolio-bg-rust {
    background:
        radial-gradient(circle at 60% 40%, rgba(130, 70, 40, 0.5), rgba(35, 20, 14, 0.95) 70%),
        #261410;
}

.portfolio-bg-sage {
    background:
        radial-gradient(circle at 50% 50%, rgba(85, 100, 75, 0.45), rgba(25, 32, 24, 0.95) 70%),
        #1c241c;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.92) 0%, rgba(15, 15, 15, 0.4) 50%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

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

.portfolio-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.portfolio-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

/* ---------- Locations Section ---------- */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.location-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    transition: var(--transition);
}

.location-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.location-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--gold-subtle);
    border: 1px solid var(--border);
    color: var(--gold);
}

.location-icon svg {
    width: 28px;
    height: 28px;
}

.location-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.location-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.locations-note {
    text-align: center;
    margin-top: 48px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.locations-note a {
    color: var(--gold);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.locations-note a:hover {
    border-bottom-color: var(--gold);
}

.location-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.location-card .btn {
    margin-top: 24px;
}

/* ---------- Contact Section ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: var(--border);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gold-subtle);
    border: 1px solid var(--border);
    color: var(--gold);
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-item h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-info-item a {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-info-item a:hover {
    color: var(--gold);
}

/* Branch Cards in Contact Section */
.branch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin-bottom: 18px;
    transition: var(--transition);
}

.branch-card:hover {
    border-color: var(--border);
    box-shadow: 0 4px 24px rgba(201, 168, 76, 0.08);
}

.branch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.branch-pin {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold-subtle);
    border: 1px solid var(--border);
    color: var(--gold);
}

.branch-pin svg {
    width: 18px;
    height: 18px;
}

.branch-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0;
}

.branch-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.branch-contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.branch-contact a:hover {
    color: var(--gold);
}

.branch-contact a svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--gold);
    opacity: 0.85;
}

.contact-decorative {
    text-align: center;
    margin-top: 24px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--gold-subtle);
    border: 1px solid var(--border);
}

.contact-deco-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    opacity: 0.7;
}

.contact-deco-text {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem;
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a84c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Form submission feedback message */
.form-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    line-height: 1.5;
    border: 1px solid var(--border-subtle);
    animation: fadeInUp 0.4s ease both;
}

.form-message-success {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
    color: #aed581;
}

.form-message-error {
    background: rgba(244, 67, 54, 0.08);
    border-color: rgba(244, 67, 54, 0.3);
    color: #ef9a9a;
}

/* ---------- Footer ---------- */
#footer {
    background: var(--bg-secondary);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gold-subtle);
    border-color: var(--border);
    color: var(--gold);
}

.footer-socials a svg {
    width: 18px;
    height: 18px;
}

/* Footer Branches Block */
.footer-branches {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 6px;
}

.footer-branch {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-left: 2px solid var(--gold);
    background: rgba(201, 168, 76, 0.04);
    border-radius: 0 6px 6px 0;
}

.footer-branch-city {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-branch a {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1.4;
}

.footer-branch a:hover {
    color: var(--gold);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .materials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .portfolio-large {
        grid-column: span 6;
        grid-row: span 1;
    }

    .portfolio-medium {
        grid-column: span 3;
    }

    .portfolio-small {
        grid-column: span 3;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        background: #1a1a1a;
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        list-style: none;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.3rem;
        color: var(--text-primary);
        text-align: center;
        font-weight: 500;
        letter-spacing: 1px;
    }

    .nav-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image-wrapper img {
        height: 350px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .material-image {
        height: 300px;
    }

    .material-info p {
        opacity: 1;
        max-height: 160px;
        transform: translateY(0);
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-large,
    .portfolio-medium,
    .portfolio-small {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 260px;
    }

    .portfolio-overlay {
        opacity: 1;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 280px;
    }

    .location-card {
        padding: 32px 24px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ===== FAQ Section (AEO answer-first content) ===== */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 10px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item[open] {
    border-color: rgba(201, 168, 76, 0.6);
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #c9a84c;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
    padding: 0 1.5rem 1.4rem;
    margin: 0;
    line-height: 1.7;
    opacity: 0.85;
}
