/* ------------------------------------------------------------------------
 * The company website on 3fenterprises.org — resources/views/site/home.php.
 * Self-contained: the ERP's stylesheets and theme toggle are not used here.
 * --------------------------------------------------------------------- */

:root {
    --ink: #101418;
    --ink-soft: #3d4650;
    --muted: #6b7681;
    --line: #e3e7eb;
    --paper: #ffffff;
    --tint: #f4f6f8;
    --accent: #f2b418;
    --accent-ink: #1a1400;
    --accent-deep: #d99b05;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(16, 20, 24, 0.08);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.site {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0; }

.wrap {
    width: min(1120px, 100% - 32px);
    margin-inline: auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.lead, .section__lead {
    max-width: 60ch;
    margin-top: 16px;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

/* ---------------------------------------------------------- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-deep); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--ghost { padding: 9px 18px; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

/* ----------------------------------------------------------- header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.site-brand__logo { width: 44px; height: 44px; border-radius: 50%; }
.site-brand__inc { font-weight: 500; color: var(--muted); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
    font-size: 0.95rem;
}

.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: var(--ink); }

.site-nav__toggle { position: absolute; opacity: 0; pointer-events: none; }

.site-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
}

.site-nav__burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* ------------------------------------------------------------- hero ---- */

.hero {
    padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 64px);
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(242, 180, 24, 0.18), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--tint) 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__points {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.hero__points li {
    position: relative;
    padding-left: 26px;
}

.hero__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--accent-deep);
}

.hero__figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(-1deg);
}

.hero__figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* --------------------------------------------------------- sections ---- */

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tint { background: var(--tint); }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.card {
    position: relative;
    padding: 28px 24px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card__index {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent-deep);
}

.card p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tint);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 28px 32px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
}

.callout h3 { color: #fff; }
.callout p { margin-top: 8px; max-width: 64ch; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }

/* ------------------------------------------------------------ steps ---- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    padding: 28px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.step__number {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
}

.step p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }

/* -------------------------------------------------------- companies ---- */

.companies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.company {
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.company__logo {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.company__logo--vicada { border-radius: 12px; }
.company p { margin-top: 10px; color: var(--ink-soft); }

/* --------------------------------------------------------- branches ---- */

.branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.branch {
    padding: 26px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.branch p { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; }
.branch__address { color: var(--ink-soft); }
.branch a { text-decoration: none; font-weight: 600; color: var(--ink); }
.branch a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- contact ---- */

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.contact__ways { display: grid; gap: 14px; }

.contact__way {
    display: grid;
    gap: 4px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact__way:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact__way--static:hover { border-color: var(--line); transform: none; }

.contact__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.contact__value { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact__way--static .contact__value { font-weight: 500; color: var(--ink-soft); font-size: 1rem; }

.contact__way--list { gap: 6px; }
.contact__way--list:hover { border-color: var(--line); transform: none; }
.contact__way--list a.contact__value { text-decoration: none; }
.contact__way--list a.contact__value:hover { text-decoration: underline; }

/* ----------------------------------------------------------- footer ---- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.site-footer__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__contact a { font-weight: 500; }
.site-footer a { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* ------------------------------------------------------- responsive ---- */

@media (max-width: 900px) {
    .hero__grid, .contact, .companies { grid-template-columns: 1fr; }
    .hero__figure { transform: none; }
    .cards { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .callout { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
    .site-nav__burger { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .site-nav .btn { margin-top: 12px; border-bottom: 2px solid var(--line); }

    .site-nav__toggle:checked ~ .site-nav { display: flex; }

    .cards, .steps { grid-template-columns: 1fr; }
    .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card, .contact__way { transition: none; }
}
