/* ===========================
   Retouchory — UK Image Post-Production
   Palette adapted from va-website: Electric Violet + Coral + Deep Navy
   =========================== */

:root {
    /* Primary colors */
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;

    /* Accent */
    --accent: #FF6B6B;
    --accent-dark: #EE5A5A;
    --accent-light: #FF8787;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
    --gradient-hero: linear-gradient(135deg, #0F0C29 0%, #1A1A3E 50%, #24243E 100%);
    --gradient-text: linear-gradient(135deg, #6C5CE7, #FF6B6B, #FD79A8);
    --gradient-card: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.05));

    /* Neutrals */
    --bg: #FAFBFF;
    --bg-dark: #0F0C29;
    --surface: #FFFFFF;
    --surface-dark: #1A1A3E;
    --text: #2D3436;
    --text-light: #636E72;
    --text-muted: #B2BEC3;
    --border: #E8ECF1;

    /* Sizing */
    --container: 1200px;
    --radius: 16px;
    --radius-sm: 8px;
    --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: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 96px 0; }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-nav { padding: 10px 24px; font-size: 0.9rem; background: var(--gradient-primary); color: white; }

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1EBE5A;
    border-color: #1EBE5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fraunces', Georgia, serif;
}

.logo i { color: var(--primary); font-size: 1.2rem; }
.logo .brand { display: inline-block; }
.logo .brand-accent { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a.btn-nav { color: white; }

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px 10px;
    min-width: 62px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle em {
    font-style: normal;
    font-size: 0.68rem;
    line-height: 1;
    color: var(--text-light);
    font-weight: 600;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===========================
   Hero
   =========================== */
.hero {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    color: white;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -80px; }
.shape-2 { width: 320px; height: 320px; background: var(--accent); bottom: -80px; left: -60px; }
.shape-3 { width: 260px; height: 260px; background: var(--primary-light); top: 40%; left: 40%; opacity: 0.3; }

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Fraunces', Georgia, serif;
}

.stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }
.stat-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.2); }

/* Hero before/after */
.hero-visual { position: relative; }

.hero-ba {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    aspect-ratio: 451 / 264;
    user-select: none;
    cursor: ew-resize;
}

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

.ba-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

/* Before image sized to natural aspect so it aligns pixel-for-pixel with the after image */
.ba-before-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
}

.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: white;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.ba-divider i {
    background: white;
    color: var(--primary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ba-tag {
    position: absolute;
    top: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    color: white;
    backdrop-filter: blur(4px);
}

.ba-tag-before { left: 12px; background: rgba(0, 0, 0, 0.55); }
.ba-tag-after { right: 12px; background: var(--primary); }

/* ===========================
   Services
   =========================== */
.services { background: var(--surface); }

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

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(108, 92, 231, 0.12);
    border-color: var(--primary-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===========================
   Work / Before-After Grid
   =========================== */
.work { background: var(--bg); }

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.work-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(108, 92, 231, 0.14); }

.ba {
    position: relative;
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
    background: #111;
    aspect-ratio: var(--ba-ratio, 3 / 2);
}

.ba > img.ba-after { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before-wrap img { pointer-events: none; }

.work-card-body { padding: 22px 24px; }

.work-card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.work-card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.work-card-body p { font-size: 0.92rem; color: var(--text-light); }

/* ===========================
   Industries
   =========================== */
.industries { background: var(--surface); }

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 14px 34px rgba(108, 92, 231, 0.12);
}

.industry-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 14px;
    display: block;
}

.industry-card span { font-weight: 600; font-size: 0.95rem; }

/* ===========================
   Turnaround
   =========================== */
.turnaround { background: var(--bg); }

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

.turnaround-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.turnaround-card.featured {
    background: var(--gradient-hero);
    color: white;
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.3);
}

.turnaround-card.featured p { color: rgba(255, 255, 255, 0.8); }

.turnaround-time {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 600;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.turnaround-card.featured .turnaround-time {
    background: linear-gradient(135deg, #A29BFE, #FF8787);
    -webkit-background-clip: text;
    background-clip: text;
}

.turnaround-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.turnaround-card p { color: var(--text-light); font-size: 0.95rem; }

.turnaround-note {
    text-align: center;
    margin-top: 32px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.turnaround-note i { color: var(--primary); }

/* ===========================
   Contact
   =========================== */
.contact { background: var(--surface); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-info h2 { font-family: 'Fraunces', Georgia, serif; font-size: 2.6rem; font-weight: 600; margin-bottom: 16px; }
.contact-info > p { color: var(--text-light); margin-bottom: 28px; }

.contact-details { display: grid; gap: 16px; margin-bottom: 28px; }

.contact-item { display: flex; align-items: center; gap: 14px; font-weight: 500; }

.contact-item i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-card);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-usps { display: grid; gap: 10px; }
.contact-usps li { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 0.95rem; }
.contact-usps i { color: var(--primary); }

/* Free-test CTA card (WhatsApp / email) */
.contact-cta-wrapper { display: flex; align-items: center; }

.contact-cta-card {
    width: 100%;
    background: var(--gradient-hero);
    color: white;
    border-radius: var(--radius);
    padding: 44px 36px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.28);
}

.contact-cta-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.contact-cta-card h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-cta-card > p { color: rgba(255, 255, 255, 0.8); margin-bottom: 28px; }

.contact-cta-buttons { display: grid; gap: 14px; margin-bottom: 20px; }

.contact-cta-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.contact-cta-note i { color: var(--primary-light); margin-right: 4px; }

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand .logo .brand-accent { color: var(--primary-light); }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }

.footer-links h4 { color: white; font-size: 1rem; margin-bottom: 16px; }
.footer-links ul { display: grid; gap: 10px; }
.footer-links a, .footer-links li { font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===========================
   Reveal animation
   =========================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-content h1 { font-size: 2.6rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .turnaround-grid { grid-template-columns: 1fr; }
    .turnaround-card.featured { transform: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    section { padding: 72px 0; }
    .section-header h2 { font-size: 2rem; }
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        transform: translateY(-140%);
        transition: transform 0.35s ease;
        z-index: 999;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 14px 0; }
    .mobile-toggle { display: inline-flex; }
    .hero-stats { flex-wrap: wrap; gap: 18px; }
}

@media (max-width: 520px) {
    .services-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.1rem; }
    .contact-cta-card { padding: 32px 24px; }
}
