/* Cacheon LLC — Site Styles */

:root {
    --navy: #1B3A5C;
    --navy-dark: #0F2439;
    --navy-light: #2A4F73;
    --amber: #C87B4A;
    --amber-light: #D4966A;
    --amber-dark: #A8623A;
    --gray-50: #F8F9FA;
    --gray-100: #E9ECEF;
    --gray-200: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --gray-900: #212529;
    --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--navy); transition: color 0.2s; }
a:hover { color: var(--amber); }

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ───────────────────────────────── */

.site-header {
    background: var(--navy-dark);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo:hover { color: var(--amber-light); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    color: var(--gray-200);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.main-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ── Hero ─────────────────────────────────── */

.hero {
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-sub {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ──────────────────────────────── */

.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background: var(--amber-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200,123,74,0.3);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-small:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* ── Sections ─────────────────────────────── */

.page-header {
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 0;
}

.page-header h1 {
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-intro {
    color: rgba(255,255,255,0.85);
    margin-top: 0.75rem;
    max-width: 700px;
    font-size: 1.05rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-title {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.section h2 {
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.prose {
    max-width: 750px;
    line-height: 1.8;
}

.prose p { margin-bottom: 1rem; }

/* ── Split layout (text + image) ──────────── */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split-text h2 {
    margin-bottom: 1rem;
}

.split-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.split-image img {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ── Cards ────────────────────────────────── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.card h3 a {
    text-decoration: none;
    color: var(--navy);
}

.card h3 a:hover { color: var(--amber); }

.card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card .btn { margin-top: 1rem; }

/* ── Service cards with images ────────────── */

.service-card {
    padding: 0;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { margin-bottom: 0; }
.card-body .btn { margin-top: 1rem; }

/* ── CTA Section ──────────────────────────── */

.cta-section {
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 0;
}

.cta-block {
    text-align: center;
}

.cta-block h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-block p {
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* ── Team ─────────────────────────────────── */

.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--gray-200);
}

.team-title {
    color: var(--amber);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Blog / Listings ──────────────────────── */

.blog-list, .listings {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 750px;
}

.blog-item, .listing-item {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 2rem;
}

.blog-item h3, .listing-item h3 {
    margin-bottom: 0.25rem;
}

.blog-item h3 a, .listing-item h3 a {
    color: var(--navy);
    text-decoration: none;
}

.blog-item h3 a:hover, .listing-item h3 a:hover {
    color: var(--amber);
}

.blog-meta, .listing-meta {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}

/* ── Contact Form ─────────────────────────── */

.contact-form {
    max-width: 650px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,58,92,0.1);
}

.alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── Footer ───────────────────────────────── */

.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

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

.footer-company {
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.footer-info a {
    color: var(--amber-light);
    text-decoration: none;
}

.footer-info a:hover { color: var(--white); }

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--amber-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-align: center;
}

/* ── Responsive ───────────────────────────── */

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

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }

    .main-nav a {
        display: block;
        padding: 0.6rem 0.85rem;
    }

    .hero { padding: 4rem 0; }
    .hero h1 { font-size: 2rem; }

    .page-header { padding: 3rem 0; }
    .page-header h1 { font-size: 1.6rem; }

    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-image { order: -1; }

    .footer-content { flex-direction: column; gap: 1.5rem; }

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

    .form-row { grid-template-columns: 1fr; }

    .cta-block h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-sub { font-size: 1rem; }
    .section { padding: 3rem 0; }
}
