@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* =========================================================
   IMPANDE YABATHAKATHI – COMPLETE WEBSITE STYLESHEET
   ========================================================= */

:root {
    --wine: #651b35;
    --wine2: #842d4c;
    --wine-dark: #421125;
    --grey: #77777d;
    --ink: #29272b;
    --muted: #6e6a70;
    --ivory: #f7f4f1;
    --line: #e8e1e2;
    --white: #ffffff;

    --shadow:
        0 18px 55px rgba(44, 23, 32, 0.07);

    --shadow-small:
        0 8px 25px rgba(44, 23, 32, 0.06);

    --radius: 12px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    background: #ffffff;
}

img {
    max-width: 100%;
}

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

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

.wrap {
    width: min(1160px, 92%);
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.topline {
    background: #29272b;
    color: #ddd;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topinner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.sitehead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 5px 25px rgba(36, 19, 27, 0.04);
}

.nav {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand b {
    display: block;
    font-size: 14px;
    letter-spacing: 0.09em;
    color: var(--wine);
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 0.17em;
    color: #777;
}

.links {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 13px;
    font-weight: 600;
}

.links a {
    transition: color 0.2s ease;
}

.links a:hover {
    color: var(--wine);
}

.links a.active {
    color: var(--wine);
}

.navcta,
.btn {
    background: var(--wine);
    color: #ffffff !important;
    padding: 12px 19px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 700;
    border: 1px solid var(--wine);
    transition: all 0.2s ease;
    cursor: pointer;
}

.navcta:hover,
.btn:hover {
    background: var(--wine-dark);
    border-color: var(--wine-dark);
    transform: translateY(-1px);
}

.navtoggle {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
    color: var(--wine);
    cursor: pointer;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    background:
        linear-gradient(
            90deg,
            rgba(37, 21, 29, 0.96) 0%,
            rgba(64, 25, 39, 0.85) 48%,
            rgba(64, 25, 39, 0.25) 100%
        ),
        url('https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?auto=format&fit=crop&w=1900&q=85')
        center / cover;

    color: #ffffff;
    min-height: 570px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    padding: 95px 0;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #d9b5c1;
    font-weight: 700;
}

.hero h1,
.pagehero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.1;
    margin: 18px 0;
}

.hero p {
    max-width: 560px;
    color: #eee;
    font-size: 17px;
    margin: 0 0 30px;
}

.btn.light {
    background: #ffffff;
    color: var(--wine) !important;
    border-color: #ffffff;
    margin-left: 10px;
}

.btn.light:hover {
    background: var(--ivory);
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 88px 0;
}

.section.soft {
    background: var(--ivory);
}

.sectionhead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 42px;
}

.sectionhead h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    margin: 10px 0;
    color: var(--wine);
}

.sectionhead p {
    color: var(--muted);
}

.eyebrow.dark {
    color: var(--grey);
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */

.aboutgrid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.aboutcopy h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    color: var(--wine);
    margin: 8px 0 20px;
}

.aboutcopy p {
    color: var(--muted);
}

.aboutvisual {
    min-height: 380px;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(101, 27, 53, 0.87),
            rgba(41, 39, 43, 0.78)
        ),
        url('https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?auto=format&fit=crop&w=1000&q=80')
        center / cover;

    display: grid;
    place-items: center;
    color: #ffffff;
    text-align: center;
    padding: 40px;
}

.aboutvisual strong {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 34px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 35px;
}

.stat {
    border-left: 3px solid var(--wine);
    padding-left: 14px;
}

.stat b {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 23px;
    color: var(--wine);
}

.stat span {
    font-size: 12px;
    color: var(--muted);
}

/* =========================================================
   GENERAL CARDS
   ========================================================= */

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

.card {
    background: #ffffff;
    padding: 30px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-small);
    border-radius: 10px;
}

.card .number {
    color: #b18a98;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 27px;
}

.card h3 {
    color: var(--wine);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 23px;
    margin: 8px 0;
}

.card p {
    color: var(--muted);
    font-size: 14px;
}

/* =========================================================
   PAGE HERO
   ========================================================= */

