/* ============================================
   Kadel Insurance - Premium Design System (Deep Navy & Gold)
   ============================================ */

/* CSS Variables */
:root {
    /* Palette: Premium, Trustworthy, Established */
    --primary-dark: #0b2341;
    /* Deep Royal Blue */
    --primary-main: #14365d;
    /* Slightly lighter navy for gradients */
    --primary-light: #2c5282;
    /* Highlights */

    --accent-gold: #c5a059;
    /* Muted Gold / Bronze */
    --accent-gold-light: #e5c585;
    /* Gold Hover */
    --accent-gold-dark: #a38241;
    /* Gold Active */

    --bg-page: #fdfbf7;
    /* Warm, off-white cream */
    --bg-surface: #ffffff;
    /* Pure white for cards */
    --bg-surface-glass: rgba(255, 255, 255, 0.85);

    --text-primary: #0b2341;
    /* Dark Navy text (soft black replacement) */
    --text-secondary: #56697a;
    /* Slate Grey */
    --text-light: #8d9aa9;
    --text-inverse: #ffffff;

    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-gutter: 2rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(11, 35, 65, 0.05);
    --shadow-md: 0 4px 12px rgba(11, 35, 65, 0.08);
    --shadow-lg: 0 12px 24px rgba(11, 35, 65, 0.12);
    --shadow-xl: 0 20px 40px rgba(11, 35, 65, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-page);
    background-image:
        radial-gradient(at 100% 0%, rgba(197, 160, 89, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 0%, rgba(11, 35, 65, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--primary-dark);
}

p {
    margin-bottom: var(--space-md);
}

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

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-gutter);
}

.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.9);
    /* Matches bg-page slightly transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(11, 35, 65, 0.05);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
    height: 70px;
}

.nav-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

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

.nav-menu {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
}

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

.nav-toggle {
    display: none;
    cursor: pointer;
}

/* ============================================
   Structure
   ============================================ */
/* Page Transitions */
.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: var(--text-inverse);
    box-shadow: 0 4px 15px rgba(11, 35, 65, 0.15);
    /* Reduced opacity */
}

.btn-primary:hover {
    background-color: var(--primary-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 35, 65, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    color: var(--text-inverse);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    justify-content: flex-start;
    /* Default left align */
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #fff;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-gold:hover {
    background-color: var(--accent-gold-dark);
    transform: translateY(-2px);
}


/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    /* Almost full viewport */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fdfbf7 50%, #eff2f5 100%);
    overflow: hidden;
    padding-top: 80px;
    /* Nav offset */
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-supertitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: 4.5rem;
    /* Large and authoritative */
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--primary-dark);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    font-weight: 300;
    max-width: 90%;
}

.hero-visual {
    position: relative;
}

.hero-image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-smooth);
}

.hero-image-card:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image-card img {
    width: 100%;
    display: block;
}

.floater-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 250px;
    z-index: 2;
}

.floater-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
}

/* ============================================
   Features / Philosophy Grid
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.section-supertitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-dark);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--bg-page);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-box {
    margin-bottom: var(--space-lg);
    color: var(--primary-main);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   Services (Image Cards)
   ============================================ */
.service-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 35, 65, 0.9) 0%, rgba(11, 35, 65, 0.2) 60%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-xl);
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.service-card:hover .service-bg {
    transform: scale(1.1);
}

.service-card:hover .service-overlay {
    opacity: 0.95;
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
}

.service-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.service-card:hover .service-content p {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   Quote / Testimonial
   ============================================ */
.quote-section {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    position: relative;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.4;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
}

.quote-author {
    margin-top: var(--space-lg);
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   About layout
   ============================================ */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stat-row {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-block strong {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1;
}

.stat-block span {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-wrapper {
    background: white;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 350px 1fr;
}

.contact-info-panel {
    background: var(--primary-dark);
    padding: var(--space-2xl);
    color: white;
}

.contact-info-panel h3 {
    color: white;
    margin-bottom: var(--space-xl);
}

.info-item {
    margin-bottom: var(--space-lg);
}

.info-item label {
    display: block;
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.contact-form-panel {
    padding: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-lg);
    font-size: 0.95rem;
}

.footer h4 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: 1.2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-2xl);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   Mobile Responsiveness
   ============================================ */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        padding: 10px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: var(--space-xl);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform var(--transition-smooth), top 0.4s ease;
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar.scrolled .nav-menu {
        top: 70px;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .page {
        padding-top: 90px;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-visual {
        display: none;
    }

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

    .section {
        padding: var(--space-xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-split {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .stat-row {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
        text-align: center;
    }
}