/*
  Custom theme for Alverno Global Limited corporate website
*/

:root {
  --color-background: #050608;
  --color-surface: #0f1217;
  --color-muted: #8a96ad;
  --color-border: rgba(138, 150, 173, 0.18);
  --color-primary: #f97316;
  --color-primary-strong: #fb923c;
  --color-primary-soft: rgba(249, 115, 22, 0.16);
  --color-text: #f5f6f9;
  --color-heading: #ffffff;
  --color-cta: #16a34a;
  --container-width: min(1120px, 92vw);
  --font-sans: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  --shadow-elevated: 0 22px 45px rgba(5, 6, 8, 0.55);
  --shadow-soft: 0 10px 30px rgba(12, 15, 20, 0.35);
  --transition-base: all 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-primary-strong);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

button,
input,
textarea {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-heading);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--color-muted);
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

.text-highlight {
  color: var(--color-primary-strong);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--color-primary-soft);
  background: rgba(249, 115, 22, 0.12);
  color: var(--color-primary-strong);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition-base);
}

.btn {
  background: linear-gradient(135deg, var(--color-primary), #facc15);
  color: #111827;
  box-shadow: var(--shadow-soft);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.4);
  filter: brightness(0.95);
  color: var(--color-text);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(138, 150, 173, 0.35);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: rgba(249, 115, 22, 0.75);
  color: var(--color-primary-strong);
  transform: translateY(-3px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 8, 0.82);
  border-bottom: 1px solid rgba(138, 150, 173, 0.16);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(138, 150, 173, 0.3);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle[aria-expanded='true'] {
  border-color: var(--color-primary);
  color: var(--color-primary-strong);
}

.primary-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 0.5rem);
  width: 92vw;
  background: rgba(12, 15, 20, 0.96);
  border: 1px solid rgba(138, 150, 173, 0.16);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
  padding: 1.2rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
}

.primary-nav a {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--color-muted);
  font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav a[aria-current='page'] {
  background: rgba(249, 115, 22, 0.12);
  color: var(--color-heading);
}

.primary-nav.is-open {
  display: flex;
}

.hero {
  padding: clamp(4rem, 16vw, 8rem) 0 clamp(4rem, 14vw, 8.5rem);
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 55%),
    radial-gradient(circle at 15% 35%, rgba(22, 163, 74, 0.15), transparent 45%),
    linear-gradient(140deg, rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.8)),
    url('images/team-photo.jpeg') center/cover fixed;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 6, 8, 0.75) 10%, rgba(5, 6, 8, 0.35) 55%, rgba(5, 6, 8, 0.75) 90%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 3.6rem);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(229, 231, 235, 0.9);
  font-size: 1.15rem;
  margin: 0.75rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.hero-stats .stat {
  padding: 1.25rem 1.5rem;
  background: rgba(12, 15, 20, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(138, 150, 173, 0.16);
  box-shadow: 0 24px 42px rgba(4, 5, 7, 0.45);
}

.hero-stats .stat:hover,
.hero-stats .stat:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-strong);
  display: block;
}

.trust-bar {
  border-top: 1px solid rgba(138, 150, 173, 0.12);
  border-bottom: 1px solid rgba(138, 150, 173, 0.12);
  background: rgba(10, 12, 16, 0.8);
  padding: 1.5rem 0;
}

.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section {
  padding: clamp(4rem, 12vw, 6.5rem) 0;
}

.card-grid {
  display: grid;
  gap: 1.75rem;
}

.card {
  background: var(--color-surface);
  border-radius: 22px;
  padding: 2.25rem;
  border: 1px solid rgba(138, 150, 173, 0.14);
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 55%);
  pointer-events: none;
}

.card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--color-heading);
}

.card p {
  color: var(--color-muted);
}

.card .card-meta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(229, 231, 235, 0.75);
}

.key-points {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.key-points li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--color-muted);
  list-style: none;
}

.key-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.15);
}

.side-by-side {
  display: grid;
  gap: 2.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.value-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(12, 15, 20, 0.8);
  border: 1px solid rgba(138, 150, 173, 0.16);
}

.value-card h4 {
  margin: 0 0 0.6rem;
  color: var(--color-heading);
}

.value-card p {
  color: var(--color-muted);
  margin: 0;
}

.testimonial {
  background: rgba(12, 15, 20, 0.92);
  border-radius: 22px;
  padding: 2.25rem;
  border: 1px solid rgba(138, 150, 173, 0.14);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.testimonial p {
  margin: 0 0 1.5rem;
  color: rgba(229, 231, 235, 0.88);
  font-size: 1.05rem;
}

.testimonial cite {
  display: block;
  color: var(--color-primary-strong);
  font-style: normal;
  font-weight: 600;
}

.timeline {
  border-left: 2px solid rgba(138, 150, 173, 0.2);
  padding-left: 1.75rem;
  display: grid;
  gap: 1.75rem;
}

.timeline-item h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-heading);
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.timeline-item p {
  margin: 0;
  color: var(--color-muted);
}

.team-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  background: rgba(12, 15, 20, 0.88);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  border: 1px solid rgba(138, 150, 173, 0.14);
  transition: var(--transition-base);
}

.team-card img {
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(249, 115, 22, 0.25);
}

.team-card h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 1.1rem;
}

.team-card p {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.team-card span {
  display: block;
  color: var(--color-primary-strong);
  font-weight: 600;
  margin-top: 0.5rem;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.5);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stats-strip .stat {
  background: rgba(12, 15, 20, 0.85);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(138, 150, 173, 0.14);
  text-align: center;
}

.stats-strip .stat-number {
  font-size: 2.1rem;
}

.contact {
  background: linear-gradient(120deg, rgba(22, 163, 74, 0.16), rgba(249, 115, 22, 0.12));
  border-radius: 26px;
  padding: 3rem;
  border: 1px solid rgba(138, 150, 173, 0.16);
  box-shadow: var(--shadow-soft);
}

.contact h3 {
  margin-top: 0;
  font-size: 1.65rem;
}

.contact p {
  color: rgba(229, 231, 235, 0.82);
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.contact-details a {
  color: var(--color-heading);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.contact-form label {
  font-size: 0.92rem;
  color: rgba(229, 231, 235, 0.82);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(138, 150, 173, 0.25);
  background: rgba(10, 12, 16, 0.6);
  color: var(--color-heading);
  transition: var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.site-footer {
  margin-top: 5rem;
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(138, 150, 173, 0.12);
  background: rgba(5, 6, 8, 0.92);
}

.footer-top {
  display: grid;
  gap: 2rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.footer-nav h4 {
  margin-bottom: 0.75rem;
  color: var(--color-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--color-muted);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(138, 150, 173, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: rgba(138, 150, 173, 0.7);
  font-size: 0.9rem;
}

.socials {
  display: flex;
  gap: 0.9rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(138, 150, 173, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: var(--transition-base);
}

.socials a:hover,
.socials a:focus {
  border-color: var(--color-primary);
  color: var(--color-primary-strong);
}

.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease;
  z-index: 50;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
}

@media (min-width: 768px) {
  .site-header .container {
    padding: 1.2rem 0;
  }

  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    transform: none;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .primary-nav a {
    padding: 0.6rem 0.9rem;
    color: rgba(229, 231, 235, 0.72);
    border-radius: 10px;
  }

  .hero-content {
    max-width: 720px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-by-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .hero-stats {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .footer-top {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .hero {
    background-attachment: scroll;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .contact {
    padding: 2.25rem;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
  }
}