:root {
  --bg: #f7f8f9;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f3f5f7;
  --surface-line: #dde3e8;
  --text: #111111;
  --text-soft: #5b636b;
  --text-on-dark: rgba(255, 255, 255, 0.86);
  --primary: #111111;
  --accent: #86bc25;
  --shadow-lg: 0 24px 60px rgba(10, 21, 33, 0.16);
  --shadow-md: 0 16px 36px rgba(10, 21, 33, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
  --transition: 220ms ease;
  --font-base: "Open Sans", sans-serif;
}

body[data-theme="dark"] {
  --bg: #0d1825;
  --bg-soft: #13283f;
  --surface: #152232;
  --surface-soft: #101a27;
  --surface-line: rgba(255, 255, 255, 0.1);
  --text: #edf3fb;
  --text-soft: rgba(237, 243, 251, 0.72);
  --text-on-dark: rgba(255, 255, 255, 0.86);
  --primary: #163f6e;
  --accent: #4a87cb;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(125, 145, 165, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfbfc 0%, #f6f7f8 26%, #ffffff 100%);
  line-height: 1.65;
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at top, rgba(74, 135, 203, 0.12), transparent 28%),
    linear-gradient(180deg, #0b1420 0%, #101a28 28%, #0f1723 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p,
.client-logo,
.roster-item {
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 120;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 4.75rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.intro-copy h2,
.contact-copy h2,
.projects-copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.3rem;
  height: 1px;
  background: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  overflow: hidden;
  cursor: pointer;
}

.theme-track {
  display: flex;
  width: 76px;
  height: 38px;
  transition: transform 400ms ease;
}

.theme-icon {
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon i {
  font-size: 18px;
  line-height: 1;
}

body[data-theme="dark"] .theme-track {
  transform: translateX(-38px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 84px;
}

.translate-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lang-button.is-active {
  background: rgba(255, 255, 255, 0.16);
}

.lang-flag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-logo {
  width: auto;
  height: 54px;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.08));
}

.brand {
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  pointer-events: none;
}

.nav-menu {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
  background: rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-menu a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-nav.is-open {
  pointer-events: auto;
}

.site-nav.is-open .nav-menu {
  opacity: 1;
  transform: translateY(0);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #0b1420 0%, #102131 60%, #16324e 100%);
  background-size: 68px 68px, 68px 68px, auto;
  color: var(--text-on-dark);
}

body:not([data-theme="dark"]) .hero-section {
  background: #101010;
  color: #fff;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(74, 135, 203, 0.18), transparent 22%);
  pointer-events: none;
}

body:not([data-theme="dark"]) .hero-backdrop {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.48) 32%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-layout,
.intro-layout,
.projects-layout,
.contact-layout,
.leadership-grid {
  display: grid;
  gap: 2rem;
}

.hero-layout {
  position: relative;
  z-index: 1;
}

.hero-copy,
.hero-media,
.projects-visual-stack {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  max-width: 11ch;
  font-size: clamp(2.45rem, 4.8vw, 4.75rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-text,
.section-heading p,
.intro-copy p,
.info-card p,
.about-card p,
.service-face-front p,
.project-card p,
.team-card p,
.contact-copy p,
.footer-text,
.news-card p,
.lead-copy p,
.clients-header p {
  color: var(--text-soft);
}

.hero-text,
.hero-metrics span,
.projects-section .projects-copy > p,
.projects-section .project-card p,
.projects-section .clients-header p {
  color: rgba(255, 255, 255, 0.74);
}

body:not([data-theme="dark"]) .hero-text,
body:not([data-theme="dark"]) .hero-metrics span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-text {
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #111111, #2a2a2a);
  color: #fff;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

body:not([data-theme="dark"]) .btn-secondary {
  border-color: rgba(17, 17, 17, 0.12);
  background: #fff;
  color: var(--text);
}

.hero-metrics {
  display: grid;
  gap: 1rem;
}

.hero-metrics div {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
  font-size: 1.15rem;
}

body:not([data-theme="dark"]) .hero-metrics div {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--surface-line);
}

body:not([data-theme="dark"]) .hero-metrics strong {
  color: #fff;
}

.hero-figure,
.intro-visual,
.projects-visual {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-figure img,
.intro-visual img,
.projects-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(9, 19, 29, 0.72);
  backdrop-filter: blur(12px);
}

.intro-section {
  margin-top: 0;
  position: relative;
  z-index: 2;
  padding-top: 2.5rem;
}

body[data-theme="dark"] .intro-section,
body[data-theme="dark"] .about-section,
body[data-theme="dark"] .services-section,
body[data-theme="dark"] .team-section,
body[data-theme="dark"] .news-section,
body[data-theme="dark"] .contact-section {
  background: linear-gradient(180deg, #0f1723 0%, #111d2b 100%);
}

.intro-copy,
.projects-copy {
  align-self: center;
}

.intro-points,
.about-grid,
.services-grid,
.project-list,
.associates-grid,
.contact-stack,
.news-grid,
.clients-grid,
.roster-grid {
  display: grid;
  gap: 1.25rem;
}

.info-card,
.about-card,
.contact-card,
.contact-form,
.news-card,
.lead-card,
.team-card,
.clients-section,
.roster-item,
.project-card {
  border: 1px solid var(--surface-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

body[data-theme="dark"] .info-card,
body[data-theme="dark"] .about-card,
body[data-theme="dark"] .contact-card,
body[data-theme="dark"] .contact-form,
body[data-theme="dark"] .news-card,
body[data-theme="dark"] .lead-card,
body[data-theme="dark"] .team-card,
body[data-theme="dark"] .clients-section,
body[data-theme="dark"] .roster-item,
body[data-theme="dark"] .project-card,
body[data-theme="dark"] .service-face {
  background: rgba(21, 34, 50, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.info-card,
.about-card,
.contact-card,
.news-card,
.team-card,
.clients-section,
.roster-item,
.project-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.info-card h3,
.about-card h3,
.service-face h3,
.project-card h3,
.team-card h3,
.news-card h3,
.clients-header h3,
.lead-copy h3 {
  margin: 0 0 0.7rem;
  font-size: 1.16rem;
  line-height: 1.2;
  font-weight: 600;
}

.about-card span,
.team-card span,
.news-source,
.lead-copy span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-section {
  background: linear-gradient(180deg, rgba(17, 38, 62, 0.02), rgba(17, 38, 62, 0.05));
  padding-top: 3rem;
}

.services-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.service-card {
  perspective: 1200px;
  min-height: 320px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  transition: transform 700ms ease;
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner,
.service-card:focus-within .service-card-inner {
  transform: rotateY(180deg);
}

.service-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  border: 1px solid var(--surface-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.service-face-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
}

.service-face-front span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.service-face-back {
  transform: rotateY(180deg);
  color: #fff;
}

.service-face-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-backdrop {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(10, 20, 31, 0.72);
  backdrop-filter: blur(10px);
}

.ssl-section {
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

body[data-theme="dark"] .ssl-section {
  background: linear-gradient(180deg, #0f1723 0%, #111d2b 100%);
}

.ssl-layout {
  display: grid;
  gap: 2rem;
}

.ssl-copy,
.ssl-panel {
  display: grid;
  gap: 1.5rem;
  align-self: start;
}

.ssl-benefits,
.ssl-types {
  display: grid;
  gap: 1rem;
}

.ssl-benefit-card,
.ssl-type-card,
.ssl-trust-box {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

body[data-theme="dark"] .ssl-benefit-card,
body[data-theme="dark"] .ssl-type-card,
body[data-theme="dark"] .ssl-trust-box {
  background: rgba(21, 34, 50, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.ssl-benefit-card h3,
.ssl-type-card h3,
.ssl-trust-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 600;
}

.ssl-benefit-card p,
.ssl-type-card p,
.ssl-trust-box p {
  margin: 0;
  color: var(--text-soft);
}

.ssl-type-card span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.ssl-helper-text {
  margin: -0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.projects-section {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(74, 135, 203, 0.15), transparent 24%),
    linear-gradient(135deg, #0c1622 0%, #112331 62%, #17314a 100%);
}

body[data-theme="dark"] .projects-section {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(74, 135, 203, 0.16), transparent 24%),
    linear-gradient(135deg, #08111c 0%, #0e1a28 62%, #14253a 100%);
}

body:not([data-theme="dark"]) .projects-section {
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f7f8 100%);
}

body:not([data-theme="dark"]) .projects-section .projects-copy > p,
body:not([data-theme="dark"]) .projects-section .project-card p,
body:not([data-theme="dark"]) .projects-section .clients-header p {
  color: var(--text-soft);
}

.projects-visual-stack {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body:not([data-theme="dark"]) .project-card,
body:not([data-theme="dark"]) .clients-section {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--surface-line);
  box-shadow: var(--shadow-md);
}

.project-tag {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe8f8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body:not([data-theme="dark"]) .project-tag {
  background: rgba(134, 188, 37, 0.12);
  color: #587f16;
}

.clients-section {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

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

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  filter: grayscale(1);
}

body[data-theme="dark"] .client-logo {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

body:not([data-theme="dark"]) .client-logo {
  background: #f5f6f7;
  color: #5f676f;
  border-color: #e0e5ea;
}

.team-section {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.team-roster {
  margin-top: 2rem;
}

.lead-card {
  display: grid;
  gap: 1.5rem;
  padding: 1.6rem;
  border-radius: var(--radius-xl);
}

.lead-photo-wrap,
.team-photo-wrap {
  display: flex;
  justify-content: center;
}

.lead-photo,
.team-photo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #dce7f3, #f5f8fb);
}

.member-photo,
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card {
  text-align: center;
}

.team-card .team-photo-wrap {
  margin: 0 auto 1rem;
  width: 160px;
  height: 160px;
}

.roster-item {
  text-align: center;
  font-weight: 600;
}

.news-section {
  background: #ffffff;
}

body[data-theme="dark"] .news-image,
body[data-theme="dark"] .skeleton-block {
  background: linear-gradient(135deg, #203142, #162433);
}

.news-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-image,
.skeleton-block {
  width: 100%;
  height: 190px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #dae5f1, #f5f7fb);
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 800;
}

.contact-section {
  background:
    radial-gradient(circle at top right, rgba(130, 145, 160, 0.07), transparent 24%),
    #f7f9fc;
}

.contact-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
}

.google-translate-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.nowrap {
  white-space: nowrap;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #ccd7e2;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body[data-theme="dark"] .form-group input::placeholder,
body[data-theme="dark"] .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: rgba(74, 135, 203, 0.5);
  box-shadow: 0 0 0 4px rgba(74, 135, 203, 0.12);
}

.form-group-full {
  grid-column: 1 / -1;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.form-status {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #e8f3ea;
  color: #1b5f34;
  font-weight: 700;
}

.form-status.is-error {
  background: #f9e8e8;
  color: #8a2424;
}

.site-footer {
  padding-top: 3.5rem;
  background: var(--bg);
  color: rgba(255, 255, 255, 0.86);
}

body:not([data-theme="dark"]) .site-footer {
  background: #111111;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand-block {
  max-width: 360px;
}

.footer-logo {
  width: auto;
  height: 56px;
  margin-bottom: 1rem;
}

.site-footer h3 {
  margin-top: 0;
  color: #fff;
}

.footer-text,
.footer-links a,
.footer-links span,
.footer-bottom p,
.footer-link-button {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: #fff;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.footer-bottom {
  padding: 1rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 20, 0.7);
}

.modal-dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: 85vh;
  overflow: auto;
  padding: 2rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

body[data-theme="dark"] .modal-dialog {
  background: #132131;
  color: #edf3fb;
}

body[data-theme="dark"] .modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eef3f8;
  cursor: pointer;
  font-size: 1.5rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27d366, #169c49);
  color: #fff;
  box-shadow: 0 18px 40px rgba(20, 164, 77, 0.28);
  transition: transform var(--transition);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-4px) scale(1.03);
}

.whatsapp-float svg {
  width: 30px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .section {
    padding: 6rem 0;
  }

  .hero-metrics,
  .intro-points,
  .news-grid,
  .clients-grid,
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ssl-benefits,
  .ssl-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form,
  .associates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.7fr;
  }
}

@media (min-width: 980px) {
  .nav-shell {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    pointer-events: auto;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 1;
    transform: none;
  }

  .hero-layout,
  .intro-layout,
  .ssl-layout,
  .projects-layout,
  .contact-layout,
  .leadership-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: 3rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .roster-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .service-card:hover .service-card-inner,
  .service-card:focus-within .service-card-inner {
    transform: none;
  }
}
