/* ═══════════════════════════════════════════
   SEMOLA — Shared Stylesheet
   All pages link this file. Page-specific CSS stays inline.
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --orange: #e9501c;
    --orange-light: #ff7b4a;
    --orange-glow: rgba(233, 80, 28, 0.08);
    --dark: #1a1a2e;
    --dark-mid: #22223a;
    --white: #fafaf8;
    --grey: #4a4a5a;
    --grey-light: #f2f2f4;
    --grey-border: #e2e2e6;
    --grey-mid: #6a6a78;
    --green: #2d8a4e;

    --font-display: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --header-h: 72px;
    --header-h-compact: 56px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--grey);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 5px 5px;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

button { border: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
}

.section-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   LINKS & BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 13px 28px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--orange);
    color: #fff;
}
.btn--primary:hover {
    background: var(--orange-light);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

.btn--outline {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--grey-border);
}
.btn--outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn--sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.link-arrow {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.link-arrow:hover { gap: 10px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.4s ease;
}

.header.scrolled { height: var(--header-h-compact); }

.header.scrolled::before {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.header__logo img {
    height: 28px;
    width: auto;
    transition: height 0.3s;
    filter: brightness(0) invert(1);
}
.header.scrolled .header__logo img { height: 24px; }

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__nav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.header__nav a:hover { color: #fff; }

.header__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.3s;
}
.header__phone:hover { color: #fff; }
.header__phone svg { width: 15px; height: 15px; color: var(--orange); }

.header__contact-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    transition: all 0.3s;
}
.header__contact-link:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.06);
}

/* Mobile controls */
.header__mobile-controls {
    display: none;
    align-items: center;
    gap: 8px;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 11px;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: all 0.3s; transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed; inset: 0;
    background: var(--dark);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    transition: opacity 0.4s;
}
.mobile-nav.open { display: flex; opacity: 1; }
.mobile-nav a {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.8rem;
    color: #fff; transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav__phone {
    display: flex; align-items: center; gap: 10px;
    color: var(--orange); font-weight: 600; font-size: 1.1rem;
    margin-top: 20px;
}

/* ═══════════════════════════════════════════
   PAGE HERO (internal pages)
   ═══════════════════════════════════════════ */
.page-hero {
    background: var(--dark);
    padding: calc(var(--header-h) + 48px) 0 48px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, rgba(233,80,28,0.06) 40%, rgba(233,80,28,0.03) 60%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(233,80,28,0.12) 0%, transparent 50%),
        linear-gradient(to bottom right, #1a1a2e, #16162a 40%, #121228);
}

.page-hero--img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-hero--img::before {
    background:
        linear-gradient(135deg, rgba(26,26,46,0.82) 0%, rgba(18,18,40,0.92) 100%),
        radial-gradient(ellipse at 80% 20%, rgba(233,80,28,0.18) 0%, transparent 55%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color 0.3s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.4; }

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 12px;
}

.page-hero__sub {
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CTA CONTACT (shared across service pages)
   ═══════════════════════════════════════════ */
.cta-contact {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.cta-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, rgba(233,80,28,0.06) 40%, rgba(233,80,28,0.03) 60%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(233,80,28,0.12) 0%, transparent 50%),
        linear-gradient(to bottom right, #1a1a2e, #16162a 40%, #121228);
}

.cta-contact__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.cta-contact__inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #fff;
    margin-bottom: 16px;
}

.cta-contact__inner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-contact__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    background: var(--dark);
    padding: 64px 0 0;
    color: rgba(255,255,255,0.7);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__brand-logo { margin-bottom: 16px; }
.footer__brand-logo img {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__brand-address {
    font-size: 0.82rem;
    line-height: 1.8;
}

.footer__col h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s;
}
.footer__col ul li a:hover { color: var(--orange); }

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}
.footer__contact-item svg {
    width: 16px; height: 16px;
    color: var(--orange);
    flex-shrink: 0;
}
.footer__contact-item a {
    color: rgba(255,255,255,0.65);
    transition: color 0.3s;
}
.footer__contact-item a:hover { color: var(--orange); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.78rem;
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
}
.footer__bottom-links a {
    color: rgba(255,255,255,0.65);
    transition: color 0.3s;
}
.footer__bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════
   MOBILE FAB
   ═══════════════════════════════════════════ */
.fab {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    transition: bottom 0.3s ease, transform 0.3s ease;
    z-index: 900;
    background: var(--dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    width: 52px; height: 52px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.fab:active { transform: scale(0.93); }
.fab svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════
   TRUST STRIP (home, post-hero)
   ═══════════════════════════════════════════ */
.trust-strip {
    padding: 48px 0;
    background: var(--grey-light);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 24px;
    gap: 8px;
}
.trust-stat + .trust-stat {
    border-left: 1px solid rgba(0,0,0,0.08);
}
.trust-stat__icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--orange);
}
.trust-stat__icon svg { width: 28px; height: 28px; }
.trust-stat__value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
}
.trust-stat__desc {
    font-size: 0.92rem;
    color: var(--grey);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Shared
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cta-contact { padding: 64px 0; }
}

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
        --header-h-compact: 52px;
    }

    .header__nav,
    .header__right { display: none; }
    .header__mobile-controls { display: flex; }

    .header__phone-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px; height: 44px;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        color: #fff;
    }
    .header__phone-mobile svg { width: 17px; height: 17px; }

    .page-hero {
        padding: calc(var(--header-h) + 32px) 0 36px;
    }
    .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }

    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom {
        flex-direction: column; gap: 12px; text-align: center;
    }

    .fab { display: flex; }
    .footer { padding-bottom: 80px; }

    .cta-contact { padding: 48px 0; }
    .cta-contact__actions { flex-direction: column; align-items: center; }
    .cta-contact__actions .btn { width: 100%; justify-content: center; }

    .trust-strip { padding: 32px 0; }
    .trust-strip__grid { grid-template-columns: 1fr; gap: 4px; }
    .trust-stat { padding: 16px 8px; }
    .trust-stat + .trust-stat {
        border-left: 0;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
}

@media (min-width: 769px) {
    .header__mobile-controls { display: none; }
}

/* ═══════════════════════════════════════════
   A11Y
   ═══════════════════════════════════════════ */
:focus { outline: none; }

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: 3px;
}

.header__nav a:focus-visible,
.header__phone:focus-visible,
.header__contact-link:focus-visible,
.mobile-nav a:focus-visible,
.footer a:focus-visible,
.breadcrumb a:focus-visible,
.btn--ghost:focus-visible {
    outline-color: var(--orange-light);
    outline-offset: 4px;
}

.btn:focus-visible {
    outline-offset: 4px;
}

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