/*
 * BOLD SONS AND CO – modern responsive stylesheet
 *
 * This stylesheet defines a light, professional design system for the
 * consulting website. It uses CSS variables for easy theming and
 * provides sensible defaults for typography, spacing and components.
 * The layout is mobile‑first and adapts gracefully across breakpoints.
 */

/* Colour palette and global values */
:root {
  --color-primary: #1f6feb;      /* Primary brand colour (blue) */
  --color-secondary: #f59e0b;    /* Secondary accent (amber) */
  --color-bg: #ffffff;           /* Page background */
  --color-surface: #f8fafc;      /* Card and section background */
  --color-text-primary: #111827; /* Main text colour */
  --color-text-muted: #6b7280;   /* Secondary text */
  --color-border: #e5e7eb;       /* Light border colour */
  --radius: 16px;                /* Corner rounding */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --max-width: 1100px;           /* Container max width */
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
}

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

/* Container helper */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 2rem);
}

/* Links and buttons */
a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.button {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 0;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* Focus states for accessibility */
a:focus-visible,
.button:focus-visible,
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.button.alt {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.badge {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--color-surface);
  color: var(--color-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand .name {
  font-size: 1.1rem;
  font-weight: 800;
}

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

.nav-links a {
  color: var(--color-text-primary);
  opacity: 0.9;
}

.nav-links.open {
  display: flex;
}

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f0f4f8, transparent 70%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw + 0.5rem, 3rem);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.hero p.lead {
  max-width: 55ch;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.kpis .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.kpis .muted {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.section .sub {
  color: var(--color-text-muted);
  margin-top: -0.2rem;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Card component */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  margin-top: 0;
}

/* Form */
.form {
  display: grid;
  gap: 0.8rem;
}

.input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-primary);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

small.help {
  color: var(--color-text-muted);
}

/* Generic muted text utility */
.muted {
  color: var(--color-text-muted);
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  background: #f9fafb;
  color: var(--color-text-muted);
}

.footer .grid {
  align-items: center;
}

.footer small.help {
  color: var(--color-text-muted);
}

/* Testimonials slider */
#testimonials {
  padding: 4rem 0;
  background: #f9fafb;
}

#testimonials h2 {
  margin-bottom: 1rem;
}

#testimonials .slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

#testimonials .testimonial {
  flex: 0 0 280px;
  min-width: 280px;
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  scroll-snap-align: start;
}

#testimonials .slider-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.slider-prev,
.slider-next {
  border: 0;
  background: #e2e8f0;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Counters */
#counters {
  padding: 4rem 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.counter {
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.counter .count {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
}

.counter .label {
  color: rgba(255, 255, 255, 0.8);
}

/* Alerts for form feedback */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* WhatsApp floating button */
#whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

/* Map wrapper (about page) */
#map {
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* Mobile navigation menu */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: #ffffff;
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: 70px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav-links a {
    color: var(--color-text-primary);
  }
  .hamburger {
    display: inline-block;
  }
}
/* === Dark Mode High-Contrast Overrides (Appended) === */
:root {
  --bg: #0b0f14;            /* page background */
  --surface: #0f172a;       /* panels/cards/nav (slate-900-ish) */
  --surface-2: #111827;     /* subtle contrast surface */
  --text: #e5e7eb;          /* primary text (zinc-200) */
  --muted: #cbd5e1;         /* secondary text */
  --heading: #f8fafc;       /* headings (near-white) */
  --link: #93c5fd;          /* link color (light blue) */
  --accent: #3b82f6;        /* primary accent */
  --accent-2: #10b981;      /* secondary accent (teal/green) */
  --border: #1f2937;        /* borders */
  --focus: #f59e0b;         /* focus ring (amber) */
  --shadow: rgba(0,0,0,0.55);
}

/* Base resets for dark theme */
html, body {
  background: var(--bg) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, input, button, select, textarea {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" !important;
  color: var(--text);
}

/* Global link styles */
a { color: var(--link); }
a:hover, a:focus { color: var(--heading); text-decoration: underline; }

/* Panels & cards */
section, article, .card, .panel, .container, .wrapper, .box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px var(--shadow);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading) !important;
  letter-spacing: 0.01em;
}

/* Buttons */
button, .btn, input[type="button"], input[type="submit"] {
  background: var(--accent);
  color: #ffffff !important;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  box-shadow: 0 6px 16px var(--shadow);
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
button:hover, .btn:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
  background: #2563eb; /* darker blue */
}
button:active, .btn:active, input[type="submit"]:active {
  transform: translateY(0px) scale(0.98);
}

/* Inputs */
input, select, textarea {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* Tables */
table {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
th, td {
  border-color: var(--border);
}

/* Focus visibility */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

/* New site header (injected into HTML) */
.site-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(17,24,39,0.95), rgba(15,23,42,0.95));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px var(--shadow);
  backdrop-filter: saturate(1.1) blur(8px);
}
.site-banner .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
}
.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  letter-spacing: 0.02em;
}
.site-brand .title {
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--heading);
}
.site-brand .tag {
  font-weight: 600;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  color: var(--muted);
  opacity: 0.9;
}
.site-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-2);
  color: #00110a !important;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 6px 16px var(--shadow);
}
.whatsapp-link:hover { filter: brightness(0.95); text-decoration: none !important; }
.whatsapp-link svg {
  width: 1.1rem; height: 1.1rem; flex: 0 0 auto;
  fill: currentColor;
}
