/* ==========================================================================
   CSS Variables & Configuration
   ========================================================================== */
:root {
    --primary-color: #b1652d;
    --primary-hover: #8b4f22;
    --secondary-color: #f3d6b7;
    --bg-color: #f6eee5;
    --bg-light: #ffffff;
    --bg-lighter: #fbf4eb;
    --text-color: #2f251f;
    --text-muted: #6f5f53;
    --border-color: #d8c6b5;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(177, 118, 72, 0.14);
    --shadow-soft: 0 22px 45px rgba(79, 52, 34, 0.12);
    --shadow-hover: 0 20px 42px rgba(177, 97, 29, 0.18);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition-fast: 0.25s ease;
    --transition-slow: 0.55s ease;
    --nav-height: 82px;
}

[data-theme="dark"] {
    --primary-color: #d4af37;
    --primary-hover: #b8962e;
    --secondary-color: #f3c86a;
    --bg-color: #101113;
    --bg-light: rgba(20, 20, 24, 0.92);
    --bg-lighter: #1f1f23;
    --text-color: #f3ede8;
    --text-muted: #b9afa3;
    --border-color: rgba(255,255,255,0.08);
    --glass-bg: rgba(15, 15, 18, 0.86);
    --glass-border: rgba(255,255,255,0.08);
    --shadow-soft: 0 22px 50px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 22px 45px rgba(212, 175, 55, 0.24);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html { font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.bg-light { background-color: var(--bg-light); }
.d-none { display: none !important; }

.section-padding { padding: 6rem 0; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary-color);
    font-style: italic;
}

.section-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    font-size: 3rem;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Theme Toggle
   ========================================================================== */
.theme-toggle {
    position: fixed;
    right: 30px;
    bottom: 130px;
    z-index: 1002;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-toggle .light-icon { display: none; }
.theme-toggle .dark-icon { display: block; }
[data-theme="light"] .theme-toggle .light-icon { display: block; }
[data-theme="light"] .theme-toggle .dark-icon { display: none; }


/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: transparent;
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 25%),
                radial-gradient(circle at bottom left, rgba(177,97,29,0.14), transparent 20%);
    pointer-events: none;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72) saturate(1.12) contrast(1.02);
    animation: zoomInOut 24s infinite alternate ease-in-out;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,20,20,0.12), rgba(20,20,20,0.55));
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    backdrop-filter: none;
    z-index: -1;
}

[data-theme="dark"] .hero-overlay {
    background: rgba(5,5,7,0.18);
}

.hero-content {
    width: min(980px, 92%);
    max-width: 980px;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
    padding: 3.5rem 2.5rem;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 30px 90px rgba(22, 22, 22, 0.14);
    color: #242424;
    text-align: center;
}

[data-theme="dark"] .hero-content {
    background: rgba(255,255,255,0.96);
    border-color: rgba(255,255,255,0.88);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, #8b4f23 0%, #d17b31 45%, #c1622b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #c1622b;
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.2rem;
}

@media (max-width: 900px) {
    .hero-content {
        padding: 2.5rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .hero-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 1.75rem;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 1.5rem);
        padding-bottom: 3rem;
    }

    .hero-content {
        padding: 1.75rem 1rem;
        border-radius: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-gallery {
        grid-template-columns: 1fr;
    }

    .hero-card img {
        height: 200px;
    }
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #ffffff;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 170px;
    border-radius: 999px;
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.2rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 30px 70px rgba(24, 18, 12, 0.12);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.hero-card span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 16px 35px rgba(0,0,0,0.35);
}

.hero-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.9);
}

.hero-card:hover img {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 18px 40px rgba(177, 97, 29, 0.24);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 20px 45px rgba(177, 97, 29, 0.28);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.92);
    color: var(--text-color);
    border-color: rgba(255,255,255,0.9);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.55rem;
    animation: bounce 2.2s infinite;
    color: #fff;
    text-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-18px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(177, 97, 29, 0.16);
    border-radius: 30px;
    pointer-events: none;
}

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

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

.experience-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--primary-color);
    color: #fff;
    padding: 1.4rem 1.5rem;
    border-radius: 24px;
    display: grid;
    gap: 0.25rem;
    box-shadow: 0 20px 40px rgba(177, 97, 29, 0.2);
}

.experience-badge .number {
    font-size: 2.4rem;
}

