/* =====================================================================
   MFAG Solutions — site styles (loaded after Bootstrap 5.3)
   Palette taken from the logo: navy block + green outline.
   ===================================================================== */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
    /* Colour tokens */
    --navy: #03223F;          /* logo block */
    --navy-deep: #02182D;
    --green: #1E7A50;         /* logo green, darkened for 4.5:1 text contrast on white */
    --green-bright: #3DB57A;  /* decorative use on navy only */
    --green-tint: #E6F2EC;
    --paper: #F3F6F5;
    --line: #D6E0DC;
    --ink: #14232D;
    --muted: #4F5F68;
    --white: #FFFFFF;
    --wa: #147A3C;            /* WhatsApp green, darkened for 4.5:1 with white text */
    --wa-dark: #0F6331;

    /* Type and spacing */
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --space-section: clamp(4rem, 8vw, 7rem);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Bootstrap hooks */
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--white);
    --bs-link-color: var(--green);
    --bs-link-color-rgb: 30, 122, 80;
    --bs-link-hover-color: var(--navy);
    --bs-link-hover-color-rgb: 3, 34, 63;
    --bs-border-color: var(--line);
    --bs-focus-ring-color: rgba(30, 122, 80, .35);
}

html { scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--navy); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); margin-bottom: .75rem; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { max-width: 68ch; }

a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 2000;
    background: var(--white); color: var(--navy); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ Buttons */
.btn { --bs-btn-font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: var(--radius-sm); }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: 1.02rem; }

.btn-primary-mfag {
    --bs-btn-color: var(--white); --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green);
    --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy);
    --bs-btn-active-bg: var(--navy-deep); --bs-btn-active-border-color: var(--navy-deep); --bs-btn-active-color: var(--white);
}
.btn-outline-mfag {
    --bs-btn-color: var(--navy); --bs-btn-bg: transparent; --bs-btn-border-color: var(--navy);
    --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy);
    --bs-btn-active-bg: var(--navy-deep); --bs-btn-active-color: var(--white);
    --bs-btn-disabled-color: var(--navy); --bs-btn-disabled-border-color: var(--navy);
    border-width: 2px;
}
.btn-quiet {
    --bs-btn-color: var(--navy); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--green); --bs-btn-hover-bg: transparent; --bs-btn-hover-border-color: transparent;
    text-decoration: underline; text-underline-offset: .25em;
}
.btn-wa {
    --bs-btn-color: var(--white); --bs-btn-bg: var(--wa); --bs-btn-border-color: var(--wa);
    --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--wa-dark); --bs-btn-hover-border-color: var(--wa-dark);
    --bs-btn-active-bg: var(--wa-dark); --bs-btn-active-color: var(--white);
}

/* ------------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--navy); }
.site-header .navbar { --bs-navbar-padding-y: .7rem; }
.navbar-brand img { height: 40px; width: auto; display: block; }
.site-header .nav-link {
    color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .98rem;
    padding: .5rem .85rem !important; border-radius: var(--radius-sm);
}
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { color: var(--white); background: rgba(255, 255, 255, .08); }
.site-header .btn-wa { --bs-btn-padding-y: .5rem; --bs-btn-padding-x: 1rem; }

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .35); padding: .55rem .6rem; border-radius: var(--radius-sm);
    display: inline-flex; flex-direction: column; gap: 5px;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: .75rem 0 1rem; }
    .site-header .nav-link { padding: .75rem .5rem !important; }
    .site-header .btn-wa { margin-top: .75rem; width: 100%; }
}

/* ------------------------------------------------------------------ Hero */
.hero {
    background: var(--paper);
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
    max-width: 17ch;
    margin-bottom: 1.25rem;
}
.hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.assurances { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: .55rem; }
.assurances li { display: flex; gap: .65rem; align-items: baseline; font-weight: 600; color: var(--ink); font-size: .98rem; }
.assurances li::before {
    content: ""; flex-shrink: 0; width: .7rem; height: .7rem; transform: translateY(.05rem);
    border: 2px solid var(--green); background: var(--green-tint); border-radius: 2px;
}