.pagehero {
    background:
        linear-gradient(
            100deg,
            rgba(64, 21, 38, 0.95),
            rgba(101, 27, 53, 0.82)
        ),
        url('https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?auto=format&fit=crop&w=1600&q=80')
        center / cover;

    color: #ffffff;
    padding: 70px 0;
}

.pagehero h1 {
    font-size: 48px;
    margin: 7px 0;
}

.pagehero p {
    max-width: 680px;
    color: #eee;
}

/* =========================================================
   MEMBER DIRECTORY SEARCH
   ========================================================= */

.directory-tools {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 0 38px;
}

.field,
select,
textarea {
    font: inherit;
    border: 1px solid #ded7d9;
    border-radius: 6px;
    padding: 12px 14px;
    background: #ffffff;
    min-width: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--wine2);
    box-shadow: 0 0 0 3px rgba(101, 27, 53, 0.08);
}

.directory-tools input {
    flex: 1;
    min-width: 230px;
}

.directory-tools select {
    min-width: 180px;
}

.directory-tools .btn {
    min-width: 105px;
    text-align: center;
}

/* =========================================================
   MEMBER DIRECTORY SECTION
   ========================================================= */

.member-section {
    margin: 48px 0;
}

.member-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 30px;
    color: var(--wine);

    border-bottom: 1px solid var(--line);

    padding-bottom: 16px;
    margin-bottom: 28px;
}

/* =========================================================
   MEMBER GRID
   ========================================================= */

.member-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* =========================================================
   MEMBER CARD
   ========================================================= */

.member {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: 14px;

    overflow: hidden;

    padding: 30px 20px 25px;

    min-height: 390px;

    box-shadow: 0 8px 28px rgba(37, 21, 29, 0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.member:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px rgba(37, 21, 29, 0.10);

    border-color: #d6b8c3;
}

/* =========================================================
   CIRCULAR MEMBER PROFILE PHOTOS
   IMPORTANT: THIS IS THE CIRCULAR IMAGE FIX
   ========================================================= */

.member-grid .member > img,
.member .memberbody img {
    display: block;

    width: 190px !important;
    height: 190px !important;

    min-width: 190px;
    max-width: 190px;

    min-height: 190px;
    max-height: 190px;

    aspect-ratio: 1 / 1;

    object-fit: cover;
    object-position: center center;

    border-radius: 50% !important;

    margin: 0 auto 18px;

    background: var(--ivory);

    border: 5px solid #ffffff;

    box-shadow:
        0 0 0 1px rgba(101, 27, 53, 0.10),
        0 8px 20px rgba(101, 27, 53, 0.09);
}

/* Prevent old CSS from forcing rectangular photos */

.member img {
    width: 190px !important;
    height: 190px !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 50% !important;
}

/* =========================================================
   MEMBER CARD CONTENT
   ========================================================= */

.memberbody {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    padding: 0;
}

.memberbody h3 {
    color: var(--wine);

    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;

    line-height: 1.4;

    margin: 10px 0 8px;
}

.memberbody p {
    margin: 5px 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* =========================================================
   VERIFIED LISTING BADGE
   ========================================================= */

.pill {
    display: inline-block;

    border-radius: 30px;

    background: #f4e9ed;
    color: var(--wine);

    font-size: 10px;

    padding: 6px 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

/* =========================================================
   MEMBER PROFILE LINK
   ========================================================= */

.verifylink {
    display: inline-block;

    margin-top: auto;
    padding-top: 25px;

    color: var(--wine);

    font-size: 12px;
    font-weight: 700;

    transition: color 0.2s ease;
}

.verifylink:hover {
    color: var(--wine-dark);
    text-decoration: underline;
}

/* =========================================================
   EMPTY DIRECTORY MESSAGE
   ========================================================= */

.empty {
    padding: 35px;

    text-align: center;

    background: var(--ivory);

    color: var(--muted);

    border: 1px solid var(--line);
    border-radius: 10px;
}

/* =========================================================
   VERIFY PAGE
   ========================================================= */

.verifybox {
    max-width: 720px;

    margin: 55px auto;

    background: #ffffff;

    border: 1px solid var(--line);

    box-shadow: var(--shadow);

    padding: 40px;

    border-radius: 10px;

    text-align: center;
}

.verifybox .check {
    font-size: 40px;
    color: #287a51;
}

.verifybox h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 34px;
    color: var(--wine);
}

.verifygrid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    text-align: left;

    gap: 12px;

    margin: 25px 0;
}

.verifygrid div {
    background: var(--ivory);
    padding: 13px;
    border-radius: 6px;
}

.verifygrid small {
    display: block;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contactgrid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 35px;
}

.contactinfo {
    background: var(--wine);
    color: #ffffff;

    padding: 35px;

    border-radius: 10px;
}

.contactinfo h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 29px;
}

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

