/* ============================================================
   Ventiuno IT LLC — main stylesheet
   Warm dark theme · Amber accent · Editorial serif
   ============================================================ */

:root {
    --bg-primary: #0f0d0b;
    --bg-secondary: #17140f;
    --bg-tertiary: #1f1a13;
    --bg-elevated: #2a2318;
    --border: #2c2519;
    --border-strong: #463c2a;
    --text-primary: #f5ede0;
    --text-secondary: #c8bba5;
    --text-muted: #8a7e6d;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --accent-deep: #b45309;
    --accent-muted: rgba(245, 158, 11, 0.10);
    --accent-glow: rgba(245, 158, 11, 0.28);
    --container-max: 1180px;
    --radius: 4px;
    --radius-sm: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 158, 11, 0.07), transparent 60%),
        radial-gradient(ellipse 50% 30% at 0% 30%, rgba(180, 83, 9, 0.05), transparent 50%);
    background-attachment: fixed;
}

/* Subtle grain texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, .display {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
h1 { font-size: clamp(2.75rem, 7.5vw, 6rem); line-height: 1.02; font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; font-weight: 500; }
h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 500; }
h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 600; }
em, .em { font-style: italic; color: var(--accent); }
p { color: var(--text-secondary); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

/* ================= Navigation ================= */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15, 13, 11, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 768px) { .nav-inner { padding: 0 2.5rem; } }
.logo {
    display: flex; align-items: baseline; gap: 0.35rem;
    font-family: 'Fraunces', serif; font-weight: 500;
    font-size: 1.55rem; color: var(--text-primary); letter-spacing: -0.02em;
    font-style: italic;
}
.logo:hover { color: var(--text-primary); }
.logo-num {
    font-style: normal;
    font-weight: 400;
    color: var(--accent);
    font-size: 0.9em;
    margin-left: 0.1em;
}
.nav-links { display: none; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.lang-switch { display: flex; gap: 0.4rem; align-items: center; font-size: 0.82rem; color: var(--text-muted); font-variant: small-caps; letter-spacing: 0.08em; }
.lang-switch a { color: var(--text-muted); padding: 0.25rem 0.5rem; transition: color 0.2s; }
.lang-switch a.active { color: var(--accent); }
.lang-switch a:hover { color: var(--accent); }

/* ================= Hero ================= */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    isolation: isolate;
}
@media (min-width: 768px) { .hero { padding: 7rem 0 5rem; } }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 3rem;
    }
}

.hero-mark {
    font-family: 'Fraunces', serif;
    font-size: clamp(8rem, 28vw, 22rem);
    font-weight: 300;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-strong);
    text-align: center;
    font-style: italic;
    position: relative;
    user-select: none;
    order: 2;
}
@media (min-width: 900px) {
    .hero-mark { order: 1; text-align: left; }
}
.hero-mark::after {
    content: '21';
    position: absolute;
    inset: 0;
    color: var(--accent);
    -webkit-text-stroke: 0;
    opacity: 0;
    transition: opacity 0.6s;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero:hover .hero-mark::after { opacity: 0.18; }

.hero-content { order: 1; }
@media (min-width: 900px) { .hero-content { order: 2; } }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    color: var(--accent);
    padding: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--accent);
}
.hero h1 {
    margin-bottom: 1.5rem;
    max-width: 720px;
}
.hero h1 .em-soft {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.18rem; } }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ================= Buttons ================= */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600; font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: all 0.2s; cursor: pointer;
    text-decoration: none; border: none;
}
.btn-primary {
    background: var(--accent); color: #1a1206;
    box-shadow: 0 0 0 1px var(--accent-deep) inset;
}
.btn-primary:hover {
    background: var(--accent-hover); color: #1a1206;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow), 0 0 0 1px var(--accent-deep) inset;
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ================= Sections ================= */
.section { padding: 5rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section + .section { border-top: 1px solid var(--border); }

.section-eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}
.section-title { margin-bottom: 1.25rem; max-width: 720px; }
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 640px;
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

/* ================= Services (numbered editorial list) ================= */
.services-list {
    display: flex;
    flex-direction: column;
}
.service-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    transition: background 0.3s, padding-left 0.3s;
    position: relative;
}
@media (min-width: 768px) {
    .service-row {
        grid-template-columns: 100px 1fr 1.2fr;
        gap: 2.5rem;
        padding: 2.5rem 0;
        align-items: start;
    }
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row:hover {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.04), transparent 60%);
}
.service-row.featured {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), transparent 70%);
}
.service-row.featured::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--accent);
}
.service-num {
    font-family: 'Fraunces', serif;
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--accent);
    font-style: italic;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
    .service-num { font-size: 2.25rem; }
}
.service-row.featured .service-num { color: var(--accent-hover); }
.service-body { min-width: 0; }
.service-body h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.service-body h3 .badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 100px;
    vertical-align: middle;
    font-style: normal;
}
.service-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.98rem;
}
.service-tech {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    line-height: 1.8;
}
.service-tech span { white-space: nowrap; }
.service-tech span + span::before {
    content: ' · ';
    color: var(--border-strong);
    margin: 0 0.15rem;
}
@media (min-width: 768px) {
    .service-tech {
        align-self: center;
    }
}

