/* ============================================================
   MONJUR CHOWDHURY - MELODY HOMES INC.
   INDEX DESIGN SYSTEM & SUBPAGE STYLES
============================================================ */

/* CSS VARIABLES */
:root {
  --gold: #C9A84C; --gl: #E8C97A; --gd: #9A7A2E;
  --bg: #FAFAF8; --bg2: #F0EDE4; --card: #FFFFFF;
  --t1: #1A1714; --t2: #5C5347; --t3: #8C8074;
  --border: rgba(0, 0, 0, .08);
  --sh: 0 4px 30px rgba(0, 0, 0, .07);
  --shl: 0 20px 60px rgba(0, 0, 0, .13);
  --nav: rgba(250, 250, 248, .97);
}

[data-theme="dark"] {
  --bg: #0D0C0A; --bg2: #161410; --card: #1C1A15;
  --t1: #F0EDE4; --t2: #C8BFA8; --t3: #8C8074;
  --border: rgba(255, 255, 255, .07);
  --sh: 0 4px 30px rgba(0, 0, 0, .4);
  --shl: 0 20px 60px rgba(0, 0, 0, .55);
  --nav: rgba(13, 12, 10, .97);
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--t1);
  transition: background .4s, color .4s;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* PAGE LOADER */
.ldr {
  position: fixed; inset: 0; background: #090806; z-index: 9999;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.2rem;
  transition: opacity .8s ease;
}
.ldr.hide { opacity: 0; pointer-events: none; }
.ldr-logo { height: 100px; width: auto; object-fit: contain; animation: ldrPulse 1.5s ease infinite alternate; }
.ldr-bar { width: 160px; height: 1px; background: rgba(201, 168, 76, .15); border-radius: 1px; overflow: hidden; margin-top: .4rem; }
.ldr-fill { height: 100%; background: linear-gradient(90deg, var(--gd), var(--gold), var(--gl)); animation: ldrFill 2.2s cubic-bezier(.4,0,.2,1) forwards; width: 0; }
@keyframes ldrFill { to { width: 100%; } }
@keyframes ldrPulse { from { opacity: .7; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

/* NAVBAR */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%; background: var(--nav); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); transition: box-shadow .3s;
}
.nav-in { max-width: 1260px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nl img { height: 48px; width: auto; object-fit: contain; transition: opacity .3s; }
.nmenu { display: flex; align-items: center; gap: .2rem; }
.ni { position: relative; }
.nlink {
  display: flex; align-items: center; gap: 4px; padding: .5rem .9rem;
  font-size: .76rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--t2); transition: color .3s;
}
.nlink:hover, .nlink.act { color: var(--gold); }
.nlink svg { width: 10px; height: 10px; transition: transform .3s; }
.ni:hover .nlink svg { transform: rotate(180deg); }
.ndrop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--card); border: 1px solid var(--border); border-top: 2px solid var(--gold);
  min-width: 155px; box-shadow: var(--shl); opacity: 0; visibility: hidden; transition: all .3s; border-radius: 0 0 4px 4px;
}
.ni:hover .ndrop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.ndrop a {
  display: block; padding: .62rem 1.1rem; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--t2); transition: all .25s; border-bottom: 1px solid var(--border);
}
.ndrop a:last-child { border: none; }
.ndrop a:hover { color: var(--gold); background: var(--bg2); padding-left: 1.5rem; }
.nacts { display: flex; align-items: center; gap: .7rem; }
.thm {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--t2); transition: all .3s; font-size: .95rem;
}
.thm:hover { border-color: var(--gold); color: var(--gold); }
.hbg { display: none; flex-direction: column; gap: 5px; width: 38px; height: 38px; align-items: center; justify-content: center; background: none; }
.hbg span { display: block; width: 22px; height: 2px; background: var(--t1); transition: all .3s; border-radius: 2px; }
.hbg.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hbg.open span:nth-child(2) { opacity: 0; }
.hbg.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobnav {
  position: fixed; top: 72px; left: 0; right: 0; background: var(--nav); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); z-index: 999; display: none; flex-direction: column;
}
.mobnav.open { display: flex; }
.mobl { padding: .75rem 2rem; font-size: .86rem; color: var(--t2); cursor: pointer; display: flex; justify-content: space-between; transition: color .3s; }
.mobl:hover, .mobl.act { color: var(--gold); }
.mobsub { display: none; background: var(--bg2); }
.mobsub.open { display: block; }
.mobsub a { display: block; padding: .6rem 3rem; font-size: .8rem; color: var(--t3); transition: color .3s; }
.mobsub a:hover { color: var(--gold); }

