/* =========================================================
   Baria Lalubhai — iOS Developer
   Theme v3: "Dusk Orchard" — cool slate-ink on soft lilac-cream
   Primary tangerine, secondary teal, tertiary plum
   ========================================================= */

:root {
    --paper: #efeef6;
    --paper-2: #fbfaff;
    --ink: #1a1726;
    --ink-soft: #4a455c;
    --muted: #857f98;
    --line: #ddd9ea;
    --line-strong: #1a1726;
    --lime: #ff9f1c;          /* primary accent (tangerine) */
    --lime-deep: #e8890a;
    --coral: #e63946;         /* secondary accent (vivid red) */
    --blue: #0a9396;          /* tertiary accent (teal) */
    --plum: #8338ec;          /* quaternary accent (plum) */
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 6px 6px 0 var(--ink);
    --shadow-soft: 0 18px 40px rgba(26, 23, 38, 0.08);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.shell { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; font-weight: 600; }
a { color: inherit; text-decoration: none; }

.grad { color: var(--coral); font-style: italic; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 4px; width: 0;
    background: var(--ink); z-index: 1000; transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .95rem 1.6rem; border-radius: 999px;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    cursor: pointer; border: 2px solid var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-solid { background: var(--lime); color: var(--ink); box-shadow: var(--shadow); }
.btn-solid:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper-2); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 900;
    padding: 1.1rem 0; transition: background .3s, padding .3s, border-color .3s;
    border-bottom: 2px solid transparent;
}
.nav.scrolled {
    background: rgba(246,244,238,.9); backdrop-filter: blur(12px);
    border-bottom-color: var(--ink); padding: .7rem 0;
}
.nav-inner { width: min(1180px, 92%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ink); color: var(--lime); font-size: 1.1rem;
}
.brand-name { font-size: 1.15rem; letter-spacing: -.5px; }
.brand-dot { color: var(--coral); }

.nav-links { display: flex; gap: .25rem; }
.nav-item {
    padding: .5rem .95rem; border-radius: 999px; color: var(--ink-soft);
    font-weight: 500; font-size: .95rem; transition: color .2s, background .2s;
}
.nav-item:hover, .nav-item.active { color: var(--ink); background: var(--lime); }

.nav-cta {
    padding: .6rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
    border: 2px solid var(--ink); background: var(--paper-2); transition: transform .2s, background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper-2); transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 11rem 0 3rem; overflow: hidden; }
.hero-orb { display: none; }
.hero-grid {
    position: relative; z-index: 1; width: min(1180px, 92%); margin: 0 auto;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 600; color: var(--ink);
    padding: .5rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2);
    margin-bottom: 1.6rem; text-transform: uppercase; letter-spacing: 1px;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,106,61,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,106,61,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,106,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,61,0); } }

.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -1.5px; margin-bottom: 1.4rem; }
.hero-lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 520px; margin-bottom: 2.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-metrics { display: flex; gap: 0; border: 2px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; background: var(--paper-2); }
.metric { display: flex; flex-direction: column; padding: 1rem 1.6rem; border-right: 2px solid var(--ink); }
.metric:last-child { border-right: 0; }
.metric-num, .metric-plus { font-family: var(--font-display); font-weight: 600; font-size: 2rem; display: inline; }
.metric-plus { color: var(--coral); }
.metric p { color: var(--muted); font-size: .8rem; margin-top: .1rem; }

/* Device mockup — reskinned flat/outline */
.hero-visual { position: relative; display: grid; place-items: center; }
.device {
    position: relative; width: 280px; height: 560px; border-radius: 46px; padding: 14px;
    background: var(--ink); border: 2px solid var(--ink);
    box-shadow: 10px 10px 0 var(--lime); animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.device-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 2; }
.device-screen {
    width: 100%; height: 100%; border-radius: 34px; padding: 2.4rem 1.1rem 1.2rem;
    background: var(--paper-2); overflow: hidden; display: flex; flex-direction: column;
}
.d-top { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--ink); font-weight: 600; }
.d-icons { display: flex; gap: .4rem; }
.d-title { font-size: 1.5rem; margin: .8rem 0 .9rem; }
.d-card--hero {
    display: flex; align-items: center; gap: .8rem; padding: .9rem; border-radius: 16px;
    background: var(--lime); color: var(--ink); border: 2px solid var(--ink);
}
.d-card--hero i { font-size: 1.4rem; }
.d-card--hero strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.d-card--hero small { font-size: .72rem; }
.d-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .9rem 0; }
.d-tile {
    background: var(--paper); border: 2px solid var(--ink); border-radius: 14px;
    padding: .8rem; display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; color: var(--ink); font-weight: 600;
}
.d-tile i { color: var(--coral); font-size: 1rem; }
.d-bar { height: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin-top: auto; }
.d-bar span { display: block; height: 100%; background: var(--coral); }
.d-foot { color: var(--muted); font-size: .72rem; margin-top: .5rem; }

.float-chip {
    position: absolute; background: var(--paper-2); border: 2px solid var(--ink);
    padding: .55rem .95rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: .45rem;
}
.chip-1 { top: 14%; left: -8%; color: var(--ink); animation: floaty 5s ease-in-out infinite; }
.chip-2 { bottom: 12%; right: -8%; color: var(--ink); animation: floaty 7s ease-in-out infinite reverse; }

