/* ========================================
   King Tuning Developments — Styles
   ======================================== */

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

:root {
    --plum-deep: #2D1B33;
    --plum: #5B2C6F;
    --plum-light: #7D3C9E;
    --plum-pale: #F5EEF8;
    --plum-muted: #E8D5F0;
    --amber: #D4A017;
    --amber-light: #F0C040;
    --amber-pale: #FFF8E7;
    --amber-glow: #F5D76E;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --cream: #FDF9F3;
    --gray-50: #F9F8FA;
    --gray-100: #F1EFF4;
    --gray-200: #E2DFE8;
    --gray-300: #C4BFC9;
    --gray-400: #9B94A3;
    --gray-500: #6B6473;
    --gray-600: #4A4452;
    --gray-700: #2E2836;
    --gray-800: #1A1520;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--plum);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 16px;
}

/* ─── Header ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.header.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: 0 1px 20px rgba(45, 27, 51, 0.06);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--plum-deep);
}
.logo-mark {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--plum);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--plum);
    transition: background 0.3s, color 0.3s;
}
.logo:hover .logo-mark {
    background: var(--plum);
    color: var(--white);
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.25s;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width 0.3s var(--ease-out);
}
.nav a:hover {
    color: var(--plum);
}
.nav a:hover::after {
    width: 100%;
}
.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--amber) !important;
    font-weight: 500 !important;
}
.nav-phone::after { display: none !important; }
.nav-phone:hover { color: var(--amber-light) !important; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
}
.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 14px;
    display: block;
}
.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--plum-deep);
    transition: all 0.3s var(--ease-out);
}
.hamburger::before { top: 0; }
.hamburger span { top: 50%; transform: translate(-50%, -50%); }
.hamburger::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 50%;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 50%;
    transform: rotate(-45deg);
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--plum-deep);
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(91, 44, 111, 0.85) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(212, 160, 23, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(125, 60, 158, 0.4) 0%, transparent 60%),
        linear-gradient(160deg, #1A1520 0%, #2D1B33 40%, #3D2050 70%, #2D1B33 100%);
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}
.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-title .accent {
    font-weight: 400;
    font-style: italic;
    color: var(--amber-glow);
}
.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}
.hero-trust {
    margin-top: 48px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@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: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}
.btn-primary {
    background: var(--amber);
    color: var(--plum-deep);
    border-color: var(--amber);
}
.btn-primary:hover {
    background: var(--amber-light);
    border-color: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}
.btn-white {
    background: var(--white);
    color: var(--plum-deep);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--plum-pale);
    border-color: var(--plum-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn-full {
    width: 100%;
}

/* ─── Section shared ─── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--plum-deep);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.section-line {
    width: 48px;
    height: 1px;
    background: var(--amber);
    margin: 20px auto 0;
}

/* ─── Services ─── */
.services {
    padding: 120px 0;
    background: var(--white);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.service-card {
    background: var(--gray-50);
    padding: 48px 36px;
    transition: all 0.4s var(--ease-out);
    position: relative;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}
.service-card:hover {
    background: var(--white);
    box-shadow: 0 16px 48px rgba(45, 27, 51, 0.08);
    transform: translateY(-4px);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--plum-muted);
    border-radius: 50%;
    color: var(--plum);
    margin-bottom: 24px;
    transition: all 0.3s;
}
.service-card:hover .service-icon {
    background: var(--plum);
    border-color: var(--plum);
    color: var(--white);
}
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--plum-deep);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.service-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.75;
}

/* ─── About ─── */
.about {
    padding: 120px 0;
    background: var(--cream);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9);
    transition: filter 0.5s;
}
.about-image:hover img {
    filter: saturate(1);
}
.about-image::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--amber);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.3;
}
.about-content .section-label {
    text-align: left;
    margin-bottom: 16px;
}
.about-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 300;
    color: var(--plum-deep);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.about-content p {
    color: var(--gray-500);
    margin-bottom: 16px;
    font-size: 1rem;
}
.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--plum);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* ─── Why ─── */
.why {
    padding: 120px 0;
    background: var(--white);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}
.why-item {
    padding-left: 24px;
    border-left: 1px solid var(--gray-200);
    transition: border-color 0.3s;
}
.why-item:hover {
    border-left-color: var(--amber);
}
.why-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--plum-muted);
    line-height: 1;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.why-item:hover .why-number {
    color: var(--amber);
}
.why-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--plum-deep);
    margin-bottom: 8px;
}
.why-item p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* ─── CTA Strip ─── */
.cta-strip {
    padding: 80px 0;
    background: var(--plum-deep);
    text-align: center;
}
.cta-strip-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

/* ─── Contact ─── */
.contact {
    padding: 120px 0;
    background: var(--gray-50);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.contact-info .section-label {
    text-align: left;
    margin-bottom: 16px;
}
.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 300;
    color: var(--plum-deep);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.contact-desc {
    color: var(--gray-500);
    margin-bottom: 40px;
    font-size: 1rem;
}
.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-detail-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    color: var(--plum);
}
.contact-details strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
    font-weight: 500;
}
.contact-details span,
.contact-details a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.contact-details a:hover {
    color: var(--plum);
}

/* ─── Form ─── */
.contact-form-wrap {
    background: var(--white);
    padding: 48px;
    border-radius: 4px;
    box-shadow: 0 4px 32px rgba(45, 27, 51, 0.06);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--gray-50);
    transition: all 0.25s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-success {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: var(--plum-pale);
    color: var(--plum);
    border-radius: 4px;
    font-size: 0.9375rem;
    text-align: center;
}
.form-success.show {
    display: block;
}

/* ─── Footer ─── */
.footer {
    background: var(--gray-800);
    color: rgba(255, 255, 255, 0.5);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}
.footer-brand .logo-mark {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--amber);
}
.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.75;
    max-width: 280px;
}
.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
    font-weight: 500;
}
.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--amber);
}
.footer-bottom {
    padding: 24px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ─── Scroll animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        gap: 48px;
    }
    .contact-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out);
    }
    .nav.open {
        opacity: 1;
        pointer-events: all;
    }
    .nav ul {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .nav a {
        font-size: 1.125rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        max-height: 400px;
    }
    .about-image::after {
        display: none;
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-wrap {
        padding: 32px 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    .hero-content {
        padding: 100px 20px 60px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
}
