/* =========================================================
   PERAH DIGITAL LAB — base.css
   Palette: Deep Navy · Blush Rose Pink · Warm Pearl
   Mobile-first · Fluid · Layered shadows
   ========================================================= */

/* ---------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------- */
:root{
  /* Brand — Deep Navy Blue (Authority & Science) */
  --brand-900:#040c1a;
  --brand-800:#08152b;
  --brand-700:#0d2141; /* Core Deep Navy */
  --brand-600:#15335e;
  --brand-500:#1d467c;
  --brand-400:#386aa3;
  --brand-100:#d6e2f0;
  --brand-50:#eff4fa;

  /* Accent — Blush Rose Pink (Warmth & Healthcare) */
  --accent-600:#a34e5e;
  --accent-500:#c46375;
  --accent-400:#d98898; /* Core Blush Rose */
  --accent-300:#ebadb8;
  --accent-100:#fcf0f2;

  /* Neutrals — Crisp White / Soft Pink-Grey Tints (No pure white) */
  --ink:#09152b;         /* Deep Navy Black */
  --ink-2:#1c2e4a;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --grey-100:#f3edef;    /* Soft Blush-Grey */
  --grey-50:#faf6f8;     /* Light Pearl */
  --line:rgba(13,33,65,.08);
  --line-strong:rgba(13,33,65,.15);
  --bg:#f8f3f5;          /* Warm Blush-Grey Background */
  --surface:#fdfbfc;     /* Pearl White for Cards (Not stark white) */
  --text-light:#fcf4f6;  /* Warm Ivory for text on dark backgrounds */

  /* Gradients */
  --grad-brand:linear-gradient(135deg,var(--brand-700) 0%,var(--brand-600) 50%,var(--brand-500) 100%);
  --grad-accent:linear-gradient(135deg,var(--accent-300) 0%,var(--accent-400) 50%,var(--accent-500) 100%);
  --grad-ink:linear-gradient(160deg,#040c1a 0%,#08152b 55%,#0d2141 100%);
  --grad-soft:linear-gradient(135deg,rgba(13,33,65,.08),rgba(217,136,152,.12));

  /* Shadows — layered, soft, directional (Navy-tinted) */
  --shadow-xs:0 1px 2px rgba(13,33,65,.06);
  --shadow-sm:0 2px 8px rgba(13,33,65,.06), 0 1px 2px rgba(13,33,65,.04);
  --shadow-md:0 12px 28px -10px rgba(13,33,65,.22), 0 4px 10px -6px rgba(13,33,65,.12);
  --shadow-lg:0 26px 50px -18px rgba(13,33,65,.30), 0 10px 22px -14px rgba(13,33,65,.18);
  --shadow-glow:0 14px 32px -12px rgba(13,33,65,.55);
  --shadow-glow-y:0 16px 32px -16px rgba(196,99,117,.75); /* Blush glow */
  --shadow-inset:inset 0 1px 0 rgba(252,240,242,.65);

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

  /* Layout */
  --container:1180px;
  --gutter:clamp(16px,4vw,32px);
  --header-h:80px;

  /* Motion */
  --ease:cubic-bezier(.22,.61,.36,1);
  --dur:.28s;
}

/* ---------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------- */
*,
*::before,
*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

body.site-body{
  margin:0;
  min-height:100vh;
  font-family:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size:16px;
  line-height:1.6;
  color:var(--ink);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Ambient background orbs — Navy + Blush */
body.site-body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(55rem 55rem at 5% -12%, rgba(13,33,65,.06), transparent 60%),
    radial-gradient(45rem 45rem at 102% -4%, rgba(217,136,152,.10), transparent 58%),
    radial-gradient(40rem 40rem at 50% 115%, rgba(235,173,184,.08), transparent 65%);
}

img{ max-width:100%; display:block; }
a{ color:var(--brand-700); text-decoration:none; }
button{ font:inherit; color:inherit; }

:focus-visible{
  outline:2px solid var(--accent-400);
  outline-offset:3px;
  border-radius:6px;
}

#main-content [id]{
  scroll-margin-top:calc(var(--header-h) + 24px);
}

/* Skip link */
.skip-link{
  position:fixed;
  top:12px;
  left:12px;
  z-index:200;
  padding:12px 20px;
  border-radius:12px;
  background:var(--ink);
  color:var(--text-light);
  font-weight:600;
  font-size:.9rem;
  box-shadow:var(--shadow-lg);
  transform:translateY(-160%);
  transition:transform .3s var(--ease);
}
.skip-link:focus{ transform:translateY(0); }

/* ---------------------------------------------------------
   3. HEADER
   --------------------------------------------------------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(248,243,245,.85); /* Warm tint glass */
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  transition:box-shadow .3s var(--ease), background .3s var(--ease);
}

