/*
 * ============================================================
 *  Optimetrik Digital — Global Shared Stylesheet
 *  File: /style.css
 *
 *  HOW TO USE:
 *  Add this ONE line inside <head> on every main site page,
 *  BEFORE the page's own <style> block:
 *
 *    <link rel="stylesheet" href="/style.css">
 *
 *  ⚡ Change anything here → ALL pages update instantly.
 * ============================================================
 */


/* ============================================================
   1. CSS VARIABLES — Change colors & fonts in ONE place
   ============================================================
   These variables are used throughout all pages.
   Edit a value here and every element that uses it updates.

   COMMON THINGS TO CHANGE:
   ─────────────────────────────────────────────────────────
   Main brand color?     → change --blue
   Heading color?        → change --text-dark
   Paragraph color?      → change --text-mid
   Subtle/muted text?    → change --text-light
   Page background?      → change --bg-light
   Heading font?         → change --font-heading
   Body/paragraph font?  → change --font-body
   ─────────────────────────────────────────────────────────
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
:root {
  /* ── Brand Colors ── */
  --blue:           #1E90FF;
  --purple:         #6B21A8;
  --deep-blue:      #0056D2;
  --purple:         #8B3FD9;
  --orange:         #FF6B35;
  --bright-orange:  #FF8C42;
  --dark:           #0A0E27;
  --grad: linear-gradient(135deg, #1E90FF 0%, #8B3FD9 50%, #FF6B35 100%);

  /* ── Text Colors ── */
  --text-dark:  #111827;   /* headings */
  --text-mid:   #374151;   /* body paragraphs */
  --text-light: #6B7280;   /* captions, labels, muted text */

  /* ── Backgrounds ── */
  --bg-light: #F8FAFC;
  --white:    #FFFFFF;

  /* ── Typography ── */
  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body:    'Poppins', Arial, sans-serif;

  /* ── Font Sizes — Headings ── */
  --size-h1: clamp(2.2rem, 5vw, 4rem);
  --size-h2: clamp(1.8rem, 4vw, 3.2rem);
  --size-h3: clamp(1.3rem, 2.5vw, 1.9rem);
  --size-h4: 1.1rem;

  /* ── Font Sizes — Body ── */
  --size-body:  1.05rem;   /* standard paragraph text */
  --size-small: 0.9rem;    /* labels, captions, secondary text */
  --size-tiny:  0.8rem;    /* badges, tags, footnotes */

  /* ── Line Heights ── */
  --lh-heading: 1.15;
  --lh-body:    1.75;

  /* ── Nav height (used for page padding-top) ── */
  --nav-h: 72px;
}


/* ============================================================
   2. GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--text-mid);
  line-height: var(--lh-body);
  overflow-x: hidden;
  background: var(--white);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}


/* ============================================================
   3. HEADINGS — Change font, size, color, weight here
   ============================================================
   All h1–h4 across every page are controlled by these rules.
   Examples:
     Want blue headings?   → color: var(--blue);
     Want bigger h1?       → font-size: clamp(2.5rem, 6vw, 5rem);
     Want a different font?→ font-family: Georgia, serif;
*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: var(--lh-heading);
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h4 { font-size: var(--size-h4); }


/* ============================================================
   4. PARAGRAPHS & BODY TEXT
   ============================================================
   Controls all <p> tags sitewide.
   Change --text-mid above to change all paragraph colors.
   Change --size-body above to change all paragraph sizes.
*/
p {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--text-mid);
  line-height: var(--lh-body);
}


/* ============================================================
   5. UTILITY CLASSES — reusable across all pages
   ============================================================ */

/* Container / max-width wrapper */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Gradient text (used on headings) */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label badge (small uppercase tag above headings) */
.section-label {
  display: inline-block;
  background: rgba(30, 144, 255, 0.08);
  color: var(--blue);
  border: 1px solid rgba(30, 144, 255, 0.2);
  padding: 0.28rem 0.9rem;
  border-radius: 50px;
  font-size: var(--size-tiny);
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

/* Muted / secondary text */
.text-muted {
  color: var(--text-light);
  font-size: var(--size-small);
}

/* Highlight / accent text */
.text-accent {
  color: var(--blue);
  font-weight: 700;
}

/* Skip-to-content accessibility link */
.skip-link {
  position: absolute;
  top: -200%;
  left: 1rem;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 99999;
  transition: top 0.2s;
  text-decoration: none;
  font-family: var(--font-body);
}
.skip-link:focus { top: 0; }

/* Focus ring for accessibility */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Fade-in animation (used on sections) */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   6. BUTTONS — global button styles
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--purple);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.3);
}
.btn-primary:hover {
  background: var(--deep-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 144, 255, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--blue);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 700;
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: all 0.25s;
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.btn-grad {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--grad);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
}
.btn-grad:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


/* ============================================================
   7. SECTION SPACING
   ============================================================ */
.section {
  padding: 4.5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.7rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}


/* ============================================================
   8. WHATSAPP FLOAT BUTTON (appears on all pages)
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9997;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}


/* ============================================================
   9. RESPONSIVE BASE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --size-h1: clamp(1.9rem, 6vw, 2.8rem);
    --size-h2: clamp(1.6rem, 5vw, 2.2rem);
    --size-h3: clamp(1.1rem, 4vw, 1.5rem);
    --size-body: 1rem;
    --nav-h: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
