/* main.css - Design System & Global Styles */

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

:root {
    /* Primary Color Palette */
    --primary: #1A2B3C;
    /* Deep Navy */
    --primary-light: #2C3E50;
    --accent: #C5A059;
    /* Gold */
    --accent-hover: #B48E4D;
    --secondary: #1F2937;
    --trust-green: #2D5A27;
    /* Emerald Green */

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E5E7EB;
    --dark-gray: #4B5563;
    --black: #111827;

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

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 0.5rem;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Layout Components */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-trust {
    background-color: var(--trust-green);
    color: var(--white);
}

.btn-trust:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.bg-dark {
    background-color: var(--primary);
}

.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-4 {
    margin-top: var(--space-md);
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-4 {
    margin-bottom: var(--space-md);
}

/* Grid Helpers */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Page Headers */
.page-header {
    background: linear-gradient(rgba(26, 43, 60, 0.9), rgba(26, 43, 60, 0.9)), url('../images/hero/page-header.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--space-xl) 0;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
}

/* Specific Component Styles */
.credential-grid {
    text-align: center;
}

.cred-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.badge {
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* --- Header & Navigation --- */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Lockup */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-lockup:hover {
    transform: translateY(-1px);
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(26, 43, 60, 0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-line1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.brand-line2 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Dropdown */
.has-dropdown {
    cursor: pointer;
}

.has-dropdown>a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.has-dropdown:hover>a::after {
    transform: rotate(180deg);
    color: var(--accent);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 260px;
    background: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 10px 24px;
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(197, 160, 89, 0.05);
    color: var(--accent);
    padding-left: 28px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-phone {
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
}

.header-phone:hover {
    color: var(--accent);
}

.header-email {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: var(--space-lg);
}

.footer-info .agent-name {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

footer h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-top: var(--space-lg);
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

input,
select,
textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

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

.btn-block {
    width: 100%;
}

.small {
    font-size: 0.8rem;
}

.italic {
    font-style: italic;
}

.p-4 {
    padding: 2rem;
}

.p-2 {
    padding: 1rem;
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.flex-start {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn-trust {
    background-color: var(--trust-green);
    color: var(--white);
}

/* Container Utilities */
.container-narrow {
    max-width: 800px;
}

.container-medium {
    max-width: 1000px;
}

/* Blog Styles */
.blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-circle {
    border-radius: 50%;
}

.ml-2 {
    margin-left: var(--space-sm);
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Rockefeller Method Specifics */
.border-gold {
    border: 2px solid var(--accent) !important;
}

.rockefeller-hero {
    background: linear-gradient(rgba(26, 43, 60, 0.85), rgba(26, 43, 60, 0.85)), url('../images/services/rockefeller-legacy.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--space-xl) 0;
    color: var(--white);
}

.rockefeller-hero h1 {
    color: var(--white);
}

.impact-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    display: block;
    margin-bottom: -1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.p-5 {
    padding: 4rem;
}

/* --- Added Grid & Service Card Styles --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.service-card {
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    margin-top: auto;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-small {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Fix Hero Image */
.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}


/* --- Hero Size Adjustment --- */
.hero-small {
    max-width: 65% !important;
    margin: 0 auto;
}

.hero-small .main-headshot {
    max-height: 400px;
    object-fit: cover;
}

/* --- Carrier Icon Styling --- */
.carrier-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.8;
}

.carrier-logo i,
.carrier-logo svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

/* --- Agent Image Size Reduction --- */
.agent-small {
    max-width: 65% !important;
    margin: 0 auto;
}

.agent-small img {
    width: 100%;
    height: auto;
}

/* --- Family Image Size Reduction --- */
.family-small {
    max-width: 50% !important;
    margin: 0 auto;
}

.family-small img {
    width: 100%;
    height: auto;
}
/* Import Chat Widget Styles */
@import url('chat-widget.css');
