:root {
    --navy-950: #050b18;
    --navy-900: #0a1a33;
    --navy-800: #0f2545;
    --navy-700: #16335c;
    --navy-600: #1e4478;
    --gold: #c9a227;
    --gold-light: #e8c766;
    --gold-dark: #a8841c;
    --text-dark: #16233b;
    --text-muted: #5b6b85;
    --text-light: #eef2f7;
    --text-light-muted: #aebdd6;
    --off-white: #f6f7fb;
    --border-soft: #e6e9f0;
    --font-heading: "Montserrat", "Segoe UI", sans-serif;
    --font-body: "Merriweather", Georgia, serif;
    --shadow-md: 0 12px 30px rgba(10, 26, 51, 0.1);
    --shadow-lg: 0 24px 60px rgba(10, 26, 51, 0.18);
}

* { box-sizing: border-box; }

.is-hidden { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand, .btn, .nav-cta, .main-nav a {
    font-family: var(--font-heading);
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }

p { line-height: 1.75; color: var(--text-muted); margin: 0; }

a { color: inherit; text-decoration: none; }

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

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

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy-900);
    letter-spacing: 0.01em;
}

.brand-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.2s ease;
}

.main-nav a:not(.nav-cta):hover {
    color: var(--navy-800);
}

.main-nav a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--navy-900);
    color: #fff !important;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.94rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--navy-950);
    box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(201, 162, 39, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-navy {
    background: var(--navy-950);
    color: #fff;
    box-shadow: 0 10px 24px rgba(5, 11, 24, 0.35);
}

.btn-navy:hover {
    transform: translateY(-2px);
    background: var(--navy-900);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 7.5rem 0 6rem;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--navy-950) 10%, var(--navy-900) 55%, var(--navy-700) 130%);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.eyebrow {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 1.1rem;
}

.hero h1 {
    font-size: 2.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1.4rem;
}

.text-gold {
    color: var(--gold-light);
}

.hero-sub {
    font-size: 1.06rem;
    color: var(--text-light-muted);
    max-width: 640px;
    margin-bottom: 2.3rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: var(--font-heading);
}

.hero-stat-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--gold-light);
}

.hero-stat span:last-child {
    font-size: 0.82rem;
    color: var(--text-light-muted);
    font-weight: 500;
}

/* ===== Page hero (secondary pages) ===== */
.page-hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(160deg, var(--navy-950) 10%, var(--navy-900) 55%, var(--navy-700) 130%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.page-hero .hero-sub {
    margin-bottom: 0;
}

.nav-active {
    color: var(--gold-dark) !important;
}

/* ===== Workspace grid ===== */
.workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.workspace-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.workspace-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.workspace-card-placeholder {
    border-style: dashed;
    background: var(--off-white);
}

.workspace-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.workspace-status {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-dark);
    background: rgba(201, 162, 39, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.workspace-status-active {
    color: #1a7f4b;
    background: rgba(26, 127, 75, 0.12);
}

.workspace-card h3 {
    font-size: 1.05rem;
    color: var(--navy-900);
    margin-top: 0.3rem;
}

.workspace-card p {
    font-size: 0.9rem;
}

.workspace-url {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-outline-navy {
    border-color: var(--navy-700);
    color: var(--navy-800);
    padding: 0.65rem 1.4rem;
    font-size: 0.85rem;
    margin-top: 0.6rem;
}

.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.workspace-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
}

/* ===== Sections ===== */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--off-white);
}

.section-dark {
    background: linear-gradient(150deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
    color: var(--text-light);
}

.section-eyebrow {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin: 0 0 0.9rem;
}

.section-eyebrow-light {
    color: var(--gold-light);
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--navy-900);
    max-width: 640px;
    margin-bottom: 1.1rem;
}

.section-title-light {
    color: #fff;
}

.section-lead {
    font-size: 1.02rem;
    max-width: 620px;
    margin-bottom: 3rem;
}

.section-lead-light {
    color: var(--text-light-muted);
}

