/* =============================================
   BERTONI CLEAN — STYLES
   Modern luxury aesthetic with gold/cream/dark
   ============================================= */

/* --- CSS VARIABLES --- */
:root {
    --gold: #b8860b;
    --gold-light: #d4a843;
    --gold-pale: #f5e6c8;
    --cream: #faf8f4;
    --cream-dark: #f0ece4;
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --text-dark: #1a1a1a;
    --text-medium: #555;
    --text-light: #888;
    --white: #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    --radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- SECTION LABELS & TITLES --- */
.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

/* --- BUTTON --- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.3);
}

/* --- NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 12px 0;
}

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

.nav-logo-img {
    height: 50px;
    width: auto;
    transition: height var(--transition);
}

.nav.scrolled .nav-logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding: 4px 0;
}

.nav.scrolled .nav-links a {
    color: var(--text-dark);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav.scrolled .hamburger span {
    background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--text-dark);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--text-dark);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 20px 0;
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    transition: color var(--transition);
}

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

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--charcoal);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(184, 134, 11, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(184, 134, 11, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.6) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
}

.hero-logo {
    width: 220px;
    margin: 0 auto 40px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-headline em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--gold-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- MARQUEE BAR --- */
.marquee-bar {
    background: var(--gold);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-track span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- SERVICES --- */
.services {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.service-card {
    background: var(--cream);
    border: 1px solid rgba(184, 134, 11, 0.1);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 134, 11, 0.25);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--gold);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* --- ABOUT --- */
.about {
    padding: 100px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    min-width: 40px;
    padding-top: 2px;
}

.about-feature strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.about-visual-box {
    background: var(--charcoal);
    border-radius: var(--radius);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}

.visual-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.visual-divider {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

/* --- QUOTE FORM --- */
.quote-section {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.quote-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: var(--cream);
    border: 1px solid rgba(184, 134, 11, 0.12);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: left;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-medium);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
}

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

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

.btn-submit {
    align-self: center;
    margin-top: 10px;
    padding: 18px 50px;
    font-size: 0.9rem;
}

/* --- FOOTER --- */
.footer {
    background: var(--charcoal);
    padding: 80px 0 0;
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.footer-location {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--gold-light);
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--gold-light);
}

.social-link:hover {
    color: var(--gold-light);
}

.footer-quick {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-quick a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}

/* --- SCROLL ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger service cards */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6) { transition-delay: 0.4s; }

.about-feature:nth-child(1) { transition-delay: 0s; }
.about-feature:nth-child(2) { transition-delay: 0.1s; }
.about-feature:nth-child(3) { transition-delay: 0.2s; }

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

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

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

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

/* --- MOBILE (768px and below) --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-logo {
        width: 160px;
        margin-bottom: 30px;
    }

    .hero-headline {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .services {
        padding: 70px 0;
    }

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

    .service-card {
        padding: 30px 24px;
    }

    .about {
        padding: 70px 0;
    }

    .about-visual-box {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 36px 24px;
        gap: 24px;
    }

    .visual-divider {
        display: none;
    }

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

    .quote-section {
        padding: 70px 0;
    }

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

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

    .btn-submit {
        width: 100%;
    }

    .footer {
        padding: 60px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .contact-item {
        justify-content: center;
    }

    .social-link {
        justify-content: center;
    }

    .footer-quick {
        align-items: center;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}

/* --- SMALL PHONES (480px and below) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-logo {
        width: 130px;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .btn {
        padding: 14px 30px;
        font-size: 0.8rem;
    }

    .service-card {
        padding: 24px 20px;
    }

    .about-visual-box {
        padding: 28px 16px;
    }

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

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}