.experience-badge .text {
    font-size: 0.9rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.about-content p {
    margin-bottom: 1.4rem;
    color: var(--text-muted);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-weight: 500;
}

.about-features li i {
    color: var(--primary-color);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-light);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-img {
    height: 240px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 2rem;
    position: relative;
}

.service-icon {
    position: absolute;
    top: -22px;
    right: 22px;
    width: 52px;
    height: 52px;
    background-color: var(--primary-color);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    border-radius: 50%;
    box-shadow: 0 16px 30px rgba(177, 97, 29, 0.22);
}

.service-content h3 {
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 280px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 34, 25, 0.34);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

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

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonial-slider {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2.25rem;
    background: var(--bg-light);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.stars {
    color: var(--primary-color);
    margin-bottom: 1.3rem;
}

.review-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.8;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.client-info img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.client-info h4 { margin-bottom: 0; }

.client-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-color);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.slider-dots { display: flex; gap: 0.6rem; }

.dot { width: 12px; height: 12px; border-radius: 50%; background-color: var(--border-color); cursor: pointer; transition: background-color var(--transition-fast); }

.dot.active { background-color: var(--primary-color); }

/* ==========================================================================
   Instagram Feed (UI)
   ========================================================================== */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.insta-item {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    min-height: 220px;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 34, 25, 0.44);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.insta-overlay i {
    color: #fff;
    font-size: 2rem;
}

.insta-item:hover img {
    transform: scale(1.08);
}

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

.insta-follow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 26px;
    background: rgba(255,255,255,0.94);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.insta-follow h3 {
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.insta-follow p {
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.icon-box {
    width: 56px;
    height: 56px;
    background-color: rgba(177, 97, 29, 0.12);
    color: var(--primary-color);
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.2rem;
}

.info-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.info-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

.map-container {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 2.75rem;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 1.6rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
    padding-left: 0.2rem;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-group label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
}

.checkbox-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
}

.checkbox-group input[type="checkbox"]:checked + label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

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

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--primary-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -12px;
    font-size: 0.82rem;
    color: var(--primary-color);
}

.error-msg {
    color: #e74c3c;
    font-size: 0.82rem;
    position: absolute;
    bottom: -20px;
    left: 0;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-bottom-color: #e74c3c;
}

.form-group.error .error-msg {
    display: block;
}

.form-success {
    background-color: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    justify-content: center;
}

.feedback-display {
    max-width: 760px;
    margin: 0 auto;
}

.feedback-form-wrapper,
.feedback-display,
.admin-card {
    background-color: var(--bg-light);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.feedback-form-wrapper h3,
.feedback-display h3,
.admin-card h2,
.admin-card h3 {
    margin-bottom: 1.25rem;
}

.feedback-display .testimonial-slider {
    margin: 1.5rem auto 0;
    max-width: 760px;
}

.feedback-loading,
.gallery-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.98rem;
}

.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: rgba(47, 34, 25, 0.95);
    color: #fff;
    padding: 1rem 1.3rem;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2500;
}

.modal.active {
    display: flex;
}

.modal-box {
    width: min(540px, 100%);
    background: var(--bg-light);
    border-radius: 32px;
    padding: 2.2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    position: relative;
}

.modal-box h2 {
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-color);
    font-size: 1.75rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.1);
}

.toast-success {
    background-color: rgba(44, 130, 201, 0.92);
}

.toast-error {
    background-color: rgba(231, 76, 60, 0.92);
}

.auth-section {
    min-height: calc(100vh - var(--nav-height));
    display: grid;
    place-items: center;
    padding-top: var(--nav-height);
    background: var(--bg-color);
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 3rem;
    text-align: left;
}