/* Marquee */
.marquee { margin-top: 4rem; overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 1rem 0; background: var(--ink); }
.marquee-track { display: flex; gap: 1.8rem; white-space: nowrap; width: max-content; animation: slide 24s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--paper); font-style: italic; }
.marquee-track span:nth-child(even) { color: var(--lime); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section shared ---------- */
section { padding: 6.5rem 0; }
.kicker { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: .76rem; color: var(--coral); margin-bottom: .9rem; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -1px; margin-bottom: 1rem; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 560px; }
.section-head { margin-bottom: 3.2rem; }

/* ---------- About ---------- */
.about { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.chip {
    display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem; border-radius: 999px;
    background: var(--paper); border: 2px solid var(--ink); font-size: .88rem; color: var(--ink); font-weight: 500;
}
.chip i { color: var(--coral); }
.about-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.feature-card {
    background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
    padding: 1.7rem; transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.fc-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); font-size: 1.2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature-card p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.work-card {
    background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius);
    overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.work-card:hover { transform: translate(-4px,-4px); box-shadow: var(--shadow); }
.work-top { height: 160px; display: grid; place-items: center; font-size: 3rem; color: var(--ink);
    background: var(--lime); border-bottom: 2px solid var(--ink); }
.work-top--b { background: var(--coral); color: var(--paper-2); }
.work-top--c { background: var(--blue); color: var(--paper-2); }
.work-top--d { background: var(--plum); color: var(--paper-2); }
.work-body { padding: 1.7rem; }
.work-body h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.work-body p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags span { font-size: .78rem; padding: .35rem .75rem; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font-weight: 500; }

/* ---------- Services ---------- */
.services { background: var(--ink); color: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.services .kicker { color: var(--lime); }
.services .section-title { color: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.service {
    position: relative; background: #272236; border: 2px solid var(--paper);
    border-radius: var(--radius); padding: 2.3rem 1.9rem; transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}
.service:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--lime); }
.service--featured { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.service--featured .service-icon { background: var(--ink); color: var(--lime); }
.service--featured .service-num { color: rgba(20,18,16,.18); }
.service--featured li i { color: var(--ink); }
.service-num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; color: rgba(255,255,255,.12); }
.service-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 1.4rem; margin-bottom: 1.3rem; }
.service h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.service > p { color: inherit; opacity: .82; font-size: .95rem; margin-bottom: 1.3rem; }
.service ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.service li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.service li i { color: var(--lime); font-size: .8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.c-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
    background: var(--paper-2); border: 2px solid var(--ink); transition: transform .2s, box-shadow .2s;
}
.c-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.c-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); font-size: 1.1rem; flex-shrink: 0; }
.c-card strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.c-card span { color: var(--ink-soft); font-size: .9rem; word-break: break-word; }

.contact-form-wrap { background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; margin-bottom: 1.1rem; }
.field input, .field textarea {
    width: 100%; padding: 1rem .9rem .5rem; border-radius: var(--radius-sm);
    background: var(--paper); border: 2px solid var(--ink); color: var(--ink);
    font-family: var(--font-body); font-size: .95rem; resize: vertical; transition: box-shadow .2s;
}
.field textarea { min-height: 120px; }
.field label {
    position: absolute; left: .95rem; top: .9rem; color: var(--muted); font-size: .95rem;
    pointer-events: none; transition: .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--coral); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
    top: .3rem; font-size: .72rem; color: var(--coral); font-weight: 600;
}

/* ---------- Footer ---------- */
.footer { padding: 4.5rem 0 2rem; border-top: 2px solid var(--ink); background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer-brand p { color: var(--ink-soft); font-size: .92rem; margin-top: 1rem; max-width: 280px; }
.footer-col h4 { font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-col a, .footer-col li { color: var(--ink-soft); font-size: .92rem; display: flex; align-items: center; gap: .5rem; transition: color .2s; }
.footer-col a:hover { color: var(--coral); }
.footer-col i { color: var(--coral); width: 16px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--line); text-align: center; color: var(--muted); font-size: .88rem; }

/* ---------- Policy pages ---------- */
.policy { padding: 9rem 0 5rem; }
.policy-head { margin-bottom: 2.5rem; }
.policy-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -1px; }
.policy-card {
    background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius);
    padding: 2.6rem; box-shadow: var(--shadow);
}
.policy-card p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.policy-card h2 { font-size: 1.35rem; margin: 2rem 0 .8rem; color: var(--ink); }
.policy-card a { color: var(--coral); font-weight: 600; }
.policy-card strong { color: var(--ink); font-weight: 700; }
.provider-list { list-style: none; margin: 1rem 0 1.1rem; display: grid; gap: .9rem; }
.provider-list li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); line-height: 1.7; }
.provider-list li::before { content: ''; position: absolute; left: .2rem; top: .65rem; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.provider-list a { word-break: break-word; }
.back-home { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; color: var(--ink); font-family: var(--font-display); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-actions, .hero-metrics { justify-content: center; margin-inline: auto; }
    .hero-visual { margin-top: 1rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-links {
        position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 330px;
        flex-direction: column; justify-content: center; gap: 1rem; padding: 2rem;
        background: var(--paper-2); border-left: 2px solid var(--ink);
        transform: translateX(100%); transition: transform .35s ease; z-index: 850;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-item { font-size: 1.15rem; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; z-index: 860; }
    .work-grid { grid-template-columns: 1fr; }
    .about-right { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-metrics { width: 100%; }
    .metric { flex: 1; padding: .9rem .8rem; }
    .float-chip { display: none; }
    section { padding: 4.5rem 0; }
}

@media (max-width: 420px) {
    .hero { padding-top: 8.5rem; }
    .metric-num, .metric-plus { font-size: 1.5rem; }
    .policy-card { padding: 1.6rem; }
    .hero-metrics { flex-direction: column; }
    .metric { border-right: 0; border-bottom: 2px solid var(--ink); }
    .metric:last-child { border-bottom: 0; }
}
