/* ============================================================
   RML Medical College of Naturopathy & Yogic Science
   Shared stylesheet — HTML5 / CSS3
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --green-900:#123a24;
  --green-800:#14432b;
  --green-700:#166534;
  --green-600:#1e5a3b;
  --green-tint:#f1f8f1;
  --green-tint-2:#e4f0e6;
  --green-tint-3:#d7e8db;
  --bg:#fafbf7;
  --line:#e2eae2;
  --ink:#17251c;
  --muted:#46584c;
  --muted-2:#5b7263;
  --muted-3:#7a8c80;
  --accent-light:#c4dccb;
  --accent-mint:#9dcfab;
  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:10px;
  --maxw:1180px;
  --serif:'Marcellus', Georgia, serif;
  --sans:'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--sans);
  color:var(--muted);
  background:var(--bg);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; }
button{ font-family:inherit; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 48px; }

/* ---------- Top strip ---------- */
.top-strip{
  background:var(--green-900);
  color:#cfe6d6;
  font-size:13px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 48px;
  gap:16px;
  flex-wrap:wrap;
}
.top-strip .location{ letter-spacing:.02em; }
.top-strip .status{ display:flex; align-items:center; gap:8px; }
.dot{
  width:7px; height:7px; border-radius:50%;
  background:#6fcf8e;
  animation:breathe 3.2s ease-in-out infinite;
}

