/**
 * Gyanova Solutions Pvt. Ltd. — production stylesheet
 * Palette from brand spec. Mobile-first. Flexbox + Grid.
 */

:root {
    --navy: #062b5c;
    --navy-dark: #031d3d;
    --blue: #1464b4;
    --green: #36b86a;
    --teal: #13b8b0;
    --orange: #f59e0b;
    --white: #ffffff;
    --soft: #f5f9fc;
    --ink: #142033;
    --muted: #64748b;
    --border: #d7e3ef;
    --shadow: 0 14px 36px rgba(6, 43, 92, 0.10);
    --radius: 12px;
    --header-h: 80px;
    --sans: "Manrope", "Segoe UI", sans-serif;
    --ease: 0.22s ease;
    --success: #166534;
    --success-bg: #ecfdf3;
    --error: #b42318;
    --error-bg: #fef3f2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3 {
    color: var(--navy);
    line-height: 1.22;
    margin: 0 0 0.55em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font-family: inherit; }

.container {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 1000;
    background: var(--green);
    color: var(--navy-dark);
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
    display: inline-block;
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
}
.eyebrow-light { color: var(--green); }

.section { padding: 4.5rem 0; }
.section-soft { background: var(--soft); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 38rem; }
.muted { color: var(--muted); }
.accent { color: var(--green); }

.section-head { margin-bottom: 2.4rem; max-width: 42rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin: 0.85rem auto 0;
    background: var(--blue);
    border-radius: 99px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    isolation: isolate;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(6, 43, 92, 0.05);
}
.topbar {
    background: var(--navy-dark);
    color: #d7e4f5;
    font-size: 0.84rem;
    font-weight: 600;
}
.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 1.2rem;
    min-height: 38px;
    padding: 0.35rem 0;
}
.topbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #e8eef9;
}
.topbar a:hover { color: var(--teal); }
.topbar i { color: var(--teal); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.brand-mark {
    display: block;
    height: 72px;
    width: auto;
    max-width: min(340px, 62vw);
    object-fit: contain;
    object-position: left center;
    background: transparent;
}
.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
    color: var(--navy);
    padding: 0.45rem 0.9rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.nav-link:hover { color: var(--blue); }
.nav-link.is-active { color: var(--blue); font-weight: 600; }
.nav-link.is-active::after,
.nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--blue);
}
.header-cta {
    display: inline-flex;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
    transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.7rem 1.3rem;
    border-radius: 10px;
    font-weight: 700;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); color: var(--white); }
.btn-green { background: var(--green); color: var(--navy-dark); }
.btn-green:hover { background: #2ea35d; color: var(--navy-dark); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--soft); color: var(--navy); }
.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost-light:hover { background: var(--white); color: var(--navy); }
.btn.is-loading { opacity: 0.75; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Full-width hero slider — distinct from split content below */
.hero-slider {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    color: var(--white);
}
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s ease, transform 6s ease;
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-slide.is-designed img {
    object-position: center 32%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(100deg, rgba(3, 29, 61, 0.86) 8%, rgba(6, 43, 92, 0.62) 48%, rgba(19, 184, 176, 0.38) 100%);
    transition: opacity 0.45s ease;
}
.hero-slider.is-designed-active .hero-overlay,
.hero-slider.is-designed-active .hero-slider-content {
    opacity: 0;
    pointer-events: none;
}
.hero-slider-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 4.4rem 0 5rem;
    transition: opacity 0.45s ease;
}
.hero-slider-content .eyebrow,
.hero-slider-content h1,
.hero-slider-content .hero-slider-lead,
.hero-slider-content .btn-row {
    max-width: 38rem;
}
.hero-slider h1 {
    color: var(--white);
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.hero-slider-lead {
    color: #e4edf7;
    font-size: 1.08rem;
    max-width: 36rem;
    margin-bottom: 1.4rem;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(3, 29, 61, 0.45);
    color: var(--white);
    cursor: pointer;
}
.slider-nav:hover { background: var(--navy); }
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 1.3rem;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 0.45rem;
}
.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}
.slider-dot.is-active { background: var(--green); width: 26px; border-radius: 99px; }