.navbar{ position:relative; }

.navbar-inner{
  max-width:var(--container);
  margin-inline:auto;
  min-height:var(--header-h);
  padding:10px var(--gutter);
  display:flex;
  align-items:center;
  gap:12px;
}

/* --- Brand --- */
.brand{
  display:inline-flex;
  align-items:center;
  border-radius:16px;
  flex:0 0 auto;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  border-radius:15px;
  overflow:hidden;
  background:var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-sm);
  transition:transform var(--dur) var(--ease),
             box-shadow var(--dur) var(--ease);
}

.brand-logo{
  width:100%;
  height:100%;
  object-fit:cover;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark{
  transform:translateY(-2px) rotate(-3deg);
  box-shadow:
    0 0 0 1px rgba(217,136,152,.35),
    0 0 0 6px rgba(217,136,152,.10),
    var(--shadow-md);
}

/* --- Burger button --- */
.menu-toggle{
  margin-left:auto;
  display:inline-grid;
  place-items:center;
  width:46px;
  height:46px;
  padding:0;
  border:1px solid var(--line-strong);
  border-radius:15px;
  background:linear-gradient(180deg, var(--surface), var(--grey-100));
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:transform var(--dur) var(--ease),
             box-shadow var(--dur) var(--ease),
             border-color var(--dur) var(--ease);
}
.menu-toggle:hover{
  transform:translateY(-1px);
  border-color:rgba(217,136,152,.40);
  box-shadow:var(--shadow-md);
}
.menu-toggle:active{ transform:translateY(0) scale(.96); }

.menu-toggle-bars{
  position:relative;
  display:block;
  width:20px;
  height:14px;
}
.menu-toggle-bars span{
  position:absolute;
  left:0;
  right:0;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transition:transform .32s var(--ease),
             opacity .2s var(--ease),
             top .32s var(--ease);
}
.menu-toggle-bars span:nth-child(1){ top:0; }
.menu-toggle-bars span:nth-child(2){ top:6px; }
.menu-toggle-bars span:nth-child(3){ top:12px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1),
.menu-toggle.is-active  .menu-toggle-bars span:nth-child(1){
  top:6px; transform:rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2),
.menu-toggle.is-active  .menu-toggle-bars span:nth-child(2){
  opacity:0; transform:scaleX(.3);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3),
.menu-toggle.is-active  .menu-toggle-bars span:nth-child(3){
  top:6px; transform:rotate(-45deg);
}

/* ---------------------------------------------------------
   4. NAV LINKS — MOBILE (dropdown card)
   --------------------------------------------------------- */
.nav-links{
  position:absolute;
  top:calc(100% + 10px);
  left:var(--gutter);
  right:var(--gutter);
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px;
  border-radius:var(--r-lg);
  background:var(--surface);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  border:1px solid var(--line);
  box-shadow:var(--shadow-lg);

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-10px) scale(.97);
  transform-origin:top right;
  transition:opacity .26s var(--ease),
             transform .26s var(--ease),
             visibility .26s;
}

.nav-links.open,
.nav-links.active,
.nav-links.is-open,
.menu-toggle[aria-expanded="true"] + .nav-links{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.nav-links a{
  position:relative;
  display:flex;
  align-items:center;
  min-height:48px;
  padding:0 14px;
  border-radius:12px;
  color:var(--ink-2);
  font-size:.98rem;
  font-weight:500;
  letter-spacing:.01em;
  transition:background var(--dur) var(--ease),
             color var(--dur) var(--ease);
}

.nav-links a:hover{
  background:rgba(217,136,152,.07);
  color:var(--brand-700);
}

/* Active page (mobile) — blush tint + navy dot */
.nav-links a.active{
  color:var(--brand-700);
  background:linear-gradient(90deg, rgba(252,240,242,.9), rgba(252,240,242,.45));
  box-shadow:inset 0 0 0 1px rgba(217,136,152,.20);
}
.nav-links a.active::before{
  content:"";
  width:6px;
  height:6px;
  margin-right:12px;
  border-radius:50%;
  background:var(--accent-400);
  box-shadow:0 0 0 4px rgba(217,136,152,.25);
  flex:0 0 auto;
}

/* ---------------------------------------------------------
   5. NAV LINKS — DESKTOP
   --------------------------------------------------------- */
@media (min-width:900px){

  :root{ --header-h:90px; }

  .menu-toggle{ display:none; }

  .nav-links{
    position:static;
    margin-left:auto;
    flex-direction:row;
    align-items:center;
    gap:4px;
    padding:6px;
    border-radius:var(--r-pill);
    background:linear-gradient(180deg, var(--surface), var(--grey-50));
    box-shadow:var(--shadow-sm), var(--shadow-inset);

    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
  }

  .nav-links a{
    min-height:0;
    padding:10px 16px;
    border-radius:var(--r-pill);
    font-size:.93rem;
    overflow:hidden;
  }

  /* Blush animated underline */
  .nav-links a::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:5px;
    width:0;
    height:2px;
    border-radius:2px;
    background:var(--grad-accent);
    transform:translateX(-50%);
    opacity:0;
    transition:width .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links a:hover::after{
    width:calc(100% - 34px);
    opacity:1;
  }

  .nav-links a.active{
    background:var(--surface);
    color:var(--brand-700);
    box-shadow:var(--shadow-sm), inset 0 0 0 1px rgba(217,136,152,.22);
  }
  .nav-links a.active::before{ display:none; }
  .nav-links a.active::after{
    width:calc(100% - 34px);
    opacity:1;
  }
}

/* ---------------------------------------------------------
   6. MAIN
   --------------------------------------------------------- */
.site-main{
  display:block;
  min-height:55vh;
  padding-block:clamp(16px,3vw,32px);
}

/* ---------------------------------------------------------
   7. FOOTER — 4 columns (Brand · Explore · Contact · Follow)
   --------------------------------------------------------- */
.site-footer{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  margin-top:clamp(48px,8vw,96px);
  padding-top:clamp(40px,6vw,64px);
  background:var(--grad-ink);
  color:var(--text-light);
}

/* Navy glow at the bottom */
.site-footer::before{
  content:"";
  position:absolute;
  left:-10%;
  right:-10%;
  bottom:-45%;
  height:65%;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(50% 100% at 50% 100%, rgba(13,33,65,.45), transparent 70%);
}

/* Blush top hairline */
.site-footer::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(217,136,152,.75), transparent);
}

