/* ══════════════════════════════════════════
   Maharavat Royal — main.css
══════════════════════════════════════════ */

:root {
    --gold:        #C9A84C;
    --gold-light:  #E8C97A;
    --gold-dark:   #8B6914;
    --gold-pale:   #F5E6C0;
    --crimson:     #7A1C2E;
    --crimson-dark:#4A0E1A;
    --cream:       #FDF8F0;
    --cream-dark:  #F2E8D5;
    --ink:         #1A1208;
    --ink-muted:   #3D2F1A;
    --stone:       #8C7B5E;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── ORNAMENTAL BORDER ── */
.ornament-border {
    width: 100%; height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--gold-dark) 0px,  var(--gold-dark) 2px,
        var(--gold)      2px,  var(--gold)      10px,
        var(--gold-light)10px, var(--gold-light)12px,
        var(--gold)      12px, var(--gold)      20px,
        var(--gold-dark) 20px, var(--gold-dark) 22px
    );
}

/* ── NAV ── */
#site-nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(26,18,8,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gold-dark);
    transition: background 0.3s;
}

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2.5rem; height: 68px;
}

.nav-crest {
    display: flex; align-items: center; gap: 14px;
}

.nav-crest img {
    width: 42px; height: 42px; object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.5));
}

.nav-title {
    font-family: 'Cinzel', serif;
    font-size: 13px; letter-spacing: 0.15em;
    color: var(--gold-light); font-weight: 500;
}

.nav-links {
    display: flex; gap: 2.5rem; list-style: none;
}

.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 11px; letter-spacing: 0.2em;
    color: rgba(232,201,122,0.75);
    text-transform: uppercase;
    transition: color 0.3s;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

.nav-hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block; width: 24px; height: 1px;
    background: var(--gold-light);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: var(--crimson-dark);
}

.hero-bg {
    position: absolute; inset: 0;
    background-position: left center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.45) saturate(0.9);
}

.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 30%, rgba(201,168,76,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(122,28,46,0.8) 0%, transparent 60%);
}

.hero-pattern {
    position: absolute; inset: 0; opacity: 0.04;
    background-image:
        repeating-linear-gradient(0deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 60px),
        repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 60px);
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center; padding: 2rem;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
    animation: fadeUp 1.4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-crest {
    width: 120px; height: 120px; border-radius: 50%;
    border: 2px solid rgba(201,168,76,0.5);
    padding: 14px;
    background: rgba(26,18,8,0.6);
    box-shadow: 0 0 40px rgba(201,168,76,0.2), inset 0 0 30px rgba(201,168,76,0.05);
    animation: fadeUp 1.2s ease both;
}

.hero-crest img { width: 100%; height: 100%; object-fit: contain; }

.hero-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 11px; letter-spacing: 0.35em;
    color: var(--gold); text-transform: uppercase;
    animation: fadeUp 1.4s 0.2s ease both;
}

.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 600; line-height: 1.05;
    color: #FFF8E8;
    text-shadow: 0 2px 40px rgba(201,168,76,0.3);
    animation: fadeUp 1.4s 0.35s ease both;
}

.hero-title-line {
    width: 160px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: fadeUp 1.4s 0.5s ease both;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 13px; letter-spacing: 0.28em;
    color: var(--gold-light); opacity: 0.85;
    text-transform: uppercase;
    animation: fadeUp 1.4s 0.6s ease both;
}

.hero-descriptor {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-style: italic;
    color: rgba(245,230,192,0.75);
    letter-spacing: 0.05em;
    animation: fadeUp 1.4s 0.75s ease both;
}

.hero-scroll {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 0.3em;
    color: rgba(201,168,76,0.5); text-transform: uppercase;
    animation: pulse 2.5s infinite;
}

.hero-scroll::after {
    content: '';
    display: block; width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2.5s infinite;
}

@keyframes pulse { 0%,100%{opacity:0.4} 50%{opacity:0.9} }
@keyframes scrollLine {
    0%  { transform:scaleY(0); transform-origin:top; }
    50% { transform:scaleY(1); }
    100%{ transform:scaleY(0); transform-origin:bottom; }
}

/* ── SECTION COMMONS ── */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-heading {
    text-align: center; margin-bottom: 3.5rem;
}

