/* ==========================================================
   MK Associated Advocates - main stylesheet
   Colours are taken from the firm's company profile (PDF):
     rust brown  #843300  - main brand colour
     deep brown  #5A2200  - dark areas, footer
     gold        #F7CB2C  - highlights, buttons
     tan         #BE9682  - soft sections
     cream       #FFF6EF  - light backgrounds
     charcoal    #3E3A48  - body text
   ========================================================== */

:root {
    --mk-brown: #843300;
    --mk-brown-dark: #5A2200;
    --mk-brown-light: #A04A14;
    --mk-gold: #F7CB2C;
    --mk-gold-dark: #D9A90A;
    --mk-tan: #BE9682;
    --mk-tan-light: #E9D9CF;
    --mk-cream: #FFF6EF;
    --mk-text: #3E3A48;
    --mk-muted: #6E6672;
    --mk-white: #FFFFFF;
    --mk-radius: 14px;
    --mk-shadow: 0 10px 30px rgba(90, 34, 0, .12);

    /* Bootstrap colour overrides */
    --bs-primary: #843300;
    --bs-primary-rgb: 132, 51, 0;
    --bs-link-color: #843300;
    --bs-link-hover-color: #5A2200;
    --bs-body-color: #3E3A48;
    --bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: var(--mk-white);
    color: var(--mk-text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, .font-serif {
    font-family: Georgia, "Times New Roman", serif;   /* matches the serif headings in the profile */
    color: var(--mk-brown-dark);
}

a { color: var(--mk-brown); }
a:hover { color: var(--mk-brown-dark); }

::selection { background: var(--mk-gold); color: var(--mk-brown-dark); }

.text-brown { color: var(--mk-brown) !important; }
.text-gold { color: var(--mk-gold) !important; }
.bg-brown { background: var(--mk-brown) !important; }
.bg-cream { background: var(--mk-cream) !important; }
.bg-tan-light { background: var(--mk-tan-light) !important; }

/* honeypot field: hidden from people, visible to robots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn-mk {
    background: var(--mk-gold);
    color: var(--mk-brown-dark);
    border: 2px solid var(--mk-gold);
    font-weight: 600;
    border-radius: 50px;
    padding: .65rem 1.6rem;
    transition: all .2s ease;
}
.btn-mk:hover, .btn-mk:focus {
    background: var(--mk-gold-dark);
    border-color: var(--mk-gold-dark);
    color: var(--mk-brown-dark);
    transform: translateY(-2px);
}
.btn-mk-outline {
    background: transparent;
    color: var(--mk-white);
    border: 2px solid var(--mk-white);
    font-weight: 600;
    border-radius: 50px;
    padding: .6rem 1.5rem;
}
.btn-mk-outline:hover { background: var(--mk-white); color: var(--mk-brown); }
.btn-brown {
    background: var(--mk-brown);
    color: var(--mk-white);
    border: 2px solid var(--mk-brown);
    border-radius: 50px;
    font-weight: 600;
    padding: .55rem 1.4rem;
}
.btn-brown:hover { background: var(--mk-brown-dark); border-color: var(--mk-brown-dark); color: var(--mk-white); }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--mk-brown-dark);
    color: var(--mk-tan-light);
    font-size: .875rem;
}
.topbar a { color: var(--mk-tan-light); text-decoration: none; }
.topbar a:hover { color: var(--mk-gold); }

/* ---------- Navigation ---------- */
.navbar-mk {
    background: var(--mk-brown);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
}
.navbar-mk .navbar-brand img,
.footer .footer-logo,
.admin-sidebar .brand-logo {           /* white badge so the brown logo stands out on brown */
    height: 54px; width: auto;
    background: var(--mk-white);
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.admin-sidebar .brand-logo { height: 40px; padding: 3px 8px; }
.navbar-mk .brand-text { color: var(--mk-white); font-family: Georgia, serif; line-height: 1.1; }
.navbar-mk .brand-text small { color: var(--mk-gold); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; display: block; }
.navbar-mk .nav-link {
    color: rgba(255, 255, 255, .88);
    font-weight: 500;
    padding: .9rem .75rem !important;
    position: relative;
    white-space: nowrap;
}
.navbar-mk .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-mk .nav-link { padding: .9rem .5rem !important; font-size: .92rem; }
}
.navbar-mk .nav-link:hover, .navbar-mk .nav-link.active { color: var(--mk-gold); }
.navbar-mk .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: .55rem;
    height: 2px;
    background: var(--mk-gold);
}
.navbar-mk .dropdown-menu {
    border: 0;
    border-top: 3px solid var(--mk-gold);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--mk-shadow);
}
.navbar-mk .dropdown-item:hover { background: var(--mk-cream); color: var(--mk-brown); }
.navbar-mk .navbar-toggler { border-color: rgba(255, 255, 255, .5); }
.navbar-mk .navbar-toggler-icon { filter: invert(1); }

