/* ==========================================================================
   PT BERKAH ANEKA KARYA - CORPORATE HEALTHCARE DESIGN SYSTEM
   Brand Colors Derived from Logo:
   - Primary Deep Royal Navy: #181878 / #0f124d / #0a0d36
   - Vibrant Energy Amber Orange: #F28100 / #ea7a00 / #fff7ed
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* PT Berkah Aneka Karya Brand Identity Colors */
    --brand-navy: #181878;
    --brand-navy-dark: #0f124d;
    --brand-navy-deep: #080b2d;
    --brand-navy-light: #242494;
    --brand-navy-tint: #f1f3fd;
    --brand-navy-border: #d7dcf7;

    --brand-orange: #F28100;
    --brand-orange-hover: #e07300;
    --brand-orange-light: #fff7ed;
    --brand-orange-border: #fed7aa;
    --brand-orange-glow: rgba(242, 129, 0, 0.28);

    /* Clean Slate Surfaces & Typography */
    --slate-900: #0f124d; /* Navy-infused Slate for High Authority Headings */
    --slate-800: #1a1e5c;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8faff;

    /* Semantic Aliases */
    --brand-blue: var(--brand-navy);
    --brand-blue-hover: var(--brand-navy-light);
    --brand-blue-light: var(--brand-navy-tint);
    
    --brand-green: #16a34a;
    --brand-green-light: #f0fdf4;

    /* Legacy Fallbacks for Seamless Compatibility */
    --navy: var(--brand-navy);
    --muted: var(--slate-500);
    --ink: var(--slate-700);
    --line: var(--slate-200);
    --cyan: var(--brand-navy);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--slate-700);
    background-color: #ffffff;
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   NAVBAR & HEADER (With Logo Orange Top Accent)
   -------------------------------------------------------------------------- */
.header-minimal {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-top: 3px solid var(--brand-orange);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: 0 2px 12px rgba(15, 18, 77, 0.04);
}

.header-minimal .container {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-minimal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-navy-dark);
    letter-spacing: -0.2px;
}

.brand-desc {
    font-size: 11px;
    color: var(--slate-500);
    font-weight: 500;
}

.nav-minimal {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.nav-minimal a {
    color: var(--slate-600);
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-minimal a:hover {
    color: var(--brand-orange);
}

.nav-minimal a.active {
    color: var(--brand-navy);
    font-weight: 700;
}

.nav-minimal a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-orange);
    border-radius: 2px;
}

.menu-btn {
    display: none;
    border: none;
    background: transparent;
    font-size: 22px;
    color: var(--brand-navy-dark);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

/* Primary Button: Corporate Royal Navy */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(24, 24, 120, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-navy-light) 0%, var(--brand-navy) 100%);
    box-shadow: 0 6px 20px rgba(24, 24, 120, 0.32);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Accent Button: Energetic Amber Orange from Logo */
.btn-accent, .btn-orange {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--brand-orange-glow);
}

.btn-accent:hover, .btn-orange:hover {
    background: linear-gradient(135deg, #ff8c0a 0%, var(--brand-orange) 100%);
    box-shadow: 0 6px 20px rgba(242, 129, 0, 0.38);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-outline {
    border-color: var(--slate-200);
    color: var(--brand-navy);
    background: #ffffff;
}

.btn-outline:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: var(--brand-orange-light);
    transform: translateY(-1px);
}

.badge-minimal {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    background: var(--brand-navy-tint);
    color: var(--brand-navy);
    border: 1px solid var(--brand-navy-border);
}

.brand-pill-facemed {
    background: var(--brand-navy-tint);
    color: var(--brand-navy);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid var(--brand-navy-border);
}

.brand-pill-lavatrice {
    background: var(--brand-orange-light);
    color: var(--brand-orange);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid var(--brand-orange-border);
}

/* --------------------------------------------------------------------------
   SECTIONS & HERO
   -------------------------------------------------------------------------- */
.section {
    padding: 100px 0;
}

.section.alt {
    background-color: var(--slate-50);
}

.section-head {
    max-width: 660px;
    margin-bottom: 60px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.kicker {
    display: inline-block;
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section h2, .page-hero h1 {
    color: var(--slate-900);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.6px;
}

.section h2 {
    font-size: clamp(28px, 3.5vw, 38px);
}

.section-head p {
    color: var(--slate-600);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Hero Section with Ambient Glow */
.hero {
    padding: 110px 0 100px;
    background: radial-gradient(circle at 90% 15%, rgba(242, 129, 0, 0.08) 0%, transparent 45%), radial-gradient(circle at 10% 85%, rgba(24, 24, 120, 0.05) 0%, transparent 50%), #ffffff;
    border-bottom: 1px solid var(--slate-100);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 54px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -1px;
    margin: 0 0 20px;
}

.hero p {
    font-size: 17.5px;
    color: var(--slate-600);
    line-height: 1.7;
    margin: 0 0 36px 0;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-card-minimal {
    background: #ffffff;
    border: 1px solid var(--brand-navy-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 36px rgba(24, 24, 120, 0.07);
    position: relative;
}

.hero-card-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
}

.hero-card-minimal img {
    max-height: 260px;
    width: auto;
    object-fit: contain;
}

/* Page Hero: Deep Royal Navy */
.page-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--brand-navy-deep) 0%, var(--brand-navy-dark) 50%, var(--brand-navy) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(242, 129, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(32px, 4vw, 46px);
    margin: 12px 0 14px;
}

.page-hero p {
    color: #cbd5e1;
    font-size: 16.5px;
    max-width: 640px;
    margin: 0;
    line-height: 1.7;
}

.breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.breadcrumb a {
    color: #fed7aa;
}

.breadcrumb a:hover {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   GRIDS & CARDS
   -------------------------------------------------------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
}

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

.card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 34px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 18, 77, 0.02);
}

.card:hover {
    border-color: var(--brand-navy-border);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(24, 24, 120, 0.08);
}

.card h3 {
    margin: 0 0 12px 0;
    color: var(--slate-900);
    font-size: 20px;
    font-weight: 700;
}

.card p {
    margin: 0 0 24px 0;
    color: var(--slate-600);
    font-size: 14.5px;
    line-height: 1.65;
}

.checklist-minimal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--slate-600);
}

