/* =======================================
   Dr Suresh Beauty Academy — styles.css
   Core layout, typography, utilities
   (4-Primary Color Theme + distinct sections)
   ======================================= */

/* ===== Theme Variables ===== */
:root {
  /* 4 primary theme colors */
  --color-1: #0ea5e9;  /* Primary (CTAs, highlights, links) */
  --color-2: #0b1220;  /* Deep surfaces (legacy alias) */
  --color-3: #0b1324;  /* Canvas / body background */
  --color-4: #f1f5f9;  /* Base light text */

  /* Section surfaces (clear differentiation) */
  --surface-topbar:   #08101c;      /* darkest */
  --surface-header:   #ffffff;      /* MAIN HEADER IS WHITE */
  --surface-body:     #0b1324;      /* page canvas */
  --surface-card:     #0f1a2d;      /* content cards */
  --surface-sidebar:  #0c1728;      /* right sidebar panels */
  --surface-footer:   #0b1220;      /* footer main */
  --surface-subfoot:  #08101c;      /* bottom strip */

  --nav-chip:         #f0f8ff;      /* very light blue wrapper for nav */
  --outline:          rgba(148,163,184,.18);
  --glow:             rgba(14,165,233,.25);

  /* Legacy aliases (keep old code working) */
  --primary: var(--color-1);
  --dark: var(--color-2);
  --muted: #94a3b8;

  --radius: 14px;
  --transition: .3s ease;
  font-family: 'Lato', sans-serif;
}

/* ===== Reset / Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--surface-body);
  color: var(--color-4);
  line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* ===== Containers ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 2rem; margin-bottom: 10px; }
h2 { font-size: 1.6rem; margin-bottom: 8px; }
h3 { font-size: 1.2rem; margin-bottom: 6px; }
p  { margin-bottom: 12px; }
.small { font-size: .85rem; color: var(--muted); }

/* ===== Links ===== */
a { color: var(--color-1); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius);
  background: var(--color-1); color: #fff; font-weight: 600;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 0; cursor: pointer;
}
.btn:hover { opacity: .9; box-shadow: 0 6px 18px var(--glow); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: none; border: 1px solid var(--color-1); color: var(--color-1); }
.btn.w-full { display: block; width: 100%; text-align: center; }

/* ===== Layout ===== */
.layout { display: flex; gap: 26px; margin-top: 20px; position: relative; }
.content { flex: 1; }
.sidebar { flex: 0 0 320px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 960px){ .layout { flex-direction: column; } .sidebar { flex: auto; } }

/* Subtle divider between content & sidebar (desktop) */
@media (min-width: 961px){
  .layout::after{
    content:""; position:absolute; top:0; bottom:0;
    left: calc(100% - 320px - 26px - 1px);
    width:1px; background: var(--outline); border-radius:1px; opacity:.6;
  }
}