/* ---------- Hero slider ---------- */
.hero { position: relative; }
.hero .carousel-item { height: 78vh; min-height: 460px; }
.hero .carousel-item img { object-fit: cover; height: 100%; width: 100%; }
.hero .carousel-item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(90, 34, 0, .92) 0%, rgba(132, 51, 0, .70) 45%, rgba(132, 51, 0, .15) 100%);
}
.hero .carousel-caption {
    z-index: 2;
    text-align: left;
    left: 8%; right: 8%;
    top: 50%; bottom: auto;
    transform: translateY(-50%);
    max-width: 720px;
}
.hero .eyebrow {
    color: var(--mk-gold);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 600;
    font-size: .9rem;
}
.hero h1 { color: var(--mk-white); font-size: clamp(2rem, 4.5vw, 3.6rem); margin: .5rem 0 1.5rem; }
.hero .swoosh {
    position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
    height: 70px;
    background: var(--mk-white);
    clip-path: ellipse(75% 100% at 50% 100%);
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
    background: linear-gradient(120deg, var(--mk-brown-dark), var(--mk-brown) 60%, var(--mk-brown-light));
    color: var(--mk-white);
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-header::before {        /* gold swoosh like the profile cover */
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    right: -160px; top: -260px;
    border-radius: 50%;
    border: 28px solid var(--mk-gold);
    opacity: .35;
}
.page-header h1 { color: var(--mk-white); margin: 0; }
.page-header .breadcrumb { margin: .6rem 0 0; }
.page-header .breadcrumb a { color: var(--mk-gold); text-decoration: none; }
.page-header .breadcrumb-item.active, .page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--mk-tan-light); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow {
    display: inline-block;
    color: var(--mk-brown);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    font-weight: 700;
}
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .3rem 0 0; }
.section-title .bar {
    width: 70px; height: 4px; margin: 1rem auto 0;
    background: linear-gradient(90deg, var(--mk-brown), var(--mk-gold));
    border-radius: 4px;
}
.section-dark {
    background: var(--mk-brown);
    color: rgba(255, 255, 255, .9);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--mk-white); }
.section-dark .section-title .eyebrow { color: var(--mk-gold); }

/* ---------- Cards ---------- */
.card-mk {
    border: 0;
    border-radius: var(--mk-radius);
    box-shadow: var(--mk-shadow);
    overflow: hidden;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
    background: var(--mk-white);
}
.card-mk:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(90, 34, 0, .18); }
.card-mk .card-img-top { height: 210px; object-fit: cover; }
.card-mk .card-body { padding: 1.5rem; }
.card-mk h3, .card-mk h5 { font-size: 1.15rem; }
.card-mk .more { color: var(--mk-brown); font-weight: 600; text-decoration: none; }
.card-mk .more:hover { color: var(--mk-gold-dark); }

.service-icon {
    width: 58px; height: 58px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--mk-cream);
    color: var(--mk-brown);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .photo {
    width: 170px; height: 170px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    border: 5px solid var(--mk-gold);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(90, 34, 0, .25);
}
.team-card .role { color: var(--mk-brown); font-weight: 600; font-size: .95rem; }
.team-card .langs { color: var(--mk-muted); font-size: .85rem; }
.profile-photo {
    width: 100%; max-width: 340px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--mk-radius);
    border: 6px solid var(--mk-gold);
}