/* BUTTONS */
.btn-g {
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 2rem;
  background: linear-gradient(135deg, var(--gd), var(--gold), var(--gl)); color: #0D0C0A;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  border-radius: 2px; transition: all .3s; position: relative; overflow: hidden;
}
.btn-g::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .12); opacity: 0; transition: opacity .3s; }
.btn-g:hover::after { opacity: 1; }
.btn-g:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(201, 168, 76, .45); }
.btn-o {
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 2rem;
  border: 1.5px solid var(--gold); color: var(--gold); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; border-radius: 2px; transition: all .3s; background: transparent;
}
.btn-o:hover { background: var(--gold); color: #0D0C0A; transform: translateY(-3px); box-shadow: 0 14px 40px rgba(201, 168, 76, .3); }

/* HERO - MAIN */
#home { position: relative; height: 100vh; min-height: 720px; overflow: hidden; }
.hslides { position: absolute; inset: 0; }
.hslide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease;
  background-size: cover; background-position: center; will-change: opacity;
}
.hslide.act { opacity: 1; animation: kenBurns 8s ease-out forwards; }
@keyframes kenBurns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hovl {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(6,5,3,.95) 0%, rgba(6,5,3,.75) 42%, rgba(6,5,3,.2) 100%),
              linear-gradient(to top, rgba(6,5,3,.6) 0%, transparent 40%);
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(201,168,76,.03) 80px, rgba(201,168,76,.03) 81px),
                    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(201,168,76,.03) 80px, rgba(201,168,76,.03) 81px);
}
.hcont {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center;
  padding: 0 5%; max-width: 1260px; margin: 0 auto; left: 50%; transform: translateX(-50%); width: 100%; gap: 4rem;
}
.hleft { flex: 1; max-width: 580px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.6rem; opacity: 0; animation: slideRight .8s .3s cubic-bezier(.22,1,.36,1) forwards; }
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--gold); }
.hero-eyebrow-text { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gl); }
.htitle {
  font-family: "Playfair Display", serif; font-size: clamp(2.6rem,5.2vw,4.8rem);
  font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 1.2rem;
  opacity: 0; animation: slideRight .9s .5s cubic-bezier(.22,1,.36,1) forwards;
}
.htitle .gd {
  color: transparent; background: linear-gradient(135deg,var(--gl),var(--gold),var(--gd));
  -webkit-background-clip: text; background-clip: text; display: block;
}
.hero-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 1.4rem; opacity: 0; animation: slideRight .8s .65s cubic-bezier(.22,1,.36,1) forwards; }
.hero-divider span { width: 50px; height: 1px; background: rgba(201,168,76,.4); }
.hero-divider p { font-family: "Cormorant Garamond", serif; font-size: 1.12rem; font-style: italic; color: rgba(255,255,255,.6); }
.hstats { display: flex; gap: 0; margin-bottom: 2.2rem; opacity: 0; animation: slideRight .8s .8s cubic-bezier(.22,1,.36,1) forwards; }
.hstat { padding: .8rem 1.6rem; border-left: 1px solid rgba(201,168,76,.25); position: relative; }
.hstat:first-child { border-left: none; padding-left: 0; }
.hstat .n { font-family: "Playfair Display", serif; font-size: 2rem; font-weight: 700; color: var(--gl); line-height: 1; }
.hstat .l { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 4px; }
.hbtns { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: slideRight .8s 1s cubic-bezier(.22,1,.36,1) forwards; }

