:root {
    --ins-blue: #0c4a6e;
    --ins-gold: #fbbf24;
    --ins-grey: #f1f5f9;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: #334155;
}

.top-contact {
    background: var(--ins-grey);
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ins-blue);
}

.main-nav {
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--ins-blue);
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ins-blue);
    text-decoration: none;
}

.hero-trust {
    background: linear-gradient(rgba(12, 74, 110, 0.9), rgba(12, 74, 110, 0.8)), url('https://placehold.co/1920x1080');
    background-size: cover;
    color: #fff;
    padding: 120px 20px;
    text-align: center;
}

h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 20px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.badge-item {
    text-align: center;
}

.badge-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid var(--ins-gold);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.quote-box {
    background: #fff;
    max-width: 900px;
    margin: -50px auto 50px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 5px solid var(--ins-gold);
    position: relative;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-input {
    wwidth: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: block;
    width: -webkit-fill-available;
}

.btn-quote {
    background: var(--ins-gold);
    color: var(--ins-blue);
    border: none;
    width: 100%;
    padding: 15px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
}

/* --- INTERACTIVE POLISH ADDITIONS --- */
html {
    scroll-behavior: smooth;
}

/* Scroll Reveal Base State */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

/* Scroll Reveal Active State */
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base Card Transition for the JS Tilt */
article, .card, .product-item, .gallery-item {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

/* General Link/Button Hover Polish */
a, button, .btn {
    transition: all 0.2s ease;
}

a:active, button:active {
    transform: scale(0.98);
}

/* Selection Color Modernization */
::selection {
    background: #000;
    color: #fff;
}


/* --- GOD MODE GLOBAL RESPONSIVE PATCH --- */
@media (max-width: 768px) {
    /* Force grids to stack */
    .hero-split, 
    .split-screen, 
    .grid-masonry, 
    .card-grid, 
    .feature-list, 
    .service-cols, 
    .dest-grid, 
    .recipe-cards, 
    .gallery-item,
    .collection-grid,
    .hero-form-layout,
    .hero-medical,
    .grid-listings,
    .headline-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 30px !important;
    }

    /* Adjust sizing for mobile */
    .container, .book-container, .love-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: auto !important;
    }

    /* Stack Navigations */
    .nav, .nav-bar, .mag-nav, .corp-header, .fest-nav, .brutalist-nav {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
        padding: 20px !important;
    }
    
    .nav div, .nav-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Typography Scaling */
    h1 { font-size: 2.5rem !important; line-height: 1.1 !important; }
    h2 { font-size: 2rem !important; }
    
    /* Reset fixed positions */
    .sidebar { position: static !important; width: 100% !important; height: auto !important; }
    .left-panel, .right-panel { width: 100% !important; padding: 40px 20px !important; }
}

/* --- UI POLISH --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Better Form Elements */
input, textarea, select {
    max-width: 100%;
    font-family: inherit;
}


/* --- AUTOMATED INNER PAGE & BLOG STYLING --- */

/* Standard layout container for About, Contact, Privacy, Blog */
.std-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 60vh;
}

/* Article Reading Layout */
.std-article {
    max-width: 750px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.8;
    font-size: 1.15rem;
}

.std-article h1 { font-size: 2.5rem; margin-bottom: 10px; line-height: 1.2; }
.std-article h2, .std-article h3 { margin-top: 40px; margin-bottom: 20px; }
.std-article p { margin-bottom: 20px; }
.std-article ul, .std-article ol { margin-bottom: 30px; padding-left: 20px; }
.std-article li { margin-bottom: 10px; }
.std-article img { border-radius: 8px; margin: 30px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); width: 100%; height: auto; }
.std-article blockquote { border-left: 4px solid currentColor; padding-left: 20px; font-style: italic; margin: 30px 0; opacity: 0.8; }

/* Blog Grid System (if missing in main CSS) */
.blog-grid-system {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card-auto {
    background: rgba(255,255,255,0.05); /* Works on dark or light */
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

/* Dark mode compatibility fix for border */
@media (prefers-color-scheme: dark) {
    .blog-card-auto { border-color: rgba(255,255,255,0.2); }
}

.blog-card-auto:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.blog-thumb-auto {
    height: 200px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
}

.blog-content-auto { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.blog-title-auto { font-size: 1.3rem; font-weight: bold; margin-bottom: 10px; text-decoration: none; color: inherit; }
.blog-snip-auto { font-size: 0.95rem; opacity: 0.8; line-height: 1.5; margin-bottom: 20px; }
.read-more-auto { margin-top: auto; font-weight: bold; text-decoration: underline; cursor:pointer;}

/* Contact Form Polish */
.form-pretty input, .form-pretty textarea, .form-pretty select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 5px;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
}
.form-pretty button {
    padding: 15px 40px;
    font-weight: bold;
    cursor: pointer;
}
