/* ================================================================
   SurgeryKind — assets/css/global.css
   Global fonts, variables & base styles
   Include in EVERY page via header.php
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,600&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  /* Fonts */
  --font-head : 'Poppins',  Arial, sans-serif;
  --font-body : 'Open Sans', Arial, sans-serif;

  /* Colours */
  --blue     : #1b6ef3;
  --blue-dk  : #1258cc;
  --blue-lt  : #eef4ff;
  --teal     : #00b5a3;
  --teal-lt  : #e0f7f5;
  --amber    : #f59e0b;
  --green    : #22c55e;
  --red      : #ef4444;
  --dark     : #0c1325;
  --dark2    : #182035;
  --slate    : #3c4a68;
  --muted    : #6b7a9e;
  --border   : #e3e9f5;
  --light    : #f6f8fd;
  --white    : #fff;

  /* Font sizes (all +2px vs old) */
  --fs-xs    : 11px;   /* was 9-10px  */
  --fs-sm    : 13px;   /* was 11-12px */
  --fs-base  : 16px;   /* was 14px    */
  --fs-md    : 17px;   /* was 15px    */
  --fs-lg    : 19px;   /* was 17px    */
  --fs-xl    : 22px;   /* was 20px    */
  --fs-2xl   : 26px;   /* was 24px    */
  --fs-3xl   : 32px;   /* was 30px    */

  /* Heading scale */
  --h1       : clamp(2.4rem, 5vw, 3.8rem);
  --h2       : clamp(2rem,   4vw, 2.8rem);
  --h3       : clamp(1.5rem, 3vw, 2rem);
  --h4       : 1.4rem;
  --h5       : 1.1rem;
  --h6       : 0.95rem;

  /* Spacing */
  --r        : 14px;
  --r-lg     : 22px;
  --t        : all .3s cubic-bezier(.4,0,.2,1);
  --sh-sm    : 0 2px 14px rgba(27,110,243,.08);
  --sh-md    : 0 8px 36px rgba(27,110,243,.13);
  --sh-lg    : 0 20px 64px rgba(27,110,243,.18);
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; }
body   { font-family: var(--font-body); font-size: var(--fs-base); color: var(--dark); background: var(--white); overflow-x: hidden; line-height: 1.7; }
a      { text-decoration: none; color: inherit; }
img    { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 10px; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family : var(--font-head);
  font-weight : 700;
  line-height : 1.2;
  color       : var(--dark);
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

p { font-size: var(--fs-base); line-height: 1.75; color: var(--slate); }

/* ── Utility classes ── */
.font-head  { font-family: var(--font-head) !important; }
.font-body  { font-family: var(--font-body) !important; }

.text-blue  { color: var(--blue)  !important; }
.text-teal  { color: var(--teal)  !important; }
.text-muted { color: var(--muted) !important; }

/* Section tag (pill above headings) */
.stag {
  display     : inline-flex;
  align-items : center;
  gap         : 7px;
  font-family : var(--font-head);
  font-size   : var(--fs-sm);
  font-weight : 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color       : var(--blue);
  background  : var(--blue-lt);
  padding     : 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.stag.teal { color: var(--teal); background: var(--teal-lt); }
.stag.wht  { color: rgba(255,255,255,.9); background: rgba(255,255,255,.12); }

/* Section headings */
.sh2       { font-family: var(--font-head); font-size: var(--h2); font-weight: 700; color: var(--dark); line-height: 1.15; }
.sh2 span  { color: var(--blue); }
.sh2.wht   { color: #fff; }
.sh2.wht span { color: var(--teal); }

.sdesc     { font-family: var(--font-body); font-size: var(--fs-md); color: var(--muted); line-height: 1.78; max-width: 580px; }
.sdesc.wht { color: rgba(255,255,255,.6); }

/* Sections */
.sec    { padding: 90px 0; }
.sec-sm { padding: 60px 0; }

/* Animations */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px) } to { opacity:1; transform:translateY(0) } }
@keyframes fadeLeft { from { opacity:0; transform:translateX(-24px)} to { opacity:1; transform:translateX(0) } }
@keyframes fadeRight{ from { opacity:0; transform:translateX( 24px)} to { opacity:1; transform:translateX(0) } }

.afu { animation: fadeUp    .65s ease both; }
.afl { animation: fadeLeft  .65s ease both; }
.afr { animation: fadeRight .65s ease both; }
.d1  { animation-delay: .1s; }
.d2  { animation-delay: .2s; }
.d3  { animation-delay: .3s; }
.d4  { animation-delay: .4s; }
.d5  { animation-delay: .5s; }

/* ── Responsive breakpoints ── */
@media (max-width: 1200px) { :root { --fs-base: 15.5px; } }
@media (max-width: 991px)  { :root { --fs-base: 15px; }
  .sec { padding: 70px 0; } .sec-sm { padding: 48px 0; }
  h1 { font-size: clamp(2rem, 6vw, 3rem); }
  h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
}
@media (max-width: 768px)  { :root { --fs-base: 15px; }
  .sec { padding: 56px 0; } .sec-sm { padding: 38px 0; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
}
@media (max-width: 480px)  { :root { --fs-base: 14.5px; }
  .sec { padding: 44px 0; } .sec-sm { padding: 30px 0; }
}

/* ── Popup / Modal (for form submit success) ── */
.sk-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.sk-popup {
  background: #fff;
  border-radius: 22px;
  padding: 40px 36px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,.22);
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn { from{opacity:0;transform:scale(.85)} to{opacity:1;transform:scale(1)} }

.sk-popup .pop-ico {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg,#f0fdf4,#dcfce7);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--green);
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(34,197,94,.2);
}
.sk-popup h4 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.sk-popup p {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.sk-popup .pop-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
}
.sk-popup .pop-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 2px;
  animation: drainBar 2.8s linear forwards;
  transform-origin: left;
}
@keyframes drainBar { from{transform:scaleX(1)} to{transform:scaleX(0)} }