.split {
    display: grid;
    gap: 2.2rem;
    align-items: center;
}
.photo-frame {
    position: relative;
    isolation: isolate;
    margin: 0 0 12px;
}
.photo-frame::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: -8px;
    width: 38%;
    height: 38%;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    z-index: 0;
    opacity: 0.85;
}
.photo-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Cards */
.card-grid { display: grid; gap: 1.15rem; }
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.45rem 1.25rem 1.5rem;
    box-shadow: 0 8px 22px rgba(6, 43, 92, 0.06);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(20, 100, 180, 0.35);
}
.icon-box {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    background: #e8f1fb;
    color: var(--blue);
}
.icon-box.green { background: #e8f8ef; color: var(--green); }
.icon-box.teal { background: #e6faf8; color: var(--teal); }
.icon-box.navy { background: #e7eef8; color: var(--navy); }
.icon-box.orange { background: #fff4e5; color: #d97706; }
.card p:last-child { margin-bottom: 0; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.8rem;
    font-weight: 700;
    color: var(--blue);
}
.card-link:hover { color: var(--navy); }

/* Dark commitment */
.commit-bar {
    background: var(--navy-dark);
    color: var(--white);
    padding: 4.4rem 0;
}
.commit-bar h2 { color: var(--white); }
.commit-bar .eyebrow { color: var(--teal); }
.commit-grid { display: grid; gap: 1.5rem; }
.commit-item { text-align: center; padding: 0.4rem 0.5rem; }
.commit-item i {
    font-size: 1.45rem;
    color: var(--teal);
    margin-bottom: 0.7rem;
    display: inline-block;
}
.commit-item h3 { color: var(--white); font-size: 1.02rem; margin-bottom: 0.35rem; }
.commit-item p { color: #c5d3e6; font-size: 0.94rem; margin: 0; }

/* Page hero */
.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 4.4rem 0 3.6rem;
    color: var(--white);
    background: var(--navy-dark);
}
.page-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(3, 29, 61, 0.88) 12%, rgba(6, 43, 92, 0.72) 100%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 44rem; }
.page-hero h1 { color: var(--white); }
.page-hero-lead { color: #d5e2f2; margin: 0; font-size: 1.05rem; }

/* Services */
.service-block {
    display: grid;
    gap: 1.4rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--border);
}
.service-block:last-of-type { border-bottom: 0; }
.service-copy h2 { margin-bottom: 0.55rem; }
.check-list {
    list-style: none;
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
}
.check-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--ink);
}
.check-list i { color: var(--green); margin-top: 0.35rem; }

/* Values / mission */
.mission-grid { display: grid; gap: 1.15rem; }
.panel {
    background: var(--navy);
    color: #d7e4f5;
    border-radius: var(--radius);
    padding: 1.8rem;
}
.panel h2 { color: var(--white); }
.panel .eyebrow { color: var(--teal); }
.panel-alt { background: #031d3d; }

/* Timeline */
.timeline {
    list-style: none;
    display: grid;
    gap: 1rem;
    counter-reset: step;
}
.timeline li {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.2rem 1.2rem 1.3rem;
    box-shadow: 0 8px 20px rgba(6, 43, 92, 0.05);
}
.timeline h3 { margin-bottom: 0.3rem; }
.timeline p { margin: 0; color: var(--muted); }
.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #e8f1fb;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

/* Contact */
.contact-layout { display: grid; gap: 1.6rem; }
.form-card, .aside-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: 0 8px 22px rgba(6, 43, 92, 0.05);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--navy);
}
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.78rem 0.9rem;
    background: var(--soft);
    color: var(--ink);
    font-size: 1rem;
}
.form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23062B5C' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.4rem;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: 2px solid var(--teal);
    border-color: var(--teal);
    background: var(--white);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.field-error { display: none; margin: 0.35rem 0 0; color: var(--error); font-size: 0.88rem; }
.form-row.has-error input,
.form-row.has-error textarea,
.form-row.has-error select { border-color: var(--error); background: var(--error-bg); }
.form-row.has-error .field-error { display: block; }
.alert {
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
}
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--error-bg); color: var(--error); }
.aside-list { list-style: none; }
.aside-list li { display: flex; gap: 0.7rem; margin-bottom: 0.95rem; }
.aside-list i { color: var(--teal); margin-top: 0.28rem; }
.placeholder-note { color: var(--muted); font-size: 0.95rem; }