.section-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 10px; letter-spacing: 0.4em;
    color: var(--gold-dark); text-transform: uppercase;
    display: block; margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500; color: var(--crimson-dark);
    line-height: 1.1;
}

/* ── DIVIDER ── */
.divider {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin: 1.2rem auto 0;
    max-width: 260px;
}

.divider-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.divider-line--reverse {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.divider-gem {
    width: 7px; height: 7px;
    background: var(--gold); transform: rotate(45deg);
    flex-shrink: 0;
}

.divider--light .divider-line {
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5));
}
.divider--light .divider-line--reverse {
    background: linear-gradient(90deg, rgba(201,168,76,0.5), transparent);
}

/* ── ABOUT ── */
#about { background: var(--cream); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: start;
}

.about-portrait-frame {
    position: relative; padding: 16px;
    background: var(--cream-dark);
    border: 1px solid var(--gold);
}

.about-portrait-frame::before,
.about-portrait-frame::after {
    content: '';
    position: absolute;
    width: 40px; height: 40px;
    border-color: var(--gold-dark); border-style: solid;
}

.about-portrait-frame::before {
    top: 6px; left: 6px;
    border-width: 2px 0 0 2px;
}

.about-portrait-frame::after {
    bottom: 6px; right: 6px;
    border-width: 0 2px 2px 0;
}

.about-portrait {
    width: 100%; aspect-ratio: 1/1;
    object-fit: cover;
    filter: sepia(0.1) contrast(1.05);
}

.about-text { display: flex; flex-direction: column; gap: 1.5rem; }

.about-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; line-height: 1.85;
    color: var(--ink-muted); font-weight: 400;
}

.royal-quote {
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.royal-quote p {
    font-style: italic;
    color: var(--crimson) !important;
    font-size: 1.35rem !important;
}

/* ── LEGACY ── */
#legacy {
    background: var(--ink); position: relative; overflow: hidden;
}

#legacy::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(135deg,
        rgba(201,168,76,0.03) 0, rgba(201,168,76,0.03) 1px,
        transparent 0, transparent 30px);
}

#legacy .section-eyebrow { color: var(--gold); }
#legacy .section-title   { color: var(--gold-pale); }

.timeline { position: relative; padding-left: 2.5rem; }

.timeline::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
}

.timeline-item {
    position: relative; padding: 0 0 3rem 2.5rem;
    opacity: 0; transform: translateX(-20px);
    transition: opacity 0.6s, transform 0.6s;
}

.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
    position: absolute; left: -6px; top: 4px;
    width: 13px; height: 13px;
    background: var(--gold); transform: rotate(45deg);
}

.timeline-label {
    font-family: 'Cinzel', serif;
    font-size: 10px; letter-spacing: 0.3em;
    color: var(--gold); text-transform: uppercase;
    margin-bottom: 0.5rem; display: block;
}

.timeline-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 500;
    color: var(--gold-pale); margin-bottom: 0.5rem;
}

.timeline-body {
    font-size: 0.92rem; font-weight: 300; line-height: 1.8;
    color: rgba(245,230,192,0.65);
}

/* ── VENTURES ── */
#ventures { background: var(--cream-dark); }

.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.venture-card {
    background: var(--cream);
    border: 1px solid rgba(139,105,20,0.3);
    padding: 2rem; position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.venture-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    opacity: 0; transition: opacity 0.3s;
}

.venture-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(139,105,20,0.15); }
.venture-card:hover::before { opacity: 1; }

.venture-thumb { margin-bottom: 1rem; }
.venture-thumb img { width: 56px; height: 56px; object-fit: contain; }

.venture-icon { font-size: 2rem; margin-bottom: 1rem; }

.venture-name {
    font-family: 'Cinzel', serif;
    font-size: 13px; letter-spacing: 0.15em;
    color: var(--crimson-dark); margin-bottom: 0.5rem;
    text-transform: uppercase; font-weight: 600;
}

.venture-desc {
    font-size: 0.88rem; line-height: 1.7;
    color: var(--stone); font-weight: 400;
}

/* ── PHILANTHROPY ── */
#philanthropy {
    background: var(--crimson-dark); position: relative; overflow: hidden;
}