.footer-container{
  max-width:var(--container);
  margin-inline:auto;
  padding:0 var(--gutter) clamp(36px,5vw,56px);
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(28px,5vw,48px);
}

/* Tablet — 2 columns */
@media (min-width:760px){
  .footer-container{
    grid-template-columns:1fr 1fr;
    gap:clamp(32px,4vw,48px);
  }
}

/* Desktop — 4 columns */
@media (min-width:1000px){
  .footer-container{
    grid-template-columns:1.3fr 0.9fr 1.2fr 1fr;
    gap:clamp(28px,3vw,48px);
    align-items:start;
  }
}

/* --- Column headings (shared) --- */
.footer-links h3,
.footer-contact h3,
.footer-social h3{
  margin:0 0 18px;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(252,240,242,.55);
}
.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after{
  content:"";
  display:block;
  width:28px;
  height:2px;
  margin-top:10px;
  border-radius:2px;
  background:var(--grad-accent);
  opacity:.95;
}

/* --- Footer brand --- */
.footer-logo{
  width:56px;
  height:56px;
  border-radius:16px;
  object-fit:cover;
  margin-bottom:18px;
  box-shadow:
    0 0 0 1px rgba(252,240,242,.16),
    0 14px 30px -14px rgba(0,0,0,.75);
}

.footer-brand p{
  margin:0;
  max-width:34ch;
  font-size:.95rem;
  line-height:1.75;
  color:var(--text-light);
}

/* --- Footer links (Explore) --- */
.footer-links{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}

.footer-links a{
  display:inline-flex;
  align-items:center;
  padding:6px 0;
  font-size:.95rem;
  color:var(--text-light);
  transition:color var(--dur) var(--ease),
             transform var(--dur) var(--ease);
}
.footer-links a::before{
  content:"";
  display:inline-block;
  width:0;
  height:1px;
  margin-right:0;
  vertical-align:middle;
  background:var(--accent-400);
  transition:width var(--dur) var(--ease),
             margin-right var(--dur) var(--ease);
}
.footer-links a:hover{
  color:var(--accent-300);
  transform:translateX(2px);
}
.footer-links a:hover::before{
  width:14px;
  margin-right:8px;
}

/* --- Footer contact list (email · phone · location) --- */
.footer-contact-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.footer-contact-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:.88rem;
  line-height:1.55;
  color:var(--text-light);
}

