/* ==========================================================================
   Utility 6 Inc — main stylesheet (mobile-first)
   Breakpoints: tablet >= 768px, desktop >= 1024px, wide >= 1400px
   ========================================================================== */

:root {
    --navy: #0a1628;
    --navy-2: #12223d;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --white: #ffffff;
    --light-bg: #f0f4f8;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #dc2626;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(10, 22, 40, .08);
    --shadow-lg: 0 20px 45px rgba(10, 22, 40, .16);
    --gradient: linear-gradient(135deg, var(--blue), var(--cyan));
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 68px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--cyan); color: var(--navy); padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.eyebrow {
    font-family: var(--font-head);
    font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
.btn-primary:hover { color: var(--white); box-shadow: 0 12px 28px rgba(37, 99, 235, .45); }
.btn-outline { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { color: var(--blue); box-shadow: var(--shadow-lg); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.btn.loading .btn-label::before {
    content: ''; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--white); border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-group { display: flex; flex-wrap: wrap; gap: .9rem; }
.link-arrow { font-weight: 600; font-family: var(--font-head); font-size: .9rem; }
.link-arrow::after { content: ' →'; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header / navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 46px; width: auto; }

.nav-toggle {
    width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy);
    max-height: 0; overflow: hidden;
    transition: max-height .35s var(--ease);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .35);
}
.site-nav.open { max-height: 420px; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.site-nav a {
    display: block; padding: .9rem .5rem; color: rgba(255, 255, 255, .85);
    font-family: var(--font-head); font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-nav a:hover, .site-nav a.active { color: var(--cyan); }
.site-nav li:last-child a { border-bottom: 0; }
/* No-JS: show the menu stacked so it remains usable */
html:not(.js) .site-nav { position: static; max-height: none; box-shadow: none; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav-wrap { flex-wrap: wrap; height: auto; padding: .5rem 1.25rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--white);
    min-height: calc(88vh - var(--header-h)); display: flex; align-items: center;
    padding: 5rem 0;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: heroZoom 20s ease-in-out infinite alternate; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(10, 22, 40, .92), rgba(37, 99, 235, .55), rgba(6, 182, 212, .45), rgba(10, 22, 40, .9));
    background-size: 300% 300%;
    animation: gradientShift 14s ease infinite;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 800px; animation: fadeUp .9s var(--ease) both; }
.hero .eyebrow { animation: fadeUp .9s var(--ease) both; }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.3rem); color: rgba(255, 255, 255, .85); margin-bottom: 2rem; animation: fadeUp .9s .15s var(--ease) both; }
.hero .btn-group { animation: fadeUp .9s .3s var(--ease) both; }

.page-hero {
    position: relative; overflow: hidden; text-align: center; color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .35), transparent 50%),
                radial-gradient(circle at 85% 80%, rgba(6, 182, 212, .25), transparent 45%),
                var(--navy);
    padding: 4.5rem 0 4rem;
}
.page-hero h1 { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-light { background: var(--light-bg); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .85); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head p:last-child { color: var(--text-muted); }

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

/* ---------- Cards ---------- */
.card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--border); overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.icon-card { padding: 2rem 1.75rem; }
.icon-card p { color: var(--text-muted); }
.icon-badge {
    width: 58px; height: 58px; border-radius: 16px; background: var(--gradient);
    display: grid; place-items: center; margin-bottom: 1.25rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .3);
}
.icon-badge svg, .callout-icon svg, .info-icon svg, .feature-panel svg {
    width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.5rem 1.75rem 1.75rem; }
.card-body p { color: var(--text-muted); }

.badge {
    position: absolute; top: 1rem; left: 1rem; z-index: 1;
    font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: .4rem .8rem; border-radius: 999px; color: var(--white);
}
.badge-success { background: var(--success); }
.badge-progress { background: var(--warning); color: var(--navy); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat {
    text-align: center; padding: 1.75rem 1rem; border-radius: var(--radius);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
.stat-value {
    display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 6vw, 2.8rem);
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: .95rem; color: rgba(255, 255, 255, .75); }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--gradient); background-size: 200% 200%; animation: gradientShift 12s ease infinite;
    color: var(--white); padding: 3.5rem 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: .3em; }