/* ---------- Stats / experience band ---------- */
.stat { text-align: center; }
.stat .num { font-family: Georgia, serif; font-size: 2.8rem; color: var(--mk-gold); font-weight: 700; line-height: 1; }
.stat .label { color: var(--mk-tan-light); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

/* ---------- Testimonials ---------- */
.testimonial {
    background: var(--mk-white);
    border-radius: var(--mk-radius);
    padding: 2rem;
    box-shadow: var(--mk-shadow);
    height: 100%;
    position: relative;
}
.testimonial .bi-quote { font-size: 2.6rem; color: var(--mk-gold); line-height: 1; }
.testimonial .who { font-weight: 700; color: var(--mk-brown); margin-top: 1rem; }

/* ---------- Values / mission ---------- */
.value-box {
    background: var(--mk-cream);
    border-left: 5px solid var(--mk-gold);
    border-radius: var(--mk-radius);
    padding: 1.8rem;
    height: 100%;
}
.value-box .bi { font-size: 2rem; color: var(--mk-brown); }

.mission-quote {
    background: var(--mk-brown);
    color: var(--mk-white);
    border-radius: var(--mk-radius);
    padding: 3rem;
    font-family: Georgia, serif;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    text-align: center;
    position: relative;
}
.mission-quote::after {
    content: "";
    display: block;
    width: 90px; height: 4px;
    background: var(--mk-gold);
    margin: 1.5rem auto 0;
    border-radius: 4px;
}

/* ---------- Partners ---------- */
.partner-logo {
    height: 70px; width: auto; max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .75;
    transition: all .2s ease;
}
.partner-logo:hover { filter: none; opacity: 1; }

/* ---------- Call to action ---------- */
.cta {
    background: linear-gradient(110deg, var(--mk-brown-dark), var(--mk-brown));
    border-radius: var(--mk-radius);
    color: var(--mk-white);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.cta::after {
    content: "";
    position: absolute; right: -80px; bottom: -120px;
    width: 300px; height: 300px;
    border: 22px solid var(--mk-gold);
    border-radius: 50%;
    opacity: .35;
}
.cta h2 { color: var(--mk-white); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 10px;
    padding: .7rem .9rem;
    border-color: var(--mk-tan-light);
}
.form-control:focus, .form-select:focus {
    border-color: var(--mk-gold);
    box-shadow: 0 0 0 .2rem rgba(247, 203, 44, .35);
}
.form-panel {
    background: var(--mk-white);
    border-radius: var(--mk-radius);
    box-shadow: var(--mk-shadow);
    padding: 2rem;
}

/* ---------- Article / insight text ---------- */
.article-body { font-size: 1.05rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-meta { color: var(--mk-muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.accordion-button:not(.collapsed) { background: var(--mk-cream); color: var(--mk-brown); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(247, 203, 44, .35); }

/* ---------- Footer ---------- */
.footer {
    background: var(--mk-brown-dark);
    color: var(--mk-tan-light);
    padding-top: 4rem;
}
.footer h5 { color: var(--mk-white); font-size: 1.05rem; margin-bottom: 1.2rem; }
.footer a { color: var(--mk-tan-light); text-decoration: none; }
.footer a:hover { color: var(--mk-gold); }
.footer .footer-links li { margin-bottom: .5rem; }
.footer .social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    margin-right: .4rem;
    font-size: 1.1rem;
}
.footer .social a:hover { background: var(--mk-gold); color: var(--mk-brown-dark); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 3rem;
    padding: 1.2rem 0;
    font-size: .875rem;
}

/* back-to-top button */
#toTop {
    position: fixed; right: 20px; bottom: 20px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--mk-gold);
    color: var(--mk-brown-dark);
    box-shadow: var(--mk-shadow);
    display: none;
    z-index: 999;
}
#toTop.show { display: block; }

/* ---------- Admin area ---------- */
.admin-body { background: #F7F1EC; }
.admin-sidebar {
    background: var(--mk-brown-dark);
    min-height: 100vh;
}
.admin-sidebar .nav-link {
    color: var(--mk-tan-light);
    border-radius: 8px;
    margin-bottom: .2rem;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: var(--mk-brown); color: var(--mk-gold); }
.admin-sidebar .brand { color: var(--mk-white); font-family: Georgia, serif; }
.admin-card { border: 0; border-radius: var(--mk-radius); box-shadow: 0 4px 16px rgba(90, 34, 0, .08); }
.admin-stat .bi { font-size: 2rem; color: var(--mk-brown); }
.table-mk thead th { background: var(--mk-brown); color: var(--mk-white); border: 0; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.login-page {
    min-height: 100vh;
    background: linear-gradient(120deg, var(--mk-brown-dark), var(--mk-brown));
}

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
    .navbar-mk .nav-link.active::after { display: none; }
    .hero .carousel-item { height: 70vh; }
    .section { padding: 3.5rem 0; }
}
@media (max-width: 575.98px) {
    .navbar-mk .navbar-brand img { height: 44px; }
    .hero .carousel-caption { left: 6%; right: 6%; }
    .cta, .mission-quote { padding: 2rem 1.4rem; }
}