.check-item span {
    color: var(--brand-orange);
    font-weight: 800;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14.5px;
    color: var(--slate-700);
}

.check i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-orange-light);
    color: var(--brand-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid var(--brand-orange-border);
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-navy-tint);
    color: var(--brand-navy);
    border: 1px solid var(--brand-navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.split-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--brand-navy-border);
    background: var(--slate-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(24, 24, 120, 0.05);
}

.split-photo img {
    max-height: 360px;
    width: auto;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   SERVICES & LEGALITIES & GALLERY & CONTACT
   -------------------------------------------------------------------------- */
.service-wide {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: center;
    padding: 32px;
}

.service-wide img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

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

.legal-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.2s ease;
}

.legal-card:hover {
    border-color: var(--brand-navy-border);
    box-shadow: 0 10px 24px rgba(24, 24, 120, 0.06);
}

.legal-card small {
    color: var(--brand-orange);
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.legal-card strong {
    font-size: 18px;
    color: var(--slate-900);
    display: block;
}

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

.gallery figure {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 220px;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery figure:hover img {
    transform: scale(1.04);
}

.gallery figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    background: rgba(10, 13, 54, 0.92);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    border-left: 3px solid var(--brand-orange);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.contact-box {
    background: linear-gradient(135deg, var(--brand-navy-deep) 0%, var(--brand-navy-dark) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 44px;
    border-top: 4px solid var(--brand-orange);
    box-shadow: 0 12px 36px rgba(10, 13, 54, 0.15);
}

.contact-box h3 {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.contact-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item small {
    display: block;
    color: #fed7aa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

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

.form input, .form textarea, .form select {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-family: inherit;
    font-size: 14.5px;
    background: #ffffff;
    color: var(--slate-900);
    transition: all 0.2s ease;
}

.form input:focus, .form textarea:focus, .form select:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px var(--brand-orange-glow);
}

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

/* Floating Actions */
.wa-float {
    position: fixed;
    width: 52px;
    height: 52px;
    bottom: 32px;
    right: 32px;
    background-color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 999;
    transition: transform 0.25s ease;
}

.wa-float:hover {
    transform: scale(1.1);
}

.wa-icon {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

/* --------------------------------------------------------------------------
   CTA & FOOTER (Royal Navy + Radiant Orange Accent)
   -------------------------------------------------------------------------- */
.cta {
    padding: 88px 0;
    background: linear-gradient(135deg, var(--brand-navy-deep) 0%, var(--brand-navy) 50%, var(--brand-navy-dark) 100%);
    color: #ffffff;
    position: relative;
    border-top: 3px solid var(--brand-orange);
}

.cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.cta h2 {
    font-size: 32px;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.cta p {
    color: #cbd5e1;
    margin: 0;
    font-size: 16px;
    max-width: 580px;
    line-height: 1.7;
}

.footer {
    background: var(--brand-navy-deep);
    color: #94a3b8;
    padding: 88px 0 40px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 8px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--brand-orange);
    border-radius: 2px;
}

.footer a {
    display: block;
    margin-bottom: 12px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--brand-orange);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 64px;
    padding-top: 28px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #64748b;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .grid-3, .legal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-minimal {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 2px solid var(--brand-orange);
        padding: 24px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        box-shadow: 0 12px 30px rgba(10, 13, 54, 0.12);
    }

    .nav-minimal.open {
        display: flex;
    }

    .section {
        padding: 72px 0;
    }

    .grid-2, .grid-3, .legal-grid, .gallery {
        grid-template-columns: 1fr;
    }

    .service-wide {
        grid-template-columns: 1fr;
    }

    .cta-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

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