/* ============================================================
   GREATMIKE DIGITAL FOUNDATION
   main.css — Variables, reset, typography, nav, footer,
              layout utilities, buttons, WhatsApp float
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand colours */
  --navy:          #071e3d;
  --navy-mid:      #0d2d5a;
  --navy-lite:     #1a4480;
  --green:         #1db954;
  --green-dark:    #159040;
  --green-glow:    rgba(29, 185, 84, 0.14);

  /* Neutrals */
  --white:         #ffffff;
  --bg:            #ffffff;
  --surface:       #f4f7fb;
  --border:        #dde4ef;
  --text:          #0d1b2e;
  --muted:         #5a6a82;

  /* System font stacks — zero CLS, zero render-blocking */
  --font-display:  'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:     'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font sizes */
  --fs-xs:   0.75rem;    /*  12px */
  --fs-sm:   0.875rem;   /*  14px */
  --fs-base: 1rem;       /*  16px */
  --fs-md:   1.125rem;   /*  18px */
  --fs-lg:   1.375rem;   /*  22px */
  --fs-xl:   1.75rem;    /*  28px */
  --fs-2xl:  2.25rem;    /*  36px */
  --fs-3xl:  3rem;       /*  48px */

  /* Spacing */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2.5rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;

  /* Layout */
  --max-w:        1140px;
  --radius-sm:    4px;
  --radius:       10px;
  --radius-lg:    18px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:     0 1px 4px rgba(7, 30, 61, .08);
  --shadow:        0 4px 20px rgba(7, 30, 61, .12);
  --shadow-lg:     0 12px 40px rgba(7, 30, 61, .18);
  --shadow-green:  0 6px 30px rgba(29, 185, 84, .25);

  /* Transitions */
  --ease:      0.22s ease;
  --ease-slow: 0.4s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem,   5vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.5rem, 4vw, var(--fs-2xl)); }
h3 { font-size: clamp(1.1rem, 2.5vw, var(--fs-lg)); }
h4 { font-size: var(--fs-md); }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.section {
  padding-block: var(--sp-3xl);
}

.section--sm {
  padding-block: var(--sp-2xl);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--surface {
  background: var(--surface);
}

/* ── Grid helpers ──────────────────────────────────────────── */
.grid--2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); }
.grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.grid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); }

/* ── Section header ────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-2xl);
}

.section-header h2 { margin-bottom: var(--sp-md); }

.section-header p {
  color: var(--muted);
  font-size: var(--fs-md);
}

/* ── Section label (pill above headings) ───────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid rgba(29, 185, 84, .22);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-md);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(29, 185, 84, .35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--navy-lite);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Navigation ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 30, 61, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.nav__logo img {
  height: 38px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav__logo-text span { color: var(--green); }

/* Nav links */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav__link {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-full);
  transition: all var(--ease);
  letter-spacing: 0.02em;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav__link.active { color: var(--green); }

/* Nav CTA */
.nav__cta {
  margin-left: var(--sp-sm);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all var(--ease);
}

.nav__cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-sm);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Push content below fixed header */
main { padding-top: 68px; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  color: var(--muted);
  padding-block: var(--sp-md);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--ease);
}

.breadcrumb a:hover { color: var(--green); }
.breadcrumb__sep    { color: var(--border); }
.breadcrumb__current { color: var(--text); font-weight: 500; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--sp-3xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-block: var(--sp-lg);
}

.footer__socials {
  display: flex;
  gap: var(--sp-sm);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--ease);
}

.footer__social-link:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.footer__col h4,
.footer__col-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
  margin-top: 0;
}

.footer__links a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--ease);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.footer__links a:hover { color: var(--green); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--sp-md);
}

.footer__contact-item a:hover { color: var(--green); }

.footer__contact-icon {
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-lg);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.65);
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer__bottom-links {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--ease);
}

.footer__bottom a:hover { color: var(--green); }

/* NAP address element */
address { font-style: normal; }

/* ── WhatsApp Float ─────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
  transition: all var(--ease);
  animation: wa-pulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 35px rgba(37, 211, 102, .6);
  animation: none;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, .45); }
  50%       { box-shadow: 0 6px 40px rgba(37, 211, 102, .7);  }
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible           { opacity: 1; transform: translateY(0); }
.reveal.delay-1           { transition-delay: 0.1s; }
.reveal.delay-2           { transition-delay: 0.2s; }
.reveal.delay-3           { transition-delay: 0.3s; }
.reveal.delay-4           { transition-delay: 0.4s; }

/* ── Utility ────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.text-green   { color: var(--green); }
.text-white   { color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --sp-3xl: 4rem;
    --sp-2xl: 2.5rem;
  }

  /* Mobile nav */
  .nav__menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: var(--sp-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: var(--sp-xs);
  }

  .nav__menu.open   { display: flex; }
  .nav__toggle      { display: flex; }

  .nav__link {
    padding: var(--sp-md);
    border-radius: var(--radius);
  }

  .nav__cta {
    margin: var(--sp-sm) 0 0;
    text-align: center;
    padding: var(--sp-md);
    border-radius: var(--radius);
  }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom-links { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--sp-md); }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
}