@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Brand Colors */
    --color-primary: #004e98;
    --color-primary-dark: #003870;
    --color-secondary: #D90429;
    --color-secondary-hover: #b90323;

    /* Family / Legacy Warmth */
    --color-warm: #C8872A;
    --color-warm-hover: #a86e1f;
    --color-warm-light: #FFF8EE;
    --color-heritage: #2C1810;
    --color-dark-navy: #0A1628;

    /* Neutrals */
    --color-text: #111827;
    --color-text-light: #4B5563;
    --color-background: #F9FAFB;
    --color-white: #FFFFFF;
    --color-success: #25D366;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Lora', Georgia, serif;

    /* Spacing */
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-full: 9999px;

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

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-red { color: var(--color-secondary); }

/* Layout */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 { font-size: 3rem; }
.section-header p { color: var(--color-text-light); font-size: 1.25rem; }

.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-warm);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

@keyframes rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reveal { animation: fadeInUp 0.8s ease forwards; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-primary-dark); transform: translateY(-1px); }

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
}
.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.6);
}

.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-emergency {
    background-color: #DC2626;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    border: none;
}
.btn-emergency:hover { background-color: #B91C1C; color: white; }

.btn-emergency-small {
    background-color: #DC2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.top-bar {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (min-width: 769px) {
    .top-bar .container {
        display: flex;
        justify-content: flex-end;
        padding-right: 2rem;
    }
}

.site-header {
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
}

.logo { display: block; min-width: 150px; max-width: 220px; }
.logo img {
    height: auto;
    width: 100%;
    max-height: 90px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo:hover img { transform: scale(1.05); }

.main-nav { margin-left: 20px; }
.nav-list { display: flex; gap: 2rem; align-items: center; }
.nav-list a { font-weight: 600; color: var(--color-primary); font-size: 1.05rem; }
.nav-list a:hover { color: var(--color-secondary); }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background-color: var(--color-primary); margin: 5px 0; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(0,78,152,0.95) 0%, rgba(0,56,112,0.9) 100%), url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 8rem 0;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-badge {
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.family-badge {
    background: rgba(200, 135, 42, 0.2);
    color: #f5c97a;
    border: 1px solid rgba(200, 135, 42, 0.5);
}

.rated-badge {
    background: rgba(217, 4, 41, 0.2);
    color: white;
    border: 1px solid rgba(217, 4, 41, 0.5);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 2.5rem; }

.hero-trust-bar {
    display: inline-flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(0,0,0,0.5);
    padding: 0.9rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--color-warm);
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.trust-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.25);
}

/* ─── SERVICES ───────────────────────────────────────────── */
.services-section { background-color: var(--color-background); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #fff;
    padding: 0 0 2rem 0;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    top: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.service-card:hover::after { transform: scaleX(1); }
.service-card h3 { font-size: 1.5rem; margin: 1.5rem 1.5rem 0.5rem 1.5rem; }
.service-card p { color: var(--color-text-light); margin: 0 1.5rem; font-size: 1.05rem; }

.service-image { height: 220px; overflow: hidden; width: 100%; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-image img { transform: scale(1.1); }

/* ─── LEGACY SECTION ─────────────────────────────────────── */
.legacy-section {
    background: var(--color-dark-navy);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.legacy-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(200,135,42,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.legacy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Photo frame treatment */
.photo-frame-vintage {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(200,135,42,0.25),
        0 0 0 8px rgba(200,135,42,0.07),
        0 30px 70px rgba(0,0,0,0.5);
}

.photo-frame-vintage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(10%) saturate(1.05) contrast(1.02);
    display: block;
    transition: filter 0.5s ease;
}

.photo-frame-vintage:hover img {
    filter: sepia(0%) saturate(1.1);
}

.photo-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-style: italic;
    padding: 2rem 1rem 0.75rem;
    text-align: center;
    letter-spacing: 0.03em;
}

/* Legacy text side */
.section-eyebrow-light {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-warm);
    margin-bottom: 1rem;
}

.legacy-heading {
    font-size: 3.25rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.legacy-accent { color: var(--color-warm); }

.legacy-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255,255,255,0.85);
    border-left: 3px solid var(--color-warm);
    padding: 1rem 0 1rem 1.5rem;
    margin: 1.5rem 0 2rem;
    line-height: 1.75;
}