.contactform textarea {
    min-height: 140px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #29272b;
    color: #eee;
    padding: 55px 0 0;
}

.footgrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 55px;
    padding-bottom: 40px;
}

.footer h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 22px;
    color: #ffffff;
}

.footer h4 {
    color: #d5aebb;

    text-transform: uppercase;
    letter-spacing: 0.1em;

    font-size: 12px;
}

.footer p,
.footer a {
    color: #c8c3c6;
    font-size: 13px;
}

.footer a {
    display: block;
    margin: 8px 0;
    transition: color 0.2s;
}

.footer a:hover {
    color: #ffffff;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);

    padding: 17px 0;

    color: #aaa;
    font-size: 11px;
}

/* =========================================================
   COOKIE NOTICE
   ========================================================= */

.cookie {
    position: fixed;
    z-index: 200;

    bottom: 18px;
    left: 18px;
    right: 18px;

    max-width: 560px;

    background: #ffffff;

    padding: 18px 20px;

    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.20);

    border: 1px solid var(--line);
    border-left: 4px solid var(--wine);

    display: none;

    border-radius: 8px;
}

.cookie.show {
    display: block;
}

.cookie p {
    font-size: 12px;
    color: var(--muted);
    margin: 4px 0 12px;
}

.cookie button {
    border: 0;

    padding: 8px 13px;

    margin-right: 7px;

    border-radius: 4px;

    cursor: pointer;

    background: var(--wine);
    color: #ffffff;
}

.cookie button.secondary {
    background: #eee;
    color: #333;
}

/* =========================================================
   ADMIN PAGES
   ========================================================= */

.adminbody {
    background: #f5f3f3;
}

.adminwrap {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 18px;
}

.adminpanel {
    background: #ffffff;

    padding: 28px;

    border: 1px solid var(--line);

    border-radius: 8px;

    margin: 18px 0;

    box-shadow: var(--shadow-small);
}

.adminnav {
    background: #29272b;
    color: #ffffff;
    padding: 15px 0;
}

.adminnav .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adminnav a {
    color: #ffffff;
    margin-left: 18px;
}

.formgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.formgrid label {
    font-size: 12px;
    color: var(--muted);
    display: grid;
    gap: 5px;
}

.formgrid .full {
    grid-column: 1 / -1;
}

/* =========================================================
   ADMIN TABLES
   ========================================================= */

.tablewrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--wine);
    background: var(--ivory);
}

.action {
    color: var(--wine);
    font-weight: 700;
    margin-right: 10px;
}

.alert {
    padding: 12px 15px;

    background: #f4e9ed;
    color: var(--wine);

    margin: 12px 0;

    border-radius: 6px;
}

.danger {
    color: #a22;
}

.small {
    font-size: 12px;
    color: var(--muted);
}

/* =========================================================
   RESPONSIVE – TABLETS
   ========================================================= */

@media (max-width: 1050px) {

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

    .links {
        gap: 16px;
    }
}

