/* ============================================
   Benedetto's Lamp Repair — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: #3b0764;
    color: #f3e8ff;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Geometric Decorative Shapes --- */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.04;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #fbbf24;
    top: -200px;
    right: -150px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #a855f7;
    bottom: 10%;
    left: -100px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #fbbf24;
    top: 40%;
    right: 5%;
    opacity: 0.03;
    transform: rotate(15deg);
}

.shape-square {
    width: 200px;
    height: 200px;
    background: #e9d5ff;
    bottom: 30%;
    left: 8%;
    transform: rotate(45deg);
    opacity: 0.03;
}

.shape-ring {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid #fbbf24;
    top: 60%;
    right: -50px;
    opacity: 0.02;
}

/* --- Navigation --- */
.nav {
    background: rgba(59, 7, 100, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(233, 213, 255, 0.1);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #f3e8ff;
    z-index: 51;
}

.nav-logo-text {
    display: none;
}

@media (min-width: 640px) {
    .nav-logo-text {
        display: block;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 51;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #e9d5ff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: rgba(59, 7, 100, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    border-left: 1px solid rgba(233, 213, 255, 0.1);
}

.nav-menu.open {
    transform: translateX(0);
}

.nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: #e9d5ff;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(233, 213, 255, 0.08);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-link:hover {
    color: #fbbf24;
    padding-left: 0.5rem;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.875rem 1.25rem;
    background: #fbbf24;
    color: #3b0764;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: #fcd34d;
    transform: scale(1.02);
}

/* --- Hero --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(59, 7, 100, 0.92) 0%,
        rgba(107, 33, 168, 0.85) 50%,
        rgba(59, 7, 100, 0.90) 100%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    padding: 2rem 1.5rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fcd34d;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #faf0ff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #e9d5ff;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.8125rem;
    color: #d8b4fe;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(233, 213, 255, 0.2);
    align-self: center;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #e9d5ff;
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #fbbf24;
    color: #3b0764;
    border-color: #fbbf24;
}

.btn-primary:hover {
    background: #fcd34d;
    border-color: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #f3e8ff;
    border-color: rgba(233, 213, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(233, 213, 255, 0.1);
    border-color: #e9d5ff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fbbf24;
    border-color: #fbbf24;
}

.btn-outline:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

/* --- Section Base --- */
.section {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #faf0ff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: #d8b4fe;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Services --- */
.services {
    background: #3b0764;
}

.service-card {
    background: rgba(233, 213, 255, 0.05);
    border: 1px solid rgba(233, 213, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    background: rgba(233, 213, 255, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.service-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #faf0ff;
    margin-bottom: 0.75rem;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: #d8b4fe;
    line-height: 1.7;
}

/* --- About --- */
.about {
    background: #581c87;
    overflow: hidden;
}

.about-accent {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.about-grid {
    gap: 3rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-accent {
    position: absolute;
    inset: -12px;
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 28px;
    z-index: -1;
    transform: translate(12px, 12px);
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.625rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fcd34d;
}

.about-content .section-label {
    margin-bottom: 0.75rem;
}

.about-text {
    font-size: 1.0625rem;
    color: #e9d5ff;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: rgba(233, 213, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(233, 213, 255, 0.08);
}

.about-feature-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #f3e8ff;
}

/* --- Gallery --- */
.gallery {
    background: #3b0764;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item:nth-child(2) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(3) {
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 7, 100, 0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item-overlay span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fbbf24;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

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

.cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(126, 34, 206, 0.95) 0%,
        rgba(59, 7, 100, 0.92) 100%);
    z-index: -1;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.cta-content {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #faf0ff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.125rem;
    color: #e9d5ff;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

/* --- Contact --- */
.contact {
    background: #581c87;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(233, 213, 255, 0.05);
    border: 1px solid rgba(233, 213, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(233, 213, 255, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
    transform: translateX(4px);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
}

.contact-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #faf0ff;
    margin-bottom: 0.25rem;
}

.contact-card-text {
    font-size: 0.9375rem;
    color: #d8b4fe;
    line-height: 1.6;
}

.contact-link {
    color: #fbbf24;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #fcd34d;
    text-decoration: underline;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: rgba(233, 213, 255, 0.05);
    border: 1px solid rgba(233, 213, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
}

.contact-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #faf0ff;
    margin-bottom: 0.5rem;
}

.contact-form-desc {
    font-size: 0.9375rem;
    color: #d8b4fe;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e9d5ff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(59, 7, 100, 0.6);
    border: 1px solid rgba(233, 213, 255, 0.2);
    border-radius: 12px;
    color: #f3e8ff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(216, 180, 254, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(59, 7, 100, 0.8);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #22c55e;
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background: #3b0764;
    border-top: 1px solid rgba(233, 213, 255, 0.08);
}

.footer-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #a855f7, #fbbf24);
}

.footer-grid {
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #f3e8ff;
}

.footer-desc {
    font-size: 0.9375rem;
    color: #d8b4fe;
    line-height: 1.7;
}

.footer-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #faf0ff;
    margin-bottom: 1rem;
}

.footer-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-link {
    font-size: 0.9375rem;
    color: #d8b4fe;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: #fbbf24;
    padding-left: 0.25rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(233, 213, 255, 0.08);
}

/* --- Reveal Animations --- */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal {
        opacity: 0;
        transform: translateY(20px);
    }

    .reveal-up.revealed,
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile responsive --- */
@media (max-width: 639px) {
    .nav-toggle {
        display: flex;
    }
}

@media (min-width: 640px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        transform: none;
        border: none;
    }

    .nav-link {
        font-size: 0.9375rem;
        padding: 0.5rem 0.75rem;
        border-bottom: none;
    }

    .nav-cta {
        margin-top: 0;
        padding: 0.625rem 1.125rem;
        font-size: 0.9375rem;
        white-space: nowrap;
    }
}

@media (min-width: 1024px) {
    .about-grid {
        gap: 4rem;
    }
}
