/* ============================================================
   Wilson International College (WICO)
   Main Stylesheet
   Theme: Wine (primary) & Blue (secondary)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --wine: #7b1e3a;
    --wine-dark: #5c1329;
    --wine-light: #a8324f;
    --blue: #123a6b;
    --blue-dark: #0c2749;
    --blue-light: #1e5aa8;
    --gold: #d4af37;
    --cream: #faf7f2;
    --light: #f4f1ec;
    --white: #ffffff;
    --text: #2b2b2b;
    --text-muted: #6b6b6b;
    --border: #e6e0d8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.16);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Poppins", "Segoe UI", Tahoma, sans-serif;
    --max-width: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--wine);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--blue);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    color: var(--blue-dark);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
    margin-bottom: 1rem;
}

/* ---------- Layout Helpers ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section--tight {
    padding: 50px 0;
}

.section--light {
    background: var(--light);
}

.section--white {
    background: var(--white);
}

.section--wine {
    background: linear-gradient(135deg, var(--wine-dark), var(--wine));
    color: var(--white);
}

.section--blue {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
}

.section--wine h2,
.section--wine h3,
.section--blue h2,
.section--blue h3 {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 28px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ---------- Section Heading ---------- */
.section-head {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wine);
    background: rgba(123, 30, 58, 0.08);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section--wine .eyebrow,
.section--blue .eyebrow {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section--wine .section-head p,
.section--blue .section-head p {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1;
}

.btn--primary {
    background: var(--wine);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(123, 30, 58, 0.28);
}

.btn--primary:hover {
    background: var(--wine-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(123, 30, 58, 0.38);
}

.btn--blue {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(18, 58, 107, 0.28);
}

.btn--blue:hover {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-3px);
}

.btn--outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--wine);
    transform: translateY(-3px);
}

.btn--outline-wine {
    background: transparent;
    border-color: var(--wine);
    color: var(--wine);
}

.btn--outline-wine:hover {
    background: var(--wine);
    color: var(--white);
    transform: translateY(-3px);
}

.btn--gold {
    background: var(--gold);
    color: var(--blue-dark);
}

.btn--gold:hover {
    background: #c39f2c;
    color: var(--blue-dark);
    transform: translateY(-3px);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar__contact {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.topbar__contact span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topbar__social {
    display: flex;
    gap: 12px;
}

.topbar__social a {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.topbar__social a:hover {
    background: var(--wine);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand img {
    height: 56px;
    width: 56px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--wine);
    padding: 2px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--wine);
    letter-spacing: 0.02em;
}

.brand__tag {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--blue-dark);
    border-radius: var(--radius-sm);
    position: relative;
}

.nav__menu a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--wine);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav__menu a:hover,
.nav__menu a.active {
    color: var(--wine);
}

.nav__menu a:hover::after,
.nav__menu a.active::after {
    transform: scaleX(1);
}

.nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__cta .btn {
    padding: 11px 22px;
    font-size: 0.85rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--wine);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0 11px;
}

.nav__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: var(--white);
    background:
        linear-gradient(120deg, rgba(92, 19, 41, 0.92) 0%, rgba(18, 58, 107, 0.85) 100%),
        url("../images/gallery/1.jpeg") center/cover no-repeat;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.18), transparent 55%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero__inner {
    max-width: 780px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: var(--gold);
    display: block;
}

.hero p {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero__stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.2rem;
    color: var(--gold);
    line-height: 1;
}

.hero__stat span {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
    position: relative;
    padding: 110px 0 80px;
    color: var(--white);
    text-align: center;
    background:
        linear-gradient(120deg, rgba(92, 19, 41, 0.93), rgba(18, 58, 107, 0.88)),
        url("../images/gallery/5.jpeg") center/cover no-repeat;
}