.legacy-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-warm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Timeline */
.legacy-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-warm);
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(200,135,42,0.2);
}

.timeline-content strong {
    display: block;
    color: var(--color-white);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.timeline-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ─── STORY / ABOUT SECTION ──────────────────────────────── */
.story-section {
    background: var(--color-warm-light);
    position: relative;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-warm), var(--color-secondary));
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* Narrative column */
.story-narrative { display: flex; flex-direction: column; gap: 2rem; }

.gen-block {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border-top: 4px solid transparent;
    transition: box-shadow 0.3s ease;
}

.gen-block-sr { border-top-color: var(--color-warm); }
.gen-block-jr { border-top-color: var(--color-primary); }

.gen-block:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.gen-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.gen-label-sr { color: var(--color-warm); }
.gen-label-jr { color: var(--color-primary); }

.gen-name {
    font-size: 1.75rem;
    margin-bottom: 0.2rem;
    color: var(--color-heritage);
}

.gen-role {
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
}

.gen-block p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.gen-block p:last-child { margin-bottom: 0; }

/* Credentials */
.credentials {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.cred-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Handoff bridge between gen blocks */
.gen-bridge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.bridge-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--color-warm), transparent);
    opacity: 0.4;
}

.bridge-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-warm);
    white-space: nowrap;
}

.bridge-line-right {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary));
    opacity: 0.4;
}

/* Photo column */
.story-photos {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 120px;
}

.photo-frame-story {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(200,135,42,0.15);
}

.photo-frame-story img {
    width: 100%;
    display: block;
    filter: sepia(8%) saturate(1.05);
    transition: filter 0.4s ease;
}

.photo-frame-story:hover img { filter: sepia(0%); }

/* Rotated photo (IMG_8362 is 90° CW off) */
.photo-rotated-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(200,135,42,0.15);
    position: relative;
}

.photo-rotated-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 133%;
    height: auto;
    transform: translate(-50%, -50%) rotate(-90deg);
    filter: sepia(8%) saturate(1.05);
}

.story-photo-caption {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: -1rem;
    padding: 0 0.5rem;
}

/* Closing statement */
.story-closing {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.story-closing p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-text-light);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ─── CONTACT SECTION ────────────────────────────────────── */
.contact-section { background-color: var(--color-white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    background: var(--color-background);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact-map iframe {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 400px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.site-footer h3 { color: #fff; margin-bottom: 1rem; }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    width: 65px; height: 65px;
    bottom: 30px; right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    z-index: 2000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); background-color: #20BA5A; }
.whatsapp-icon { width: 38px; height: 38px; fill: white; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .legacy-container { grid-template-columns: 1fr; gap: 3rem; }
    .legacy-heading { font-size: 2.5rem; }
    .story-layout { grid-template-columns: 1fr; gap: 3rem; }
    .story-photos { position: static; flex-direction: row; flex-wrap: wrap; }
    .story-photos > * { flex: 1 1 45%; }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-list.active { display: flex; }
    .mobile-menu-toggle { display: block; }

    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-trust-bar { flex-direction: column; gap: 0.5rem; text-align: center; }
    .trust-divider { display: none; }

    .section-header h2 { font-size: 2rem; }
    .legacy-section { padding: 4rem 0; }
    .legacy-heading { font-size: 2rem; }

    .about-content,
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

    .story-photos { flex-direction: column; }
    .story-photos > * { flex: 1 1 100%; }

    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-icon { width: 28px; height: 28px; }
    .logo img { max-height: 60px; }
}