/* ========================================
   SAVANE DIGITAL SOLUTIONS — styles
   ======================================== */

/* ── Variables ── */
:root {
    --green-primary: #179144;
    --green-dark: #15803d;
    --green-light: #f0fdf4;
    --green-muted: #bbf7d0;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-100: #f3f4f6;
    --gray-50:  #f9fafb;
    --white: #ffffff;
    --max-width: 1280px;
    --radius-lg: 2.5rem;
    --radius-md: 1rem;
    --shadow-soft: 0 2px 16px rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-600);
    background: var(--white);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

/* ── Typography helpers ── */
.italic-serif {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 800;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
}

/* ── Cursor ── */
.savane-cursor {
    display: inline-block;
    width: 8px;  /* Small enough to mimic a period */
    height: 8px; /* Perfectly square */
    background-color: #168f43;
    margin-left: 1.9px; /* Tighter spacing for a punctuation feel */
    vertical-align: baseline; /* Aligns it with the bottom of the text */
}

/* ========================================
   NAV
   ======================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img { height: 25px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-500);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--green-dark); }

.nav-link-accent { color: var(--green-primary) !important; }

.nav-btn {
    background: var(--gray-900);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    transition: background 0.2s !important;
}

.nav-btn:hover { background: var(--green-dark) !important; }

/* ========================================
   HERO
   ======================================== */
.hero {
    padding: 7rem 2rem 8rem;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-heading {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero {
background-image: linear-gradient(#00000005 1px, transparent 1px),
                  linear-gradient(90deg,#00000005 1px, transparent 1px);
background-size: 40px 40px;
}

/* ========================================
   ABOUT
   ======================================== */
.section-about {
    padding: 6rem 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.about-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.65;
}

/* ========================================
   SERVICES
   ======================================== */
.section-services {
    padding: 7rem 2rem;
}

.services-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-heading {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
}

.service-icon {
    width: 2rem;
    height: 2rem;
    color: var(--green-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-500);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   SERENALIGN FEATURE
   ======================================== */
.section-serenalign {
    padding: 0 2rem 7rem;
}

.serenalign-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.serenalign-card {
    background: linear-gradient(135deg, #1c1e1d 0%, #4e5450 100%);
    border-radius: 3rem;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    box-shadow: 0 25px 60px rgba(21, 128, 61, 0.2);
}

.serenalign-content { flex: 1; }

.serenalign-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #86efac;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.serenalign-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.dot-accent { color: #4ade80; }

.serenalign-desc {
    color: #ddffe2;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.serenalign-desc-secondary {
    color: #e7fcea;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.serenalign-btn {
    display: inline-block;
    background: var(--white);
    color: #166534;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.serenalign-btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.serenalign-mockup {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    transition: transform 0.3s;
    backdrop-filter: blur(8px);
}

.serenalign-mockup:hover { transform: translateY(-4px); }

.serenalign-mockup img { width: 100%; height: auto; 
    border-radius: 12px; /* adjust to taste */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ========================================
   CONTACT CTA
   ======================================== */
.section-contact {
    padding: 7rem 2rem;
    border-top: 1px solid var(--gray-100);
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.contact-sub {
    font-size: 1.15rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-btn {
    display: inline-block;
    background: var(--gray-900);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1.1rem 3rem;
    border-radius: 9999px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.contact-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.contact-email {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 2.5rem 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo img { height: 28px; width: auto; }

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.footer-legal {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--gray-500);
    transition: color 0.2s;
}

.footer-legal a:hover { color: var(--gray-400); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .serenalign-card {
        flex-direction: column;
        padding: 2.5rem 2rem;
        gap: 2rem;
    }

    .serenalign-mockup { width: 100%; min-height: 220px; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none; /* add hamburger menu if needed */
    }

    .hero { padding: 4rem 1.5rem 5rem; }

    .section-about,
    .section-services,
    .section-serenalign,
    .section-contact { padding-left: 1.25rem; padding-right: 1.25rem; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .serenalign-heading { font-size: 1.875rem; }
    .about-text { font-size: 1.15rem; }
}

/* WhatsApp Float */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  z-index: 1000;
}

.wa-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}