.page-banner h1 {
    color: var(--white);
    margin-bottom: 12px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb a:hover {
    color: var(--white);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--wine), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card__icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(123, 30, 58, 0.12), rgba(18, 58, 107, 0.12));
    color: var(--wine);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.card ul {
    margin-top: 14px;
}

.card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.card ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--wine);
    font-weight: 700;
}

/* ---------- Feature / Value Card (dark bg) ---------- */
.value-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 32px 26px;
    height: 100%;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-6px);
}

.value-card__icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.value-card h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.value-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.93rem;
    margin-bottom: 0;
}

/* ============================================================
   SPLIT / IMAGE + TEXT
   ============================================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split--reverse .split__media {
    order: 2;
}

.split__media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
    transition: transform 0.6s ease;
}

.split__media:hover img {
    transform: scale(1.05);
}

.split__media--frame::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.split__content h2 {
    margin-bottom: 18px;
}

.split__content p {
    color: var(--text-muted);
}

.split__content .eyebrow {
    margin-bottom: 14px;
}

/* ============================================================
   PERSON / PROFILE CARD
   ============================================================ */
.profile {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.profile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.profile__img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: top center;
}

.profile__body {
    padding: 24px 22px 30px;
}

.profile__body h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.profile__role {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wine);
    background: rgba(123, 30, 58, 0.08);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.profile__body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ============================================================
   MESSAGE / QUOTE BLOCK
   ============================================================ */
.message {
    background: var(--white);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: var(--shadow-sm);
    border-left: 6px solid var(--wine);
    position: relative;
}

.message::before {
    content: "\201C";
    font-family: var(--font-head);
    font-size: 6rem;
    color: rgba(123, 30, 58, 0.12);
    position: absolute;
    top: 0;
    right: 30px;
    line-height: 1;
}

.message p {
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.message__sign {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.message__sign strong {
    display: block;
    font-family: var(--font-head);
    color: var(--wine);
    font-size: 1.1rem;
}

.message__sign span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   STEPS (Admission process)
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step__num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine), var(--blue));
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: "\1F50D";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(92, 19, 41, 0.75), rgba(18, 58, 107, 0.75));
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 8, 12, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--wine);
    border-color: var(--wine);
}

.lightbox__close {
    top: 24px;
    right: 24px;
}

.lightbox__prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================================
   NEWS
   ============================================================ */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card__img {
    height: 220px;
    overflow: hidden;
}

.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__img img {
    transform: scale(1.08);
}

.news-card__body {
    padding: 26px 24px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.news-card__meta .tag {
    color: var(--wine);
    font-weight: 600;
}

.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    flex: 1;
}

.news-card .read-more {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--wine);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.news-card .read-more:hover {
    gap: 12px;
    color: var(--blue);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-item {
    display: flex;
    gap: 18px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

.contact-item__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--wine), var(--blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--wine);
}

/* ---------- Forms ---------- */
.form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form__group {
    margin-bottom: 18px;
}

.form__group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 7px;
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--text);
    background: var(--cream);
    transition: var(--transition);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--wine);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(123, 30, 58, 0.1);
}

.form__group textarea {
    resize: vertical;
    min-height: 130px;
}

.form .btn {
    width: 100%;
    justify-content: center;
}

.form__note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 14px;
    text-align: center;
}

.form__success {
    display: none;
    background: rgba(30, 130, 76, 0.1);
    border: 1px solid rgba(30, 130, 76, 0.35);
    color: #1e824c;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.form__success.show {
    display: block;
}

.form__error {
    display: none;
    background: rgba(123, 30, 58, 0.08);
    border: 1px solid rgba(123, 30, 58, 0.35);
    color: var(--wine);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.form__error.show {
    display: block;
}

/* Honeypot field: visually hidden but present in the DOM for bots to fill. */
.form__hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ============================================================
   MAP
   ============================================================ */
.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    line-height: 0;
}