.hright { flex-shrink: 0; display: flex; align-items: flex-end; position: relative; }
.hero-photo-card { position: relative; width: 320px; opacity: 0; animation: photoReveal 1.2s .6s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes photoReveal { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hero-photo-card::before {
  content: ""; position: absolute; top: -16px; right: -16px; width: 100px; height: 100px;
  border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); z-index: 3; border-radius: 0 4px 0 0; opacity: .7;
}
.hero-photo-card::after {
  content: ""; position: absolute; bottom: 60px; left: -16px; width: 80px; height: 80px;
  border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); z-index: 3; border-radius: 0 0 0 4px; opacity: .7;
}
.hero-photo-img-wrap {
  position: relative; border-radius: 4px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(201,168,76,.15);
}
.hero-photo-img-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,rgba(0,0,0,.65) 0%,rgba(0,0,0,.1) 45%,transparent 70%);
}
.hero-photo-img-wrap img {
  width: 100%; height: 520px; object-fit: cover; object-position: center 15%; display: block;
  transition: transform .6s ease; filter: contrast(1.04) brightness(1.02);
}
.hero-photo-card:hover .hero-photo-img-wrap img { transform: scale(1.03); }
.hero-name-badge {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 1rem 1.2rem;
  background: linear-gradient(to right, rgba(6,5,3,.9), rgba(6,5,3,.7)); border-top: 1px solid rgba(201,168,76,.25);
  display: flex; align-items: center; gap: 10px;
}
.hero-name-badge img { height: 38px; width: auto; object-fit: contain; flex-shrink: 0; }
.hero-name-badge-sep { width: 1px; height: 36px; background: rgba(201,168,76,.3); flex-shrink: 0; }
.hero-name-badge-text .n { font-family: "Playfair Display", serif; font-size: .88rem; font-weight: 700; color: #fff; line-height: 1.2; }
.hero-name-badge-text .t { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.hero-award {
  position: absolute; top: 24px; right: -20px; z-index: 4;
  background: linear-gradient(135deg,var(--gd),var(--gold)); color: #0D0C0A; padding: .65rem .9rem;
  border-radius: 4px; text-align: center; box-shadow: 0 8px 30px rgba(201,168,76,.4);
  animation: floatBadge 3s ease-in-out infinite;
}
.hero-award .num { font-family: "Playfair Display", serif; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.hero-award .lbl { font-size: .52rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.sdots { position: absolute; bottom: 32px; left: 5%; z-index: 10; display: flex; gap: .5rem; align-items: center; }
.sdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; transition: all .4s; }
.sdot.act { background: var(--gold); width: 24px; border-radius: 3px; }
.sarr-wrap { position: absolute; bottom: 24px; right: 5%; z-index: 10; display: flex; gap: .5rem; }
.sa {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201,168,76,.35);
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px); color: var(--gl); display: flex;
  align-items: center; justify-content: center; font-size: .95rem; transition: all .3s;
}
.sa:hover { background: var(--gold); color: #0D0C0A; border-color: var(--gold); transform: scale(1.08); }
.scrl {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.35);
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
}
.scrl-line { width: 1px; height: 44px; background: linear-gradient(to bottom,rgba(201,168,76,.6),transparent); animation: scrlA 2.2s ease-in-out infinite; }
@keyframes scrlA { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@keyframes slideRight { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* INNER HERO HEADER FOR SUBPAGES */
.inner-hero {
  position: relative; padding: 140px 5% 70px; background: #0c0a08; overflow: hidden; text-align: center;
}
.inner-hero-bg {
  position: absolute; inset: 0; background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80&fit=crop');
  background-size: cover; background-position: center; opacity: .25; filter: blur(2px);
}
.inner-hero-cont { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.inner-hero .htitle { opacity: 1; animation: none; font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 0.8rem; }
.inner-hero .hero-eyebrow { opacity: 1; animation: none; justify-content: center; }
.inner-hero .hero-divider { opacity: 1; animation: none; justify-content: center; margin-bottom: 0; }

/* STATS STRIP */
#stats { padding: 0; background: linear-gradient(135deg,#0e0c09,#161210); }
.stats-in { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.sbox { text-align: center; padding: 2.2rem 1rem; border-right: 1px solid rgba(201,168,76,.08); transition: background .3s; position: relative; overflow: hidden; }
.sbox::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gold); transition: width .4s; }
.sbox:hover::after { width: 60%; }
.sbox:last-child { border: none; }
.sbox:hover { background: rgba(201,168,76,.04); }
.sbox .n { font-family: "Playfair Display", serif; font-size: 2.6rem; font-weight: 700; color: var(--gl); line-height: 1; }
.sbox .l { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-top: .5rem; }

/* ABOUT SECTION */
#about { background: var(--bg); padding: 100px 5%; }
.ag { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: center; max-width: 1260px; margin: 0 auto; }
.aimg-col { position: relative; }
.aimg-frame { position: relative; z-index: 1; }
.aimg-frame::before {
  content: ""; position: absolute; top: -14px; left: -14px; right: 14px; bottom: -14px;
  border: 1px solid rgba(201,168,76,.2); border-radius: 4px; z-index: 0;
}
.aimg-frame::after {
  content: ""; position: absolute; top: 14px; left: 14px; right: -14px; bottom: -28px;
  background: linear-gradient(135deg,rgba(201,168,76,.08),rgba(201,168,76,.02)); border-radius: 4px; z-index: -1;
}
.aimg {
  width: 100%; height: 600px; object-fit: cover; object-position: left top; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.2); position: relative; z-index: 1; filter: contrast(1.03) brightness(1.01);
  transition: transform .6s ease;
}
.aimg-col:hover .aimg { transform: scale(1.01); }
.ayrs {
  position: absolute; bottom: 40px; right: -28px; z-index: 3; background: var(--bg);
  border: 1px solid var(--border); border-left: 3px solid var(--gold); padding: 1.2rem 1.4rem;
  box-shadow: var(--shl); border-radius: 0 6px 6px 0; text-align: center;
}
.ayrs .n { font-family: "Playfair Display", serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.ayrs .t { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); margin-top: 4px; }
.aimg-mc {
  position: absolute; top: -20px; right: 20px; z-index: 2; height: 50px; width: auto; object-fit: contain; opacity: .12;
}
[data-theme="dark"] .aimg-mc { filter: invert(1) brightness(2); opacity: .1; }

.slbl { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.stitle { font-family: "Playfair Display", serif; font-size: clamp(1.9rem,3.5vw,2.9rem); color: var(--t1); line-height: 1.2; }
.gbar { width: 50px; height: 2px; background: linear-gradient(90deg,var(--gold),var(--gl)); margin: 1rem 0; border-radius: 1px; }
.gbar.c { margin-left: auto; margin-right: auto; }

.atags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0; }
.atag { padding: .3rem .85rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; font-size: .7rem; color: var(--t2); transition: all .3s; }
.atag:hover { border-color: rgba(201,168,76,.4); color: var(--gold); }
.atag.g { background: rgba(201,168,76,.08); border-color: rgba(201,168,76,.25); color: var(--gold); }
.ainfo { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin: 1.2rem 0; }
.ai .l { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.ai .v { font-size: .9rem; font-weight: 500; color: var(--t1); margin-top: 2px; }
.phil {
  margin-top: 1.4rem; padding: 1.4rem 1.6rem; background: var(--bg2); border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0; position: relative; overflow: hidden;
}
.phil::before {
  content: "\201C"; position: absolute; top: -10px; left: 8px; font-family: "Playfair Display", serif;
  font-size: 5rem; color: rgba(201,168,76,.12); line-height: 1;
}
.phil blockquote { font-family: "Cormorant Garamond", serif; font-size: 1.1rem; font-style: italic; color: var(--t1); line-height: 1.7; position: relative; z-index: 1; }
.phil cite { display: block; margin-top: .5rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* CHARITY / PHILANTHROPY */
#charity { padding: 90px 5%; background: var(--bg2); }
.chgrid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 55px; align-items: center; margin-top: 3rem; max-width: 1260px; margin-left: auto; margin-right: auto; }
.chcards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chcard { background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--sh); transition: all .4s; }
.chcard:hover { transform: translateY(-7px); box-shadow: var(--shl); border-color: rgba(201,168,76,.3); }
.chimg { height: 145px; overflow: hidden; }
.chimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.chcard:hover .chimg img { transform: scale(1.08); }
.chbody { padding: 1rem 1.1rem; }
.chico { font-size: 1.5rem; margin-bottom: .4rem; }
.chtit { font-family: "Playfair Display", serif; font-size: .9rem; color: var(--t1); margin-bottom: .3rem; }
.chdesc { font-size: .76rem; color: var(--t2); line-height: 1.6; }
.ch-quote-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--sh); }
.ch-img-main { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform .6s; }
.ch-quote-wrap:hover .ch-img-main { transform: scale(1.03); }
.ch-quote-body { padding: 1.6rem; border-top: 2px solid var(--gold); }
.ch-quote-body blockquote { font-family: "Cormorant Garamond", serif; font-size: 1.28rem; font-style: italic; color: var(--t1); line-height: 1.65; margin-bottom: .8rem; }
.ch-quote-body cite { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* EDUCATION & PHILOSOPHY */
#education { background: var(--bg); padding: 90px 5%; }
.edugrid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; margin-top: 3rem; max-width: 1260px; margin-left: auto; margin-right: auto; }
.eduitem { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.eduitem:last-child { border: none; }
.eduico { width: 44px; height: 44px; background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.22); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: all .3s; }
.eduitem:hover .eduico { background: rgba(201,168,76,.15); border-color: rgba(201,168,76,.4); }
.eduyear { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.edudeg { font-family: "Playfair Display", serif; font-size: .95rem; color: var(--t1); margin-bottom: 2px; }
.edusch { font-size: .8rem; color: var(--t2); }
.phils { display: flex; flex-direction: column; gap: .9rem; }
.philc { padding: 1.2rem 1.4rem; background: var(--bg2); border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0; transition: all .3s; cursor: default; }
.philc:hover { background: var(--card); box-shadow: var(--sh); transform: translateX(4px); }
.philc .pt { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .38rem; }
.philc p { font-size: .83rem; color: var(--t2); line-height: 1.65; }

/* SERVICES SECTION */
#services { background: var(--bg); padding: 90px 5%; }
.srvgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; max-width: 1260px; margin: 3rem auto 0; }
.srvcard { background: var(--card); border: 1px solid var(--border); border-top: 2px solid var(--gold); border-radius: 6px; padding: 2rem; box-shadow: var(--sh); transition: all .4s; }
.srvcard:hover { transform: translateY(-8px); box-shadow: var(--shl); border-color: var(--gold); }
.srvico { width: 54px; height: 54px; background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--gold); margin-bottom: 1.2rem; }
.srvtit { font-family: "Playfair Display", serif; font-size: 1.25rem; color: var(--t1); margin-bottom: .6rem; }
.srvsum { font-size: .86rem; color: var(--t2); line-height: 1.7; margin-bottom: 1rem; }

