/* ============================================================
   BIHM — Bharat Institute of Hotel Management
   Design tokens: Ink / Gold / Paper, Fraunces + Work Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
    --ink: #16130F;
    --charcoal: #2A241C;
    --gold: #B8912F;
    --gold-light: #E4C878;
    --paper: #FAF6EE;
    --paper-dim: #F1EADA;
    --white: #FFFFFF;
    --line: rgba(22, 19, 15, 0.12);
    --line-on-dark: rgba(228, 200, 120, 0.25);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, sans-serif;

    --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 0.5em;
    color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------------- Diamond motif ---------------- */
.diamond {
    width: 14px;
    height: 14px;
    background: var(--gold);
    transform: rotate(45deg);
    display: inline-block;
}

.diamond-outline {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gold);
    transform: rotate(45deg);
    display: inline-block;
}

.diamond-rule {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1.5rem;
}
.diamond-rule::before,
.diamond-rule::after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
}
.diamond-rule .diamond { flex-shrink: 0; }
.diamond-rule.left::before { display: none; }
.diamond-rule.left { justify-content: flex-start; }
.diamond-rule.left::after { flex: 1; }

/* Large background diamond used decoratively on dark sections */
.diamond-bg {
    position: absolute;
    border: 1.5px solid var(--line-on-dark);
    transform: rotate(45deg);
    pointer-events: none;
}

/* ---------------- Header / Nav ---------------- */
.bihm-navbar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0;
}
.bihm-navbar .navbar-brand {
    color: var(--ink);
    text-decoration: none;
}
.bihm-navbar .brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
}
.bihm-navbar .brand-text small {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
    color: #8A6A1F;
    margin-top: 2px;
}
.bihm-navbar .nav-link {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.bihm-navbar .nav-link:hover,
.bihm-navbar .nav-link.active {
    color: var(--ink);
    border-bottom-color: var(--gold);
}
.bihm-navbar .nav-cta-btn {
    padding: 0.55rem 1.3rem !important;
    font-size: 0.95rem;
}
.bihm-navbar .navbar-toggler {
    border: 1.5px solid var(--line);
    padding: 0.4rem 0.6rem;
}
.bihm-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 145, 47, 0.35);
}
.bihm-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(22, 19, 15)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991px) {
    .bihm-navbar .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--line);
    }
    .bihm-navbar .nav-link {
        padding: 0.6rem 0;
        border-bottom: none;
    }
    .bihm-navbar .nav-cta-btn {
        display: inline-block;
    }
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--charcoal); }
.btn-outline { background: transparent; color: var(--paper); border-color: var(--line-on-dark); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline-dark:hover { border-color: var(--ink); }

/* ---------------- Sections ---------------- */
section { padding: 5rem 0; }
section.tight { padding: 3.5rem 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: rgba(250, 246, 238, 0.75); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dim { background: var(--paper-dim); }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 0.6rem;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
    padding: 6rem 0 5rem;
}
.hero h1, .hero h2, .hero h3 { color: var(--paper); }
.hero .wrap { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero p.lede {
    font-size: 1.15rem;
    color: rgba(250, 246, 238, 0.8);
    max-width: 52ch;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.hero .diamond-bg-1 { width: 420px; height: 420px; top: -140px; right: -80px; }
.hero .diamond-bg-2 { width: 220px; height: 220px; bottom: -100px; right: 220px; }

/* ---------------- Stats bar ---------------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-on-dark);
    margin-top: 3.5rem;
    padding-top: 2.2rem;
}
.stats-bar .stat { padding-right: 1rem; }
.stats-bar .stat-num {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
}
.stats-bar .stat-label {
    font-size: 0.82rem;
    color: rgba(250, 246, 238, 0.65);
}

/* ---------------- Cards ---------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card .meta {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.card p { font-size: 0.95rem; color: var(--charcoal); }

/* ---------------- Branch cards ---------------- */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.branch-card {
    padding: 1.75rem;
    background: var(--white);
    border-left: 3px solid var(--gold);
}
.branch-card h3 { margin-bottom: 0.4rem; }
.branch-card .addr { font-size: 0.92rem; color: var(--charcoal); margin-bottom: 0.6rem; }
.branch-card .contact { font-size: 0.9rem; color: var(--ink); font-weight: 500; }

/* ---------------- Recruiters strip ---------------- */
.recruiter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}
.recruiter-pill {
    padding: 0.6rem 1.3rem;
    border: 1px solid var(--line-on-dark);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gold-light);
}

/* ---------------- Footer ---------------- */
footer.site-footer {
    background: var(--ink);
    color: rgba(250, 246, 238, 0.7);
    padding: 3.5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--paper); font-size: 1.05rem; }
