/* ==========================================================================
   DESIGN SYSTEM TOKENS & UTILITIES
   ========================================================================== */
:root {
    --primary: #0A2540;
    --primary-light: #1A365D;
    --accent: #00D4B2;
    --accent-hover: #00B395;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --error: #EF4444;
    --success: #10B981;
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.05);
    --shadow-md: 0 10px 30px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.12);
    --max-width: 1280px;
}

/* --- Reset & Base Architectural Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   REUSABLE UI COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 178, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

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

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 12px 0;
    background-color: var(--bg-white);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.header.scrolled .navbar {
    padding: 10px 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

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

.nav-link {
    font-weight: 500;
    color: var(--primary);
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

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

.nav-actions {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO LAYOUT
   ========================================================================== */
.hero {
    padding: 180px 0 100px 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: var(--bg-white);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero-tagline {
    display: inline-block;
    background-color: rgba(0, 212, 178, 0.15);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 212, 178, 0.3);
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: #E2E8F0;
    margin-bottom: 40px;
    font-weight: 300;
}

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

.hero-ctas .btn-outline {
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.hero-ctas .btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary);
}

/* ==========================================================================
   PACKAGE CARDS SHOWCASE
   ========================================================================== */
.packages {
    padding: 100px 0;
    background-color: var(--bg-white);
}

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

.package-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid #F1F5F9;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.package-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.package-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.package-card:hover .package-img {
    transform: scale(1.08);
}

.package-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(10, 37, 64, 0.85);
    color: var(--bg-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.package-duration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.package-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-title {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.package-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.package-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
}

.package-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

/* ==========================================================================
   INTERACTIVE BUDGET ESTIMATOR
   ========================================================================== */
.calculator-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.calc-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 48px;
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.calc-ui {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: var(--bg-light);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    transition: var(--transition-smooth);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 212, 178, 0.15);
}

.radio-tile-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.radio-tile-label {
    position: relative;
    cursor: pointer;
}

.radio-tile-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: var(--bg-light);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    text-align: center;
}

.tile-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.tile-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.radio-tile-label input:checked + .tile-content {
    border-color: var(--accent);
    background-color: rgba(0, 212, 178, 0.04);
}

.calc-display {
    background-color: var(--primary);
    border-radius: var(--radius-md);
    padding: 40px;
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,212,178,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.display-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.display-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1;
}

.display-breakdown {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

/* ==========================================================================
   CONSULTATION BOOKING ENGINE
   ========================================================================== */
.booking-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    position: relative;
}

.booking-wrapper {
    max-width: 780px;
    margin: 0 auto;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid #F1F5F9;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.textarea-control {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-group.has-error .form-control {
    border-color: var(--error);
    background-color: rgba(239, 68, 68, 0.02);
}

/* ==========================================================================
   SUCCESS MODAL OVERLAY
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.modal-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* ==========================================================================
   FOOTER DESIGN
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 16px;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item strong {
    color: var(--bg-white);
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE ARCHITECTURE)
   ========================================================================== */
@media (max-width: 1024px) {
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calc-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
    }
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        box-shadow: var(--shadow-lg);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 40px;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-actions {
        display: none;
    }
    .hero-wrapper {
        grid-template-columns: 1fr;
    }
    .package-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .booking-wrapper, .calc-wrapper {
        padding: 24px;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
}