/* PROJECTS */
#projects { background: var(--bg2); padding: 90px 5%; }
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; max-width: 1260px; margin-left: auto; margin-right: auto; }
.tbtn { padding: .75rem 1.8rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .3s; }
.tbtn.act { color: var(--gold); border-bottom-color: var(--gold); }
.tcon { display: none; animation: fadeIn .4s; }
.tcon.act { display: block; }
.pgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; max-width: 1260px; margin: 0 auto; }
.pcard { background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--sh); transition: all .4s; }
.pcard:hover { transform: translateY(-9px); box-shadow: var(--shl); border-color: rgba(201,168,76,.25); }
.pimg { height: 220px; overflow: hidden; position: relative; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.pcard:hover .pimg img { transform: scale(1.08); }
.pimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.4),transparent 55%); }
.pbadge { position: absolute; top: 12px; right: 12px; padding: .3rem .8rem; border-radius: 20px; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; z-index: 1; }
.sold { background: rgba(15,60,15,.85); color: #6fef6f; border: 1px solid rgba(50,130,50,.5); }
.ong { background: rgba(201,168,76,.18); color: var(--gl); border: 1px solid rgba(201,168,76,.4); }
.upc { background: rgba(70,120,255,.15); color: #99bbff; border: 1px solid rgba(70,120,255,.3); }
.pbody { padding: 1.3rem; }
.ptype { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .32rem; }
.ptit { font-family: "Playfair Display", serif; font-size: 1.08rem; color: var(--t1); margin-bottom: .28rem; }
.ploc { font-size: .78rem; color: var(--t3); margin-bottom: .65rem; }
.pprice { font-family: "Playfair Display", serif; font-size: 1.28rem; color: var(--gold); font-weight: 700; }
.pmeta { display: flex; gap: .9rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border); font-size: .7rem; color: var(--t3); }

/* GALLERY */
#gallery { background: var(--bg); padding: 90px 5%; }
.ggrid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 195px; gap: 8px; max-width: 1260px; margin: 2rem auto 0; }
.gi { position: relative; overflow: hidden; border-radius: 3px; cursor: pointer; }
.gi:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gi:nth-child(5) { grid-column: span 2; }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gi:hover img { transform: scale(1.1); }
.govl {
  position: absolute; inset: 0; background: linear-gradient(135deg,rgba(0,0,0,.65),rgba(201,168,76,.15));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s; gap: .4rem; color: #fff;
}
.gi:hover .govl { opacity: 1; }
.govl span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gl); }

