/* =========================================================
   MASINA ENT MULTI-PAGE WEBSITE
   Palette matched to the current warm consultancy style:
   charcoal, cream, warm gold, muted business neutrals.
========================================================= */

:root {
    --primary: #b98245;
    --primary-dark: #7a4f2a;
    --secondary: #2b2723;
    --accent: #d6a15f;
    --dark: #171513;
    --text: #4f463f;
    --muted: #756b63;
    --light: #f8f2ea;
    --cream: #fff8ef;
    --white: #ffffff;
    --border: #eadfd2;
    --shadow: 0 22px 55px rgba(43, 39, 35, 0.15);
    --shadow-soft: 0 12px 30px rgba(43, 39, 35, 0.09);
    --radius: 24px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

.section {
    padding: 92px 0;
}

.section-sm {
    padding: 64px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.17em;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1 {
    color: var(--white);
    font-size: clamp(2.55rem, 5.8vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
    margin-bottom: 26px;
}

h2 {
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
    margin-bottom: 20px;
}

h3 {
    color: var(--dark);
    font-size: 1.34rem;
    line-height: 1.22;
}

p {
    margin-bottom: 18px;
}

.lead {
    font-size: 1.13rem;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 850;
    border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(185, 130, 69, .28);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    border-color: rgba(255, 255, 255, .36);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .15);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--dark);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(185, 130, 69, .08);
}

.btn-outline-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, .46);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .13);
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
    font-weight: 900;
}

.text-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform .2s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 248, 239, .94);
    border-top: 5px solid var(--primary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: 260px 1fr auto;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: 210px;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.main-nav a {
    min-height: 86px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--dark);
    font-weight: 850;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-left: 1px solid var(--border);
    transition: background .2s ease, color .2s ease;
}

.main-nav a:last-child {
    border-right: 1px solid var(--border);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-dark);
    background: rgba(185, 130, 69, .08);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
}

.phone-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--dark);
    color: var(--white);
    font-weight: 850;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - 91px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(23,21,19,.93), rgba(43,39,35,.76)),
        url("https://masinaent.com/wp-content/uploads/2023/03/8_About_Business_Consulting_Company-Hero-Img_1.jpg") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -160px -240px auto;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(214, 161, 95, .28);
    filter: blur(35px);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .75fr);
    gap: 58px;
    align-items: center;
    padding: 88px 0;
}

.hero-lead {
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-panel {
    border-radius: 34px;
    padding: 34px;
    background: rgba(255, 248, 239, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.hero-panel p {
    color: rgba(255, 255, 255, .74);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 26px;
}

.stat {
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
}

.stat strong {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
}

.stat span {
    display: block;
    color: rgba(255, 255, 255, .66);
    font-size: .9rem;
}

/* Page header */
.page-hero {
    padding: 86px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(214,161,95,.2), transparent 30%),
        linear-gradient(135deg, var(--dark), var(--secondary));
}

.page-hero h1 {
    max-width: 870px;
}

.page-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, .76);
    font-size: 1.13rem;
}

/* Shared blocks */
.trust-banner {
    background: var(--dark);
    color: var(--white);
}

.trust-inner {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 28px;
    align-items: center;
    padding: 28px 0;
}

.trust-inner h2 {
    color: var(--white);
    font-size: clamp(1.28rem, 3vw, 2rem);
    margin-bottom: 0;
}

.trust-inner p {
    color: rgba(255, 255, 255, .68);
    margin-bottom: 0;
}

.section-heading {
    max-width: 790px;
    margin-bottom: 46px;
}

.cards-3,
.cards-2,
.cards-4 {
    display: grid;
    gap: 24px;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(185, 130, 69, .45);
}

.icon-box {
    width: 62px;
    height: 62px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    background: rgba(185, 130, 69, .11);
    color: var(--primary-dark);
    margin-bottom: 22px;
    font-weight: 950;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.card h3 {
    margin-bottom: 8px;
}

.card h4 {
    margin: 0 0 14px;
    color: var(--primary-dark);
    font-size: 1rem;
}

.card p,
.card li {
    color: var(--muted);
}

.check-list {
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-dark);
    font-weight: 950;
}

.split {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.image-stack {
    position: relative;
    min-height: 480px;
}

.image-stack img {
    position: absolute;
    border-radius: 28px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.image-stack img:nth-child(1) {
    width: 74%;
    height: 360px;
    left: 0;
    top: 0;
}

.image-stack img:nth-child(2) {
    width: 56%;
    height: 260px;
    right: 0;
    bottom: 0;
    border: 8px solid var(--cream);
}

.advantage-visual {
    min-height: 480px;
    border-radius: 34px;
    padding: 34px;
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 161, 95, .26), transparent 30%),
        radial-gradient(circle at 78% 72%, rgba(185, 130, 69, .25), transparent 28%),
        linear-gradient(145deg, #171513, #2b2723);
    position: relative;
    display: grid;
    align-content: center;
    gap: 46px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.advantage-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 42px 42px;
}

.connection-card {
    position: relative;
    z-index: 1;
    width: min(100%, 330px);
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 248, 239, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(16px);
}

.connection-card:nth-child(3) {
    margin-left: auto;
}

.connection-card span {
    display: block;
    color: rgba(255, 255, 255, .65);
    font-size: .85rem;
    margin-bottom: 4px;
}

.connection-card strong {
    color: var(--white);
    font-size: 1.42rem;
}

.connection-line {
    position: absolute;
    width: 62%;
    height: 3px;
    left: 19%;
    top: 50%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: rotate(-13deg);
    box-shadow: 0 0 35px rgba(214, 161, 95, .45);
}

/* Values and slider */
.values {
    background: var(--light);
}

.value-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: grid;
    gap: 16px;
}

