/* ===========================================================
   JT Consult — shared styles
   Palette: navy #16293a · teal #1f8a8c · light #f3f6f7
   Type: Playfair Display (headings) + Manrope (body) — both Cyrillic
   =========================================================== */

:root {
    --ink: #16293a;
    --ink-soft: #2c4256;
    --teal: #1f8a8c;
    --teal-deep: #15666a;
    --teal-dark: #0f4a4d;
    --teal-tint: #e8f4f2;
    --teal-pale: #eaf4f2;
    --muted: #5c6f7a;
    --ivory: #faf9f6;
    --bg: #faf9f6;
    --surface: #ffffff;
    --surface-alt: #f2f0ea;
    --line: #e7e2d7;
    --radius: 12px;
    --maxw: 1120px;
    --maxw-narrow: 760px;
    --pad-x: clamp(1.25rem, 5vw, 2rem);
    --pad-y: clamp(3rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Manrope", system-ui, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 0.6em;
    letter-spacing: 0;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1rem; }
a { color: var(--teal-deep); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}
.container.narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--pad-y); }
.section--teal-pale { background: var(--teal-pale); }
.section--dark {
    background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
    color: #fff;
}
.section--dark h2 { color: #fff; }
.section--dark h2::after { background: rgba(255, 255, 255, 0.85); }
.section--dark p { color: rgba(255, 255, 255, 0.9); }

/* Subtle decorative waves on light sections */
.section--waves { position: relative; overflow: hidden; }
.section--waves::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("bg-waves.webp") right bottom / 68% auto no-repeat;
    opacity: 0.10;
    pointer-events: none;
}
.section--waves > .container { position: relative; z-index: 1; }

/* Heading accent rule */
.section h2::after,
.page-head h1::after,
.hero h1::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    background: var(--teal);
    margin-top: 0.7rem;
    border-radius: 2px;
}


.section-intro {
    color: var(--muted);
    max-width: 62ch;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.note { color: var(--muted); margin-top: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: #e9f2f2; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250,249,246,0.9);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.4rem;
    flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 70px; width: auto; }
.main-nav { display: flex; gap: 1.5rem; }
.main-nav a {
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--teal-deep); }
.main-nav a.active { color: var(--teal-deep); border-bottom-color: var(--teal); }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    padding: 0.4rem 0.8rem;
    border: none;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}
.lang-btn.is-active { background: var(--teal); color: #fff; }

/* ---------- Hero (home: owner photo) ---------- */
.hero { position: relative; overflow: hidden; background: #eef4f4; }
.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: right center;
}
.hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.97) 0%,
        rgba(255,255,255,0.93) 32%,
        rgba(255,255,255,0.72) 50%,
        rgba(255,255,255,0.00) 72%);
}
.hero-inner {
    position: relative; z-index: 2;
    max-width: 560px;
    min-height: clamp(380px, 42vw, 540px);
    padding-block: clamp(2.5rem, 7vw, 5rem);
    display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { color: var(--ink); }
.hero-tagline {
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 700;
    color: var(--teal-deep);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}
.hero-lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--ink-soft); margin-bottom: 1rem; }
.hero-sub { color: var(--muted); max-width: 54ch; }
.hero-closing { font-weight: 600; color: var(--ink); margin-top: 1rem; }

