:root {
    --primary-color: #0056b3;
    --primary-dark: #003d80;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-dark);
    line-height: 1.3;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }
.section-title { text-align: center; margin-bottom: 3rem; }

.main-header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.6rem; text-decoration: none; color: var(--primary-color); font-family: var(--font-heading); font-weight: 700; }
.main-nav ul { display: flex; list-style: none; gap: 1.5rem; }
.main-nav a { text-decoration: none; color: var(--text-color); font-weight: 700; transition: var(--transition); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary-color); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; stroke: var(--primary-color); }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }

.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #f8f9fa 100%);
    padding: 5rem 0;
    text-align: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.2rem; color: #555; }

.services-highlight { padding: 4rem 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-5px); }
.service-icon { font-size: 3rem; margin-bottom: 1rem; }

.why-us { padding: 4rem 0; background: var(--light-bg); }

.cta {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}
.cta h2, .cta p { color: var(--white); }
.cta .btn-primary { background: var(--white); color: var(--primary-dark); }
.cta .btn-primary:hover { background: #f0f0f0; }

.main-footer {
    background: #222;
    color: #ccc;
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-column h4 { color: var(--white); margin-bottom: 1rem; }
.footer-column ul { list-style: none; }
.footer-column a { color: #ccc; text-decoration: none; transition: var(--transition); }
.footer-column a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #444; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1.5rem;
        box-shadow: var(--shadow);
    }
    .main-nav.is-active { display: block; }
    .main-nav ul { flex-direction: column; gap: 1rem; }
    h1 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
}

/* Security/accessibility support added during hardening */
[hidden] { display: none !important; }

.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.newsletter-status {
    margin: 0.75rem auto 0;
    max-width: 42rem;
    font-size: 0.9rem;
}

:focus-visible {
    outline: 3px solid #e67e22;
    outline-offset: 3px;
}

.link-disabled {
    cursor: default;
    opacity: 0.72;
    text-decoration: none;
}


/* 5-level contextual storytelling */
.story-shell {
    --story-progress: 0%;
    position: relative;
    overflow: clip;
    padding: 5.5rem 0 6.5rem;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 86, 179, 0.11), transparent 24rem),
        radial-gradient(circle at 88% 76%, rgba(230, 126, 34, 0.11), transparent 24rem),
        #f7fbff;
}
.story-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(0, 61, 128, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 61, 128, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%);
}
.story-intro { position: relative; text-align: center; max-width: 880px; }
.story-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .9rem;
    color: var(--accent-color);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.story-kicker::before, .story-kicker::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.story-intro h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.35rem); }
.story-intro > p:last-child { max-width: 760px; margin: 0 auto; color: #52606d; font-size: 1.08rem; }
.story-progress-wrap {
    position: sticky;
    top: 72px;
    z-index: 40;
    margin: 3rem 0 1rem;
    padding: .75rem 0;
    background: rgba(247, 251, 255, .88);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0, 61, 128, .08);
    border-bottom: 1px solid rgba(0, 61, 128, .08);
}
.story-progress { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.story-progress-track { position: absolute; left: 7%; right: 7%; top: 19px; height: 3px; border-radius: 999px; background: #d9e5f0; overflow: hidden; }
.story-progress-fill { display: block; width: var(--story-progress); height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); transition: width .55s ease; }
.story-progress-step {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: .35rem;
    color: #657384;
    text-decoration: none;
    font-weight: 700;
    font-size: .75rem;
}
.story-progress-step span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #51606f;
    background: #e6eef6;
    border: 3px solid #f7fbff;
    box-shadow: 0 0 0 1px #cfdae5;
    transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}
.story-progress-step.is-active { color: var(--primary-dark); }
.story-progress-step.is-active span {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, .13);
    transform: scale(1.08);
}
.story-levels { position: relative; }
.story-level {
    min-height: min(82vh, 820px);
    padding: 7rem 0;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6.5rem);
    scroll-margin-top: 160px;
}
.story-level-reverse .story-copy { order: 2; }
.story-level-reverse .story-visual { order: 1; }
.story-copy, .story-visual {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .72s cubic-bezier(.2,.65,.25,1), transform .72s cubic-bezier(.2,.65,.25,1);
}
.story-level .story-visual { transition-delay: .12s; }
.story-level.is-visible .story-copy, .story-level.is-visible .story-visual { opacity: 1; transform: translateY(0); }
.story-index { margin-bottom: .85rem; color: var(--accent-color); font-size: .78rem; font-weight: 900; letter-spacing: .16em; }
.story-copy h3 { margin-bottom: 1.15rem; font-size: clamp(1.9rem, 3.5vw, 3rem); }
.story-copy > p:not(.story-index) { color: #4b5c6d; font-size: 1.08rem; }
.story-points { display: grid; gap: .8rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.story-points li { position: relative; padding-left: 1.85rem; color: #213549; font-weight: 600; }
.story-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45rem;
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 0 5px rgba(0,86,179,.08);
}
.story-visual { margin: 0; }
.story-image-frame {
    position: relative;
    isolation: isolate;
    border-radius: 30px;
    padding: clamp(.65rem, 2vw, 1rem);
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(0, 61, 128, .10);
    box-shadow: 0 28px 70px rgba(6, 42, 77, .16);
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
    transition: transform .6s cubic-bezier(.2,.65,.25,1), box-shadow .6s ease;
}
.story-level-reverse .story-image-frame { transform: perspective(1200px) rotateY(2deg) rotateX(1deg); }
.story-level.is-visible .story-image-frame:hover { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-6px); box-shadow: 0 34px 80px rgba(6, 42, 77, .22); }
.story-image-frame::after {
    content: "";
    position: absolute;
    inset: 12% -5% -10% 10%;
    z-index: -1;
    border-radius: 35px;
    background: linear-gradient(135deg, rgba(0,86,179,.18), rgba(230,126,34,.18));
    filter: blur(32px);
}
.story-image-frame img { display: block; width: 100%; height: auto; border-radius: 22px; }
.story-visual figcaption { margin: 1rem auto 0; max-width: 88%; color: #6b7785; font-size: .88rem; text-align: center; }
.story-level-final { min-height: 74vh; }
.story-cta { margin-top: 1.7rem; }

@media (max-width: 900px) {
    .story-progress-wrap { top: 64px; }
    .story-progress-step small { display: none; }
    .story-level, .story-level-reverse { min-height: auto; padding: 4.5rem 0; grid-template-columns: 1fr; gap: 2.2rem; }
    .story-level-reverse .story-copy, .story-level-reverse .story-visual { order: initial; }
    .story-copy { max-width: 720px; }
    .story-image-frame, .story-level-reverse .story-image-frame { transform: none; }
}
@media (max-width: 560px) {
    .story-shell { padding-top: 4rem; }
    .story-progress-wrap { top: 61px; }
    .story-progress { padding-inline: 10px; }
    .story-progress-step span { width: 34px; height: 34px; font-size: .7rem; }
    .story-progress-track { top: 16px; }
    .story-level { padding: 3.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    .story-progress-fill, .story-progress-step span, .story-copy, .story-visual, .story-image-frame { transition: none !important; }
    .story-copy, .story-visual { opacity: 1; transform: none; }
    .story-image-frame, .story-level-reverse .story-image-frame { transform: none; }
}
