/* ============================================
   Speranza Consult – Modern Business Consultancy
   ============================================ */

:root {
  --bg: #060b34;
  --surface: #0c1242;
  --surface-elevated: #121b52;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #0854fb;
  --accent-soft: rgba(8, 84, 251, 0.15);
  --accent-glow: rgba(8, 84, 251, 0.35);
  --accent-muted: rgba(8, 84, 251, 0.5);
  --border: rgba(148, 163, 184, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --header-h: 72px;
  --container: min(1120px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  background: var(--accent);
  color: #fff;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(6, 11, 52, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.site-header.is-scrolled {
  background: rgba(6, 11, 52, 0.97);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-accent {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem;
  }
}

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
}
.section-header {
  margin-bottom: 3rem;
  max-width: 640px;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Inner page layout ---- */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero .container {
  max-width: min(1000px, 92vw);
}
.page-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.page-hero-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  color: var(--accent);
  opacity: 0.9;
}
.page-hero-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.page-hero-content {
  flex: 1;
  min-width: 0;
}
.page-hero .section-label {
  margin-bottom: 0.5rem;
}
.page-hero .page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}
.page-hero .page-title em {
  font-style: italic;
  color: var(--accent);
}
.page-hero .page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .page-hero-inner {
    flex-direction: column;
    gap: 1.25rem;
  }
  .page-hero-icon {
    width: 64px;
    height: 64px;
  }
}
.page-content {
  padding: 4rem 0 5rem;
}
.page-content .content-block {
  max-width: 720px;
  margin-bottom: 3rem;
}
.page-content .content-block:last-child {
  margin-bottom: 0;
}
.page-content .content-block h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1rem 0;
}
.page-content .content-block h2 em {
  color: var(--accent);
  font-style: italic;
}
.page-content .content-block p {
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.7;
}
.page-content .content-block p:last-child {
  margin-bottom: 0;
}
.page-content .content-block ul {
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}
.page-content .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem 0;
}
.page-content .stat-item {
  text-align: center;
  padding: 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.page-content .stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  margin: 0 0 0.25rem 0;
}
.page-content .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.page-content .quote-block {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--surface-elevated);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.page-content .quote-block p {
  margin: 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
}
.page-content .breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.page-content .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.page-content .breadcrumb a:hover {
  color: var(--accent);
}
.page-content .breadcrumb span {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 80vh;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, var(--accent-glow) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 20% 80%, var(--accent-soft) 0%, transparent 45%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  color: var(--text-muted);
}
.hero-pattern svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.hero-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 1rem 0;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1.25rem 0;
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem 0;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.9;
}
.hero-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

@media (max-width: 900px) {
  .hero {
    padding-top: calc(var(--header-h) + 2rem);
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: none;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-visual {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-block {
  width: 100%;
}

/* ---- About ---- */
.about {
  background: var(--surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 1rem 0;
  line-height: 1.65;
}
.about-content p:not(.about-lead) {
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
}
.about-values {
  margin-top: 1.5rem;
}
.value-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.value-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--accent);
}
.value-icon svg {
  width: 100%;
  height: 100%;
}
.value-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.value-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-image-wrap {
  position: relative;
}
.about-image-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.about-image-placeholder svg {
  width: 60%;
  height: auto;
  max-height: 180px;
}

.values-strip {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.values-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text);
}
.value-svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.value-svg svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .values-list {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.service-card-wide {
  grid-column: 1 / -1;
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-icon svg {
  width: 100%;
  height: 100%;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}
.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card-wide {
    grid-column: 1;
  }
}

/* ---- Methodology ---- */
.methodology {
  background: var(--surface);
}
.methodology-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.method-step {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.method-step:hover {
  border-color: var(--accent);
}
.method-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.method-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}
.method-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .methodology-timeline {
    grid-template-columns: 1fr;
  }
}

.methodology-timeline-page {
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
.method-step-expanded {
  padding: 2rem;
}
.method-step-expanded p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}
.page-content .section.methodology {
  padding: 2rem 0 0;
  background: transparent;
}

/* ---- Achievements ---- */
.achievements-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
}
.achievements-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.achievements-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---- Why Us ---- */
.why-us {
  background: var(--surface);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.why-card:hover {
  border-color: var(--accent);
}
.why-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-top: 0.15rem;
}
.why-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.why-grid-page {
  margin-top: 1rem;
}
.why-card-page {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2rem;
}
.why-card-page .why-check {
  margin-top: 0;
}
.why-card-page h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.35rem 0;
}
.why-card-page p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-wrap-page {
  margin-top: 0;
}

/* ---- Section header centered ---- */
.section-header-center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--surface);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial-card {
  margin: 0;
  padding: 2rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.testimonial-quote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.25rem 0;
  position: relative;
}
.testimonial-quote::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.4;
  position: absolute;
  left: 0;
  top: -0.5rem;
  line-height: 1;
}
.testimonial-author {
  margin: 0;
  padding: 0;
  border: none;
}
.testimonial-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Partners ---- */
.partners {
  background: var(--bg);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.partner-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.partner-item:hover {
  border-color: var(--accent);
}
.partner-name {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.partner-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info .section-title {
  margin-bottom: 0.75rem;
}
.contact-info > p {
  color: var(--text-muted);
  margin: 0 0 2rem 0;
}
.contact-details {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
}
.contact-icon svg {
  width: 20px;
  height: 20px;
}
.contact-details a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-details a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.cta-card p {
  margin: 0 0 1.5rem 0;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---- Footer ---- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.footer-brand img {
  height: 32px;
  width: auto;
}
.footer-brand .logo-accent {
  color: var(--accent);
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-float:focus {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}