/* ---------- Page head (inner pages: wave background) ---------- */
.page-head {
    position: relative;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.55) 48%, rgba(255,255,255,0.25) 100%),
        url("bg-waves.webp") center / cover no-repeat;
    border-bottom: 1px solid var(--line);
}
.page-head .container { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { color: var(--ink); margin-bottom: 0.4rem; }
.page-head p { color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* ---------- Services grid ---------- */
.service-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.service-grid li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem 1.1rem 3rem;
    position: relative;
    font-weight: 500;
}
.service-grid li::before {
    content: "✓";
    position: absolute;
    left: 1rem; top: 1.05rem;
    width: 1.4rem; height: 1.4rem;
    background: var(--teal-tint);
    color: var(--teal-deep);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ---------- Pillars (why choose us) ---------- */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.6rem 2rem;
    margin-top: 2rem;
}
.pillar { border-left: 3px solid var(--teal); padding-left: 1.1rem; }
.pillar h3 { margin-bottom: 0.3rem; color: var(--ink); }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Contact lines + tagline (on light CTA band) ---------- */
.contact-lines { margin: 1.4rem 0 0.4rem; font-size: 1.15rem; }
.contact-lines a {
    color: var(--ink); text-decoration: none; font-weight: 700;
    display: inline-block; margin-right: 1.5rem;
}
.contact-lines a:hover { color: var(--teal-deep); text-decoration: underline; }
.tagline {
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 700;
    color: var(--teal-deep);
    margin-top: 1.8rem;
}

/* ---------- Pull quote (trust) ---------- */
.pullquote {
    margin: 1.8rem 0 0;
    padding-left: 1.4rem;
    border-left: 4px solid var(--teal);
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    color: var(--teal-deep);
    line-height: 1.3;
}

/* ---------- Contact page ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.contact-details dl { margin: 0; }
.contact-details .row { margin-bottom: 1.1rem; }
.contact-details .label {
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: none;
    color: var(--teal-deep);
    margin-bottom: 0.1rem;
}
.contact-details .value { color: var(--ink); }
.contact-details a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-details a:hover { color: var(--teal-deep); text-decoration: underline; }

.contact-form {
    background: var(--teal-pale);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 4vw, 2.2rem);
}
.contact-form label {
    display: block;
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--ink-soft);
}
.contact-form .field { margin-bottom: 1.1rem; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    font: inherit;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
    border-color: var(--teal);
}
.contact-form button { width: 100%; }
.hidden { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.82); }
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.footer-name {
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.footer-slogan { color: #bfeceb; font-weight: 600; margin: 0; }
.site-footer h4 {
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.6);
    margin: 0 0 0.7rem;
}
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { margin: 0 0 0.4rem; }
.footer-social a { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom p {
    margin: 0;
    padding-block: 1.1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .header-inner { justify-content: center; }
    .brand { flex-basis: 100%; justify-content: center; }
    .main-nav { gap: 1.1rem; }
    .contact-layout { grid-template-columns: 1fr; }

    /* Hero stacks: photo on top, text below on white */
    .hero { background: var(--ivory); }
    .hero::before { display: none; }
    .hero-bg { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-position: center; }
    .hero-inner { max-width: none; min-height: 0; padding-block: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Service hub cards ---------- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-top: 2.2rem;
}
.hub-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(22,41,58,.09); border-color: var(--teal); }
.hub-card h3 { margin-bottom: .55rem; }
.hub-card p { color: var(--muted); margin: 0 0 1.2rem; }
.hub-card .more { margin-top: auto; font-family: "Manrope", sans-serif; font-weight: 700; color: var(--teal-deep); }

/* ---------- Blog listing ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem;
    margin-top: 2.2rem;
}
.post-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(22,41,58,.09); }
.post-date {
    font-family: "Manrope", sans-serif; font-size: .8rem; font-weight: 600;
    color: var(--teal-deep); letter-spacing: .03em; margin-bottom: .5rem;
}
.post-card h3 { margin-bottom: .5rem; }
.post-card p { color: var(--muted); margin: 0 0 1.1rem; }
.post-card .more { margin-top: auto; font-family: "Manrope", sans-serif; font-weight: 700; color: var(--teal-deep); }

/* ---------- Article ---------- */
.article { max-width: 72ch; }
.article .post-date { margin-bottom: 1.2rem; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; margin-bottom: .4rem; }
.article p { margin-bottom: 1.1rem; }
.article ul { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.article li { margin-bottom: .45rem; }
.back-link {
    display: inline-block; margin-top: 2.2rem;
    font-family: "Manrope", sans-serif; font-weight: 700;
    color: var(--teal-deep); text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Hero eyebrow + accent line ---------- */
.hero-eyebrow {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-bottom: .9rem;
}
.hero-accent {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    color: var(--teal-deep);
    margin-top: 1.4rem;
    letter-spacing: .01em;
}

/* ---------- Feature cards (grouped services) ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-top: 2.2rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--muted); margin: 0; }