footer.site-footer h4 {
    color: var(--gold-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.9rem;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 0.55rem; }
footer.site-footer a { text-decoration: none; color: inherit; }
footer.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid var(--line-on-dark);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ---------------- Forms ---------------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--charcoal);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* ---------------- Achievement / testimonial cards ---------------- */
.achiever-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.achiever-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
}
.achiever-photo {
    aspect-ratio: 1;
    background: var(--paper-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-size: 0.8rem;
}
.achiever-card .info { padding: 1rem; }
.achiever-card .name { font-weight: 700; font-family: var(--font-display); }
.achiever-card .role { font-size: 0.85rem; color: var(--gold); margin-top: 0.2rem; }

/* ---------------- Download list ---------------- */
.download-list { display: grid; gap: 0.9rem; }
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.download-item .name { font-weight: 600; }
.download-item .btn { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ---------------- Page header (non-home pages) ---------------- */
.page-header {
    background: var(--ink);
    color: var(--paper);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-header .diamond-bg { width: 260px; height: 260px; top: -100px; right: -40px; }
.page-header h1 { color: var(--paper); position: relative; z-index: 2; }
.page-header p { color: rgba(250, 246, 238, 0.75); position: relative; z-index: 2; margin: 0; }

/* ---------------- Placement showcase (horizontal scroll strip) ---------------- */
.placement-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--paper-dim);
}
.placement-scroll::-webkit-scrollbar { height: 8px; }
.placement-scroll::-webkit-scrollbar-track { background: var(--paper-dim); }
.placement-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.placement-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: placement-marquee 40s linear infinite;
}
.placement-scroll:hover .placement-track,
.placement-scroll:active .placement-track {
    animation-play-state: paused;
}
@keyframes placement-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.placement-card {
    flex: 0 0 auto;
    width: 190px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
}
.placement-card .photo {
    aspect-ratio: 1;
    background: var(--paper-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-size: 0.8rem;
}
.placement-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.placement-card .info { padding: 0.85rem; }
.placement-card .name { font-weight: 700; font-family: var(--font-display); font-size: 0.95rem; }
.placement-card .hotel { font-size: 0.95rem; font-weight: 700; color: #8A6A1F; margin-top: 0.3rem; letter-spacing: 0.01em; }

@media (prefers-reduced-motion: reduce) {
    .placement-track { animation: none; }
}
@media (max-width: 640px) {
    .placement-card { width: 150px; }
}
/* ---------------- Gallery ---------------- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
}
.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--charcoal);
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gallery-masonry {
    column-count: 3;
    column-gap: 1.25rem;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
}
.gallery-tile {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-size: 0.85rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gallery-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 19, 15, 0.12);
}
.gallery-tile.has-image { aspect-ratio: auto; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-tile .tile-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(22, 19, 15, 0.75);
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.letter-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.letter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 19, 15, 0.12);
}
.letter-thumb {
    aspect-ratio: 3/4;
    background: var(--paper-dim);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.letter-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.letter-info { padding: 0.85rem 1rem; }
.letter-info .letter-name { font-weight: 700; font-family: var(--font-display); font-size: 0.98rem; }
.letter-info .letter-hotel { font-size: 0.85rem; color: #8A6A1F; font-weight: 600; margin-top: 0.2rem; }

.lightbox-content {
    background: var(--ink);
    border: none;
    border-radius: 6px;
    overflow: hidden;
}
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}
.lightbox-caption {
    color: var(--paper);
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
    margin: 0;
    background: var(--ink);
}

@media (max-width: 900px) {
    .gallery-masonry { column-count: 2; }
}
@media (max-width: 640px) {
    .gallery-masonry { column-count: 1; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .card-grid, .branch-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .achiever-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .card-grid, .branch-grid, .achiever-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