/* BLOG */
#blog { background: var(--bg2); padding: 90px 5%; }
.bgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; max-width: 1260px; margin: 0 auto; }
.bcard { background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--sh); transition: all .4s; display: flex; flex-direction: column; }
.bcard:hover { transform: translateY(-7px); box-shadow: var(--shl); border-color: rgba(201,168,76,.25); }
.bimgw { height: 200px; overflow: hidden; position: relative; }
.bimgw img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bcard:hover .bimgw img { transform: scale(1.07); }
.bimgw::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.35),transparent 55%); }
.bcat { position: absolute; bottom: 10px; left: 12px; background: var(--gold); color: #0D0C0A; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .26rem .72rem; border-radius: 2px; z-index: 1; }
.bbody { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.bdate { font-size: .68rem; color: var(--t3); margin-bottom: .5rem; }
.btit { font-family: "Playfair Display", serif; font-size: 1.02rem; color: var(--t1); line-height: 1.4; margin-bottom: .5rem; transition: color .3s; }
.bcard:hover .btit { color: var(--gold); }
.bex { font-size: .8rem; color: var(--t2); line-height: 1.65; margin-bottom: 1rem; flex: 1; }
.blink { display: inline-flex; align-items: center; gap: 5px; font-size: .73rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); transition: gap .3s; margin-top: auto; }
.bcard:hover .blink { gap: 9px; }

/* BLOG DETAILS PAGE STYLES */
.blog-detail-wrapper {  margin: 0 auto; padding: 60px 5%; }
.blog-detail-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: var(--shl); padding: 2.5rem; }
.blog-detail-header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.blog-detail-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.blog-detail-meta .bcat { position: relative; bottom: 0; left: 0; display: inline-block; }
.blog-detail-meta .bdate { margin-bottom: 0; font-size: .78rem; }
.blog-detail-title { font-family: "Playfair Display", serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--t1); line-height: 1.25; margin-bottom: 1.2rem; }
.blog-detail-image-wrap { margin-bottom: 2.5rem; border-radius: 6px; overflow: hidden; box-shadow: var(--sh); }
.blog-detail-image-wrap img { width: 100%; max-height: 480px; object-fit: cover; }
.blog-detail-content { color: var(--t1); font-size: 1rem; line-height: 1.85; }
.blog-detail-content p { margin-bottom: 1.5rem; color: var(--t2); }
.blog-detail-content h2, .blog-detail-content h3 { font-family: "Playfair Display", serif; color: var(--t1); margin: 2rem 0 1rem; }
.blog-detail-content blockquote {
  padding: 1.5rem 1.8rem; background: var(--bg2); border-left: 4px solid var(--gold);
  font-family: "Cormorant Garamond", serif; font-size: 1.25rem; font-style: italic; margin: 2rem 0; border-radius: 0 4px 4px 0;
}
.blog-detail-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.author-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; background: var(--bg2); border-radius: 6px; margin-top: 2.5rem; border-left: 3px solid var(--gold); }
.author-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-card-info h4 { font-family: "Playfair Display", serif; font-size: 1rem; color: var(--t1); }
.author-card-info p { font-size: .8rem; color: var(--t3); margin-top: 2px; }