/* Device composition — the one bold element on the page */
.hero-visual { position: relative; margin: 0; padding: 0 0 0 1rem; }
.device-laptop {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px -30px rgba(3, 34, 63, .45);
    overflow: hidden;
    margin-right: 18%;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: var(--navy); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.browser-bar em { font-style: normal; color: rgba(255, 255, 255, .75); font-size: .78rem; margin-left: .6rem; font-weight: 600; }
.app { padding: 1.1rem 1.1rem 1.25rem; }
.app-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.app-head strong { color: var(--navy); font-size: 1rem; }
.app-count { font-size: .8rem; color: var(--muted); font-weight: 600; }
.app-list { list-style: none; padding: 0; margin: 0; }
.app-list li {
    display: grid; grid-template-columns: 3.2rem 1fr auto; grid-template-areas: "t n p" "t s p";
    column-gap: .75rem; align-items: center;
    padding: .6rem 0; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.3;
}
.app-list time { grid-area: t; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.app-list b { grid-area: n; font-weight: 600; }
.app-list span { grid-area: s; color: var(--muted); font-size: .8rem; }
.pill { grid-area: p; font-style: normal; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 99px; }
.pill.ok { background: var(--green-tint); color: var(--green); }
.pill.new { background: #FFF1D6; color: #8A5300; }

.device-phone {
    position: absolute; right: 0; bottom: -1.5rem; width: 38%; max-width: 210px;
    background: var(--white); border: 7px solid var(--navy-deep); border-radius: 28px;
    padding: 1.4rem .85rem 1rem;
    box-shadow: 0 30px 50px -20px rgba(3, 34, 63, .5);
}
.phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 6px; border-radius: 6px; background: var(--navy-deep); }
.phone-shop { margin: 0; font-size: .7rem; font-weight: 600; color: var(--muted); }
.phone-title { margin: 0 0 .6rem; font-weight: 800; color: var(--navy); font-size: .98rem; line-height: 1.2; }
.phone-days { display: flex; gap: .3rem; margin-bottom: .6rem; }
.phone-days span { flex: 1; text-align: center; font-size: .7rem; font-weight: 600; padding: .3rem 0; border-radius: 6px; background: var(--paper); color: var(--muted); }
.phone-days .on { background: var(--navy); color: var(--white); }
.phone-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-bottom: .75rem; }
.phone-slots span { text-align: center; font-size: .68rem; font-weight: 600; padding: .35rem 0; border-radius: 6px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.phone-slots .taken { color: #5E6B72; text-decoration: line-through; background: var(--paper); border-color: transparent; }
.phone-slots .on { background: var(--green); border-color: var(--green); color: var(--white); }
.phone-btn { display: block; text-align: center; background: var(--green); color: var(--white); font-size: .74rem; font-weight: 600; padding: .5rem; border-radius: 8px; }
.hero-visual figcaption { margin-top: 1.25rem; padding-right: 42%; font-size: .86rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
    .device-laptop { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .device-phone { animation: rise .7s .18s cubic-bezier(.2, .7, .2, 1) both; }
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 575.98px) {
    .hero-visual { padding-left: 0; }
    .device-laptop { margin-right: 22%; }
    .device-phone { width: 44%; border-width: 5px; border-radius: 22px; padding: 1.1rem .6rem .8rem; }
    .hero-visual figcaption { padding-right: 46%; }
    .app-list li:nth-child(n+4) { display: none; }
    .app-list span { display: none; }
    .app-list li { grid-template-areas: "t n p"; }
}

/* ------------------------------------------------------------------ Sections */
.section { padding: var(--space-section) 0; }
.section-tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.text-muted-mfag { color: var(--muted); }

/* Services: ruled two-column list, not cards */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); }
.service { border-top: 2px solid var(--navy); padding: 1.4rem 0 2rem; }
.service h3 { margin-bottom: .5rem; }
.service p { color: var(--muted); margin: 0; }
.services-note { margin: 1rem 0 0; font-weight: 600; }
@media (max-width: 767.98px) { .services { grid-template-columns: 1fr; } }

/* Work */
.work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.work-item {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 1.5rem; display: flex; flex-direction: column;
}
.work-meta { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; font-size: .82rem; font-weight: 600; }
.work-kind { color: var(--green); }
.work-label { color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: .05rem .6rem; }
.work-item h3 { margin-bottom: .5rem; }
.work-item p { color: var(--muted); font-size: .98rem; flex-grow: 1; }
.work-link { font-weight: 600; align-self: flex-start; }
@media (max-width: 991.98px) { .work-list { grid-template-columns: 1fr; } }

/* About */
.about-photo { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--navy); }

/* Process — a real sequence, so it is numbered */
.process { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.process li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.process li::before {
    content: counter(step); position: absolute; top: 0; left: 0;
    width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
    background: var(--navy); color: var(--white); font-weight: 800; border-radius: var(--radius-sm);
}
.process li:not(:last-child)::after { content: ""; position: absolute; top: 1.15rem; left: 3.1rem; right: -1.25rem; height: 2px; background: var(--line); }
.process h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.process p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 991.98px) {
    .process { grid-template-columns: 1fr 1fr; }
    .process li::after { display: none; }
}
@media (max-width: 575.98px) { .process { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Pricing */
.plan {
    position: relative; height: 100%; display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 2rem 1.75rem;
}
.plan-featured { border: 2px solid var(--green); box-shadow: 0 24px 48px -32px rgba(3, 34, 63, .5); }
.plan-flag {
    position: absolute; top: -.85rem; left: 1.5rem; margin: 0;
    background: var(--green); color: var(--white); font-size: .8rem; font-weight: 600; padding: .2rem .75rem; border-radius: 99px;
}
.plan h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: .75rem; }
.plan-for { color: var(--muted); font-size: .96rem; min-height: 3.2em; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex-grow: 1; }
.plan-features li { position: relative; padding: .5rem 0 .5rem 1.6rem; border-top: 1px solid var(--line); font-size: .96rem; }
.plan-features li::before {
    content: ""; position: absolute; left: .15rem; top: .95rem; width: .75rem; height: .4rem;
    border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.care {
    margin-top: 2rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-md);
    background: var(--navy); color: rgba(255, 255, 255, .85);
}
.care h3 { color: var(--white); margin-bottom: .4rem; }
.care h3 span { color: var(--green-bright); margin-left: .5rem; }
.care p { margin: 0; max-width: 85ch; }
.pricing-terms { margin: 1.25rem 0 0; font-size: .92rem; color: var(--muted); }

/* FAQ */
.faq { --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(30, 122, 80, .3);
       --bs-accordion-active-bg: var(--white); --bs-accordion-active-color: var(--navy); --bs-accordion-bg: var(--white); }
.faq .accordion-header { margin: 0; }
.faq .accordion-button { font-weight: 600; font-size: 1.02rem; color: var(--navy); letter-spacing: 0; }
.faq .accordion-body { color: var(--muted); }

/* Contact */
.contact-direct { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .75rem; }
.contact-direct a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--navy); text-decoration: none; word-break: break-all; }
.contact-direct a:hover { color: var(--green); text-decoration: underline; }
.enquiry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(1.25rem, 3vw, 2rem); }
.enquiry .form-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.enquiry .optional { font-weight: 400; color: var(--muted); }
.enquiry .form-control, .enquiry .form-select { border-color: #BCCAC4; padding: .65rem .8rem; }
.enquiry .form-control:focus, .enquiry .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(30, 122, 80, .25); }
.enquiry .form-check-label { font-size: .93rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-actions .btn { flex: 1 1 14rem; }
.form-status { border-radius: var(--radius-sm); padding: .85rem 1rem; font-weight: 600; }
.form-status.is-ok { background: var(--green-tint); color: #145537; border: 1px solid #A9D3BE; }
.form-status.is-error { background: #FDECEC; color: #8F1D1D; border: 1px solid #F1B9B9; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 4rem 0 2rem; }
.site-footer img { height: 40px; width: auto; }
.footer-note { margin-top: 1rem; max-width: 36ch; }
.footer-title { color: var(--white); font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-links a { color: rgba(255, 255, 255, .8); text-decoration: none; word-break: break-word; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--green-bright); }
.legal { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; max-width: none; }

/* Floating WhatsApp */
.wa-float {
    position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 1040;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: var(--wa); color: var(--white); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { background: var(--wa-dark); color: var(--white); }

/* Privacy page */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.doc .lang-switch { display: flex; gap: 1rem; margin: 1rem 0 2rem; font-weight: 600; }
.doc .updated { color: var(--muted); }
.doc section + section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
