/* =========================================================
   Rajalakshmi College of Nursing — shared site styles
   Palette sampled from live site (purple #8d5ea7 + gold).
   Type scale / spacing / radii / shadows from RMC+ system.
   ========================================================= */

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

:root{
  /* ---- Brand ---- */
  --purple:        #8d5ea7;
  --purple-600:    #7d4f96;
  --purple-700:    #6a4181;
  --purple-800:    #54336a;
  --purple-900:    #3a2750;
  --purple-200:    #d9c8e3;
  --purple-100:    #ece2f2;
  --purple-50:     #f6f1f9;

  --indigo:        #27275e;   /* deep card gradient anchor */
  --indigo-600:    #34336e;

  --gold:          #d4a017;
  --gold-600:      #be9112;
  --gold-700:      #a87d0e;
  --gold-200:      #f0dca0;
  --gold-100:      #f8eecb;
  --gold-50:       #fdf8e9;

  --ink:           #151b2a;   /* dark navy band + deep text */
  --ink-2:         #1c2336;

  /* ---- Neutrals ---- */
  --fg-1:          #20242e;
  --fg-2:          #4b5161;
  --fg-3:          #777d8c;
  --fg-4:          #9aa0ad;
  --line:          #e7e3ee;
  --line-strong:   #d6d0e0;
  --bg:            #ffffff;
  --bg-soft:       #f6f6f6;
  --bg-tint:       #f6f1f9;

  --success:       #1f9d66;

  /* ---- Signature gradients ---- */
  --hero-gradient: linear-gradient(105deg, #9163ab 0%, #7d4f96 38%, #43305c 70%, #1e1630 100%);
  --band-purple:   linear-gradient(180deg, #9264ac 0%, #7d4f96 100%);
  --grad-purple:   linear-gradient(150deg, #9b66b4 0%, #7d4f96 100%);
  --grad-indigo:   linear-gradient(150deg, #34336e 0%, #27275e 60%, #4a2f6e 100%);
  --grad-gold:     linear-gradient(150deg, #d9a92a 0%, #be9112 100%);

  /* ---- Type ---- */
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-display: clamp(34px, 4.6vw, 56px);
  --fs-h1:      clamp(30px, 3.4vw, 46px);
  --fs-h2:      clamp(25px, 2.5vw, 38px);
  --fs-h3:      clamp(19px, 1.7vw, 25px);
  --fs-h4:      18px;
  --fs-lead:    18px;
  --fs-body:    15px;
  --fs-sm:      13.5px;
  --fs-xs:      12px;

  /* ---- Radius ---- */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* ---- Spacing ---- */
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* ---- Shadows ---- */
  --sh-xs: 0 1px 2px rgba(21,27,42,.06);
  --sh-sm: 0 4px 12px rgba(21,27,42,.06), 0 1px 2px rgba(21,27,42,.04);
  --sh-md: 0 12px 28px rgba(21,27,42,.10), 0 2px 6px rgba(21,27,42,.05);
  --sh-lg: 0 24px 48px rgba(21,27,42,.14), 0 6px 14px rgba(21,27,42,.06);
  --sh-purple: 0 14px 30px rgba(125,79,150,.30);
  --sh-gold: 0 14px 30px rgba(190,145,18,.32);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2,.8,.2,1);
  --d2: 220ms; --d3: 360ms;

  --maxw: 1200px;
}

*{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html{ font-size: 15px; scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

h1,h2,h3,h4{ color: var(--purple-800); margin: 0; line-height: 1.18; letter-spacing: -.015em; }
h1{ font-size: var(--fs-h1); font-weight: 800; }
h2{ font-size: var(--fs-h2); font-weight: 800; }
h3{ font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; }
p{ margin: 0; }

.wrap{ width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gold{ color: var(--gold-600); }

/* =========================================================
   Top contact bar
   ========================================================= */
.topbar{
  background: var(--band-purple);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
}
.topbar .wrap{
  display: flex; justify-content: flex-end; align-items: center;
  gap: 26px; height: 38px;
}
.topbar a{ display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.92); }
.topbar a:hover{ color: #fff; }
.topbar svg{ width: 14px; height: 14px; color: var(--gold-200); }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--d2) var(--ease);
}
.site-header.scrolled{ box-shadow: var(--sh-sm); }
.header-inner{
  display: flex; align-items: center; gap: 22px;
  height: 78px;
}
.brand{ display: flex; align-items: center; gap: 12px; margin-right: auto; }
.crest{
  width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fff 0 38%, transparent 39%),
              conic-gradient(from 0deg, var(--purple), var(--gold), var(--purple-700), var(--gold-600), var(--purple));
  display: grid; place-items: center;
  position: relative; flex: none;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--line);
}
.crest::after{
  content: "RCN";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: .02em;
  color: var(--purple-800);
}
.brand-name{ display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b{ font-size: 18px; font-weight: 800; color: var(--purple-800); letter-spacing: .01em; }
.brand-name span{ font-size: 10.5px; font-weight: 600; letter-spacing: .18em; color: var(--gold-600); text-transform: uppercase; }

.nav{ display: flex; align-items: center; gap: 26px; }
.nav a{
  font-size: 14.5px; font-weight: 500; color: var(--fg-1);
  position: relative; padding: 6px 0;
}
.nav a:hover{ color: var(--purple); }
.nav a.active{ color: var(--purple); font-weight: 600; }
.nav a.active::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--gold);
}

.btn-enquiry{
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--grad-gold); color: var(--ink);
  font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: var(--r-pill); border: 0;
  cursor: pointer; box-shadow: var(--sh-gold);
  transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease);
}
.btn-enquiry:hover{ transform: translateY(-2px); box-shadow: 0 18px 36px rgba(190,145,18,.4); }
.btn-enquiry svg{ width: 16px; height: 16px; }

