/* ==========================================================================
   Swish Interiors - Main Stylesheet
   Luxury furniture manufacturing website
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --cream: #faf6f0;
    --cream-dark: #f0ebe3;
    --dark: #1a1a1a;
    --gold: #c8a951;
    --gold-dark: #b08e3a;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border: #e8e0d4;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1200px;
    --section-padding: 100px;
    --nav-height: 80px;

    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-dark);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Section Background Overlay ---------- */
.has-bg-image {
    position: relative;
}

.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--section-overlay-color, #000000);
    opacity: var(--section-overlay-opacity, 0.5);
    pointer-events: none;
}

.has-bg-image > .container,
.has-bg-image > .container-fluid,
.has-bg-image > .container-narrow {
    position: relative;
    z-index: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--dark);
}

p {
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Section Header Layout Variants ---------- */

/* Left Aligned */
.sh-left-aligned { text-align: left; }
.sh-left-aligned h2 { display: inline-block; }
.sh-left-aligned h2::after { margin: 15px 0 0; }
.sh-left-aligned p { margin: 0; }

/* Left + Side Line */
.sh-left-with-line { text-align: left; padding-left: 20px; border-left: 4px solid var(--gold); }
.sh-left-with-line h2 { display: block; }
.sh-left-with-line h2::after { display: none; }
.sh-left-with-line p { margin: 0; }

/* Title Left / Subtitle Right */
.sh-left-with-subtitle-right { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sh-left-with-subtitle-right h2 { margin-bottom: 0; flex-shrink: 0; }
.sh-left-with-subtitle-right h2::after { display: none; }
.sh-left-with-subtitle-right p { margin: 0; max-width: none; text-align: right; flex: 1; }

/* Centered (no underline) */
.sh-center-no-line h2::after { display: none; }

/* Centered + Top Label */
.sh-center-with-label::before { content: attr(data-label); display: block; text-transform: uppercase; letter-spacing: 3px; font-size: 0.75rem; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.sh-center-with-label h2::after { display: none; }

/* Inline (title & subtitle side by side) */
.sh-left-inline { text-align: left; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.sh-left-inline h2 { margin-bottom: 0; flex-shrink: 0; }
.sh-left-inline h2::after { display: none; }
.sh-left-inline p { margin: 0; max-width: none; }

/* Left + Large Title */
.sh-left-big { text-align: left; }
.sh-left-big h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.15; display: block; }
.sh-left-big h2::after { margin: 20px 0 0; }
.sh-left-big p { margin: 0; font-size: 1.15rem; }

/* ---------- Card Style: Bordered (global override) ---------- */
.card-style-bordered [style*="box-shadow"] { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
.card-style-bordered .service-card { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
.card-style-bordered .team-member > div > div { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
.card-style-bordered .blog-hover-card { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
.card-style-bordered .blog-hover-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08) !important; border-color: var(--gold) !important; }

/* Card style: bordered for testimonials */
.section-testimonials.card-style-bordered [style*="box-shadow"] { box-shadow: none !important; border: 1px solid #e5e7eb !important; }

/* ---------- Layout: Services Masonry ---------- */
.services-masonry { column-gap: 1.5rem; }
.services-masonry > div { break-inside: avoid; margin-bottom: 1.5rem; }

/* ---------- Layout: Services / Projects List ---------- */
.services-list-layout > .responsive-grid img,
.services-list-layout > .responsive-grid > div:first-child { border-radius: var(--radius, 8px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 169, 81, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.site-nav {
    padding: 0;
    z-index: 1000;
    position: relative;
    transition: all 0.3s ease;
}
.site-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nav-inner {
    display: flex;
    align-items: center;
    min-height: 70px;
}

.site-nav.scrolled {
    background: var(--cream);
    box-shadow: 0 2px 20px var(--shadow);
}

.site-nav.scrolled .nav-logo {
    color: var(--dark);
}

.site-nav.scrolled .nav-menu a {
    color: var(--dark);
}

.site-nav.scrolled .nav-toggle span {
    background: var(--dark);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-logo:hover {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--gold);
}

.site-nav.scrolled .nav-menu a.active {
    color: var(--gold);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    padding: 0.5rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.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 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Hero (shorter) — padding-top accounts for fixed sticky nav + topbar */
.page-hero {
    position: relative;
    min-height: 50vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    overflow: hidden;
}

/* Overlay — controllable via CSS custom properties set inline */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay-color, rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
}

.page-hero-content h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 10px;
}

.page-hero-content p {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* Hero text alignment variants */
.page-hero.hero-align-left { justify-content: flex-start; text-align: left; }
.page-hero.hero-align-left .page-hero-content { padding-left: 5%; }
.page-hero.hero-align-right { justify-content: flex-end; text-align: right; }
.page-hero.hero-align-right .page-hero-content { padding-right: 5%; }

/* ---------- About Section ---------- */
.about-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-images .img-main {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.about-images .img-secondary {
    display: none;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-top: 15px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

/* ---------- Services Section ---------- */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.6rem;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-card .service-image {
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    margin-left: -25px;
    margin-right: -25px;
    margin-bottom: -35px;
}

.service-card .service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* ---------- Projects Section / Grid ---------- */
.projects-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.project-overlay span {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-filters .filter-btn {
    padding: 8px 24px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.category-filters .filter-btn:hover,
.category-filters .filter-btn.active {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 8px;
    padding: 35px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px var(--shadow);
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cream);
}

.testimonial-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-light);
}

.testimonial-source {
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0.5;
}

/* ---------- Clients Section ---------- */
.clients-section {
    padding: 70px 0;
    background: var(--white);
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.client-logo {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ---------- Contact Page ---------- */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 450px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 450px;
}

.contact-form h2 {
    margin-bottom: 10px;
}

.contact-form h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-top: 12px;
    margin-bottom: 20px;
}

.contact-form p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--cream);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-message {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.btn-submit {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
}

.btn-submit:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 169, 81, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Contact Info Cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 0;
}

.info-card {
    text-align: center;
    padding: 35px 25px;
    background: var(--cream);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.4rem;
}

.info-card h4 {
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.info-card a {
    color: var(--text-light);
}

.info-card a:hover {
    color: var(--gold);
}

/* ---------- Single Project Page ---------- */
.project-detail {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.project-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.project-meta-item {
    display: flex;
    flex-direction: column;
}

.project-meta-item span:first-child {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 4px;
}

.project-meta-item span:last-child {
    color: var(--text);
    font-size: 0.95rem;
}

.project-content {
    max-width: 800px;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 50px;
}

.project-content p {
    margin-bottom: 1.3rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Related Projects */
.related-projects {
    padding-top: 50px;
    border-top: 1px solid var(--border);
}

.related-projects h2 {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-weight: 500;
    color: var(--text);
}

.back-link:hover {
    color: var(--gold);
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 15px;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    max-width: 80%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.lightbox-counter {
    position: absolute;
    top: 25px;
    left: 30px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ---------- Gallery Layouts ---------- */
.gallery-grid.gallery-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.gallery-grid.gallery-3col {
    grid-template-columns: repeat(3, 1fr);
}
.gallery-grid.gallery-4col {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
/* --- Masonry layout: CSS columns for variable-height images --- */
.gallery-grid.gallery-masonry {
    display: block !important;
    columns: 3;
    column-gap: 15px;
}
.gallery-grid.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    aspect-ratio: auto;
    display: inline-block;
    width: 100%;
}
.gallery-grid.gallery-masonry .gallery-item img {
    height: auto;
    width: 100%;
    display: block;
}

/* --- Grid type: clean layout with captions, less aggressive hover --- */
.gallery-type-grid .gallery-item {
    position: relative;
}
.gallery-type-grid .gallery-item:hover img {
    transform: none;
}
.gallery-type-grid .gallery-item:hover {
    opacity: 0.9;
}

/* --- Gallery captions --- */
.gallery-caption {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
    color: var(--text-light, #666);
    text-align: center;
}
.gallery-masonry .gallery-caption {
    padding: 0.35rem 0;
}

@media (max-width: 992px) {
    .gallery-grid.gallery-masonry { columns: 2 !important; }
    .gallery-grid.gallery-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid.gallery-masonry { columns: 1 !important; }
}

/* ---------- Project Slider ---------- */
.project-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.project-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}
.project-slider-slide {
    min-width: 100%;
    position: relative;
}
.project-slider-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.project-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.9rem;
}
.project-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
    transition: background 0.2s;
}
.project-slider-btn:hover { background: rgba(0,0,0,0.8); }
.project-slider-prev { left: 15px; }
.project-slider-next { right: 15px; }
.project-slider-dots {
    text-align: center;
    padding: 12px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.project-slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.project-slider-dot.active { background: #fff; }
@media (max-width: 768px) {
    .project-slider-slide img { height: 300px; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--cream-dark);
    border-top: 1px solid var(--border);
}

.footer-col h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-col p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-col p i {
    color: var(--gold);
    width: 18px;
    margin-right: 8px;
}

.footer-col p a {
    color: var(--text-light);
}

.footer-col p a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(200, 169, 81, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    :root {
        --section-padding: 70px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-images {
        min-height: 350px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }

    .contact-map iframe {
        min-height: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --nav-height: 65px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .project-meta {
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .clients-grid {
        gap: 30px;
    }

    .client-logo {
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Dynamic Theme & Layout Styles
   ========================================================================== */

/* ---------- Utility Classes ---------- */
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* ---------- Top Bar ---------- */
.site-topbar {
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1001;
    position: relative;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-left a, .topbar-center a, .topbar-right a {
    color: inherit;
    text-decoration: none;
    margin: 0 8px;
    transition: opacity 0.2s;
}
.topbar-left a:hover, .topbar-center a:hover, .topbar-right a:hover { opacity: 0.7; }
.topbar-social a { margin: 0 6px; font-size: 0.85rem; }
.topbar-left a i, .topbar-center a i { margin-right: 5px; }

.site-topbar + .site-nav { top: 36px; }
.site-topbar + .site-nav.scrolled { top: 0; }

/* ---------- Nav Brand / Logo ---------- */
.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--white);
    letter-spacing: 1px;
    transition: color var(--transition);
}
.nav-brand img {
    max-height: 40px;
    width: auto;
}

.nav-brand:hover { color: var(--gold); }

.nav-logo-img {
    max-height: 50px;
    width: auto;
}

.site-nav.scrolled .nav-brand { color: var(--dark); }

/* ---------- Nav Links (shared) ---------- */
.nav-links,
.nav-links-left,
.nav-links-right {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a,
.nav-links-left a,
.nav-links-right a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.5rem 0;
    transition: color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.3px;
    position: relative;
}
.nav-links a:hover,
.nav-links-left a:hover,
.nav-links-right a:hover {
    color: var(--gold, #c8a951);
}

.nav-links a::after,
.nav-links-left a::after,
.nav-links-right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links-left a:hover::after,
.nav-links-right a:hover::after {
    width: 100%;
}

.nav-links a.active,
.nav-links-left a.active,
.nav-links-right a.active {
    color: var(--gold);
}

.site-nav.scrolled .nav-links a,
.site-nav.scrolled .nav-links-left a,
.site-nav.scrolled .nav-links-right a {
    color: var(--dark);
}

.site-nav.scrolled .nav-links a.active,
.site-nav.scrolled .nav-links-left a.active,
.site-nav.scrolled .nav-links-right a.active {
    color: var(--gold);
}

/* CTA button in nav */
.nav-cta,
.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 24px;
    border-radius: 4px;
    font-family: var(--font-heading, var(--font-body));
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    box-shadow: none;
    transition: background 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    color: #fff !important;
}

/* CTA spacing — only left-margin when it's a direct sibling after nav-links */
.nav-links + .nav-cta,
.nav-links ~ .nav-cta {
    margin-left: 1.5rem;
}

/* CTA inside centered or split nav-links — no extra margin */
.nav-links-centered .nav-cta,
.nav-links-right .nav-cta {
    margin-left: 0;
}

.nav-cta:hover,
.btn-nav-cta:hover {
    opacity: 0.88;
    color: #fff !important;
}

.nav-cta:active,
.btn-nav-cta:active {
    opacity: 0.75;
}

/* CTA in transparent nav (before scroll) */
.transparent-nav:not(.scrolled) .nav-cta {
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
}

.transparent-nav:not(.scrolled) .nav-cta:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
}

/* CTA in scrolled nav */
.site-nav.scrolled .nav-cta:hover {
    opacity: 0.88;
}

.btn-nav-cta::after,
.nav-cta::after { display: none; }

/* CTA in mobile menu */
.nav-mobile-menu .nav-cta {
    margin: 1rem 1.5rem 0;
    text-align: center;
    justify-content: center;
}

/* ---------- Header Layout: centered ---------- */
.layout-centered .nav-inner {
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
}
.layout-centered .nav-brand-centered {
    text-align: center;
    padding: 10px 0 5px;
}
.layout-centered .nav-links-centered {
    justify-content: center;
}
@media (max-width: 992px) {
    .layout-centered .nav-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ---------- Header Layout: left-logo ---------- */
.layout-left-logo .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.layout-left-logo .nav-brand { margin-right: auto; flex-shrink: 0; }
.layout-left-logo .nav-links { display: flex; gap: 2rem; margin-left: auto; align-items: center; }

/* ---------- Header Layout: right-logo ---------- */
.layout-right-logo .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.layout-right-logo .nav-links { display: flex; gap: 2rem; align-items: center; }
.layout-right-logo .nav-brand { margin-left: auto; flex-shrink: 0; }

/* ---------- Header Layout: split ---------- */
.layout-split .nav-inner { display: flex; align-items: center; justify-content: center; }
.layout-split .nav-links-left {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
    padding-right: 2rem;
    align-items: center;
}
.layout-split .nav-brand { flex-shrink: 0; }
.layout-split .nav-links-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    padding-left: 2rem;
}

/* ---------- Header Layout: minimal ---------- */
.layout-minimal .nav-inner { display: flex; align-items: center; justify-content: space-between; }
.layout-minimal .hamburger-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color var(--transition);
}

.layout-minimal.scrolled .hamburger-btn { color: var(--dark); }

/* Minimal fullscreen overlay menu */
.minimal-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.minimal-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.minimal-menu-overlay a {
    color: #fff;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin: 0.8rem 0;
    text-decoration: none;
    transition: color 0.2s;
}

.minimal-menu-overlay a:hover { color: var(--gold); }

.minimal-menu-overlay .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.minimal-menu-overlay .close-btn:hover { color: var(--gold); }

.minimal-menu-overlay .nav-cta {
    font-size: 1rem;
    padding: 14px 36px;
    margin-top: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.minimal-menu-overlay .nav-cta:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile menu (shared for left-logo, right-logo, split) */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    padding: 40px;
    transition: right var(--transition);
    box-shadow: -5px 0 20px var(--shadow);
    z-index: 1001;
}

.nav-mobile-menu.active { right: 0; display: flex; }

.nav-mobile-menu a {
    color: var(--dark) !important;
    font-size: 1.1rem;
    text-decoration: none;
}

/* ---------- Nav Responsive: Desktop/Mobile Switch at 992px ---------- */
@media (min-width: 993px) {
    .nav-mobile-menu { display: none !important; }
    .nav-toggle { display: none !important; }
}

@media (max-width: 992px) {
    .nav-links,
    .nav-links-left,
    .nav-links-right { display: none !important; }
    .nav-cta { display: none !important; }
    .nav-toggle { display: flex !important; }
}

/* Sticky nav */
.site-nav.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
/* When topbar is present, offset the sticky nav below it */
.site-topbar + .site-nav.sticky-nav { top: 36px; }
.site-topbar + .site-nav.sticky-nav.scrolled { top: 0; }

.site-nav.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    backdrop-filter: blur(8px);
}

/* Transparent nav */
.site-nav.transparent-nav:not(.scrolled) { background: transparent; }
.site-nav.transparent-nav:not(.scrolled) .nav-links a,
.site-nav.transparent-nav:not(.scrolled) .nav-brand {
    color: #fff;
}
.transparent-nav.scrolled { background: var(--cream); }

/* ---------- Dropdown Menu ---------- */
.nav-dropdown { position: relative; }

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--text) !important;
    transition: 0.2s;
    font-size: 0.9rem !important;
}

.dropdown-menu a::after { display: none !important; }

.dropdown-menu a:hover {
    background: var(--cream);
    color: var(--gold) !important;
}

/* ---------- Hero Layout Variants ---------- */
.hero-left-aligned { justify-content: flex-start; }
.hero-left-aligned .hero-content { text-align: left; max-width: 600px; margin-left: 5%; }
.hero-left-aligned .hero-content p { margin-left: 0; margin-right: 0; }

.hero-split {
    display: flex;
    min-height: 100vh;
    background: var(--cream);
    color: var(--dark);
}

.hero-split::before { display: none; }

.hero-split .hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.hero-split .hero-text h1 { color: var(--dark); }
.hero-split .hero-text p { color: var(--text-light); }

.hero-split .hero-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.hero-minimal::before { display: none; }
.hero-minimal .hero-content h1 { font-size: clamp(3rem, 8vw, 5rem); }

.hero-fullscreen { height: 100vh; min-height: 100vh; }

.hero-fullscreen .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ---------- Hero Slider ---------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-slider .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-slider .slide .hero-content { position: relative; z-index: 2; }

.hero-slider .slide.active { opacity: 1; z-index: 1; }

.hero-slider .slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider .slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background var(--transition);
}

.hero-slider .slider-dot.active { background: var(--gold); }

/* ---------- Footer Layout Variants ---------- */
.site-footer { padding: 4rem 0 0; }
.footer-grid { display: grid; gap: 2rem; }

.footer-four-column .footer-grid { grid-template-columns: repeat(4, 1fr); }
.footer-three-column .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
.footer-two-column .footer-grid { grid-template-columns: 1fr 1fr; }

.footer-two-col-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Centered footer */
.footer-centered { text-align: center; }
.footer-centered .footer-centered-content { padding: 40px 0; }
.footer-centered .footer-logo { margin-bottom: 20px; }
.footer-centered .footer-logo-img { max-height: 60px; margin: 0 auto; }
.footer-centered .footer-brand {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}
.footer-centered .footer-about-text { max-width: 500px; margin: 0 auto 1.5rem; }
.footer-centered .footer-nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.footer-centered .footer-social { margin-bottom: 1.5rem; }

/* Minimal footer */
.footer-minimal { padding: 1.5rem 0; }
.footer-minimal .footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-minimal .footer-nav-links {
    display: flex;
    gap: 1.5rem;
}
.footer-minimal .footer-copyright p { margin: 0; font-size: 0.85rem; }
.footer-minimal .footer-social { margin-top: 0; }

/* Footer nav links (shared) */
.footer-nav-links a {
    color: var(--footer-link, var(--text-light));
    font-size: 0.95rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-nav-links a:hover { color: var(--gold); }

/* Legacy .footer-nav support */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.footer-nav a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-nav a:hover { color: var(--gold); }

/* Footer bottom bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 1.2rem 0;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom-bar p { margin: 0; }

.footer-bottom-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; text-align: left; }
.footer-legal-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal-links a { font-size: .8rem; opacity: .7; color: inherit; text-decoration: none; }
.footer-legal-links a:hover { opacity: 1; }
/* Footer Social Links */
.footer-social {
    margin-top: 15px;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold, #c8a951);
    color: #fff;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-social a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.footer-centered .footer-social { margin-top: 0; }

/* ---------- Homepage Layout Variants ---------- */

/* Modern layout */
.home-layout-modern .section-dark {
    background: var(--secondary, var(--dark));
    color: #fff;
}

.home-layout-modern .section-dark h2,
.home-layout-modern .section-dark h3 { color: #fff; }

.home-layout-modern .section-dark p { color: rgba(255,255,255,0.8); }

.home-layout-modern .section-dark .service-icon {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
}

/* Classic layout */
.home-layout-classic .pull-quote {
    font-size: 1.5rem;
    font-style: italic;
    border-left: 4px solid var(--gold);
    padding-left: 2rem;
    margin: 2rem 0;
    color: var(--text-light);
    font-family: var(--font-heading);
}

/* Agency layout */
.home-layout-agency .stats-section {
    background: var(--secondary, var(--dark));
    padding: 4rem 0;
}

.home-layout-agency .stat-item {
    text-align: center;
    color: #fff;
}

.home-layout-agency .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-heading);
}

.home-layout-agency .stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 5px;
}

.home-layout-agency .services-icon-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.home-layout-agency .service-card-icon {
    padding: 2rem 1rem;
}

.home-layout-agency .service-card-icon h3 {
    font-size: 1rem;
    margin-top: 10px;
}

/* Portfolio layout */
.home-layout-portfolio .masonry-grid {
    columns: 2;
    column-gap: 1.5rem;
}

.home-layout-portfolio .masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.home-layout-portfolio .masonry-item img {
    width: 100%;
    display: block;
    transition: transform var(--transition-slow);
}

.home-layout-portfolio .masonry-item:hover img { transform: scale(1.05); }

.home-layout-portfolio .masonry-item .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity var(--transition);
}

.home-layout-portfolio .masonry-item:hover .project-overlay { opacity: 1; }

/* Classic masonry (reuses same structure) */
.home-layout-classic .masonry-grid {
    columns: 2;
    column-gap: 1.5rem;
}

.home-layout-classic .masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.home-layout-classic .masonry-item img {
    width: 100%;
    display: block;
}

/* Modern layout — service rows (alternating left/right) */
.home-layout-modern .service-row {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.home-layout-modern .service-row:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .home-layout-modern .service-row [style*="display:flex"] {
        flex-direction: column !important;
    }
    .home-layout-modern .service-row [style*="flex-direction:row-reverse"] {
        flex-direction: column !important;
    }
}

/* Testimonial slider (agency) */
.testimonials-slider .testimonial-slide { display: none; }
.testimonials-slider .testimonial-slide.active { display: block; }

/* ---------- Contact Layout Variants ---------- */
.contact-form-centered .contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-split {
    display: flex;
    min-height: 80vh;
}

.contact-split .contact-map {
    flex: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: auto;
}

.contact-split .contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-split .contact-form-side {
    flex: 1;
    padding: 4rem;
    overflow-y: auto;
}

/* ---------- Custom Page Styles ---------- */
.custom-page-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.custom-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.9;
}

.custom-page-content h1,
.custom-page-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.custom-page-content h3,
.custom-page-content h4 { margin-top: 1.5rem; margin-bottom: 0.75rem; }

.custom-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.custom-page-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--cream);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.custom-page-content ul,
.custom-page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.custom-page-content li { margin-bottom: 0.5rem; }

/* ---------- Additional Responsive Styles ---------- */
@media (max-width: 992px) {
    .contact-split {
        flex-direction: column;
    }

    .contact-split .contact-map {
        position: relative;
        height: 400px;
    }

    .contact-split .contact-form-side {
        padding: 2rem;
    }

    .hero-split {
        flex-direction: column;
    }

    .hero-split .hero-text {
        padding: 3rem 2rem;
    }

    .hero-split .hero-image {
        min-height: 300px;
    }

    .home-layout-agency .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .home-layout-portfolio .masonry-grid,
    .home-layout-classic .masonry-grid {
        columns: 1;
    }

    .footer-two-col-inner {
        grid-template-columns: 1fr;
    }

    .footer-four-column .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-three-column .footer-grid { grid-template-columns: 1fr; }

}

@media (max-width: 768px) {
    .site-topbar + .site-nav { top: 0; }
    .site-topbar + .site-nav.sticky-nav { top: 0 !important; }
    .site-topbar { padding: 5px 0; font-size: 0.75rem; }

    /* Dropdown on mobile menu */
    .nav-mobile-menu .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 1rem;
        display: none;
    }

    .nav-mobile-menu .nav-dropdown:hover .dropdown-menu,
    .nav-mobile-menu .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .footer-four-column .footer-grid,
    .footer-two-column .footer-grid { grid-template-columns: 1fr; }

    .footer-minimal .footer-bar {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav, .footer-nav-links {
        gap: 1rem;
    }

    .topbar-inner { flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
    .topbar-left, .topbar-center, .topbar-right { text-align: center; }
    .topbar-left:empty, .topbar-center:empty, .topbar-right:empty { display: none; }

    .home-layout-agency .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-left-aligned .hero-content {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .home-layout-agency .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .home-layout-agency .stat-number {
        font-size: 2rem;
    }
}

/* ---------- Sidebar & Widget System ---------- */
.page-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; max-width: 1200px; margin: 0 auto; padding: 3rem 1rem; }
.sidebar { position: sticky; top: 100px; align-self: start; }
.widget { background: #fff; border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.widget-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--gold); }

/* Search widget */
.widget-search-wrap { display: flex; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; }
.widget-search-input { flex: 1; padding: 0.6rem 1rem; border: none; outline: none; font-size: 0.9rem; }
.widget-search-btn { background: var(--gold); color: #fff; border: none; padding: 0.6rem 1rem; cursor: pointer; transition: 0.2s; }
.widget-search-btn:hover { background: var(--gold-dark); }

/* Recent posts widget */
.widget-recent_posts .post-item,
.widget .post-item { display: flex; gap: 0.8rem; margin-bottom: 0.8rem; }
.widget-recent_posts .post-thumb,
.widget .post-thumb { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.widget-recent_posts .post-info,
.widget .post-info { flex: 1; }
.widget-recent_posts .post-info h5,
.widget .post-info h5 { font-size: 0.85rem; margin: 0; line-height: 1.3; }
.widget .post-info h5 a { color: var(--text); text-decoration: none; transition: 0.2s; }
.widget .post-info h5 a:hover { color: var(--gold); }
.widget-recent_posts .post-info small,
.widget .post-info small { color: #999; font-size: 0.78rem; }

/* Tags widget */
.widget-tags .tag,
.widget-tags-cloud .tag { display: inline-block; padding: 4px 10px; background: var(--body-bg, #faf6f0); border: 1px solid #e0e0e0; border-radius: 20px; font-size: 0.78rem; margin: 3px; color: var(--text-color, #333); text-decoration: none; transition: 0.2s; }
.widget-tags .tag:hover,
.widget-tags-cloud .tag:hover { border-color: var(--gold); color: var(--gold); }
.widget-tags-list { list-style: none; padding: 0; margin: 0; }
.widget-tags-list li { padding: 0.4rem 0; border-bottom: 1px solid #f0f0f0; }
.widget-tags-list li a { color: var(--text); text-decoration: none; transition: 0.2s; }
.widget-tags-list li a:hover { color: var(--gold); }

/* Categories widget */
.widget-categories a,
.widget-categories-list a { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; color: var(--text-color, #333); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.widget-categories a:hover,
.widget-categories-list a:hover { color: var(--gold); }
.widget-categories a span,
.widget-categories-list a span { color: #999; font-size: 0.85rem; }

/* Social links widget */
.widget-social-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.widget-social-links .social-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f5f5f5; color: var(--text); text-decoration: none; transition: 0.2s; }
.widget-social-links .social-icon:hover { background: var(--gold); color: #fff; }

/* Contact info widget */
.widget-contact-info .contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.widget-contact-info .contact-item i { color: var(--gold); margin-top: 3px; width: 16px; text-align: center; }
.widget-contact-info .contact-item a { color: var(--text); text-decoration: none; }
.widget-contact-info .contact-item a:hover { color: var(--gold); }

/* Newsletter widget */
.widget-newsletter-title { font-weight: 600; margin-bottom: 0.25rem; }
.widget-newsletter-desc { color: #666; font-size: 0.85rem; margin-bottom: 0.75rem; }
.widget-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.widget-newsletter-input { padding: 0.6rem 1rem; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 0.9rem; }
.widget-newsletter-input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(200,169,81,0.15); }
.widget-newsletter-btn { padding: 0.6rem 1rem; background: var(--gold); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; transition: 0.2s; }
.widget-newsletter-btn:hover { background: var(--gold-dark); }

/* Custom HTML widget */
.widget-custom-html img { max-width: 100%; height: auto; }

@media (max-width: 992px) { .page-with-sidebar { grid-template-columns: 1fr; } .sidebar { position: relative; top: 0; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 1rem 0; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.breadcrumbs li::after { content: '/'; margin-left: 0.5rem; color: #999; }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--gold); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li:last-child span { color: #666; }

/* ==========================================================================
   Section Style Customization - Layout Variants
   ========================================================================== */

/* Container narrow */
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1rem; }

/* ---------- About layouts ---------- */
.section-layout-reversed .about-grid { direction: rtl; }
.section-layout-reversed .about-grid > * { direction: ltr; }
.section-layout-stacked .about-grid { grid-template-columns: 1fr; }
.section-layout-stacked .about-images { max-height: 400px; overflow: hidden; border-radius: 12px; }
.section-layout-overlay { position: relative; }
.section-layout-overlay .about-content { position: relative; z-index: 2; background: rgba(255,255,255,0.92); padding: 2.5rem; border-radius: 12px; max-width: 600px; }

/* ---------- Services layouts ---------- */
.section-layout-list .service-item { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.section-layout-list .service-item:nth-child(even) { direction: rtl; }
.section-layout-list .service-item > * { direction: ltr; }
.section-layout-cards .service-card { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(0); transition: transform 0.3s, box-shadow 0.3s; }
.section-layout-cards .service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.section-layout-icon-only .service-card { text-align: center; padding: 1.5rem; }
.section-layout-icon-only .service-card .service-desc,
.section-layout-icon-only .service-card .service-img { display: none; }
.section-layout-icon-only .service-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

/* ---------- Testimonial layouts ---------- */
.section-layout-slider .testimonial-grid { overflow: hidden; position: relative; }
.section-layout-large-quote { text-align: center; }
.section-layout-large-quote .testimonial-content { font-size: 1.5rem; font-style: italic; max-width: 700px; margin: 0 auto 1.5rem; }

/* ---------- Project grid variants ---------- */
.section-layout-grid-2 .projects-grid { grid-template-columns: repeat(2, 1fr); }
.section-layout-masonry .projects-grid { columns: 3; column-gap: 1.5rem; display: block; }
.section-layout-masonry .project-card { break-inside: avoid; margin-bottom: 1.5rem; display: block; }

/* ---------- CTA layouts ---------- */
.section-layout-card .cta-inner { max-width: 600px; margin: 0 auto; text-align: center; background: white; padding: 3rem; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.section-layout-split .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.section-layout-banner .cta-inner { text-align: center; }

/* ---------- Blog Components ---------- */

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.page-with-sidebar .blog-grid { grid-template-columns: repeat(2, 1fr); }

.blog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.blog-card-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-placeholder { width: 100%; height: 200px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #ccc; }
.blog-card-body { padding: 1.25rem; }
.blog-card-body h3 { font-size: 1.1rem; margin: 0.5rem 0; }
.blog-card-body h3 a { color: inherit; text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--gold); }
.blog-card-body p { color: #666; font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }

/* Blog list */
.blog-list { display: flex; flex-direction: column; gap: 2rem; }
.blog-list-item { display: flex; gap: 1.5rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.blog-list-image { flex-shrink: 0; width: 280px; }
.blog-list-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-list-content { padding: 1.5rem; flex: 1; }
.blog-list-content h2 { font-size: 1.3rem; margin: 0.5rem 0; }
.blog-list-content h2 a { color: inherit; text-decoration: none; }
.blog-list-content h2 a:hover { color: var(--gold); }
.blog-list-content p { color: #666; font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.6; }

/* Blog meta & labels */
.blog-meta { font-size: 0.85rem; color: #999; display: flex; align-items: center; gap: 0.5rem; }
.blog-category-label { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; font-weight: 600; text-decoration: none; letter-spacing: 0.5px; }

/* Blog filter pills */
.blog-filter-pill { padding: 0.4rem 1rem; border-radius: 20px; text-decoration: none; font-size: 0.9rem; background: #f5f5f5; color: #666; transition: 0.2s; }
.blog-filter-pill.active, .blog-filter-pill:hover { background: var(--gold, #c8a951); color: #fff; }

/* Blog pagination */
.blog-pagination { margin-top: 3rem; display: flex; justify-content: center; gap: 0.5rem; }
.blog-pagination .page-link { padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; background: #f5f5f5; color: #333; font-size: 0.9rem; }
.blog-pagination .page-link.active { background: var(--gold); color: #fff; }
.blog-pagination .page-link:hover:not(.active) { background: #e5e5e5; }

/* Sidebar widgets */
.sidebar-widget { background: #fff; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.sidebar-widget h4 { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); }

.sidebar-recent-post { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.sidebar-recent-post img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sidebar-recent-post a { color: #333; text-decoration: none; font-weight: 500; font-size: 0.9rem; line-height: 1.3; }
.sidebar-recent-post a:hover { color: var(--gold); }
.sidebar-recent-post small { color: #999; font-size: 0.8rem; display: block; margin-top: 0.25rem; }

.sidebar-categories { list-style: none; padding: 0; margin: 0; }
.sidebar-categories li { padding: 0.4rem 0; border-bottom: 1px solid #f0f0f0; }
.sidebar-categories a { color: #555; text-decoration: none; display: flex; justify-content: space-between; }
.sidebar-categories a:hover { color: var(--gold); }
.sidebar-categories span { color: #999; font-size: 0.85rem; }

.sidebar-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sidebar-tags a { padding: 0.3rem 0.8rem; background: #f5f5f5; border-radius: 15px; font-size: 0.8rem; color: #666; text-decoration: none; transition: 0.2s; }
.sidebar-tags a:hover, .sidebar-tags a.active { background: var(--gold); color: #fff; }

/* Blog masonry */
.blog-masonry { columns: 3; column-gap: 1.5rem; }
.blog-masonry .blog-card { break-inside: avoid; margin-bottom: 1.5rem; }
.page-with-sidebar .blog-masonry { columns: 2; }

/* Blog responsive */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-list-item { flex-direction: column; }
    .blog-masonry { columns: 1; }
    .blog-list-image { width: 100%; }
    .page-with-sidebar { grid-template-columns: 1fr; }
    .page-with-sidebar .blog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Blog featured layout ---------- */
.section-layout-featured .blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.section-layout-featured .blog-grid .card:first-child { grid-row: 1 / 3; }

/* ---------- View All button ---------- */
.btn-view-all { display: inline-block; padding: 12px 32px; border: 2px solid var(--gold); color: var(--gold); border-radius: 8px; text-decoration: none; font-weight: 500; transition: 0.2s; }
.btn-view-all:hover { background: var(--gold); color: #fff; }

/* ---------- Read more link ---------- */
.read-more-link { color: var(--gold); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.read-more-link:hover { text-decoration: underline; }
.read-more-link::after { content: '\2192'; }

/* ---------- Section layout responsive ---------- */
@media (max-width: 768px) {
    .section-layout-list .service-item { grid-template-columns: 1fr; gap: 1.5rem; }
    .section-layout-list .service-item:nth-child(even) { direction: ltr; }
    .section-layout-split .cta-inner { flex-direction: column; text-align: center; }
    .section-layout-featured .blog-grid { grid-template-columns: 1fr; }
    .section-layout-featured .blog-grid .card:first-child { grid-row: auto; }
    .section-layout-masonry .projects-grid { columns: 1; }
    .section-layout-reversed .about-grid { direction: ltr; }
    .container-narrow { padding: 0 1rem; }
}

@media (max-width: 992px) {
    .section-layout-masonry .projects-grid { columns: 2; }
}

/* ---------- New section types responsive ---------- */
@media (max-width: 768px) {
    .section-faq .faq-accordion { max-width: 100% !important; }
    .section-team > div > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; }
    .section-process > div > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .section-values > div > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; }
    .section-newsletter form { flex-direction: column; }
    .section-newsletter form input, .section-newsletter form button { width: 100%; min-width: 0 !important; }
    .section-faq div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    .section-layout-zigzag > div > div { flex-direction: column !important; }
    .process-timeline { padding-left: 30px !important; }
}
@media (max-width: 480px) {
    .section-team > div > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .section-values > div > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ---------- Bootstrap-like Grid (frontend pages) ---------- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-lg-4, .col-lg-8, .col-lg-10 { width: 100%; }
@media (min-width: 992px) {
    .col-lg-4  { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-8  { flex: 0 0 66.667%; max-width: 66.667%; }
    .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
}

/* Visual Builder content: let Bootstrap handle grid/container instead of our overrides */
.vb-content .container { max-width: initial; padding: initial; }
.vb-content .row { margin-left: initial; margin-right: initial; }
.vb-content .row > [class*="col-"] { padding-left: initial; padding-right: initial; width: initial; }
.vb-content .col-12,
.vb-content .col-lg-4, .vb-content .col-lg-8, .vb-content .col-lg-10 { width: initial; flex: initial; max-width: initial; }
.mx-auto { margin-left: auto; margin-right: auto; }
.g-4 { gap: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ms-2 { margin-left: 0.5rem; }
.p-0 { padding: 0; }
.text-muted { color: var(--text-light); }
.text-center { text-align: center; }

/* ==========================================================================
   Card Style Variants — applied via card-style-{value} class on section wrappers
   ========================================================================== */

/* --- Services card styles --- */

/* Icon Box: centered icon circle with text below */
.card-style-icon-box .service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.25rem 1.25rem;
    box-shadow: 0 2px 12px var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card-style-icon-box .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}
.card-style-icon-box .service-icon {
    width: 72px; height: 72px; margin: 0 auto 1rem;
    background: rgba(200,169,81,.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--gold);
}

/* Image Card: full-width image on top, bold title + description below */
.card-style-image-card .service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-style-image-card .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px var(--shadow-lg);
}
.card-style-image-card .service-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.card-style-image-card .service-card-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-style-image-card .service-card-image-placeholder .service-icon {
    width: 64px; height: 64px;
    background: rgba(200,169,81,.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--gold);
    margin: 0;
}
.card-style-image-card .service-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-style-image-card .service-card-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    color: var(--dark, #1a1a1a);
}
.card-style-image-card .service-card-body h3 a {
    color: inherit;
    text-decoration: none;
}
.card-style-image-card .service-card-body p {
    font-size: 0.9rem;
    color: var(--text-light, #666);
    line-height: 1.7;
    margin: 0 0 1rem;
}
.card-style-image-card .service-card-body .read-more-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- About section layout fixes --- */
.section-layout-centered .about-grid { grid-template-columns: 1fr; text-align: center; max-width: 800px; margin: 0 auto; }
.section-layout-centered .about-images { display: none; }
.section-layout-centered .about-text { max-width: 100%; }
.section-layout-centered .about-text h2::after { margin-left: auto; margin-right: auto; }

.section-layout-side-stats .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
.section-layout-timeline .about-grid { grid-template-columns: 1fr; }

/* --- Projects card styles --- */
.card-style-minimal .project-card,
.card-style-minimal .masonry-item {
    border-radius: 0;
    box-shadow: none;
}
.card-style-minimal .project-overlay { background: rgba(0,0,0,.3); }
.card-style-hover-reveal .project-card .project-overlay,
.card-style-hover-reveal .masonry-item .project-overlay {
    opacity: 0;
    transition: opacity var(--transition);
}
.card-style-hover-reveal .project-card:hover .project-overlay,
.card-style-hover-reveal .masonry-item:hover .project-overlay { opacity: 1; }

/* --- Testimonials card styles --- */
.card-style-bubble .testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px var(--shadow);
    position: relative;
}
.card-style-bubble .testimonial-card::after {
    content: '';
    position: absolute; bottom: -10px; left: 30px;
    border: 10px solid transparent;
    border-top-color: var(--white);
    border-bottom: 0;
}
.card-style-minimal .testimonial-card {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 2rem 0;
}
.card-style-avatar-top .testimonial-card {
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px var(--shadow);
}
.card-style-avatar-top .testimonial-author {
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}
.card-style-avatar-top .testimonial-avatar {
    width: 64px; height: 64px; margin-bottom: 0.75rem;
}

/* --- Clients card styles --- */
.card-style-card .client-logo {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
}
.card-style-rounded .client-logo {
    border-radius: 50%;
    padding: 1rem;
    background: var(--white);
    box-shadow: 0 2px 12px var(--shadow);
}
.card-style-grayscale .client-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter var(--transition), opacity var(--transition);
}
.card-style-grayscale .client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Blog card styles --- */
.card-style-minimal.section-blog .card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}
.card-style-overlay.section-blog .card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.card-style-overlay.section-blog .card img { height: 280px; }
.card-style-overlay.section-blog .card .card-body {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    color: #fff; padding: 2rem 1.5rem;
}
.card-style-overlay.section-blog .card .card-body a { color: var(--gold); }
.card-style-horizontal.section-blog .blog-grid {
    grid-template-columns: 1fr !important;
}
.card-style-horizontal.section-blog .card {
    display: flex; flex-direction: row;
}
.card-style-horizontal.section-blog .card img {
    width: 280px; min-width: 280px; height: auto; object-fit: cover;
}

/* --- Team card styles --- */
.card-style-card .team-member {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform var(--transition);
}
.card-style-card .team-member:hover { transform: translateY(-4px); }
.card-style-circle .team-member { text-align: center; }
.card-style-circle .team-member img {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px var(--shadow-lg);
}
.card-style-overlay .team-member {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.card-style-overlay .team-member .team-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    color: #fff; padding: 1.5rem;
}
.card-style-minimal .team-member {
    text-align: center;
    background: transparent;
    box-shadow: none;
}

/* --- Bordered card style (more section coverage) --- */
.card-style-bordered .team-member {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
}
.card-style-bordered .project-card {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
}
.card-style-bordered .faq-item,
.card-style-bordered .process-card,
.card-style-bordered .value-card {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
}
.card-style-bordered .testimonial-card {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
}
.card-style-bordered .client-logo {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

/* --- Services: Numbered card style --- */
.card-style-numbered .service-card {
    position: relative;
    padding-left: 4.5rem;
}
.card-style-numbered .service-card::before {
    counter-increment: service-counter;
    content: counter(service-counter, decimal-leading-zero);
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
}
.card-style-numbered .services-grid,
.card-style-numbered .responsive-grid {
    counter-reset: service-counter;
}

/* --- FAQ: Shadow card style --- */
.card-style-shadow .faq-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    margin-bottom: 1rem;
    border: none;
}

/* --- FAQ: Numbered card style --- */
.card-style-numbered .faq-item {
    position: relative;
    padding-left: 4rem;
    counter-increment: faq-counter;
}
.card-style-numbered .faq-item::before {
    content: counter(faq-counter, decimal-leading-zero);
    position: absolute;
    top: 1.25rem;
    left: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
}
.section-faq.card-style-numbered {
    counter-reset: faq-counter;
}

/* --- FAQ: Highlighted card style --- */
.card-style-highlight .faq-item {
    border-left: 4px solid var(--gold);
    background: rgba(200,169,81,.04);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 0 8px 8px 0;
}

/* --- Process card styles --- */
.card-style-card .process-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px var(--shadow);
    text-align: center;
    transition: transform var(--transition);
}
.card-style-card .process-card:hover { transform: translateY(-4px); }
.card-style-minimal .process-card {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem 0;
}
.card-style-numbered .process-card {
    position: relative;
    padding-left: 4rem;
}
.card-style-numbered .process-card .step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.25;
}

/* --- Values card styles --- */
.card-style-card .value-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px var(--shadow);
    text-align: center;
    transition: transform var(--transition);
}
.card-style-card .value-card:hover { transform: translateY(-4px); }
.card-style-minimal .value-card {
    background: transparent;
    box-shadow: none;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}
.card-style-circle-icon .value-card {
    text-align: center;
}
.card-style-circle-icon .value-card .value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(200,169,81,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--gold);
}

/* --- Clients: Bordered card style --- */
.card-style-bordered .clients-grid .client-logo {
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    border-radius: 8px;
    transition: border-color var(--transition);
}
.card-style-bordered .clients-grid .client-logo:hover {
    border-color: var(--gold);
}

/* --- Services list item responsive helper --- */
.service-list-item {
    transition: transform var(--transition);
}
.service-list-item:hover {
    transform: translateY(-2px);
}

/* --- Team overlay layout --- */
.team-overlay-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
}
.team-overlay-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-overlay-card .team-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    color: #fff;
    transform: translateY(30%);
    transition: transform var(--transition);
}
.team-overlay-card:hover .team-overlay-info {
    transform: translateY(0);
}
.team-overlay-card .team-overlay-info h4 {
    margin: 0 0 0.25rem;
    color: #fff;
}
.team-overlay-card .team-overlay-info p {
    color: var(--gold);
    margin: 0;
    font-size: 0.85rem;
}

/* --- Newsletter card layout --- */
.newsletter-card-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* --- CTA layout helpers --- */
.cta-split-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cta-boxed-layout {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark, #1a1a2e);
    border-radius: 16px;
    padding: 3.5rem;
    text-align: center;
}
.cta-minimal-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* --- Values alternating layout --- */
.values-alt-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}
.values-alt-row:last-child {
    border-bottom: none;
}
.values-alt-row.reverse {
    flex-direction: row-reverse;
}
.values-alt-row .value-icon-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(200,169,81,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--gold);
}

/* --- Process minimal layout --- */
.process-minimal-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.process-minimal-item:last-child {
    border-bottom: none;
}
.process-minimal-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
    width: 3rem;
}

/* --- Blog hover card --- */
.blog-hover-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.blog-hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.blog-hover-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}
.blog-hover-card:hover img {
    transform: scale(1.03);
}
.blog-hover-card .card-body {
    padding: 1.5rem;
}

/* --- FAQ side-by-side layout --- */
.faq-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.faq-side-by-side .faq-question {
    font-weight: 700;
    color: var(--dark);
    padding-right: 1rem;
}
.faq-side-by-side .faq-answer {
    color: var(--text-light, #666);
    line-height: 1.7;
}

/* ============================================
   SEARCH
   ============================================ */

/* Nav search toggle button */
.nav-search-toggle {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
}
.nav-search-toggle:hover { opacity: 1; }
.site-nav.scrolled .nav-search-toggle { color: var(--dark, #1a1a1a); }
.site-nav.transparent-nav:not(.scrolled) .nav-search-toggle { color: #fff; }

/* Search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-overlay-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.search-overlay-close:hover { opacity: 1; }
.search-overlay-form {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 600px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 0.5rem;
}
.search-overlay-form input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--font-body, sans-serif);
    padding: 0.5rem 0;
}
.search-overlay-form input::placeholder { color: rgba(255,255,255,0.5); }
.search-overlay-form button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.search-overlay-form button:hover { opacity: 1; }
.search-overlay-hint {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Search results page */
.search-page-form {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #e8e0d4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.search-page-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-body, sans-serif);
}
.search-page-form button {
    background: var(--gold, #c8a951);
    border: none;
    color: #fff;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.search-page-form button:hover { background: var(--gold-hover, #b89841); }

.search-results-count {
    color: var(--text-light, #666);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.search-results { display: flex; flex-direction: column; gap: 1.5rem; }

.search-result-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}
.search-result-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.search-result-image {
    flex-shrink: 0;
    width: 160px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
}
.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-result-content { flex: 1; min-width: 0; }
.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light, #666);
    margin-bottom: 0.5rem;
}
.search-result-type {
    background: var(--gold, #c8a951);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.search-result-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}
.search-result-content h3 a {
    color: var(--dark, #1a1a1a);
    text-decoration: none;
}
.search-result-content h3 a:hover { color: var(--gold, #c8a951); }
.search-result-content p {
    color: var(--text-light, #666);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .search-result-item { flex-direction: column; gap: 1rem; }
    .search-result-image { width: 100%; height: 180px; }
    .search-overlay-form input { font-size: 1.1rem; }
}

/* ==========================================================================
   Content Grid Section
   ========================================================================== */
.content-grid-cell {
    background: var(--white, #fff);
    border-radius: var(--radius, 8px);
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px var(--shadow, rgba(0,0,0,.06));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-grid-cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-lg, rgba(0,0,0,.1));
}
.content-grid-cell h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--dark, #1a1a1a);
}
.content-grid-cell h3 a { color: inherit; text-decoration: none; }
.content-grid-cell p {
    font-size: 0.9rem;
    color: var(--text-light, #666);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}
.content-grid-cell-icon-box .grid-cell-icon {
    width: 64px; height: 64px;
    background: rgba(200,169,81,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--gold, #c8a951);
    margin-bottom: 1rem;
}
.content-grid-cell-image-box {
    padding: 0;
    overflow: hidden;
}
.content-grid-cell-image-box .grid-cell-image {
    width: 100%; height: 200px; overflow: hidden;
}
.content-grid-cell-image-box .grid-cell-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.content-grid-cell-image-box h3,
.content-grid-cell-image-box p,
.content-grid-cell-image-box .read-more-link {
    padding-left: 1.5rem; padding-right: 1.5rem;
}
.content-grid-cell-image-box h3 { padding-top: 1.25rem; }
.content-grid-cell-image-box .read-more-link { padding-bottom: 1.5rem; display: inline-block; }

/* Content grid row — last row no bottom margin */
.content-grid-row:last-child { margin-bottom: 0 !important; }

/* ==========================================================================
   Mobile Responsive — Homepage Sections
   ========================================================================== */

/* Force grid overrides on inline styles */
@media (max-width: 992px) {
    .services-grid[style*="grid-template-columns"],
    .content-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .service-row > .container > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    .service-row > .container > div[style*="display:flex"] > div[style*="flex:1"] {
        width: 100%;
    }
    /* Team, process, values grids */
    .team-grid, .process-grid, .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .services-grid[style*="grid-template-columns"],
    .content-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .services-icon-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Section headers */
    .section-header h2 {
        font-size: 1.6rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    /* Image card responsive */
    .card-style-image-card .service-card-image,
    .card-style-image-card .service-card-image-placeholder {
        height: 180px;
    }
    /* Team, process, values grids */
    .team-grid, .process-grid, .values-grid {
        grid-template-columns: 1fr !important;
    }
    /* CTA sections */
    .cta-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
    /* FAQ sections */
    .faq-item {
        padding: 1rem;
    }
    /* Blog grid */
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .services-icon-grid {
        grid-template-columns: 1fr !important;
    }
    .section-header h2 {
        font-size: 1.3rem;
    }
    .card-style-image-card .service-card-image,
    .card-style-image-card .service-card-image-placeholder {
        height: 160px;
    }
    .card-style-image-card .service-card-body {
        padding: 1.25rem;
    }
    .card-style-image-card .service-card-body h3 {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE OVERRIDES
   Fixes all inline grid-template-columns that override CSS media queries.
   Uses !important to beat inline style specificity.
   ========================================================================== */

/* ---- TABLET (max-width: 992px) ---- */
@media (max-width: 992px) {
    /* Universal responsive-grid class override */
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Hero sections */
    .hero {
        min-height: 70vh;
    }
    .page-hero {
        min-height: 40vh;
        padding-top: 80px;
    }

    /* About grid — stack text + images */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .about-images {
        min-height: 300px !important;
    }
    .section-layout-side-stats .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Services inline grids (section-renderer) */
    .section-services > div > .services-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Projects inline grids (both index.php and section-renderer) */
    .section-projects > div > div[style*="grid-template-columns"],
    .projects-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Team inline grids */
    .section-team > div > div > div[style*="grid-template-columns"],
    .section-team [style*="grid-template-columns:repeat"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Process inline grids */
    .section-process > div > div > div[style*="grid-template-columns"],
    .section-process [style*="grid-template-columns:repeat"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Values inline grids */
    .section-values > div > div > div[style*="grid-template-columns"],
    .section-values [style*="grid-template-columns:repeat"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Blog inline grids */
    .section-blog div[style*="grid-template-columns"],
    .blog-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Shop sections inline grids */
    .section-shop-featured > div > div[style*="grid-template-columns"],
    .section-shop-sale > div > div[style*="grid-template-columns"],
    .section-shop-new > div > div[style*="grid-template-columns"],
    .section-shop-categories > div > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Content grid section */
    .section-content-grid .content-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Contact section grids (split-map, default 2-col) */
    .section-contact > div > div[style*="grid-template-columns: 1fr 1fr"],
    .section-contact > div > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* FAQ two-column layout */
    .section-faq div[style*="grid-template-columns:1fr 1fr"],
    .section-faq div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Contact form name/email side-by-side inputs */
    .section-contact form > div[style*="grid-template-columns:1fr 1fr"],
    .section-contact form > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Clients grid */
    .clients-grid {
        gap: 30px !important;
    }

    /* Blog list items */
    .blog-list-item[style*="display:flex"] {
        flex-direction: column !important;
    }
    .blog-list-item img[style*="width:220px"] {
        width: 100% !important;
        height: 200px !important;
    }

    /* Page with sidebar */
    .page-with-sidebar {
        grid-template-columns: 1fr !important;
    }
}

/* ---- MOBILE (max-width: 768px) ---- */
@media (max-width: 768px) {
    /* Universal responsive-grid class override */
    .responsive-grid {
        grid-template-columns: 1fr !important;
    }
    /* Hero sections */
    .hero {
        min-height: 60vh;
    }
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    .hero-content p {
        font-size: 1rem !important;
    }
    .page-hero {
        min-height: 35vh;
        padding-top: 70px;
    }
    .page-hero-content h1 {
        font-size: 1.6rem !important;
    }

    /* About section — always single column */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .about-grid[style*="direction:rtl"] {
        direction: ltr !important;
    }
    .about-grid[style*="direction:rtl"] > * {
        direction: ltr !important;
    }
    .about-images {
        min-height: 250px !important;
    }

    /* Services — single column */
    .services-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .section-services > div > .services-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Projects — single column */
    .projects-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .section-projects > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Team — 2 columns on mobile */
    .section-team > div > div > div[style*="grid-template-columns"],
    .section-team [style*="grid-template-columns:repeat"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Process — single column */
    .section-process > div > div > div[style*="grid-template-columns"],
    .section-process [style*="grid-template-columns:repeat"] {
        grid-template-columns: 1fr !important;
    }

    /* Values — 2 columns on mobile */
    .section-values > div > div > div[style*="grid-template-columns"],
    .section-values [style*="grid-template-columns:repeat"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Blog inline grids — single column */
    .section-blog div[style*="grid-template-columns"],
    .blog-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Shop sections — 2 columns */
    .section-shop-featured > div > div[style*="grid-template-columns"],
    .section-shop-sale > div > div[style*="grid-template-columns"],
    .section-shop-new > div > div[style*="grid-template-columns"],
    .section-shop-categories > div > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Content grid */
    .section-content-grid .content-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Contact sections — all stack */
    .section-contact > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .section-contact form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* FAQ */
    .section-faq div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }

    /* Clients */
    .clients-grid {
        gap: 20px !important;
    }
    .client-logo {
        max-height: 40px !important;
    }

    /* Blog list items stack */
    .blog-list-item[style*="display:flex"] {
        flex-direction: column !important;
    }
    .blog-list-item img[style*="width:220px"],
    .blog-list-item div[style*="width:220px"] {
        width: 100% !important;
    }

    /* Newsletter form */
    .section-newsletter form[style*="display:flex"] {
        flex-direction: column !important;
    }
    .section-newsletter form input,
    .section-newsletter form button {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Section padding reduction */
    section[class*="section-"] {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Hero buttons */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 80%;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem;
    }

    /* CTA sections */
    .section-cta h2,
    .section-shop-cta h2 {
        font-size: 1.5rem !important;
    }
    .section-cta p,
    .section-shop-cta p {
        font-size: 1rem !important;
    }

    /* Custom HTML content */
    .custom-html-content img {
        max-width: 100%;
        height: auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    /* Horizontal card style — stack on mobile */
    .card-style-horizontal.section-blog .card {
        flex-direction: column !important;
    }
    .card-style-horizontal.section-blog .card img {
        width: 100% !important;
        min-width: 100% !important;
        height: 200px !important;
    }

    /* Services masonry — 2 columns on tablet */
    .services-masonry {
        columns: 2 !important;
    }

    /* Services/Projects list — stack on mobile */
    .service-list-item,
    .service-list-item[style*="flex-direction:row-reverse"] {
        flex-direction: column !important;
    }
    .service-list-item img,
    .service-list-item > div:first-child {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Projects list layout — stack */
    div[style*="display:flex"][style*="gap:3rem"] {
        flex-direction: column !important;
    }
    div[style*="display:flex"][style*="gap:3rem"] img {
        width: 100% !important;
        min-width: 100% !important;
        height: 250px !important;
    }

    /* FAQ side-by-side — stack */
    .faq-side-by-side {
        grid-template-columns: 1fr !important;
    }

    /* Team overlay — reduce height */
    .team-overlay-card {
        height: 280px;
    }

    /* Values alternating — stack */
    .values-alt-row,
    .values-alt-row.reverse {
        flex-direction: column !important;
        text-align: center;
    }
    .values-alt-row .value-icon-wrap {
        margin: 0 auto;
    }

    /* CTA split/minimal — stack */
    .cta-split-layout,
    .cta-minimal-layout {
        flex-direction: column !important;
        text-align: center;
    }

    /* Newsletter card — reduce padding */
    .newsletter-card-wrapper {
        padding: 2rem 1.5rem;
    }

    /* Process minimal — tighter */
    .process-minimal-item {
        gap: 1rem;
    }

    /* Blog hover cards — single column */
    .blog-hover-card img {
        height: 180px;
    }

    /* Card style numbered — adjust positioning */
    .card-style-numbered .service-card {
        padding-left: 3.5rem;
    }
    .card-style-numbered .service-card::before {
        font-size: 1.5rem;
        left: 1rem;
        top: 1.25rem;
    }
}

/* ---- SMALL MOBILE (max-width: 480px) ---- */
@media (max-width: 480px) {
    /* Hide topbar on very small screens */
    .site-topbar { display: none; }
    .site-topbar + .site-nav.sticky-nav { top: 0 !important; }

    /* Compact nav */
    .nav-inner { min-height: 55px; }
    .nav-brand img { max-height: 35px !important; }

    /* Hero */
    .hero {
        min-height: 50vh;
    }
    .hero-content h1 {
        font-size: 1.5rem !important;
    }
    .page-hero {
        min-height: 30vh;
        padding-top: 65px;
    }
    .page-hero-content h1 {
        font-size: 1.3rem !important;
    }

    /* Team — single column */
    .section-team > div > div > div[style*="grid-template-columns"],
    .section-team [style*="grid-template-columns:repeat"] {
        grid-template-columns: 1fr !important;
    }

    /* Values — single column */
    .section-values > div > div > div[style*="grid-template-columns"],
    .section-values [style*="grid-template-columns:repeat"] {
        grid-template-columns: 1fr !important;
    }

    /* Shop — single column */
    .section-shop-featured > div > div[style*="grid-template-columns"],
    .section-shop-sale > div > div[style*="grid-template-columns"],
    .section-shop-new > div > div[style*="grid-template-columns"],
    .section-shop-categories > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    /* All buttons full width */
    .btn {
        width: 100%;
    }

    /* Reduce container padding */
    .container {
        padding: 0 15px;
    }

    /* About stats grid inside about section */
    div[style*="grid-template-columns:repeat(2,1fr)"][style*="margin-top:2rem"] {
        grid-template-columns: 1fr !important;
    }

    /* Contact info cards */
    .contact-info-cards {
        grid-template-columns: 1fr !important;
    }

    /* Section headers smaller */
    .section-header h2 {
        font-size: 1.3rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Blog list image */
    .blog-list-item img[style*="width:220px"],
    .blog-list-item div[style*="width:220px"] {
        height: 180px !important;
    }

    /* Section header variants responsive */
    .sh-left-with-subtitle-right { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .sh-left-with-subtitle-right p { text-align: left; }
    .sh-left-inline { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .sh-left-big h2 { font-size: 1.6rem; }

    /* Services masonry — single column */
    .services-masonry {
        columns: 1 !important;
    }

    /* Team overlay — reduce height further */
    .team-overlay-card {
        height: 240px;
    }

    /* Newsletter card — minimal padding */
    .newsletter-card-wrapper {
        padding: 1.5rem 1rem;
    }

    /* CTA boxed — reduce padding */
    .cta-boxed-layout {
        padding: 2rem 1.5rem;
    }

    /* Process minimal number — smaller */
    .process-minimal-num {
        font-size: 1.3rem;
        width: 2rem;
    }

    /* Values alternating — tighter gaps */
    .values-alt-row {
        padding: 1.25rem 0;
        gap: 1rem;
    }

    /* FAQ side-by-side items — tighter */
    .faq-side-by-side {
        gap: 0.75rem;
    }

    /* Blog hover card — shorter images */
    .blog-hover-card img {
        height: 150px;
    }

    /* Bordered cards — thinner on mobile */
    .card-style-bordered .service-card,
    .card-style-bordered .team-member,
    .card-style-bordered .project-card,
    .card-style-bordered .faq-item,
    .card-style-bordered .process-card,
    .card-style-bordered .value-card {
        border-radius: 6px !important;
    }

    /* Team list — stack on mobile */
    .section-layout-list .team-member {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Team compact — fewer columns */
    .section-layout-compact .responsive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Newsletter banner — stack on mobile */
    .section-layout-banner .section-newsletter > div > div {
        flex-direction: column;
        text-align: center;
    }

    /* Shop carousel — show fewer items */
    .shop-carousel-track > div,
    .team-carousel-track > div,
    .projects-carousel-track > div {
        flex: 0 0 calc(50% - 0.75rem) !important;
        min-width: 0 !important;
    }
}

/* ==========================================================================
   New Layouts & Card Styles
   ========================================================================== */

/* --- Process: Steps layout --- */
.section-layout-steps .process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

/* --- Services: Cards (elevated) layout --- */
.section-layout-cards .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- Projects: Carousel --- */
.projects-carousel,
.team-carousel,
.shop-carousel {
    position: relative;
}

.projects-carousel-track,
.team-carousel-track,
.shop-carousel-track {
    display: flex;
    overflow: hidden;
}

/* --- Team: List layout --- */
.section-layout-list .team-member {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* --- Team: Compact layout --- */
.section-layout-compact .team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Newsletter: Banner layout --- */
.section-layout-banner .section-newsletter {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* --- Newsletter: Minimal layout --- */
.section-layout-minimal .section-newsletter form {
    display: flex;
    gap: 0.5rem;
}

/* --- About: Overlay layout --- */
.section-layout-overlay .about-section {
    position: relative;
}

/* --- Shop product cards: hover lift --- */
.product-card:hover,
.category-card:hover {
    transform: translateY(-4px);
}

/* --- Shop: Overlay card style --- */
.card-style-overlay .product-card img {
    transition: transform 0.3s ease;
}
.card-style-overlay .product-card:hover img {
    transform: scale(1.05);
}

/* --- Shop: Minimal card style --- */
.card-style-minimal .product-card {
    box-shadow: none;
    background: transparent;
}

/* --- Shop: Horizontal card style --- */
.card-style-horizontal .responsive-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
}

/* --- Shop CTA: Card layout --- */
.section-layout-card .section-shop-cta {
    background: transparent;
}

/* --- Masonry responsive --- */
@media (max-width: 768px) {
    .section-layout-masonry .responsive-grid,
    .shop-categories .section-layout-masonry > div {
        columns: 1 !important;
    }
}