.value-list li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.value-list span {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(185, 130, 69, .13);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-weight: 950;
}

.value-list h3 {
    margin-bottom: 4px;
    font-size: 1.08rem;
}

.value-list p {
    margin-bottom: 0;
    color: var(--muted);
}

.team-slider {
    position: relative;
    min-height: 450px;
    border-radius: 34px;
    background: var(--dark);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.team-slide {
    position: absolute;
    inset: 0;
    padding: 42px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .35s ease, transform .35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}

.team-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23,21,19,.9), rgba(23,21,19,.28));
}

.team-slide > * {
    position: relative;
    z-index: 1;
}

.team-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.team-slide h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.team-slide p {
    color: rgba(255, 255, 255, .76);
    font-size: 1.05rem;
}

.slider-controls {
    position: absolute;
    right: 26px;
    top: 26px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.faq-question {
    width: 100%;
    padding: 22px 24px;
    border: 0;
    background: transparent;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    cursor: pointer;
}

.faq-question strong {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(185, 130, 69, .12);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    transition: transform .2s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.faq-answer p {
    padding: 0 24px 22px;
    margin-bottom: 0;
    color: var(--muted);
}

.faq-item.active .faq-answer {
    max-height: 260px;
}

.faq-item.active .faq-question strong {
    transform: rotate(45deg);
}

/* Forms */
.form-card {
    background: var(--white);
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 34px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--dark);
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--cream);
    padding: 14px 15px;
    color: var(--dark);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
    min-height: 135px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(185, 130, 69, .12);
}

.form-note {
    color: var(--muted);
    font-size: .92rem;
}

.form-message {
    display: none;
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(185, 130, 69, .12);
    color: var(--primary-dark);
    font-weight: 850;
}

.form-message.visible {
    display: block;
}

.contact-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.contact-list li {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.contact-list strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
}

/* Final CTA */
.final-cta {
    padding: 86px 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(214, 161, 95, .25), transparent 25%),
        radial-gradient(circle at 85% 70%, rgba(185, 130, 69, .26), transparent 28%),
        linear-gradient(135deg, #171513, #2b2723);
}

.final-cta-inner {
    text-align: center;
    max-width: 890px;
}

.final-cta .eyebrow {
    color: var(--accent);
}

.final-cta h2 {
    color: var(--white);
}

.final-cta p {
    color: rgba(255, 255, 255, .74);
    font-size: 1.08rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* Footer */
.site-footer {
    background: #0f0e0d;
    color: rgba(255, 255, 255, .72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr .75fr;
    gap: 28px;
    padding: 62px 0;
}

.footer-col {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.footer-col strong {
    color: var(--white);
}

.footer-col a {
    color: rgba(255, 255, 255, .88);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-links {
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
    display: grid;
    gap: 9px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: .92rem;
}

/* Utility */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
    .header-inner {
        grid-template-columns: 230px 1fr auto;
    }

    .main-nav a {
        padding: 0 10px;
        font-size: .8rem;
    }
}

@media (max-width: 980px) {
    .section {
        padding: 74px 0;
    }

    .header-inner {
        min-height: 78px;
        grid-template-columns: 1fr auto;
    }

    .logo img {
        width: 190px;
    }

    .nav-toggle {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .main-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 94px;
        display: grid;
        justify-content: stretch;
        gap: 0;
        padding: 14px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: var(--shadow);
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }

    .main-nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        min-height: auto;
        padding: 14px 12px;
        border: 0;
        border-radius: 14px;
        justify-content: flex-start;
    }

    .main-nav a:last-child {
        border-right: 0;
    }

    .hero-grid,
    .trust-inner,
    .split,
    .cards-2 {
        grid-template-columns: 1fr;
    }

    .cards-3,
    .cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        padding: 76px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    h1 {
        font-size: clamp(2.45rem, 13vw, 3.6rem);
    }

    .cards-3,
    .cards-4 {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-actions,
    .form-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .card,
    .form-card,
    .footer-col {
        padding: 24px;
    }

    .image-stack {
        min-height: 390px;
    }

    .image-stack img:nth-child(1) {
        width: 82%;
        height: 285px;
    }

    .image-stack img:nth-child(2) {
        width: 66%;
        height: 215px;
        border-width: 6px;
    }

    .advantage-visual {
        min-height: 390px;
        padding: 22px;
    }

    .value-list li {
        grid-template-columns: 1fr;
    }

    .team-slider {
        min-height: 380px;
    }

    .team-slide {
        padding: 28px;
    }
}
