/* ═══════════════════════════════════════════════════════
   K.A.S. Group — Homepage Styles (Compact + Mobile)
   kasgroupbd.com · index.css
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design Tokens ── */
:root {
    --ink:    #0f0f0f;
    --paper:  #f5f0e8;
    --gold:   #b8952a;
    --gold2:  #d4af5a;
    --muted:  #6b6356;
    --line:   rgba(184, 149, 42, 0.25);
}

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Noise Texture Overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ── Top Rule ── */
.top-rule {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), var(--gold), transparent);
}

/* ── Header ── */
header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 22px 32px;
    border-bottom: 1px solid var(--line);
}

/* ── Logo ── */
.logo-wrap {
    flex-shrink: 0;
    width: 45px;
    height: 60px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.1s forwards;
}

.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

/* Fallback monogram when no logo image */
.logo-monogram {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: -1px;
    line-height: 1;
}

/* ── Header Text ── */
.header-text {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.header-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

h1.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.5px;
    color: var(--ink);
}

h1.brand em {
    font-style: italic;
    color: var(--gold);
}

.header-sub {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
    font-weight: 300;
}

/* ── Gold Divider ── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px auto;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.4s forwards;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    max-width: 100px;
    height: 1px;
    background: var(--line);
}

.divider-diamond {
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ── Portal Section ── */
.portal-section {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 32px;
}

.portal-label {
    text-align: center;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.5s forwards;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.6s forwards;
}

@media (max-width: 560px) {
    .portal-grid { grid-template-columns: 1fr; }
}

/* ── Portal Cards ── */
.portal-card {
    position: relative;
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px 28px 44px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.09);
    border-color: var(--gold2);
}

.portal-card:hover::before { transform: scaleX(1); }

.card-icon {
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
}

.card-tag {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
}

.card-arrow {
    position: absolute;
    bottom: 18px;
    right: 22px;
    font-size: 18px;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portal-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── About Strip ── */
.about-strip {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(184,149,42,0.04), rgba(184,149,42,0.01));
    padding: 28px 24px;
    text-align: center;
    opacity: 0;
    animation: fadeUp 1s ease 0.8s forwards;
}

.about-strip blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(15px, 1.8vw, 22px);
    font-weight: 300;
    font-style: italic;
    color: var(--ink);
    max-width: 700px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.about-strip cite {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-style: normal;
}

/* ── Info Bar ── */
.info-bar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
    opacity: 0;
    animation: fadeUp 1s ease 0.95s forwards;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
    border-right: 1px solid var(--line);
}

.info-item:last-child { border-right: none; }

.info-icon { font-size: 18px; margin-bottom: 6px; }

.info-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 400;
    color: var(--ink);
    text-align: center;
    line-height: 1.5;
}

.info-key {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

@media (max-width: 600px) {
    .info-bar { padding: 16px; gap: 0; }
    .info-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
        width: 100%;
        text-align: left;
    }
    .info-item:last-child { border-bottom: none; }
    .info-val { text-align: left; }
    .info-icon { margin-bottom: 0; font-size: 20px; }
}

/* ── Mobile Header ── */
@media (max-width: 480px) {
    header {
        padding: 16px;
        gap: 14px;
        justify-content: center;
    }
    .logo-wrap {
        width: 52px;
        height: 64px;
    }
    h1.brand {
        font-size: clamp(32px, 9vw, 48px);
    }
    .portal-section { padding: 0 16px 24px; }
    .portal-card { padding: 20px 20px 40px; }
    .about-strip { padding: 20px 16px; }
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
}

footer p {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}