/* ===== Topbar ===== */
.topbar {
  background: var(--surface-topbar);
  font-size: .85rem; color: var(--color-4); padding: 6px 0;
  border-bottom: 1px solid var(--outline);
}
.topbar .container { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.topbar a { color: var(--color-4); text-decoration: none; }
.topbar a:hover { color: var(--color-1); }

/* ===== Main Header / Menu ===== */
.site-header {
  background: var(--surface-header);             /* WHITE */
  position: sticky; top: 0; z-index: 9999;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.logo img { height: 48px; }

/* Nav group with very light blue chip on the RIGHT */
.nav {
  display: flex; gap: 20px;
  background: var(--nav-chip);                   /* VERY LIGHT BLUE */
  padding: 8px 16px; border-radius: 10px;
}
.nav a {
  color: #0b1220;                                /* dark text */
  font-weight: 600;                              /* semi-bold */
  text-decoration: none;
  padding: 6px 10px; border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: rgba(14,165,233,.12); color: var(--color-1); }
/* Active state (use aria-current="page" or .active) */
.nav a[aria-current="page"], .nav a.active {
  background: var(--color-1); color: #fff;
}

.nav.open { display: block; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; }
.hamburger span { width: 24px; height: 3px; background: #0b1220; border-radius: 2px; } /* visible on white */
@media (max-width: 768px){
  .nav { display: none; flex-direction: column; background: var(--nav-chip); padding: 12px; }
  .hamburger { display: flex; }
}

/* ===== Hero / Slider ===== */
.hero { position: relative; }
.slider { position: relative; overflow: hidden; }
.slide {
  min-height: 600px; background-size: cover; background-position: center;
  display: none; color: #fff;
}
.slide.active { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.hero-inner { max-width: 760px; }
.hero .btn { box-shadow: 0 6px 18px rgba(14,165,233,.25); }
/* Soft mask so hero separates from white header */
.hero .slide.active{ box-shadow: 0 -40px 80px -60px rgba(0,0,0,.35) inset; }

/* ===== Cards & Grids ===== */
.card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  border: 1px solid var(--outline);
  color: var(--color-4);
}
.card.lift { transition: transform .2s ease, box-shadow .2s ease; }
.card.lift:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.45); }

.course-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 18px; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.icon-lg { width: 64px; height: 64px; margin-bottom: 8px; }

/* ===== Forms ===== */
form input, form textarea {
  width: 100%; padding: 10px 12px; margin-bottom: 12px;
  border-radius: var(--radius);
  border: 1px solid #1b2b47;
  background: #0d192b; color: #fff;
}
form input::placeholder, form textarea::placeholder { color: #93a4bf; }
form label { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 4px; }
form .btn { margin-top: 4px; }
.hp { display: none !important; } /* honeypot */
form input:focus, form textarea:focus{
  outline: none; border-color: var(--color-1);
  box-shadow: 0 0 0 3px rgba(14,165,233,.18);
}

/* ===== Alerts ===== */
.alert { padding: 12px; border-radius: var(--radius); margin-bottom: 12px; }
.alert.error { background: #7f1d1d; color: #fff; }
.alert.success { background: #065f46; color: #fff; }

/* ===== Callouts / CTA band ===== */
.callout {
  background: linear-gradient(135deg, var(--color-1), #2563eb);
  border-radius: var(--radius); color: #fff; padding: 30px;
  box-shadow: 0 10px 30px -10px rgba(14,165,233,.35);
  border: 1px solid rgba(255,255,255,.05);
}
.callout .btn { background: #fff; color: var(--color-1); }
.callout .btn:hover { opacity: .95; }

/* ===== Footer ===== */
.site-footer {
  background: var(--surface-footer); margin-top: 40px; color: var(--color-4);
  border-top: 1px solid var(--outline);
  box-shadow: 0 -15px 30px -25px var(--glow) inset;
}
.footer-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 30px 16px;
}
.site-footer a { color: var(--color-4); text-decoration: none; }
.site-footer a:hover { color: var(--color-1); text-decoration: underline; }
.f-logo { max-height: 50px; margin-bottom: 12px; }
.subfooter { background: var(--surface-subfoot); padding: 8px; text-align: center; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--outline); }

/* ===== Sidebar helpers (panel feel) ===== */
.sidebar .card{
  background: var(--surface-sidebar);
  border: 1px solid rgba(148,163,184,.14);
  position: relative;
}
.sidebar .card::before{
  content:""; position:absolute; inset:0 0 0 0;
  border-left: 3px solid var(--color-1);
  border-radius: var(--radius);
  pointer-events:none;
}
.sidebar .card{ padding-left: calc(18px - 3px); }

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 24px; margin: 6px 0; }
.checklist li::before { content: "✔"; position: absolute; left: 0; top: 0; opacity: .9; color: var(--color-1); }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: all .6s var(--transition); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Utilities ===== */
.w-full { width: 100% !important; }
.text-center { text-align: center !important; }
.mt-0{margin-top:0!important}.mt-1{margin-top:4px!important}.mt-2{margin-top:8px!important}.mt-3{margin-top:12px!important}.mt-4{margin-top:16px!important}.mt-5{margin-top:24px!important}
.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:4px!important}.mb-2{margin-bottom:8px!important}.mb-3{margin-bottom:12px!important}.mb-4{margin-bottom:16px!important}.mb-5{margin-bottom:24px!important}

/* Home: USP grid */
.usp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; align-items: center; text-align: center;
}
.usp-grid a {
  color: inherit; text-decoration: none;
  padding: 10px 8px; border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.usp-grid a:hover { color: var(--color-1); background: rgba(14,165,233,.06); transform: translateY(-1px); }
@media (max-width: 900px){ .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .usp-grid { grid-template-columns: 1fr; } }

/* ===== Print friendly ===== */
@media print {
  .site-header, .topbar, .subfooter, .hamburger { display: none !important; }
  a[href]::after { content: ""; }
}


/* Red footer theme */
.site-footer {
  background: #e80000; /* Main footer red */
  margin-top: 40px;
  color: #fff;
  border-top: 1px solid rgba(0,0,0,.1);
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffd6d6; text-decoration: underline; }

.subfooter {
  background: #b80000; /* darker red for contrast */
  padding: 8px;
  text-align: center;
  font-size: .8rem;
  color: #fff;
  border-top: 1px solid rgba(0,0,0,.15);
}


/* WhatsApp Floating Chat */
.wa-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
}
.wa-btn {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: #25D366;              /* WhatsApp green */
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, opacity .4s ease;
  opacity: 0;                        /* fade-in, see .wa-chat--show */
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.28); }

/* Mild bob animation */
.wa-btn.pulse {
  animation: wa-bob 3.2s ease-in-out infinite;
}
@keyframes wa-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Show after mount */
.wa-chat--show .wa-btn { opacity: 1; }

/* Optional label chip (desktop only) */
.wa-label {
  display: none;
  position: absolute; right: 64px; bottom: 12px;
  background: #0b1220; color:#fff; border:1px solid rgba(255,255,255,.08);
  padding: 6px 10px; border-radius: 999px; font-size:.9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  white-space: nowrap;
}
@media (min-width: 960px){ .wa-label { display: inline-block; } }

/* Respect your white header/nav chip on mobile */
@media (max-width: 520px){
  .wa-chat { right: 14px; bottom: 14px; }
  .wa-btn { width: 54px; height: 54px; }
}


/* Restrict about page images inside cards */
.two-col .media img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