.map-placeholder {
    background: var(--soft);
    padding: 0 0 4.5rem;
}
.map-frame {
    min-height: 280px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #e7eef6;
}
.map-frame iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

/* CTA */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: 4.1rem 0;
    color: var(--white);
}
.cta-band-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(6, 43, 92, 0.90), rgba(19, 184, 176, 0.78));
}
.cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.2rem;
    align-items: center;
}
.cta-inner h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-inner p { color: #eaf7f6; margin: 0; }

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: #b9c9de;
    padding-top: 3.2rem;
}
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.3rem; }
.footer-logo {
    height: 64px;
    width: auto;
    max-width: 260px;
    margin-bottom: 0.85rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.footer-tagline { color: var(--teal); font-weight: 700; }
.footer-heading { font-size: 0.92rem; color: var(--white); margin-bottom: 0.85rem; }
.footer-links, .footer-contact { list-style: none; }
.footer-links a, .footer-contact a { color: #b9c9de; }
.footer-links a:hover { color: var(--white); }
.footer-links li, .footer-contact li { margin-bottom: 0.45rem; }
.footer-contact li { display: flex; gap: 0.55rem; }
.footer-contact i { color: var(--teal); margin-top: 0.28rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 1rem 0 1.25rem;
    font-size: 0.9rem;
}
.footer-legal { display: flex; gap: 1rem; }
.footer-legal a { color: #b9c9de; }

.to-top {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
    z-index: 80;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--blue); }

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .card, .btn { transition: none !important; transform: none !important; opacity: 1; }
}

@media (max-width: 860px) {
    .topbar-inner {
        justify-content: space-between;
        gap: 0.25rem 0.8rem;
        font-size: 0.76rem;
    }
    .nav-toggle { display: flex; z-index: 220; order: 3; }
    .header-cta {
        display: inline-flex;
        min-height: 40px;
        padding: 0.45rem 0.9rem;
        font-size: 0.88rem;
        order: 2;
    }
    .brand { order: 1; }
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(3, 29, 61, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--ease);
        z-index: 90;
    }
    .nav-overlay.is-visible { opacity: 1; pointer-events: auto; }
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(310px, 86vw);
        background: var(--navy-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 5.4rem 1.4rem 2rem;
        gap: 0.35rem;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        z-index: 210;
    }
    .site-nav.is-open { transform: translateX(0); }
    .nav-link { color: #e8eef9; font-size: 1.05rem; }
    .nav-link.is-active, .nav-link:hover { color: var(--teal); }
    .hero-slider { min-height: 420px; }
    .slider-prev { left: 0.5rem; }
    .slider-next { right: 0.5rem; }
    .photo-frame img { height: 250px; }
    .brand-mark { height: 52px; max-width: 200px; }
}

@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-grid { grid-template-columns: 1fr 1fr; }
    .check-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .commit-grid { grid-template-columns: repeat(3, 1fr); }
    .timeline { grid-template-columns: repeat(3, 1fr); }
    .cta-inner { grid-template-columns: 1.5fr auto; }
}

@media (min-width: 861px) {
    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }
    .site-nav { justify-self: center; }
    .header-cta { justify-self: end; }
    .nav-toggle, .nav-overlay { display: none; }
}

@media (min-width: 960px) {
    .split, .contact-layout { grid-template-columns: 1.05fr 0.95fr; }
    .service-block { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
    .footer-grid { grid-template-columns: 1.35fr 0.85fr 1.2fr 1.15fr; }
}

@media (min-width: 1024px) {
    .card-grid.three { grid-template-columns: repeat(3, 1fr); }
    .commit-grid { grid-template-columns: repeat(5, 1fr); }
    .timeline { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1200px) {
    .card-grid.five { grid-template-columns: repeat(5, 1fr); }
    .section { padding: 5.2rem 0; }
    .hero-slider { min-height: 600px; }
    .container { width: min(1200px, calc(100% - 3rem)); }
}