#philanthropy::after {
    content: '';
    position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px; border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.1);
    pointer-events: none;
}

#philanthropy .section-eyebrow { color: var(--gold); }
#philanthropy .section-title   { color: var(--gold-pale); }

.philan-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem; align-items: center;
}

.philan-image {
    width: 100%;
    border: 1px solid rgba(201,168,76,0.3);
    filter: sepia(0.15) brightness(0.9);
}

.philan-text { display: flex; flex-direction: column; gap: 1.5rem; }

.philan-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; line-height: 1.85;
    color: rgba(245,230,192,0.82); font-weight: 400;
}

.philan-text strong { color: var(--gold-light); }

.philan-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.75rem;
}

.philan-list li {
    display: flex; align-items: center; gap: 1rem;
    font-size: 0.9rem; color: rgba(232,201,122,0.8);
    font-weight: 400;
}

.philan-list li::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--gold); transform: rotate(45deg);
    flex-shrink: 0;
}

/* ── INSTITUTIONS ── */
#institutions { background: var(--cream); }

.inst-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.inst-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(139,105,20,0.2);
    background: var(--cream-dark);
    transition: border-color 0.3s, background 0.3s;
}

.inst-item:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.05);
}

.inst-gem {
    width: 10px; height: 10px;
    background: var(--gold); transform: rotate(45deg);
    flex-shrink: 0;
}

.inst-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem; font-weight: 500;
    color: var(--crimson-dark);
}

/* ── GALLERY ── */
#gallery { background: var(--ink); padding: 4rem 0; }
#gallery .section-heading { padding: 0 2rem; }
#gallery .section-eyebrow { color: var(--gold); }
#gallery .section-title   { color: var(--gold-pale); }

.gallery-strip {
    display: flex; gap: 4px;
    overflow: hidden; padding-top: 2rem;
}

.gallery-item {
    flex: 1; min-width: 0;
    aspect-ratio: 3/4; overflow: hidden;
    position: relative; cursor: pointer;
}

.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    filter: sepia(0.2) brightness(0.85) contrast(1.1);
    transition: transform 0.8s ease, filter 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: sepia(0) brightness(1) contrast(1.05);
}

.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,18,8,0.7) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── CONTACT ── */
#contact { background: var(--cream-dark); text-align: center; }

.contact-inner { max-width: 680px; margin: 0 auto; }

.contact-cta {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem; font-style: italic;
    color: var(--stone); margin-bottom: 2.5rem; line-height: 1.7;
}

.contact-email {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 14px; letter-spacing: 0.15em;
    color: var(--crimson-dark);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
    transition: color 0.3s;
}

.contact-email:hover { color: var(--gold-dark); }

.social-links {
    display: flex; justify-content: center;
    gap: 1rem; margin-top: 2.5rem; list-style: none;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    font-family: 'Cinzel', serif; font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--stone);
    border: 1px solid rgba(139,105,20,0.3);
    padding: 8px 18px;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.social-links a:hover {
    color: var(--gold-dark);
    border-color: var(--gold);
    background: rgba(201,168,76,0.07);
}

/* ── FOOTER ── */
#site-footer {
    background: var(--ink);
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(201,168,76,0.2);
}

.footer-crest {
    width: 44px; opacity: 0.6;
    margin: 0 auto 1rem;
    filter: invert(80%) sepia(30%) saturate(400%) hue-rotate(10deg);
}

.footer-text {
    font-family: 'Cinzel', serif;
    font-size: 10px; letter-spacing: 0.2em;
    color: rgba(201,168,76,0.4); text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .about-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
    .philan-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none;
        flex-direction: column;
        position: absolute; top: 68px; left: 0; right: 0;
        background: rgba(26,18,8,0.98);
        padding: 1.5rem 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--gold-dark);
    }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }
    .hero-name { font-size: 2.4rem; }
    .gallery-strip { flex-wrap: wrap; }
    .gallery-item { flex: 0 0 48%; }
}

@media (max-width: 480px) {
    section { padding: 4rem 1.25rem; }
    .gallery-item { flex: 0 0 100%; aspect-ratio: 4/3; }
    .nav-title { display: none; }
}
