@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --primary: #2ba8bb;
    /* Perfect Logo Teal Match */
    --primary-light: #4fb9c9;
    --primary-dark: #1f7e8c;
    --accent: #FF6B6B;
    --bg-main: #FFFFFF;
    --bg-sec: #F2F7F7;
    /* Slightly darker for better contrast */
    --bg-soft: #E8F2F2;
    /* Distinct soft mint/grey */
    --bg-dark: #32363d;
    /* Perfect Logo Background Match */
    --text-main: #32363d;
    --text-dim: #636E72;
    --text-light: #F8FBFB;
    --white: #FFFFFF;
    --border: #DDE5E5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 15px 35px rgba(43, 168, 187, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, #32363d 0%, #1a1e1f 100%);

    /* New Card Variables */
    --card-bg: #32363d;
    --card-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* More visible mesh gradient for modern depth */
    background: radial-gradient(at 0% 0%, rgba(43, 168, 187, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(43, 168, 187, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(43, 168, 187, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(43, 168, 187, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

section {
    padding: 35px 4%;
    max-width: 1400px;
    margin: 0 auto;
    scroll-margin-top: 110px;
    /* Offset for sticky header */
}

/* --- Utilities --- */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    /* Pillow buttons for modern feel */
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-dark);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* --- Unified Header --- */

header {
    background: var(--bg-dark);
    /* Exact match to logo.png background */
    padding: 0 4%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 90px;
    /* Slightly taller for larger logo */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    z-index: 10;
}

.logo:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

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

nav {
    margin-left: 0;
    /* Reset for centered/balanced layout */
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--primary);
}

nav a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 35px;
}

/* Hamburger hidden on desktop */
.hamburger {
    display: none;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Increased spacing for better legibility */
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-cta .phone {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}


.yelp {
    color: #FF1A1A;
}

.google {
    color: #4285F4;
}

/* --- Hero --- */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 4%;
    position: relative;
    background: linear-gradient(rgba(50, 54, 61, 0.45), rgba(50, 54, 61, 0.45)), url('../assets/Studio-Project.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero::after {
    display: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-btns .btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.hero-btns .btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* .hero-image removed */

/* --- Services --- */

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid rgba(58, 180, 193, 0.1);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.service-card p {
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-deep);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-sec);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

/* --- TV Mounting Pricing --- */

.pricing-table {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.price-box {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--border);
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    transition: var(--transition);
}

.price-box.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(58, 180, 193, 0.1);
    transform: scale(1.05);
}

.price-header {
    margin-bottom: 40px;
    text-align: center;
}

.price-header h3 {
    font-size: 1.4rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.price-header .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* --- Contact Section --- */

.contact-wrap {
    background: var(--bg-sec);
    border-radius: 40px;
    padding: 80px;
    display: flex;
    gap: 80px;
}

.contact-text {
    flex: 1;
}

.contact-form {
    flex: 1.5;
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.form-field {
    margin-bottom: 25px;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-sec);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.form-field.error input,
.form-field.error textarea {
    border-color: #ff4757 !important;
    background: #fffafa !important;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

.error-message {
    color: #ff4757;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Professional Form Feedback --- */
.submission-overlay {
    position: fixed;
    inset: 0;
    background: rgba(50, 54, 61, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.submission-overlay.active {
    display: flex;
    animation: fadeInOverlay 0.3s ease forwards;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.success-card.confirm-card {
    padding: 40px 30px;
}

@media (max-width: 480px) {
    .success-card.confirm-card {
        padding: 30px 20px;
        width: 90%;
    }

    .success-card.confirm-card h3 {
        font-size: 1.5rem;
    }
}

.success-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
}

.submission-overlay.active .success-card {
    animation: slideUpIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards;
}

@keyframes slideUpIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(58, 180, 193, 0.3);
}

.success-card h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.success-card p {
    color: var(--text-dim);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.success-card .btn {
    width: 100%;
}

.error-message {
    color: #ff4757;
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
    display: none;
}

.form-field.error .error-message {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Calculator UI --- */

/* --- Scaled Hero Title --- */
.section-title h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.section-title p {
    font-size: 1.3rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    /* Reduced sidebar, more content space */
    gap: 40px;
    max-width: 1800px;
    /* Wider layout to use screen space */
    margin: 0 auto;
    align-items: start;
    padding: 0;
    /* More horizontal breathing room */
}

@media (max-width: 1024px) {
    .calc-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
        padding: 0 20px;
    }

    .calc-sidebar {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

.calc-card {
    background: var(--white);
    padding: 50px;
    /* Increased from 40px */
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 35px;
}

.step-title {
    margin-bottom: 35px;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.booking-header {
    margin-bottom: 15px !important;
}

.booking-header h3 {
    font-size: 1.4rem !important;
    font-weight: 600;
    margin-bottom: 5px;
}

.booking-header p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

.step-number {
    background: var(--primary);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    /* Sizing */
    height: 100%;
    min-height: 100px;
    width: 100%;
    min-width: 100px;
    padding: 15px;
    aspect-ratio: 1.5 / 1.3;
    /* Appearance */
    background: var(--bg-sec);
    border: 2px solid var(--border);
    border-radius: 24px;

    /* Behavior */
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.card-icon-wrapper {
    height: 70px;
    /* Restored size */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--white);
}

.option-card.active {
    border-color: var(--primary);
    background: rgba(58, 180, 191, 0.05);
    box-shadow: 0 0 0 2px var(--primary);
}

.option-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.bracket-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
    mix-blend-mode: multiply;
    /* Removes white background from PNGs */
    /* Optional: subtle teal tint to match brand */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.option-card h4 {
    margin-bottom: 8px;
}

.option-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    /* Matches the fireplace text color */
    margin-bottom: 5px;
}

.option-card .price-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
}

.addon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-sec);
    height: 110px;
    /* Fixed height - cards won't grow with text */
    overflow: hidden;
    /* Prevents overflow from breaking layout */
}

.addon-item:hover {
    border-color: var(--primary);
    background: var(--white);
}

.addon-item.active {
    border-color: var(--primary);
    background: rgba(58, 180, 191, 0.05);
    position: relative;
    box-shadow: inset 0 0 0 1px var(--primary);
}

.addon-item.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.addon-item p {
    font-size: 0.9rem;
    color: var(--text-main);
    /* Match fireplaces/other descs */
    margin-top: 4px;
}

.addon-item .price-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-right: 35px;
    /* Reserved space for checkmark to avoid shift */
}

/* Sidebar */
.calc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--card-bg);
    color: var(--white);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
}

.sidebar-header {
    flex-shrink: 0;
}

#price-breakdown {
    overflow-y: auto;
    flex-grow: 1;
    margin-right: -10px;
    padding-right: 10px;
}

/* Custom Scrollbar for Sidebar */
#price-breakdown::-webkit-scrollbar {
    width: 4px;
}

#price-breakdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#price-breakdown::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    opacity: 0.5;
}

.total-summary {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-summary p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0;
    font-weight: 600;
}

.total-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.sidebar-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.sidebar-footer .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.sidebar-card h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.total-summary p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.total-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

/* Multi-Item Breakdown Styles */
.quote-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-item:last-child {
    border-bottom: none;
    margin-bottom: 10px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 12px;
}

.item-title {
    display: flex;
    flex-direction: column;
}

.item-count {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.item-edit-btn {
    background: rgba(43, 168, 187, 0.15);
    border: none;
    color: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.item-edit-btn:hover {
    background: var(--primary);
    color: white;
}

.item-remove-btn {
    background: rgba(255, 107, 107, 0.1);
    border: none;
    color: #FF6B6B;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.item-remove-btn:hover {
    background: #FF6B6B;
    color: white;
    transform: rotate(90deg);
}

.btn-clear-all:hover {
    opacity: 1 !important;
    text-decoration: underline;
}

.item-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    padding-left: 0;
}

.item-addon {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 6px;
    padding-left: 0;
}

.item-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.btn-booking {
    width: 100%;
}

.form-overlay {
    display: none;
    margin-top: 10px;
    scroll-margin-top: 110px;
    /* Account for 90px sticky header + 20px padding */
}

.form-overlay.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Projects Gallery Carousel --- */
.projects-gallery {
    padding: 80px 4%;
    background: white;
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 10px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.project-card {
    flex: 0 0 280px;
    /* Small preview size */
    height: 210px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(58, 180, 193, 0.05);
}

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

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* --- Social Section (High Contrast) --- */
.social-cta {
    padding: 25px 4%;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.social-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(58, 180, 193, 0.1), transparent 50%);
    pointer-events: none;
}

.social-cta-content h2 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 8px;
}

.social-cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 15px;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links-large .social-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.social-links-large .social-icon.yelp {
    background: #d32323;
    border-color: #d32323;
}

.social-links-large .social-icon.google {
    background: #4285F4;
    border-color: #4285F4;
}

.social-links-large .social-icon:hover {
    background: var(--white);
    color: var(--text-main);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.social-links-large .social-icon.yelp:hover {
    color: #d32323;
}

.social-links-large .social-icon.google:hover {
    color: #4285F4;
}

.social-links-large .social-icon i {
    font-size: 1.4rem;
}

/* Footer (Matching Dark Contrast) */
footer {
    padding: 40px 4%;
    background: #1a1e1f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 4%;
}

.footer-container p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .calc-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        max-width: 100%;
        gap: 20px;
    }

    .calc-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .calc-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 1000;
        padding: 0;
    }

    .sidebar-card {
        border-radius: 15px 15px 0 0;
        padding: 12px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        flex-wrap: nowrap;
    }

    .sidebar-card h3,
    #price-breakdown {
        display: none;
    }

    .total-summary {
        margin-top: 0;
        padding-top: 0;
        border: none;
        flex-shrink: 0;
    }

    .total-summary p {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .total-price {
        font-size: 1.4rem;
    }

    .btn-booking {
        margin-top: 0;
        width: auto;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .sidebar-footer {
        flex-direction: row !important;
        width: auto;
        gap: 8px;
        flex-shrink: 0;
    }

    .sidebar-footer .btn {
        width: auto;
        margin: 0;
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .sidebar-footer .btn-outline {
        display: none;
        /* Hide "Add Another TV" on mobile to simplify */
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .contact-wrap {
        flex-direction: column;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    header {
        height: 60px;
        padding: 0 15px;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0;
        height: 100%;
    }

    .hamburger {
        order: 1;
    }

    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 50px;
        margin: 0;
        filter: none;
    }

    nav {
        order: 3;
        margin-left: 0;
    }

    .header-actions {
        order: 4;
    }

    .header-cta {
        gap: 10px;
    }

    .header-cta .phone {
        font-size: 0;
    }

    .header-cta .phone i {
        font-size: 1.2rem;
    }

    .header-cta .btn-primary {
        display: none;
    }

    .social-links {
        display: none;
    }

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

    .option-card {
        aspect-ratio: auto;
        min-height: 120px;
        padding: 12px 10px;
    }

    .option-card h4 {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .option-card p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 3px;
    }

    .option-card .price-tag {
        font-size: 1rem;
    }

    .card-icon-wrapper {
        height: 40px;
        margin-bottom: 6px;
    }

    .card-icon-wrapper i {
        font-size: 1.5rem !important;
    }

    .bracket-img {
        height: 35px;
    }

    .addon-item {
        padding: 12px;
        height: auto;
        min-height: 80px;
    }

    .addon-item h4 {
        font-size: 0.85rem;
    }

    .addon-item p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .addon-item .price-tag {
        font-size: 0.9rem;
        margin-right: 25px;
    }

    .calc-card {
        padding: 15px;
    }

    .step-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Hamburger Button */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: var(--white);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Mobile Nav - Slide from Left (Compact) */
    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 70%;
        max-width: 280px;
        height: auto;
        max-height: calc(100vh - 60px);
        background: var(--bg-dark);
        z-index: 1000;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        transition: left 0.3s ease;
    }

    nav.nav-open {
        left: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
        text-align: left;
        background: transparent;
        position: static;
        box-shadow: none;
    }

    nav a {
        display: block;
        padding: 20px 25px;
        font-size: 1.1rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav a:hover {
        background: rgba(43, 168, 187, 0.15);
    }

    /* Backdrop - optional, can be removed */
    .nav-backdrop {
        display: none;
    }

    /* Compress Home Page Cards on Mobile */
    .service-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 25px 15px;
        border-radius: 20px;
    }

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

    .stat-label {
        font-size: 0.85rem;
    }

    .trust-section {
        padding: 60px 4%;
    }

    .trust-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 40px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .trust-card {
        padding: 25px;
    }

    .contact-wrap {
        padding: 25px;
        border-radius: 25px;
    }

    .contact-form {
        padding: 25px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero {
        background-attachment: scroll !important;
        background-position: center center;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .hero-btns .btn {
        padding: 15px 30px !important;
        font-size: 1rem !important;
    }

    .footer-container {
        padding: 0 15px;
    }

    .social-cta h2 {
        font-size: 2rem;
    }

    .social-links-large {
        gap: 15px;
    }

    .social-links-large .social-icon {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: calc(50% - 15px);
        justify-content: center;
    }
}

/* Reviews Section */
#reviews {
    padding: 40px 4%;
    background: var(--bg-sec);
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 10px 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.reviews-track::-webkit-scrollbar {
    height: 6px;
}

.reviews-track::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Section Background Variants */
.bg-alt {
    background-color: var(--bg-sec) !important;
}

.bg-soft {
    background-color: var(--bg-soft) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

/* Trust Section Redesign */
.trust-section {
    padding: 120px 4%;
    position: relative;
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Stats Row */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.stat-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(43, 168, 187, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-deep);
    border-color: var(--primary);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Trust Content Grid */
.trust-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.trust-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.trust-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.trust-description {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.trust-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.trust-features li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.trust-features i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
    background: rgba(43, 168, 187, 0.1);
    padding: 15px;
    border-radius: 15px;
}

.trust-features strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-main);
}

.trust-features span {
    color: var(--text-dim);
    font-size: 1rem;
}

/* Trust Visual/Badge Card */
.trust-visual {
    display: flex;
    justify-content: center;
}

.trust-card {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 50px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(43, 168, 187, 0.15), transparent 70%);
}

.trust-card i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.trust-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.trust-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .trust-stats {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .trust-content h2 {
        font-size: 2.5rem;
    }
}

/* Review Card Refinement */
.review-card {
    flex: 0 0 380px;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(58, 180, 193, 0.05);
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-deep);
    border-color: var(--primary);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

.review-meta span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.review-stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
    flex-grow: 1;
}

.loading-reviews {
    text-align: center;
    width: 100%;
    padding: 40px;
    color: var(--text-dim);
    font-style: italic;
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 300px;
        padding: 25px;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.step-error {
    border: 2px solid #ff4444 !important;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    position: relative;
    /* Ensure ::after is positioned relative to this */
}

.step-error::after {
    content: " * Required";
    color: #ff4444;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 10px;
    animation: fadeIn 0.3s ease;
    display: inline-block;
    /* Ensure visibility */
    position: absolute;
    /* Force it to be visible */
    top: 15px;
    right: 15px;
    background: white;
    /* Optional: background to block underlying text if needed */
    padding: 2px 5px;
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Section Spacing Refinement --- */
#projects,
#contact {
    padding-top: 40px !important;
    padding-bottom: 50px !important;
}

#projects .section-title,
#contact .section-title {
    margin-bottom: 25px !important;
}

/* --- Reviews Carousel --- */
.reviews-carousel .carousel-track {
    gap: 30px;
    padding: 20px 0;
    /* Breathing room for shadows */
}

.review-card {
    flex: 0 0 350px;
    /* Fixed width like project cards */
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 240px;
    /* Reduced specific height */
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.review-meta h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.review-meta span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.review-stars {
    color: #ffc107;
    /* Gold stars */
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 300px;
        /* Slightly smaller on mobile */
        min-height: 260px;
    }
}