/* CONTACT */
#contact { background: var(--bg); padding: 90px 5%; }
.cgrid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 70px; max-width: 1260px; margin: 0 auto; align-items: start; }
.ci { display: flex; gap: 1.1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.ci:last-of-type { border: none; }
.cico { width: 44px; height: 44px; background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.05rem; flex-shrink: 0; transition: all .3s; }
.ci:hover .cico { background: rgba(201,168,76,.15); transform: scale(1.05); }
.cl { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); margin-bottom: 3px; }
.cv { font-size: .9rem; font-weight: 500; color: var(--t1); }
.socrow { display: flex; gap: .65rem; margin-top: 1.8rem; }
.socb { width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg2); color: var(--t2); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; transition: all .3s; }
.socb:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.08); transform: translateY(-4px); }
.fwrap { background: var(--card); border: 1px solid var(--border); border-top: 2px solid var(--gold); border-radius: 4px; padding: 2.2rem; box-shadow: var(--sh); }
.fwrap h3 { font-family: "Playfair Display", serif; font-size: 1.45rem; margin-bottom: .3rem; }
.fwrap p { font-size: .8rem; color: var(--t3); margin-bottom: 1.5rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fg { display: flex; flex-direction: column; gap: .38rem; margin-bottom: .85rem; }
.fg label { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); }
.fg input, .fg select, .fg textarea {
  padding: .8rem 1rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 3px;
  color: var(--t1); font-family: "DM Sans", sans-serif; font-size: .86rem; transition: all .3s; outline: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--gold); background: var(--bg); box-shadow: 0 0 0 3px rgba(201,168,76,.06); }