/* =========================================================
   RESPONSIVE – MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .topinner span:last-child {
        display: none;
    }

    .nav {
        min-height: 76px;
    }

    .brand img {
        width: 53px;
        height: 53px;
    }

    .navtoggle {
        display: block;
    }

    .links {
        display: none;

        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        background: #ffffff;

        padding: 20px 5%;

        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);

        flex-direction: column;
        align-items: stretch;

        gap: 10px;
    }

    .links.show {
        display: flex;
    }

    .links a {
        padding: 8px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 65px 0;
    }

    .btn.light {
        margin: 10px 0 0;
    }

    .section {
        padding: 62px 0;
    }

    .aboutgrid,
    .contactgrid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .member {
        min-height: 350px;
        padding: 24px 14px;
    }

    .member-grid .member > img,
    .member img {
        width: 150px !important;
        height: 150px !important;

        min-width: 150px;
        min-height: 150px;

        max-width: 150px;
        max-height: 150px;

        border-radius: 50% !important;
    }

    .footgrid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats {
        gap: 8px;
    }

    .stat b {
        font-size: 18px;
    }

    .pagehero {
        padding: 52px 0;
    }

    .pagehero h1 {
        font-size: 38px;
    }

    .verifybox {
        padding: 24px 18px;
        margin: 30px auto;
    }

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

    .formgrid .full {
        grid-column: auto;
    }
}

/* =========================================================
   RESPONSIVE – SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .member {
        min-height: 320px;
        padding: 20px 10px;
    }

    .member-grid .member > img,
    .member img {
        width: 125px !important;
        height: 125px !important;

        min-width: 125px;
        min-height: 125px;

        max-width: 125px;
        max-height: 125px;

        border-radius: 50% !important;
    }

    .memberbody {
        padding: 0;
    }

    .memberbody h3 {
        font-size: 14px;
    }

    .memberbody p {
        font-size: 11px;
    }

    .brand b {
        font-size: 11px;
    }

    .brand small {
        font-size: 8px;
    }

    .member .pill {
        font-size: 9px;
        padding: 5px 9px;
    }
}

/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 360px) {

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

    .member {
        min-height: auto;
        padding: 25px 15px;
    }

    .member-grid .member > img,
    .member img {
        width: 145px !important;
        height: 145px !important;

        min-width: 145px;
        min-height: 145px;

        max-width: 145px;
        max-height: 145px;

        border-radius: 50% !important;
    }
}


/* ===== Clean homepage spacing and hero controls ===== */
.hero {
    min-height: 500px;
    background-position: center center;
}
.hero-content {
    max-width: 720px;
    padding: 72px 0;
}
.hero h1 {
    font-size: clamp(42px, 4.6vw, 60px);
    line-height: 1.12;
    max-width: 760px;
    margin: 16px 0 20px;
}
.hero h1 span { display:block; }
.hero p {
    max-width: 620px;
    line-height: 1.75;
    margin: 0 0 26px;
}
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.hero-actions .hero-button {
    display:inline-flex; align-items:center; justify-content:center;
    min-height:48px; padding:12px 20px; border-radius:6px;
    text-decoration:none; font-weight:700; line-height:1.25;
    border:1px solid transparent; transition:transform .18s,background .18s,color .18s;
}
.hero-actions .hero-button:hover { transform:translateY(-2px); }
.hero-actions .hero-button-primary { background:#c99a35; color:#32101d; border-color:#c99a35; }
.hero-actions .hero-button-outline { background:transparent; color:#fff; border-color:rgba(255,255,255,.85); }
.hero-actions .hero-button-outline:hover { background:rgba(255,255,255,.14); color:#fff; }

/* Reduce excess vertical whitespace between homepage sections */
#about.section { padding:68px 0 56px; }
#training.section { padding:60px 0 58px; }
#training .sectionhead { margin-bottom:32px; }
#training .cards { gap:24px; }
#training .small { margin-top:24px !important; }
.home-mission.section { padding:60px 0; }

/* Active navigation: subtle underline, not a bulky pill */
.sitehead .links a.active {
    background:transparent !important;
    color:#651b35 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    font-weight:800 !important;
    position:relative;
}
.sitehead .links a.active::after {
    content:"";
    position:absolute;
    left:8px; right:8px; bottom:-7px;
    height:2px; background:#651b35; border-radius:2px;
}
.sitehead .links a.navcta.active::after { display:none; }
.sitehead .links a.navcta.active { background:#c99a35 !important; color:#35101f !important; }
@media(max-width:900px) {
    .hero { min-height:450px; }
    .hero-content { padding:58px 0; }
    .hero h1 { font-size:clamp(38px,6vw,52px); }
    #about.section { padding:54px 0 42px; }
    #training.section { padding:48px 0; }
}
@media(max-width:600px) {
    .hero { min-height:auto; }
    .hero-content { padding:46px 0; }
    .hero h1 { font-size:38px; }
    .hero-actions { align-items:stretch; }
    .hero-actions .hero-button { width:100%; }
    #about.section, #training.section, .home-mission.section { padding:42px 0; }
}