.auth-card h1,
.auth-card p,
.auth-card .auth-note {
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.contact-form .form-group,
.contact-form .checkbox-group,
.contact-form button {
    width: 100%;
}

.auth-card h1 {
    margin-bottom: 1rem;
}

.auth-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-message {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.auth-error {
    color: #e74c3c;
}

.auth-success {
    color: #2ecc71;
}

.admin-page {
    padding-top: calc(var(--nav-height) + 2.2rem);
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.admin-sidebar {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    align-self: start;
}

.sidebar-brand {
    margin-bottom: 2rem;
}

.sidebar-brand .logo {
    display: inline-block;
    margin-bottom: 0.85rem;
}

.sidebar-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.sidebar-menu {
    display: grid;
    gap: 0.75rem;
    margin: 1.75rem 0;
}

.sidebar-link {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    color: var(--text-color);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
}

.logout-btn {
    width: 100%;
    margin-top: 1rem;
}

.admin-content .admin-card {
    margin-bottom: 1.8rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 1.8rem 0 0;
}

.overview-card {
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
}

.overview-value {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.admin-meta {
    color: var(--text-muted);
    margin-top: 1.2rem;
}

.admin-record {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 20px;
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
    align-items: center;
}

.admin-record.admin-feedback-record {
    grid-template-columns: 80px 1fr;
}

.admin-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.admin-record-content h4 {
    margin-bottom: 0.6rem;
}

.admin-record-content p {
    color: var(--text-muted);
    margin: 0.35rem 0;
    line-height: 1.5;
}

.admin-record-content .btn {
    margin-top: 0.85rem;
}

.admin-card h2,
.admin-card h3 {
    margin-bottom: 1.25rem;
}

.admin-hero {
    margin-bottom: 3rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}

.admin-manage-section {
    grid-column: 1 / -1;
}

.admin-form .form-group {
    margin-bottom: 1.4rem;
}

.admin-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-record {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.2rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-lighter);
}

.admin-feedback-record {
    grid-template-columns: 88px 1fr;
}

.admin-preview {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #f7f2ea;
}

.admin-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-avatar {
    width: 88px;
    height: 88px;
}

.admin-record-content h4 {
    margin-bottom: 0.45rem;
}

.admin-record-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.admin-record-content .btn {
    margin-top: 0.5rem;
}

.empty-state {
    padding: 2rem;
    border-radius: 28px;
    background: var(--bg-light);
    color: var(--text-muted);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-lighter);
    border-top: 1px solid var(--border-color);
}

.footer-top {
    padding: 5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.brand-col .logo {
    display: block;
    margin-bottom: 0.5rem;
}

.brand-col .tagline {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -0.4rem;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: var(--primary-color);
}

.links-col ul li {
    margin-bottom: 0.85rem;
}

.links-col ul li a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.links-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: var(--bg-color);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

/* ==========================================================================
   Floating Elements & Lightbox
   ========================================================================== */
.float-btn {
    position: fixed;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.45rem;
    z-index: 999;
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-float {
    bottom: 30px;
    background-color: #25d366;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
}

.back-to-top {
    bottom: 96px;
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-hover);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11,11,11,0.93);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 96%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 18px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 48px rgba(177, 97, 29, 0.28);
    animation: zoomIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 32px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-lightbox:hover {
    color: var(--primary-color);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}

body.js-enabled .reveal {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

body.js-enabled .reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fade-up { transform: translateY(30px); }
.fade-up.active { transform: translateY(0); }

.slide-left { transform: translateX(-50px); }
.slide-left.active { transform: translateX(0); }

.slide-right { transform: translateX(50px); }
.slide-right.active { transform: translateX(0); }

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-grid, .about-grid { gap: 2.2rem; }
    .services-grid { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
    .hero-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-content { width: min(860px, 100%); padding: 3rem 1.75rem; }
    .hero-title { font-size: 3.4rem; }
    .map-container { min-height: 360px; }
    .about-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: relative;
        top: 0;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero-gallery { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 84%);
        height: 100vh;
        padding-top: var(--nav-height);
        background: var(--bg-light);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.4rem;
        transition: right 0.35s ease;
        border-left: 1px solid var(--border-color);
        z-index: 1060;
    }

    .nav-links.active { right: 0; }
    .theme-toggle { top: 20px; right: 20px; }
    .hero-content { padding: 2.2rem 1.25rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-gallery { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .contact-grid { gap: 2rem; }
    .map-container { min-height: 320px; }
    .about-image { max-width: 540px; margin: 0 auto; }
    .experience-badge { right: 12px; bottom: 12px; padding: 1rem 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .insta-item { min-height: 180px; }
    .insta-follow { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; gap: 0.9rem; }
    .hero-content { padding: 1.5rem 1rem; }
    .section-padding { padding: 4rem 0; }
    .section-title { font-size: 2rem; }
    .contact-grid { gap: 1.5rem; }
    .hero-gallery { gap: 0.9rem; }
    .hero-card img { height: 180px; }
    .services-grid, .gallery-grid, .insta-grid { grid-template-columns: 1fr; }
    .footer-top { padding: 3rem 0; }
    .footer-grid { gap: 1.5rem; }
    .float-btn { right: 16px; }
    .whatsapp-float { bottom: 20px; }
    .back-to-top { bottom: 86px; }
    .theme-toggle { right: 16px; bottom: 120px; }
    .service-card { border-radius: 24px; }
}