.map-wrap iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta {
    position: relative;
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    background:
        linear-gradient(120deg, rgba(92, 19, 41, 0.94), rgba(18, 58, 107, 0.9)),
        url("../images/gallery/12.jpeg") center/cover no-repeat;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto 30px;
}

.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.78);
    padding: 70px 0 0;
    font-size: 0.92rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
    gap: 34px;
    padding-bottom: 50px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer__brand img {
    height: 54px;
    width: 54px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
}

.footer__brand strong {
    font-family: var(--font-head);
    color: var(--white);
    font-size: 1.05rem;
    display: block;
    line-height: 1.2;
}

.footer__brand span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 11px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer__contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.footer__contact li i {
    color: var(--gold);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.78);
}

.footer__contact a:hover {
    color: var(--gold);
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.footer__social a:hover {
    background: var(--wine);
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer__bottom p {
    margin-bottom: 0;
}

.footer__bottom a {
    color: var(--gold);
}

.footer__bottom a:hover {
    color: var(--white);
}

/* ============================================================
   FLIER POPUP (index page)
   ============================================================ */
.popup {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 8, 12, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.popup.open {
    display: flex;
}

.popup__box {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes popIn {
    from {
        transform: scale(0.85) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup__box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    min-height: 0;
    flex: 1 1 auto;
}

.popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wine);
    color: var(--white);
    border: 2px solid var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.popup__close:hover {
    background: var(--blue);
    transform: rotate(90deg);
}

.popup__footer {
    padding: 18px 22px;
    text-align: center;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

.popup__footer p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.popup__footer .btn {
    padding: 11px 26px;
    font-size: 0.88rem;
}

/* ============================================================
   REPORT PORTAL
   ============================================================ */
.portal {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 44px 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.portal__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine), var(--blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.portal h2 {
    text-align: center;
    margin-bottom: 10px;
}

.portal>p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.portal__hint {
    margin-top: 20px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.portal__hint strong {
    color: var(--wine);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wine);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 800;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--blue);
    transform: translateY(-4px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .split {
        gap: 40px;
    }
}

@media (max-width: 900px) {

    /* Raise the header above the overlay so the sidebar stays clickable */
    .header {
        z-index: 1000;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 90px 20px 30px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
        transition: right 0.35s ease;
        overflow-y: auto;
        z-index: 1001;
    }

    .nav__menu.open {
        right: 0;
    }

    .nav__menu a {
        padding: 15px 12px;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .nav__menu a::after {
        display: none;
    }

    .nav__toggle {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .nav__cta .btn {
        display: none;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 990;
    }

    .nav-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split--reverse .split__media {
        order: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 78vh;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 56px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .form {
        padding: 28px 22px;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .message {
        padding: 30px 24px;
    }

    .message::before {
        font-size: 4rem;
        right: 16px;
    }

    .topbar__contact {
        gap: 14px;
        font-size: 0.78rem;
    }

    .hero__stats {
        gap: 26px;
    }

    .hero__stat strong {
        font-size: 1.7rem;
    }

    .brand img {
        height: 46px;
        width: 46px;
    }

    .brand__name {
        font-size: 0.92rem;
    }

    .brand__tag {
        font-size: 0.6rem;
    }

    .lightbox__prev {
        left: 10px;
    }

    .lightbox__next {
        right: 10px;
    }

    .lightbox__close {
        top: 12px;
        right: 12px;
    }

    .to-top {
        bottom: 18px;
        right: 18px;
    }

    .portal {
        padding: 32px 22px;
    }

    .popup {
        padding: 12px;
    }

    .popup__box {
        max-width: 100%;
        max-height: calc(100vh - 24px);
    }

    .popup__close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .popup__footer {
        padding: 14px 16px;
    }

    .footer__bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Print ---------- */
@media print {

    .header,
    .topbar,
    .footer,
    .to-top,
    .popup,
    .nav__toggle {
        display: none !important;
    }

    body {
        background: #fff;
    }
}