/* ===== Services grid ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 2.1rem 1.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card-wide {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--text-light);
    border: none;
}

.service-card.service-card-wide h3 { color: var(--gold-light); }
.service-card-wide p { color: var(--text-light-muted); }
.service-card-wide .service-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    background: rgba(232, 199, 102, 0.15);
    color: var(--gold-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
}

.service-icon-photo {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 8px 20px rgba(10, 26, 51, 0.15);
}

.service-icon-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--navy-900);
    margin-bottom: 0.7rem;
}

.service-card p {
    font-size: 0.92rem;
}

/* ===== Split layout (media + content) ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.split-reverse .split-media { order: 2; }
.split-reverse .split-content { order: 1; }

.split-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3.1;
}

.split-media-mockup img {
    aspect-ratio: 3 / 3.4;
}

.split-media-badge {
    position: absolute;
    left: 1.3rem;
    bottom: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(5, 11, 24, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
}

.split-media-badge svg { color: var(--gold-light); flex-shrink: 0; }

/* ===== Database grid ===== */
.db-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.db-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.db-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--navy-900);
    margin-bottom: 0.2rem;
}

.db-item small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.db-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 0.35rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

/* ===== Environment cards ===== */
.env-cards {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.env-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
}

.env-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--navy-900);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.env-card p {
    font-size: 0.92rem;
}

/* ===== Hosting list ===== */
.hosting-list {
    list-style: none;
    margin: 0 0 2.2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hosting-list li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

.hosting-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(232, 199, 102, 0.15);
    border: 1.5px solid var(--gold-light);
}

.hosting-list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
}

/* ===== Testimonials ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--off-white);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.stars {
    color: var(--gold);
    letter-spacing: 0.15em;
    font-size: 0.95rem;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.96rem;
    flex-grow: 1;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial-person img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-light);
}

.testimonial-person strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: var(--navy-900);
}

.testimonial-person small {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* ===== CTA banner ===== */
.cta-banner {
    background: linear-gradient(120deg, var(--gold-dark), var(--gold) 45%, var(--gold-light));
    padding: 4.5rem 0;
}

.cta-inner {
    text-align: center;
    max-width: 680px;
}

.cta-inner h2 {
    font-size: 2rem;
    color: var(--navy-950);
    margin-bottom: 1rem;
}

.cta-inner p {
    color: rgba(5, 11, 24, 0.75);
    margin-bottom: 2rem;
    font-size: 1.02rem;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--navy-950);
    color: var(--text-light-muted);
    padding-top: 4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    color: var(--text-light-muted);
    font-size: 0.88rem;
    margin-top: 1rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-light);
    margin-bottom: 0.4rem;
}

.footer-col a, .footer-col span {
    font-size: 0.88rem;
    color: var(--text-light-muted);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-partner-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.footer-col span.footer-partner-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-light);
}

.footer-partner-logo {
    width: 140px;
    height: auto;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-partner-link:hover .footer-partner-logo {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(174, 189, 214, 0.7);
}

/* ===== Contact modal ===== */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 24, 0.65);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.contact-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 18px;
    padding: 2.3rem 2.2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(14px);
    transition: transform 0.2s ease;
}

.contact-modal-overlay.open .contact-modal {
    transform: translateY(0);
}

.contact-modal h3 {
    font-size: 1.35rem;
    color: var(--navy-900);
    margin-bottom: 0.6rem;
}

.contact-modal-lead {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.contact-modal-lead strong {
    color: var(--navy-900);
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.contact-modal-close:hover {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-dark);
}

#contact-modal-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy-900);
    margin: 1rem 0 0.4rem;
}

#contact-modal-form input,
#contact-modal-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dark);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    resize: vertical;
}

#contact-modal-form input:focus,
#contact-modal-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

#contact-modal-form input.field-error,
#contact-modal-form textarea.field-error {
    border-color: #c0392b;
}

.contact-modal-error {
    display: none;
    color: #c0392b;
    font-size: 0.82rem;
    margin: 0.8rem 0 0;
}

.contact-modal-error.show {
    display: block;
}

.contact-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.contact-modal-actions .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.88rem;
}

/* ===== Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.site-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(10, 26, 51, 0.08);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-wide { grid-column: span 2; flex-direction: column; }
    .split { grid-template-columns: 1fr; }
    .split-reverse .split-media, .split-reverse .split-content { order: unset; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.3rem; }
    .workspace-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--border-soft);
        box-shadow: var(--shadow-md);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .main-nav a { width: 100%; padding: 0.75rem 0; }
    .nav-cta { margin-top: 0.5rem; text-align: center; }
    .nav-toggle { display: flex; }

    .service-grid { grid-template-columns: 1fr; }
    .service-card-wide { grid-column: span 1; }
    .db-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero { padding: 5.5rem 0 4rem; }
    .hero h1 { font-size: 1.9rem; }
    .section { padding: 4rem 0; }
    .cta-inner h2 { font-size: 1.6rem; }
    .workspace-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.9rem; }
}