.footer-contact-icon{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:8px;
  background:rgba(252,240,242,.06);
  border:1px solid rgba(252,240,242,.12);
  color:var(--accent-300);
  margin-top:-2px;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.footer-contact-icon svg{
  width:14px;
  height:14px;
}

.footer-contact-list li:hover .footer-contact-icon{
  background:rgba(217,136,152,.35);
  border-color:rgba(235,173,184,.5);
  color:var(--text-light);
}

.footer-contact-list a{
  color:var(--text-light);
  font-size:.88rem;
  word-break:break-word;
  transition:color var(--dur) var(--ease);
}
.footer-contact-list a:hover{
  color:var(--accent-300);
}

.footer-contact-list p{
  margin:0;
  font-size:.88rem;
  line-height:1.55;
  color:var(--text-light);
  word-break:break-word;
}

/* --- Footer social (Follow Us) --- */
.social-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.social-link{
  position:relative;
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:rgba(252,240,242,.06);
  border:1px solid rgba(252,240,242,.14);
  color:var(--text-light);
  transition:
    transform .3s var(--ease),
    background .3s var(--ease),
    border-color .3s var(--ease),
    color .3s var(--ease),
    box-shadow .3s var(--ease);
}
.social-link svg{
  width:18px;
  height:18px;
}
.social-link:hover{
  transform:translateY(-3px);
  color:var(--brand-900);
  background:var(--grad-accent);
  border-color:transparent;
  box-shadow:
    0 12px 24px -12px rgba(196,99,117,.9),
    0 0 0 1px rgba(235,173,184,.35);
}
.social-link:focus-visible{
  outline:2px solid var(--accent-400);
  outline-offset:3px;
}

/* --- Footer bottom --- */
.footer-bottom{
  border-top:1px solid rgba(252,240,242,.10);
  padding:18px var(--gutter);
}
.footer-bottom p{
  max-width:var(--container);
  margin:0 auto;
  text-align:center;
  font-size:.82rem;
  letter-spacing:.02em;
  color:rgba(252,240,242,.50);
}

/* ---------------------------------------------------------
   8. SHARED UTILITIES (for your page templates)
   --------------------------------------------------------- */
.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* Primary — Navy */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:13px 24px;
  border-radius:var(--r-pill);
  font-weight:600;
  font-size:.94rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform var(--dur) var(--ease),
             box-shadow var(--dur) var(--ease);
}
.btn:hover{ transform:translateY(-2px); }

.btn-primary{
  background:var(--grad-brand);
  color:var(--text-light);
  box-shadow:var(--shadow-glow);
}
.btn-primary:hover{
  box-shadow:0 20px 40px -16px rgba(13,33,65,1);
}

/* Accent — Blush, dark text */
.btn-accent{
  background:var(--grad-accent);
  color:var(--brand-900);
  box-shadow:var(--shadow-glow-y);
}
.btn-accent:hover{
  box-shadow:0 20px 40px -16px rgba(196,99,117,1);
}

.btn-ghost{
  background:var(--surface);
  color:var(--ink-2);
  border-color:var(--line-strong);
  box-shadow:var(--shadow-sm);
}
.btn-ghost:hover{ box-shadow:var(--shadow-md); }

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
  transition:transform var(--dur) var(--ease),
             box-shadow var(--dur) var(--ease);
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}

/* Optional: blush highlight text */
.highlight{
  background:linear-gradient(180deg, transparent 60%, var(--accent-300) 60%);
  padding:0 .15em;
}

/* ---------------------------------------------------------
   9. MOTION PREFERENCES
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}



/* ---------------------------------------------------------
   10. FLOATING WHATSAPP BUTTON
   --------------------------------------------------------- */

.whatsapp-float{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:999;

  display:grid;
  place-items:center;

  width:60px;
  height:60px;

  border-radius:50%;
  /* Rich WhatsApp gradient instead of flat green */
  background:linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color:#fff;
  
  /* Subtle white border to separate it from any background */
  border:1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 8px 24px rgba(37,211,102,.35),
    0 4px 12px rgba(0,0,0,.15);

  transition:
    transform .3s var(--ease),
    box-shadow .3s var(--ease),
    filter .3s var(--ease);
}

.whatsapp-float svg{
  width:32px;
  height:32px;
  /* Gives the SVG icon a tiny bit of 3D depth */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}

.whatsapp-float:hover{
  transform:translateY(-4px) scale(1.05);
  /* Brighten the gradient slightly on hover */
  filter: brightness(1.08);
  box-shadow:
    0 14px 30px rgba(37,211,102,.45),
    0 6px 16px rgba(0,0,0,.18);
}

.whatsapp-float:active{
  transform:scale(.96);
}

.whatsapp-float:focus-visible{
  outline:3px solid #25D366;
  outline-offset:5px;
}

/* Mobile positioning */
@media (max-width:600px){
  .whatsapp-float{
    width:54px;
    height:54px;
    right:16px;
    bottom:18px;
  }

  .whatsapp-float svg{
    width:29px;
    height:29px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  .whatsapp-float{
    transition:none;
  }
}


/* Desktop — 5 columns */
@media (min-width:1000px){
  .footer-container{
    /* Changed from 4 columns to 5: Brand gets the most space, the rest share the remainder */
    grid-template-columns: 1.5fr 0.9fr 1.3fr 1fr 1fr;
    gap: clamp(20px, 2.5vw, 32px); /* Slightly tighter gap to accommodate the 5th column */
    align-items: start;
  }
}