.cta-banner p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-text p { color: var(--text-muted); }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.logo-feature { border-radius: 24px; box-shadow: var(--shadow-lg); margin: 0 auto; max-width: 340px; }
.media-wrap { position: relative; }
.feature-panel {
    border-radius: var(--radius); min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
    background: radial-gradient(circle at 30% 20%, rgba(6, 182, 212, .35), transparent 55%), var(--navy);
    color: var(--white); font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; box-shadow: var(--shadow-lg);
}
.feature-panel svg { width: 72px; height: 72px; stroke: var(--cyan); stroke-width: 1.4; }
.feature-panel p { margin: 0; }
.tagline { font-family: var(--font-head); font-weight: 600; color: var(--blue) !important; font-size: 1.05rem; }
.list-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 1.5rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .6rem; color: var(--text-dark); }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: var(--gradient) ;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
}
.check-list li::after {
    content: ''; position: absolute; left: .42rem; top: .52em; width: .35rem; height: .62rem;
    border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags span {
    font-size: .8rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px;
    background: rgba(37, 99, 235, .1); color: var(--blue);
}

.coming-soon {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem;
    border-radius: var(--radius); background: var(--white); border: 1px dashed var(--blue);
}
.coming-soon p { margin: 0; font-size: .9rem; }
.coming-soon strong { font-family: var(--font-head); color: var(--navy); }
.coming-soon > div { flex: 1 1 180px; }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: pulse 2s infinite; }

/* ---------- About ---------- */
.profile {
    display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center;
    background: var(--white); border-radius: var(--radius); padding: 2.5rem 1.75rem; box-shadow: var(--shadow);
}
.profile-avatar {
    flex: none; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; color: var(--white);
    background: var(--gradient); box-shadow: 0 0 0 8px rgba(37, 99, 235, .12);
}
.profile-role { font-weight: 600; color: var(--blue); }
.profile-body p:not(.eyebrow):not(.profile-role) { color: var(--text-muted); }

.callout { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.callout p { margin: 0; }
.callout > div:nth-child(2) { flex: 1; }
.callout-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--gradient); display: grid; place-items: center; flex: none; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.process li {
    position: relative; text-align: center; padding: 2rem 1.25rem; background: var(--light-bg); border-radius: var(--radius);
}
.process p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.process h3 { margin-bottom: .4rem; }
.step-num {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 1rem;
    background: var(--gradient); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-info p { color: var(--text-muted); }
.info-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--navy); }
.info-list span { color: var(--text-muted); }
.info-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gradient); display: grid; place-items: center; }
.info-icon svg { width: 22px; height: 22px; }

.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-row { display: grid; gap: 0 1.25rem; }
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .4rem; color: var(--text-dark); }
.req { color: var(--danger); }
.opt { color: var(--text-muted); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; font: inherit; color: var(--text-dark); background: var(--light-bg);
    border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .9rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--danger); }
.field-error { display: block; min-height: 0; color: var(--danger); font-size: .82rem; margin-top: .3rem; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--text-muted); margin: .9rem 0 0; text-align: center; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 500; }
.form-status.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.is-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.site-footer { background: #07101e; color: rgba(255, 255, 255, .7); padding-top: 3.5rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 240px; height: auto; margin-bottom: .75rem; }
.footer-tagline { font-family: var(--font-head); font-weight: 600; color: var(--cyan); }
.site-footer h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255, 255, 255, .7); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.25rem 0; font-size: .88rem; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: .25rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .small { font-size: .8rem; color: rgba(255, 255, 255, .45); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); } 70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablet >= 768px
   ========================================================================== */
@media (min-width: 768px) {
    :root { --header-h: 78px; }
    .container { padding: 0 2rem; }
    .brand img { height: 54px; }

    .nav-toggle { display: none; }
    .site-nav, html:not(.js) .site-nav { position: static; max-height: none; overflow: visible; box-shadow: none; background: transparent; }
    .site-nav ul { display: flex; gap: .25rem; padding: 0; }
    .site-nav a { border: 0; padding: .5rem .85rem; position: relative; font-size: .95rem; }
    .site-nav a::after {
        content: ''; position: absolute; left: .85rem; right: .85rem; bottom: 2px; height: 2px;
        background: var(--gradient); transform: scaleX(0); transition: transform .25s var(--ease); border-radius: 2px;
    }
    .site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
    html:not(.js) .nav-wrap { flex-wrap: nowrap; height: var(--header-h); padding: 0 2rem; }

    .section { padding: 6rem 0; }
    .page-hero { padding: 6rem 0 5rem; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .contact-form-wrap { padding: 2.5rem; }
    .process { grid-template-columns: repeat(3, 1fr); }
    .profile { flex-direction: row; text-align: left; align-items: flex-start; padding: 3rem; }
    .callout { flex-direction: row; align-items: center; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   Desktop >= 1024px
   ========================================================================== */
@media (min-width: 1024px) {
    .site-nav ul { gap: .5rem; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .split-reverse .split-media { order: 2; }
    .process { grid-template-columns: repeat(5, 1fr); }
    .process li:not(:last-child)::after {
        content: ''; position: absolute; top: 3.5rem; right: -.95rem; width: .7rem; height: .7rem;
        border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); transform: rotate(45deg); z-index: 1;
    }
    .contact-grid { grid-template-columns: 2fr 3fr; gap: 4rem; align-items: start; }
    .hero { padding: 7rem 0; }
}

/* ==========================================================================
   Wide >= 1400px
   ========================================================================== */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    body { font-size: 1.0625rem; }
}
