/* CSS Variables for Color Palette */
:root {
    --color-navy: #1e3d59;
    --color-offwhite: #f5f0e1;
    --color-orange: #ff6e40;
    --color-yellow: #ffc13b;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-offwhite);
    color: var(--color-navy);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 400;
    line-height: 1.2;
}

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

/* Typography Enhancements */
em {
    font-style: italic;
    color: var(--color-orange);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(245, 240, 225, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(30, 61, 89, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-navy);
    transition: width var(--transition-fast);
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-orange);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    border: 1px solid var(--color-orange);
}

.btn-primary:hover {
    background-color: #e65a2d;
    border-color: #e65a2d;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-navy);
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--color-navy);
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: white;
}

.mt-4 { margin-top: 2rem; }

/* Layout Wrappers */
main {
    margin-top: 80px; /* offset for fixed nav */
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(30, 61, 89, 0.8);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
}

/* Abstract Image Frame styling - Anthropic style borders */
.image-wrapper {
    position: relative;
    border: 1px solid var(--color-navy);
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 20px 20px 0px var(--color-yellow);
    transition: transform var(--transition-smooth);
}

.image-wrapper:hover {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0px var(--color-yellow);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* Divider */
.divider {
    height: 1px;
    background-color: rgba(30, 61, 89, 0.15);
    max-width: 1200px;
    margin: 4rem auto;
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(30, 61, 89, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    padding: 2rem;
    border-top: 2px solid var(--color-navy);
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color var(--transition-fast);
}

.feature-card:hover {
    background-color: white;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.feature-card p {
    color: rgba(30, 61, 89, 0.8);
    font-size: 0.95rem;
}

/* Quote Section */
.quote-section {
    background-color: var(--color-navy);
    color: var(--color-offwhite);
    padding: 8rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
}

.quote-section blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--color-offwhite);
}

.quote-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-author strong {
    font-family: var(--font-body);
    color: var(--color-yellow);
    letter-spacing: 1px;
}

.quote-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.cta-content {
    background-color: white;
    padding: 5rem 3rem;
    text-align: center;
    border: 1px solid var(--color-navy);
    border-radius: 4px;
    box-shadow: 10px 10px 0px var(--color-orange);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(30, 61, 89, 0.8);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(30, 61, 89, 0.15);
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-group a {
    display: block;
    color: rgba(30, 61, 89, 0.7);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(30, 61, 89, 0.1);
    padding-top: 2rem;
    color: rgba(30, 61, 89, 0.6);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a:hover {
    color: var(--color-navy);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none; /* simple mobile handling */
    }

    .footer-content {
        flex-direction: column;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn var(--transition-smooth) forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp var(--transition-smooth) forwards;
}

.slide-up-delayed {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp var(--transition-smooth) forwards;
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- READING CAT (NEWS) --- */
.reading-cat-container {
    position: absolute;
    top: 5px;
    right: 40px;
    z-index: -1;
    animation: peekRead 14s infinite ease-in-out;
}
.reading-cat-container svg {
    width: 65px;
    height: auto;
}

@keyframes peekRead {
    0%, 20% { top: 15px; opacity: 1; }
    30%, 70% { top: -53px; opacity: 1; }
    80%, 100% { top: 15px; opacity: 1; }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 750px;
    background-color: white;
    border: 1px solid var(--color-navy);
    box-shadow: 8px 8px 0px var(--color-orange);
    z-index: 9999;
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 4px;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(30, 61, 89, 0.85);
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-navy);
    color: var(--color-navy);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(30, 61, 89, 0.05);
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        bottom: 2rem;
    }
    .cookie-banner p {
        flex: 1;
        padding-right: 2rem;
    }
}