/* ================= Industries ================= */
.industries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}
@media (min-width: 600px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .industries-grid { grid-template-columns: repeat(3, 1fr); } }
.industry-card {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}
@media (min-width: 600px) { .industry-card:nth-child(2n) { border-right: 1px solid var(--border); } }
@media (min-width: 900px) { .industry-card:nth-child(3n) { border-right: none; } }
.industry-card:hover {
    background: var(--bg-secondary);
}
.industry-card:hover h4 { color: var(--accent); }
.industry-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
    display: block;
    opacity: 0.7;
}
.industry-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.industry-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ================= Tech stack ================= */
.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.tech-pill {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 0.95rem;
    border-radius: 100px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: default;
}
.tech-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-muted);
}

/* ================= Approach ================= */
.approach {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}
@media (min-width: 768px) { .approach { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.approach-item {
    position: relative;
    padding-top: 1.5rem;
}
.approach-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--accent);
}
.approach-item h4 {
    font-family: 'Fraunces', serif;
    color: var(--text-primary);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-style: italic;
}
.approach-item p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ================= Nearshore highlight (geo block) ================= */
.geo {
    margin-top: 2rem;
    padding: 2.5rem 1.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at 80% 0%, rgba(245, 158, 11, 0.08), transparent 60%),
        var(--bg-secondary);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 800px) {
    .geo { grid-template-columns: 1fr 1fr; padding: 3rem 3rem; }
}
.geo-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.geo-stat-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 2.4rem;
    color: var(--accent);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0.35rem;
}
.geo-stat-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.geo h3 {
    font-family: 'Fraunces', serif;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.7rem;
}
.geo p { color: var(--text-secondary); font-size: 0.98rem; }

/* ================= Contact ================= */
.contact {
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    max-width: 720px;
}
.contact h2 {
    margin-bottom: 1rem;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
}
.contact .lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}
.contact-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 500;
    transition: padding 0.2s, color 0.2s;
}
.contact-detail:hover {
    color: var(--accent);
    padding-left: 0.4rem;
}
.contact-detail-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.contact-detail-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
}

/* ================= Footer ================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}
.footer-brand {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 360px;
}
.footer-brand strong {
    color: var(--text-primary);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
}

/* ================= Legal pages ================= */
.legal {
    padding: 4rem 0 6rem;
    max-width: 800px;
}
.legal h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2.5rem;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
}
.legal h2 {
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Fraunces', serif;
    font-weight: 500;
}
.legal h3 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.legal p, .legal ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.75;
}
.legal ul { padding-left: 1.5rem; }
.legal li { margin-bottom: 0.5rem; }
.legal address {
    font-style: normal;
    background: var(--bg-secondary);
    border-left: 2px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    line-height: 1.7;
}
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }

/* ================= Selection ================= */
::selection { background: var(--accent); color: #1a1206; }
