/* =====================================================================
   RAMJAS CONSULTING SOCIETY — shared stylesheet
   Loaded on EVERY page. Holds design tokens + the header component.
   Page-specific styles (hero, ring, etc.) live in their own CSS file
   and are loaded in addition to this one.
   ===================================================================== */
:root{
  --maya:#8FC9FF;
  --sky:#A2D2FF;
  --uranian:#BDE0FE;
  --columbia:#D1E8FC;
  --alice:#E5F0FA;
  --ink:#132743;
  --ink-soft:#3C5875;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth; overflow-x:hidden;}
body{
  font-family:'Inter',sans-serif;
  background-color: #E5F0FA;
  background-image:
    linear-gradient(rgba(19, 39, 67, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 39, 67, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color:var(--ink);
  overflow-x:hidden;
}

/* ================= HEADER ================= */
.site-header{
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  width:min(830px, 92vw);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 12px 8px 18px;
  border-radius:24px;
  background:rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  backdrop-filter:blur(24px) saturate(180%);
  border:1px solid rgba(19, 39, 67, 0.08);
  box-shadow: 0 10px 32px rgba(19, 39, 67, 0.07), 0 1px 3px rgba(19, 39, 67, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  z-index:1000;
  transition:
    transform .4s cubic-bezier(.22,.9,.34,1),
    opacity .35s ease,
    width .55s cubic-bezier(.65,0,.35,1),
    padding .55s cubic-bezier(.65,0,.35,1),
    border-radius .55s cubic-bezier(.65,0,.35,1),
    top .55s cubic-bezier(.65,0,.35,1),
    background .4s ease,
    border-color .4s ease,
    box-shadow .4s ease;
}

.site-header.header-hidden {
  transform: translate(-50%, -150%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand a{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}
.brand img{
  width:38px;
  height:38px;
  border-radius:50%;
  flex-shrink:0;
  background:#fff;
  border:1px solid rgba(19, 39, 67, 0.08);
  box-shadow:0 1px 4px rgba(19, 39, 67, 0.08);
  transition:width .4s cubic-bezier(.65,0,.35,1), height .4s cubic-bezier(.65,0,.35,1);
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  transition:max-width .5s cubic-bezier(.65,0,.35,1), opacity .4s ease, margin .5s ease;
  max-width:260px;
  opacity:1;
}
.brand-text .name{
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:1.02rem;
  color:var(--ink);
  transition:font-size .4s ease;
}
.brand-text .tag{
  font-size:0.66rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-top:2px;
  transition:opacity .3s ease;
}

nav.full-nav{
  display:flex;
  align-items:center;
  gap:4px;
  margin-left:auto;
  transition:opacity .35s ease, max-width .5s ease;
}
nav.full-nav a{
  text-decoration:none;
  color:var(--ink-soft);
  font-size:0.86rem;
  font-weight:500;
  padding:8px 14px;
  border-radius:999px;
  white-space:nowrap;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
nav.full-nav a:hover{
  color:var(--ink);
  background:rgba(19, 39, 67, 0.05);
}
nav.full-nav a.active{
  background:#0f243e;
  color:#ffffff;
  font-weight:600;
  box-shadow:0 2px 8px rgba(15, 36, 62, 0.22);
}
nav.full-nav a.cta{
  background:#0f243e;
  color:#ffffff;
  padding:8px 18px;
  font-weight:600;
  box-shadow:0 2px 8px rgba(15, 36, 62, 0.18);
}
nav.full-nav a.cta:hover{
  background:#1a365d;
  color:#ffffff;
}

nav.compact-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  opacity:0;
  max-width:0;
  position:absolute;
  pointer-events:none;
  flex:0 0 auto;
  overflow:hidden;
  transition:opacity .3s ease, max-width .5s cubic-bezier(.65,0,.35,1);
}
nav.compact-nav a{
  display:flex;
  align-items:center;
  justify-content:center;
  height:32px;
  padding:0 12px;
  border-radius:999px;
  color:var(--ink-soft);
  text-decoration:none;
  font-size:0.78rem;
  font-weight:500;
  white-space:nowrap;
  flex:0 0 auto;
  transition:background .2s ease, color .2s ease;
}
nav.compact-nav a:hover{
  color:var(--ink);
  background:rgba(19, 39, 67, 0.05);
}
nav.compact-nav a.active{
  background:#0f243e;
  color:#ffffff;
  font-weight:600;
  box-shadow:0 2px 8px rgba(15, 36, 62, 0.22);
}

/* ---------- Scrolled / dynamic-island state ---------- */
.site-header.is-scrolled{
  width:fit-content;
  max-width:92vw;
  padding:5px 12px 5px 8px;
  border-radius:999px;
  top:14px;
  justify-content:flex-start;
  align-items:center;
  gap:6px;
  background:rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter:blur(24px) saturate(190%);
  backdrop-filter:blur(24px) saturate(190%);
  border:1px solid rgba(19, 39, 67, 0.09);
  box-shadow: 0 12px 34px rgba(19, 39, 67, 0.09), 0 2px 6px rgba(19, 39, 67, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}
.site-header.is-scrolled .brand{
  gap:0;
  align-items:center;
}
.site-header.is-scrolled .brand-text{
  max-width:0;
  opacity:0;
  margin:0;
  pointer-events:none;
}
.site-header.is-scrolled .brand-text .tag{
  opacity:0;
  max-height:0;
  overflow:hidden;
}
.site-header.is-scrolled .brand-text .name{
  font-size:0.88rem;
}
.site-header.is-scrolled .brand img{
  width:30px;
  height:30px;
  margin-left:0;
  border:1px solid rgba(19, 39, 67, 0.08);
  box-shadow:0 1px 3px rgba(19, 39, 67, 0.08);
}
.site-header.is-scrolled nav.full-nav{
  opacity:0;
  max-width:0;
  pointer-events:none;
  position:absolute;
}
.site-header.is-scrolled nav.compact-nav{
  position:relative;
  pointer-events:auto;
  opacity:1;
  max-width:580px;
  margin-left:4px;
}

@media (max-width:1020px){
  .site-header{width:min(830px, 94vw); padding:8px 12px 8px 16px;}
  nav.full-nav a{padding:7px 10px; font-size:0.82rem;}
  .brand-text .name{font-size:0.95rem;}
}
@media (max-width:820px){
  nav.full-nav{display:none;}
  .site-header{
    width:fit-content;
    max-width:96vw;
    padding:5px 8px 5px 6px;
    gap:4px;
    top:12px;
    background:rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter:blur(24px) saturate(190%);
    backdrop-filter:blur(24px) saturate(190%);
    border:1px solid rgba(19, 39, 67, 0.09);
    box-shadow: 0 10px 30px rgba(19, 39, 67, 0.09), 0 2px 4px rgba(19, 39, 67, 0.04);
  }
  .brand-text{display:none;}
  .brand img{
    width:28px;
    height:28px;
  }
  nav.compact-nav{
    position:relative;
    pointer-events:auto;
    opacity:1;
    max-width:580px;
    gap:2px;
  }
  nav.compact-nav a{
    padding:0 clamp(6px, 1.6vw, 10px);
    font-size:clamp(0.68rem, 2vw, 0.76rem);
    height:28px;
    letter-spacing:-0.01em;
  }
}
@media (max-width:480px){
  .brand img{width:26px;height:26px;}
  .site-header{padding:4px 6px 4px 5px; top:10px; gap:2px; max-width:98vw;}
  .site-header.is-scrolled{padding:4px 6px 4px 5px; top:8px; gap:2px; max-width:98vw;}
  .site-header.is-scrolled .brand img{width:24px;height:24px;margin-left:0;}
  nav.compact-nav{gap:2px;}
  nav.compact-nav a{
    padding:0 clamp(5px, 1.3vw, 8px);
    font-size:clamp(0.66rem, 1.9vw, 0.72rem);
    height:26px;
  }
}

main{
  padding-top:84px;
}
@media (max-width:820px){
  main{
    padding-top:74px;
  }
}

/* ---------- Generic placeholder section (used on the home page) ---------- */
.placeholder-section{
  max-width:860px;
  margin:0 auto;
  padding:70px 24px;
  text-align:center;
}
.placeholder-section h1,
.placeholder-section h2{
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:clamp(1.8rem,4vw,2.6rem);
  line-height:1.2;
  color:var(--ink);
}
.placeholder-section p{
  margin-top:14px;
  color:var(--ink-soft);
  font-size:1rem;
  line-height:1.7;
}
.placeholder-section.alt{
  background:var(--columbia);
  border-radius:28px;
  max-width:1000px;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--ink);
  color: #ffffff;
  padding: 80px 0 36px;
  position: relative;
  z-index: 30;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Inter', sans-serif;
}

.footer-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-name {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  display: block;
}

.footer-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--uranian);
  display: block;
  margin-top: 2px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 380px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}

.social-btn.linkedin:hover {
  background: #0077b5;
  border-color: transparent;
}

.footer-heading {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--uranian);
  transform: translateX(3px);
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-contact-text strong {
  color: #ffffff;
}

.footer-contact-numbers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-phone-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-phone-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}

.footer-phone-link {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-phone-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-phone-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  color: var(--uranian);
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(120deg, var(--maya) 0%, var(--sky) 100%);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.footer-cta-btn:hover {
  background: #ffffff;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 580px) {
  .site-footer {
    padding: 60px 0 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Scoped Footer Dark Mode (About Page) */
body.about-page .site-footer {
  background: #030303;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scoped Footer Dark Mode (Clients Page) */
body.clients-page .site-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