.nav-toggle{ display: none; background: none; border: 0; cursor: pointer; color: var(--purple-800); }
.nav-toggle svg{ width: 28px; height: 28px; }

/* =========================================================
   Hero banner (page title + breadcrumb)
   ========================================================= */
.hero1 {
  position: relative; overflow: hidden;
  background: var(--hero-gradient);
  color: #fff;
  padding: 74px 0 78px;
}
.hero1::before{  /* subtle dotted texture */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .35; mask-image: linear-gradient(100deg, #000 30%, transparent 78%);
}
.hero1::after{ /* warm bloom */
  content: ""; position: absolute; right: -8%; top: -40%;
  width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(212,160,23,.22), transparent 70%);
  pointer-events: none;
}
.hero1 .wrap{ position: relative; z-index: 1; }
.hero1 h1{ color: #fff; font-size: var(--fs-display); font-weight: 800; max-width: 16ch; }
.hero1 h1 .gold{ color: var(--gold); }
.hero1 .lead{
  margin-top: 16px; max-width: 60ch; font-size: var(--fs-lead);
  color: rgba(255,255,255,.85); font-weight: 400;
}
.crumbs{
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.78);
}
.crumbs a:hover{ color: #fff; }
.crumbs .sep{ color: rgba(255,255,255,.45); }
.crumbs .here{ color: var(--gold-200); font-weight: 600; }

/* =========================================================
   Sections + section heads
   ========================================================= */
.section{ padding: var(--s-24) 0; }
.section.soft{ background: var(--bg-soft); }
.section.tight{ padding: var(--s-16) 0; }

.eyebrow{
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600);
  padding: 7px 18px; border: 1px solid var(--gold-200);
  border-radius: var(--r-pill); background: var(--gold-50);
}
.sec-head{ text-align: center; max-width: 720px; margin: 0 auto var(--s-12); }
.sec-head .rule{ width: 46px; height: 3px; background: var(--gold); border-radius: 3px; margin: 16px auto 0; }
.sec-head h2{ margin-top: 16px; }
.sec-head h2 .gold{ color: var(--gold-600); }
.sec-head p{ margin-top: 14px; color: var(--fg-2); font-size: 16px; }
.sec-head.left{ text-align: left; margin-left: 0; }
.sec-head.left .rule{ margin-left: 0; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; border-radius: var(--r-pill);
  padding: 12px 24px; cursor: pointer; border: 0;
  transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease), background var(--d2) var(--ease);
}
.btn svg{ width: 17px; height: 17px; }
.btn-primary{ background: var(--grad-purple); color: #fff; box-shadow: var(--sh-purple); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 18px 36px rgba(125,79,150,.4); }
.btn-gold{ background: var(--grad-gold); color: var(--ink); box-shadow: var(--sh-gold); }
.btn-gold:hover{ transform: translateY(-2px); }
.btn-outline{ background: transparent; border: 1.5px solid var(--purple-200); color: var(--purple-700); }
.btn-outline:hover{ border-color: var(--purple); background: var(--purple-50); }
.btn-ghost{ background: var(--purple-700); color: #fff; }
.btn-ghost:hover{ background: var(--purple-100); }
.btn-read{
  background: none; padding: 0; color: var(--purple); font-weight: 600;
  border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
  font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--d2) var(--ease), color var(--d2) var(--ease);
}
.btn-read:hover{ color: var(--gold-600); gap: 12px; }

/* =========================================================
   Footer
   ========================================================= */
.predark{
background: linear-gradient(180deg, #e4b22e 0%, #d9a61e 100%);
  height: 10px;
}
.site-footer{ background: var(--band-purple); color: rgba(255,255,255,.82); padding: 64px 0 0; }
.foot-grid{
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px;
}
.foot-brand .brand-name b{ color: #fff; }
.foot-brand .brand-name span{ color: var(--gold-200); }
.foot-brand .crest{ box-shadow: inset 0 0 0 3px var(--purple-600), 0 0 0 1px rgba(255,255,255,.2); }
.foot-brand p{ margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,.72); max-width: 34ch; }
.socials{ display: flex; gap: 10px; margin-top: 18px; }
.socials a{
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); transition: background var(--d2) var(--ease), transform var(--d2) var(--ease);
}
.socials a:hover{ background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.socials svg{ width: 17px; height: 17px; }
.foot-col h4{ color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.foot-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a{ font-size: 13.5px; color: rgba(255,255,255,.78); display: inline-flex; gap: 8px; align-items: center; }
.foot-col a:hover{ color: var(--gold-200); }
.foot-col a .chev{ color: var(--gold-200); }
.foot-contact .ci{ display: flex; gap: 11px; margin-bottom: 16px; font-size: 13.5px; color: rgba(255,255,255,.82); }
.foot-contact .ci svg{ width: 17px; height: 17px; color: var(--gold-200); flex: none; margin-top: 2px; }
.foot-bottom{
  margin-top: 52px; border-top: 1px solid rgba(255,255,255,.16);
  padding: 22px 0; font-size: 12.5px; color: rgba(255,255,255,.66);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot-bottom .links{ display: flex; gap: 22px; }
.foot-bottom a:hover{ color: #fff; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
}

/* =========================================================
   Image slot styling hook
   ========================================================= */
image-slot{ background: var(--purple-50); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px){
  .nav, .topbar{ display: none; }
  .nav.open{
    display: flex; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; padding: 14px 24px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
  }
  .nav.open a{ width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open a.active::after{ display: none; }
  .nav-toggle{ display: block; }
  .header-inner{ height: 66px; }
  .btn-enquiry{ padding: 10px 16px; font-size: 13px; }
  .foot-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .section{ padding: var(--s-16) 0; }
  .hero1{ padding: 52px 0 56px; }
}
@media (max-width: 540px){
  .foot-grid{ grid-template-columns: 1fr; }
  .foot-bottom{ flex-direction: column; }
  .brand-name b{ font-size: 16px; }
}
