/* ============================================================
   Bay City Branding — style.css
   Palette:
     Navy    #0B1F35   (primary dark)
     Blue    #3A8FCA   (accent)
     Slate   #4A6880   (body text secondary)
     Light   #F0F4F8   (section bg)
     White   #FFFFFF
   Type:
     Display: Playfair Display 700 / italic 400
     Body:    Inter 400/500/600
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #0B1F35;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Type scale ───────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.15;
    color: #0B1F35;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #4A6880; }

/* Italic accent used in headings */
em { font-style: italic; font-weight: 400; color: #3A8FCA; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: #EEF4F8; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 3px;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: #0B1F35;
    color: #fff;
    border-color: #0B1F35;
}
.btn-primary:hover { background: #1a3a5c; border-color: #1a3a5c; }

.btn-outline {
    background: transparent;
    color: #0B1F35;
    border-color: #0B1F35;
}
.btn-outline:hover { background: #0B1F35; color: #fff; }

.btn-blue {
    background: #3A8FCA;
    color: #fff;
    border-color: #3A8FCA;
}
.btn-blue:hover { background: #2d79b0; border-color: #2d79b0; }

.btn-sm { padding: 10px 20px; font-size: 0.75rem; }
.btn-lg { padding: 18px 40px; font-size: 0.875rem; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1A2A3A;
    border-bottom: 2px solid #C49A3A;
    transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
}

.site-logo { flex-shrink: 0; }
.site-logo img { height: 42px; width: auto; }

.site-nav { flex: 1; }
.site-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}
.site-nav a {
    display: block;
    padding: 7px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #8BA8C0;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.site-nav a.active {
    color: #fff;
    font-weight: 600;
}
.site-nav a.nav-portal {
    color: #C49A3A;
    font-weight: 600;
}
.site-nav a.nav-portal:hover { color: #d4b060; background: rgba(196,154,58,0.08); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Override Get a Quote button in header to use gold */
.site-header .btn-primary {
    background: #C49A3A;
    border-color: #C49A3A;
    color: #0B1F35;
    font-weight: 700;
}
.site-header .btn-primary:hover {
    background: #d4b060;
    border-color: #d4b060;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #8BA8C0;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    padding: 120px 0 100px;
    background: #0B1F35;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(58,143,202,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C49A3A;
    margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: #C49A3A;
}

.hero h1 { color: #fff; margin-bottom: 28px; max-width: 760px; }
.hero h1 em { color: #3A8FCA; }

.hero-sub {
    font-size: 1.125rem;
    color: #8BA8C0;
    max-width: 540px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.8125rem;
    color: #8BA8C0;
    margin-top: 4px;
}

/* ── Section header ───────────────────────────────────────── */
.section-header { margin-bottom: 64px; }
.section-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C49A3A;
    margin-bottom: 16px;
}
.section-header .eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #C49A3A;
}
.section-header h2 em { color: #3A8FCA; }
.section-header p {
    max-width: 560px;
    color: #4A6880;
    font-size: 1.0625rem;
    margin-top: 16px;
}

/* ── Services cards ───────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    border: 2px solid #E2EBF3;
    border-radius: 8px;
    overflow: hidden;
}
.service-card {
    background: #fff;
    padding: 48px 40px;
    position: relative;
    transition: background 0.2s;
}
.service-card:hover { background: #F7FAFD; }
.service-card + .service-card { border-left: 2px solid #E2EBF3; }

.service-num {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C49A3A;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.service-num::after { content: ''; flex: 1; height: 1px; background: #D6E4EF; }

.service-card h3 { margin-bottom: 12px; }
.service-card p  { color: #4A6880; font-size: 0.9375rem; margin-bottom: 28px; }

.service-features { margin-bottom: 32px; }
.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #4A6880;
    padding: 6px 0;
    border-bottom: 1px solid #F0F4F8;
}
.service-features li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3A8FCA;
    flex-shrink: 0;
}

.service-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0B1F35;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.service-link:hover { gap: 12px; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band {
    background: #0B1F35;
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 2px solid #C49A3A;
}
.cta-band::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,154,58,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-band .eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C49A3A;
    margin-bottom: 20px;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band h2 em { color: #3A8FCA; }
.cta-band p { color: #8BA8C0; font-size: 1.0625rem; margin-bottom: 40px; }
.cta-band .cta-note {
    font-size: 0.8125rem;
    color: #4A6880;
    margin-top: 20px;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: #060F1C;
    color: #8BA8C0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 24px 64px;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 240px;
    color: #4A6880;
}
.footer-logo img { height: 40px; width: auto; opacity: 0.85; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4A6880;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
    font-size: 0.9rem;
    color: #8BA8C0;
    transition: color 0.15s;
}
.footer-col li a:hover { color: #fff; }
.footer-location { font-size: 0.9rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 24px;
}
.footer-bottom p { font-size: 0.8125rem; color: #2E4A63; }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom nav a {
    font-size: 0.8125rem;
    color: #2E4A63;
    transition: color 0.15s;
}
.footer-bottom nav a:hover { color: #8BA8C0; }

/* ── Process steps ────────────────────────────────────────── */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 16px);
    right: calc(12.5% + 16px);
    height: 1px;
    background: #3A8FCA;
    opacity: 0.3;
}
.process-step { padding: 0 24px; text-align: center; }
.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0B1F35;
    color: #C49A3A;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(196,154,58,0.4);
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p  { font-size: 0.875rem; color: #4A6880; }

/* ── About page ───────────────────────────────────────────── */
.about-hero {
    padding: 100px 0 80px;
    background: #0B1F35;
    color: #fff;
}
.about-hero h1 { color: #fff; margin-bottom: 20px; }
.about-hero h1 em { color: #3A8FCA; }
.about-hero p { color: #8BA8C0; font-size: 1.125rem; max-width: 600px; }

.timeline {
    position: relative;
    padding-left: 32px;
    border-left: 2px solid #E2EBF3;
}
.timeline-item { margin-bottom: 40px; position: relative; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3A8FCA;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #3A8FCA;
}
.timeline-year {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3A8FCA;
    margin-bottom: 6px;
}
.timeline-item h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.timeline-item p  { font-size: 0.9rem; color: #4A6880; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    border: 2px solid #E2EBF3;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 64px;
}
.stat-box {
    padding: 40px 32px;
    text-align: center;
    background: #fff;
}
.stat-box:not(:last-child) { border-right: 2px solid #E2EBF3; }
.stat-box-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0B1F35;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-box-label { font-size: 0.8125rem; color: #4A6880; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.why-card {
    padding: 36px 32px;
    border: 1px solid #E2EBF3;
    border-radius: 6px;
    background: #fff;
}
.why-card h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.why-card p  { font-size: 0.9rem; color: #4A6880; }

/* ── Contact / Quote forms ────────────────────────────────── */
.form-page-hero {
    background: #0B1F35;
    padding: 80px 0 72px;
    color: #fff;
}
.form-page-hero .breadcrumb {
    font-size: 0.8125rem;
    color: #4A6880;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-page-hero .breadcrumb a { color: #3A8FCA; }
.form-page-hero h1 { color: #fff; }
.form-page-hero h1 em { color: #3A8FCA; }
.form-page-hero p { color: #8BA8C0; margin-top: 12px; font-size: 1.0625rem; max-width: 520px; }

.form-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 64px;
    align-items: start;
    padding: 80px 0;
}

.bcb-form .form-group { margin-bottom: 24px; }
.bcb-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0B1F35;
    margin-bottom: 8px;
}
.bcb-form label .req { color: #3A8FCA; margin-left: 2px; }

.bcb-form input[type="text"],
.bcb-form input[type="email"],
.bcb-form input[type="tel"],
.bcb-form input[type="url"],
.bcb-form input[type="number"],
.bcb-form select,
.bcb-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #0B1F35;
    background: #fff;
    border: 1.5px solid #D6E4EF;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}
.bcb-form input:focus,
.bcb-form select:focus,
.bcb-form textarea:focus {
    border-color: #3A8FCA;
    box-shadow: 0 0 0 3px rgba(58,143,202,0.12);
}
.bcb-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A6880' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.bcb-form textarea { resize: vertical; min-height: 120px; }

.form-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4A6880;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2EBF3;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #4A6880;
    cursor: pointer;
    padding: 10px 14px;
    border: 1.5px solid #E2EBF3;
    border-radius: 4px;
    transition: border-color 0.15s, background 0.15s;
}
.checkbox-label:hover { border-color: #3A8FCA; background: #F7FAFD; }
.checkbox-label input { width: 16px; height: 16px; accent-color: #3A8FCA; flex-shrink: 0; }

.form-submit-row { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.form-note { font-size: 0.8125rem; color: #4A6880; }

.form-result { display: none; padding: 16px 20px; border-radius: 4px; font-size: 0.9rem; margin-top: 16px; }
.form-result.success { background: #EBF5F0; color: #1A6B3C; border: 1px solid #A8D8C0; }
.form-result.error   { background: #FDECEA; color: #C0392B; border: 1px solid #F5B7B1; }

.form-sidebar {
    position: sticky;
    top: 96px;
}
.sidebar-box {
    background: #F0F4F8;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
}
.sidebar-box h4 { font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600; color: #0B1F35; margin-bottom: 16px; }
.sidebar-box p  { font-size: 0.875rem; color: #4A6880; margin-bottom: 12px; line-height: 1.6; }
.sidebar-box a  { color: #3A8FCA; font-weight: 600; }
.sidebar-box ul { display: flex; flex-direction: column; gap: 8px; }
.sidebar-box ul li { font-size: 0.875rem; color: #4A6880; display: flex; gap: 8px; align-items: flex-start; }
.sidebar-box ul li::before { content: '✓'; color: #3A8FCA; font-weight: 700; flex-shrink: 0; }

/* ── Portfolio page ───────────────────────────────────────── */
.port-hero {
    background: #0B1F35;
    padding: 80px 0 64px;
    color: #fff;
}
.port-hero h1 { color: #fff; }
.port-hero h1 em { color: #3A8FCA; }
.port-hero p { color: #8BA8C0; margin-top: 12px; font-size: 1.0625rem; }

.port-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding-top: 48px;
}
.port-filter {
    padding: 8px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border: 1.5px solid #E2EBF3;
    border-radius: 100px;
    background: #fff;
    color: #4A6880;
    cursor: pointer;
    transition: all 0.15s;
}
.port-filter:hover, .port-filter.active {
    background: #0B1F35;
    color: #fff;
    border-color: #0B1F35;
}

.port-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.port-item { border-radius: 6px; overflow: hidden; border: 1px solid #E2EBF3; transition: transform 0.2s, box-shadow 0.2s; }
.port-item:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(11,31,53,0.1); }
.port-item.hidden { display: none; }

.port-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #F0F4F8; }
.port-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.port-item:hover .port-img-wrap img { transform: scale(1.04); }

.port-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D6E4EF;
}
.port-img-placeholder svg { width: 48px; height: 48px; }

.port-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #3A8FCA;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}

.port-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,31,53,0.88);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s;
}
.port-item:hover .port-overlay { opacity: 1; }

.port-overlay-cat {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3A8FCA;
    display: block;
    margin-bottom: 6px;
}
.port-overlay h3 { color: #fff; font-size: 1.0625rem; margin-bottom: 4px; }
.port-overlay .port-client { color: #8BA8C0; font-size: 0.875rem; margin-bottom: 16px; }
.port-overlay-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.port-detail-btn, .port-visit-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.port-detail-btn { background: #3A8FCA; color: #fff; }
.port-detail-btn:hover { background: #2d79b0; }
.port-visit-btn { background: rgba(255,255,255,0.12); color: #fff; }
.port-visit-btn:hover { background: rgba(255,255,255,0.2); }

.port-card-info { padding: 20px 24px; background: #fff; }
.port-card-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.port-card-title { font-size: 1rem; }
.port-card-year { font-size: 0.8rem; color: #8BA8C0; flex-shrink: 0; }
.port-card-client { font-size: 0.875rem; color: #4A6880; margin-bottom: 8px; }
.port-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3A8FCA;
    background: rgba(58,143,202,0.08);
    padding: 3px 10px;
    border-radius: 100px;
}

/* Portfolio modal */
.port-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6,15,28,0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.port-modal-overlay.open { opacity: 1; pointer-events: all; }
.port-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.25s;
}
.port-modal-overlay.open .port-modal { transform: translateY(0); }
.port-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(11,31,53,0.08);
    border: none;
    font-size: 1.25rem;
    color: #0B1F35;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.port-modal-img { aspect-ratio: 16/9; background: #F0F4F8; overflow: hidden; border-radius: 8px 8px 0 0; }
.port-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.port-modal-body { padding: 36px 40px; }
.port-modal-body .port-overlay-cat { display: inline-block; margin-bottom: 10px; }
.port-modal-body h2 { margin-bottom: 6px; }
.port-modal-body .port-client { color: #4A6880; font-size: 0.9375rem; margin-bottom: 20px; }
.port-modal-desc { color: #4A6880; line-height: 1.7; margin-bottom: 28px; font-size: 0.9375rem; }
.port-modal-footer { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Services page ─────────────────────────────────────────── */
.services-hero {
    background: #0B1F35;
    padding: 80px 0 64px;
    color: #fff;
}
.services-hero h1 { color: #fff; }
.services-hero h1 em { color: #3A8FCA; }
.services-hero p { color: #8BA8C0; margin-top: 12px; font-size: 1.0625rem; }

.service-section { padding: 80px 0; border-bottom: 1px solid #D6E4EF; }
.service-section:last-of-type { border-bottom: none; }
.service-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.service-section-inner.reverse { direction: rtl; }
.service-section-inner.reverse > * { direction: ltr; }

.service-detail-num {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C49A3A;
    margin-bottom: 16px;
}
.service-detail h2 { margin-bottom: 16px; }
.service-detail h2 em { color: #3A8FCA; }
.service-detail p { color: #4A6880; font-size: 1rem; margin-bottom: 28px; }
.service-detail ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.service-detail ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: #4A6880;
}
.service-detail ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C49A3A;
    flex-shrink: 0;
    margin-top: 8px;
}

/* Stats grid — Web Design section */
.service-side { display: flex; flex-direction: column; justify-content: center; }

.service-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border: 1px solid #D6E4EF;
    border-radius: 8px;
    overflow: hidden;
}
.service-stat {
    background: #fff;
    padding: 32px 28px;
    border: 1px solid #D6E4EF;
}
.service-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #0B1F35;
    line-height: 1;
    margin-bottom: 8px;
}
.service-stat-num span {
    font-size: 1.5rem;
    color: #C49A3A;
}
.service-stat-label {
    font-size: 0.8125rem;
    color: #4A6880;
    line-height: 1.4;
}

/* Feature list — Branding & Marketing sections */
.service-features-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #D6E4EF;
    border-radius: 8px;
    overflow: hidden;
}
.service-feature {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid #D6E4EF;
    background: #fff;
    transition: background 0.15s;
}
.service-feature:last-child { border-bottom: none; }
.service-feature:hover { background: #FAFCFE; }
.service-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(196,154,58,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #C49A3A;
}
.service-feature-icon svg { width: 18px; height: 18px; }
.service-feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0B1F35;
    margin-bottom: 3px;
}
.service-feature-desc {
    font-size: 0.8375rem;
    color: #4A6880;
    line-height: 1.5;
}

/* ── 404 ───────────────────────────────────────────────────── */
.error-page {
    min-height: calc(100vh - 72px - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}
.error-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 700;
    color: #E2EBF3;
    line-height: 0.9;
    margin-bottom: 32px;
}
.error-page h2 { margin-bottom: 16px; }
.error-page p  { color: #4A6880; max-width: 420px; margin: 0 auto 32px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card + .service-card { border-left: none; border-top: 2px solid #E2EBF3; }
    .form-layout { grid-template-columns: 1fr; }
    .form-sidebar { position: static; }
    .service-section-inner { grid-template-columns: 1fr; gap: 48px; }
    .service-section-inner.reverse { direction: ltr; }
    .service-stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 48px; }
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .process-steps::before { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .hero { padding: 80px 0 64px; }
    .hero-stats { gap: 28px; flex-wrap: wrap; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-box:nth-child(2) { border-right: none; }
    .stat-box:nth-child(1), .stat-box:nth-child(2) { border-bottom: 2px solid #E2EBF3; }
    .why-grid { grid-template-columns: 1fr; }
    .port-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .site-nav { display: none; position: fixed; inset: 68px 0 0; background: #1A2A3A; z-index: 99; flex-direction: column; padding: 24px; overflow-y: auto; border-top: 1px solid #243545; }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 4px; }
    .site-nav a { padding: 12px 16px; font-size: 1rem; color: #8BA8C0; }
    .site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255,255,255,0.06); }
    .nav-toggle { display: flex; }
    .header-actions .btn { display: none; }
}

@media (max-width: 480px) {
    .port-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