/* ---------- Header ---------- */
header.site-header{
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:0 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  position:sticky;
  top:0;
  z-index:50;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 0;
}
.brand-mark{
  width:46px; height:46px;
  border-radius:50%;
  background:var(--green-700);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.brand-mark span{
  width:20px; height:20px;
  background:var(--accent-light);
  border-radius:0 50%;
  transform:rotate(45deg);
}
.brand-text .name{
  font-family:var(--serif);
  font-size:19px; line-height:1.15;
  color:var(--green-800);
}
.brand-text .sub{
  font-size:11.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted-2);
}
nav.site-nav{ display:flex; align-items:center; gap:4px; }
nav.site-nav a{
  background:none;
  border:none;
  border-bottom:3px solid transparent;
  cursor:pointer;
  font-size:14.5px;
  font-weight:500;
  color:var(--muted);
  padding:22px 13px 19px;
  display:inline-block;
}
nav.site-nav a:hover{ color:var(--green-800); }
nav.site-nav a.active{
  color:var(--green-800);
  font-weight:600;
  border-bottom-color:var(--green-700);
}
.btn{
  display:inline-block;
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
  border:none;
  text-align:center;
}
.btn-primary{
  background:var(--green-700);
  color:#fff;
  padding:15px 30px;
  font-size:16px;
}
.btn-primary:hover{ background:var(--green-800); }
.btn-ghost{
  background:transparent;
  color:var(--green-800);
  border:1.5px solid #9dbfa8;
  padding:14px 28px;
  font-size:16px;
}
.btn-ghost:hover{ background:var(--green-tint); }
.btn-white{
  background:#fff;
  color:var(--green-800);
  padding:15px 30px;
  font-size:16px;
}
.btn-white:hover{ background:#eef5ee; }
.btn-small{
  padding:11px 22px;
  font-size:14px;
}
nav.site-nav .btn-primary{
  margin-left:14px;
  padding:11px 22px;
  font-size:14px;
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(170deg, #f1f8f1 0%, #fafbf7 70%);
  padding:84px 48px 130px;
}
.hero-grid{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:64px;
  align-items:center;
  position:relative;
  z-index:2;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid #c6dec8;
  background:#fff;
  border-radius:999px;
  padding:7px 16px;
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--green-700);
  font-weight:600;
}
h1{
  font-family:var(--serif);
  color:var(--green-800);
  margin:24px 0 20px;
  line-height:1.12;
}
.hero h1{ font-size:56px; max-width:640px; }
.hero p.lead{
  font-size:18px; line-height:1.65;
  max-width:540px; margin:0 0 34px;
}
.hero-cta{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; }

.hero-photo-wrap{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  min-height:420px;
}
.ring{
  position:absolute;
  border-radius:50%;
  border:1.5px solid #b9dcc4;
  animation:breathe 6s ease-in-out infinite;
}
.ring.r1{ width:420px; height:420px; }
.ring.r2{ width:340px; height:340px; border-color:#9ccdab; animation-delay:.8s; }
.hero-photo{
  width:300px; height:300px;
  border-radius:50%;
  overflow:hidden;
  box-shadow:0 24px 60px rgba(20,67,43,.25);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; }

.leaves{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.leaf{
  position:absolute; top:0;
  background:#7fbf95;
  border-radius:0 50% 0 50%;
  animation:leafDrift linear infinite;
}

.wave-divider{
  position:absolute; bottom:-2px; left:0; right:0;
  height:90px; overflow:hidden;
}
.wave-divider svg{ width:50%; height:90px; flex-shrink:0; }
.wave-track{ width:200%; height:90px; display:flex; animation:waveShift 14s linear infinite; }

@keyframes breathe{ 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.03); opacity:.7;} }
@keyframes leafDrift{ 0%{ transform:translateY(-40px) rotate(0deg); opacity:0;} 10%{opacity:1;} 100%{ transform:translateY(560px) rotate(200deg); opacity:0;} }
@keyframes waveShift{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
@keyframes pageEnter{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }

main{ flex:1; }
.page{ animation:pageEnter .55s ease-out; }

/* ---------- Generic sections ---------- */
section{ padding:72px 48px 40px; }
.section-tight{ padding:16px 48px 56px; }
.section-flush{ padding:0 48px 88px; }

h2{
  font-family:var(--serif);
  color:var(--green-800);
  font-size:34px;
  margin:0 0 40px;
}
.section-head-row{
  display:flex; justify-content:space-between; align-items:baseline; margin-bottom:28px;
}
.link-btn{
  background:none; border:none;
  color:var(--green-700);
  font-size:15px; font-weight:600; cursor:pointer;
}
.link-btn:hover{ text-decoration:underline; }

/* card grid */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:30px;
}
.card .icon{
  width:40px; height:40px;
  background:var(--green-tint-2);
  margin-bottom:20px;
}
.card .icon.diamond{ border-radius:0 50%; transform:rotate(45deg); }
.card .icon.circle{ border-radius:50%; }
.card .icon.square{ transform:rotate(45deg); margin:4px 0 20px 4px; width:32px; height:32px; }
.card h3{
  font-family:var(--serif);
  font-size:21px;
  color:var(--green-800);
  margin:0 0 10px;
}
.card p{ font-size:15px; line-height:1.65; margin:0; }

/* CTA banner */
.banner{
  max-width:var(--maxw); margin:0 auto;
  background:var(--green-800);
  border-radius:var(--radius-lg);
  padding:56px 60px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:40px;
  align-items:center;
}
.banner .kicker{
  font-size:13px; letter-spacing:.1em; text-transform:uppercase;
  color:#8fc7a2; font-weight:600; margin-bottom:12px;
}
.banner h2{ color:#fff; font-size:32px; margin:0 0 14px; }
.banner p{ color:#c4dccb; font-size:16px; line-height:1.65; max-width:640px; margin:0; }

/* photo tiles */
.photo-tile{
  border-radius:16px;
  overflow:hidden;
  position:relative;
  background:repeating-linear-gradient(45deg,#e4f0e6,#e4f0e6 12px,#d7e8db 12px,#d7e8db 24px);
}
.photo-tile img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-tile .cap{
  position:absolute; left:10px; bottom:10px;
  font-size:11.5px; color:#3c4b41;
  background:rgba(255,255,255,.85);
  padding:5px 10px; border-radius:6px;
}
.tiles-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.tiles-3 .photo-tile{ height:220px; }

/* ---------- Footer ---------- */
footer.site-footer{
  background:#123a24;
  color:#c4dccb;
  padding:56px 48px 32px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr;
  gap:48px;
  padding-bottom:40px;
  border-bottom:1px solid #1e5a3b;
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand .mark{
  width:38px; height:38px; border-radius:50%;
  background:#fff; display:flex; align-items:center; justify-content:center;
}
.footer-brand .mark span{
  width:16px; height:16px; background:var(--green-700);
  border-radius:0 50%; transform:rotate(45deg);
}
.footer-brand .fname{ font-family:var(--serif); font-size:18px; color:#fff; }
.footer-col-title{
  font-size:13px; text-transform:uppercase; letter-spacing:.1em;
  color:#8fc7a2; margin-bottom:16px;
}
.footer-links{
  display:grid; grid-template-columns:1fr 1fr; gap:8px 24px;
  list-style:none; padding:0; margin:0;
}
.footer-links a{ font-size:14px; color:#c4dccb; }
.footer-links a:hover{ text-decoration:underline; }
.footer-bottom{
  padding-top:24px; font-size:13px; color:#8fa898;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}

/* ---------- Forms ---------- */
.form-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:40px 44px;
  box-shadow:0 16px 44px rgba(20,67,43,.07);
}
.form-card h2{ font-size:24px; margin:0 0 26px; }
.field{ display:flex; flex-direction:column; gap:7px; font-size:13.5px; font-weight:600; color:#35473b; margin-bottom:20px; }
.field .optional{ font-weight:400; color:var(--muted-3); }
.field input, .field select, .field textarea{
  border:1px solid #cbd9ce;
  border-radius:10px;
  padding:13px 15px;
  font-size:15px;
  color:#17251c;
  background:var(--bg);
  font-family:inherit;
  width:100%;
}
.field textarea{ resize:vertical; }
.row-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-success{
  background:var(--green-tint);
  border:1px solid var(--accent-light);
  border-radius:14px;
  padding:22px 26px;
  color:var(--green-800);
  font-size:15px;
  display:none;
}
.form-success.show{ display:block; }

/* ---------- Page hero (sub pages) ---------- */
.page-head{
  background:var(--green-tint);
  padding:72px 48px 56px;
  border-bottom:1px solid var(--line);
}
.page-head h1{ font-size:46px; max-width:800px; }
.page-head p{ font-size:17px; line-height:1.7; max-width:760px; margin:0; }

/* stat/fact cards */
.grid-3-fact .card{ padding:26px; }
.grid-3-fact .fact-label{
  font-size:13px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--muted-2); margin-bottom:8px;
}
.grid-3-fact .fact-value{
  font-family:var(--serif); font-size:26px; color:var(--green-800);
}

/* programme structure rows */
.timeline-row{
  display:grid; grid-template-columns:200px 1fr; gap:24px; align-items:baseline;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:22px 28px; margin-bottom:14px;
}
.timeline-row .yr{ font-family:var(--serif); font-size:19px; color:var(--green-700); }
.timeline-row .subj{ font-size:15.5px; line-height:1.6; }
.note{ font-size:13.5px; color:var(--muted-3); margin:18px 0 0; }

.panel-dark{
  background:var(--green-800); border-radius:20px; padding:36px;
}
.panel-dark h2{ color:#fff; font-size:26px; margin:0 0 18px; }
.panel-dark ul{ list-style:none; padding:0; margin:0 0 26px; }
.panel-dark li{ font-size:15.5px; line-height:2; color:#c4dccb; padding-left:20px; position:relative; }
.panel-dark li::before{ content:'—'; position:absolute; left:0; color:#8fc7a2; }
.panel-light{
  background:var(--green-tint); border-radius:20px; padding:36px;
}
.panel-light h2{ font-size:26px; margin:0 0 18px; }
.panel-light ul{ list-style:none; padding:0; margin:0; }
.panel-light li{ font-size:15.5px; line-height:2; padding-left:20px; position:relative; }
.panel-light li::before{ content:'—'; position:absolute; left:0; color:var(--green-700); }

/* quote / principal */
.quote-banner{
  max-width:var(--maxw); margin:0 auto;
  background:var(--green-800); border-radius:24px;
  padding:52px 60px;
  display:grid; grid-template-columns:160px 1fr; gap:44px; align-items:center;
}
.quote-photo{
  width:160px; height:160px; border-radius:50%;
  overflow:hidden;
}
.quote-photo img{ width:100%; height:100%; object-fit:cover; }
.quote-banner .kicker{ font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:#8fc7a2; font-weight:600; margin-bottom:10px; }
.quote-banner blockquote{ font-family:var(--serif); font-size:23px; line-height:1.5; color:#fff; margin:0 0 16px; }
.quote-banner cite{ font-style:normal; font-size:14.5px; color:#c4dccb; }

/* contact cards */
.contact-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.contact-cards .card{ border-radius:18px; }
.contact-cards .label{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-2); margin-bottom:12px; }
.contact-cards .value{ font-family:var(--serif); font-size:20px; line-height:1.5; color:var(--green-800); }
.contact-cards .sub{ font-size:13.5px; color:var(--muted-3); margin-top:8px; }

.cta-row{
  margin-top:40px; background:var(--green-tint); border-radius:20px;
  padding:36px 40px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
}
.cta-row h2{ font-size:24px; margin:0 0 6px; }
.cta-row p{ font-size:15px; margin:0; }

/* locate page */
.locate-grid{ display:grid; grid-template-columns:1.4fr .6fr; gap:28px; align-items:start; }
.map-frame{
  border-radius:20px; overflow:hidden; border:1px solid var(--line); height:460px;
}
.map-frame iframe{ width:100%; height:100%; border:0; }
.info-stack{ display:flex; flex-direction:column; gap:18px; }
.info-stack .card{ border-radius:16px; padding:26px; }
.info-stack .card.tint{ background:var(--green-tint); border:none; }
.info-stack .label{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; color:var(--muted-2); }
.info-stack .card.tint .label{ color:var(--green-700); }
.info-stack .body{ font-size:15px; line-height:1.6; }

/* gallery */
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.gallery-grid .photo-tile{ border-radius:14px; }
.gallery-grid .tall{ height:260px; }
.gallery-grid .med{ height:230px; }
.gallery-grid .short{ height:200px; }

/* Mobile menu toggle */
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:10px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--green-800); margin:5px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid, .grid-2, .grid-3, .locate-grid{ grid-template-columns:1fr; }
  .grid-3-fact{ grid-template-columns:1fr; }
  .banner{ grid-template-columns:1fr; text-align:left; }
  .quote-banner{ grid-template-columns:1fr; text-align:left; }
  .quote-photo{ width:120px; height:120px; }
  .tiles-3{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-cards{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .row-2{ grid-template-columns:1fr; }
  .hero h1{ font-size:42px; }
}

@media (max-width: 760px){
  .wrap, section, .top-strip, header.site-header{ padding-left:20px; padding-right:20px; }
  .hero{ padding:56px 20px 100px; }
  .page-head{ padding:56px 20px 40px; }
  nav.site-nav{ display:none; }
  .nav-toggle{ display:block; }
  header.site-header.open nav.site-nav{
    display:flex; position:absolute; top:100%; left:0; right:0;
    background:#fff; flex-direction:column; align-items:stretch;
    border-bottom:1px solid var(--line); padding:8px 20px 16px;
  }
  header.site-header.open nav.site-nav a{ padding:14px 4px; border-bottom:1px solid var(--line); }
  header.site-header.open nav.site-nav .btn-primary{ margin:12px 0 0; text-align:center; }
  .cta-row{ flex-direction:column; align-items:flex-start; }
  .banner, .quote-banner{ padding:36px 28px; }
  .gallery-grid{ grid-template-columns:1fr 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; }
}