.fg textarea { resize: vertical; min-height: 90px; }
.fok { display: none; text-align: center; padding: 1.1rem; background: rgba(80,200,80,.06); border: 1px solid rgba(80,200,80,.2); border-radius: 3px; color: #5ac85a; margin-top: .8rem; font-size: .86rem; }

/* FOOTER */
#footer { background: #090805; border-top: 1px solid rgba(201,168,76,.12); padding: 55px 5% 24px; margin-top: auto; }
.fgrid { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.flogo { height: 80px; width: auto; object-fit: contain; margin-bottom: .6rem; opacity: .9; }
.fbdesc { font-size: .8rem; line-height: 1.75; color: rgba(255,255,255,.45); max-width: 265px; }
.fcol h4 { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.fcol a { display: block; font-size: .8rem; color: rgba(255,255,255,.42); padding: .28rem 0; transition: color .3s; }
.fcol a:hover { color: var(--gl); }
.fbot { max-width: 1260px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 1.3rem; font-size: .72rem; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: .5rem; }

/* SCROLL REVEAL */
.rev { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.rev.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* RESPONSIVE */
@media(max-width:1060px){
  .nmenu { display: none; } .hbg { display: flex; }
  .hright { display: none; }
  .hcont { justify-content: center; text-align: center; }
  .hstats { justify-content: center; }
  .hbtns { justify-content: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-divider { justify-content: center; }
  .ag { grid-template-columns: 1fr; gap: 2.5rem; }
  .aimg { height: 420px; object-position: center top; }
  .ayrs { right: 14px; bottom: 14px; }
  .stats-in { grid-template-columns: repeat(2,1fr); }
  .chgrid { grid-template-columns: 1fr; }
  .edugrid { grid-template-columns: 1fr; }
  .srvgrid { grid-template-columns: repeat(2,1fr); }
  .pgrid { grid-template-columns: repeat(2,1fr); }
  .bgrid { grid-template-columns: repeat(2,1fr); }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media(max-width:700px){
  section { padding: 65px 4%; }
  #about,#charity,#education,#services,#projects,#gallery,#blog,#contact { padding: 65px 4%; }
  .srvgrid, .pgrid, .bgrid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: 1fr; gap: 2rem; }
  .ggrid { grid-template-columns: repeat(2,1fr); }
  .gi:nth-child(1), .gi:nth-child(5) { grid-column: span 1; }
  .gi { height: 155px; }
  .chcards { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .fbot { flex-direction: column; text-align: center; }
  .hstats { gap: 0; flex-wrap: wrap; }
  .hstat { padding: .6rem 1rem; }
  .blog-detail-card { padding: 1.5rem; }
}
