:root {
  --blue: #0a3d7a;
  --blue-deep: #072a54;
  --green: #1f9d4b;
  --green-bright: #2fc45f;
  --orange: #e85d04;
  --ink: #121820;
  --muted: #5a6674;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: rgba(10, 61, 122, 0.12);
  --shadow: 0 18px 50px rgba(7, 42, 84, 0.14);
  --radius: 4px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 196, 95, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 93, 4, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3f9 0%, var(--paper) 35%, #e8eef6 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, #fff 0 18%, transparent 19%),
    conic-gradient(from 210deg, var(--green), var(--orange), var(--blue), var(--green));
  box-shadow: inset 0 0 0 3px #fff, 0 4px 14px rgba(10, 61, 122, 0.2);
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: linear-gradient(145deg, #4a5568, #2d3748);
  clip-path: polygon(18% 28%, 82% 28%, 88% 42%, 88% 72%, 12% 72%, 12% 42%);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo-ersa {
  color: var(--green);
}

.logo-srl {
  color: var(--blue);
}

.logo-since {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue);
  border-bottom-color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-deep);
  margin: 5px 0;
  transition: 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: hero-zoom 12s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 42, 84, 0.88) 0%, rgba(7, 42, 84, 0.55) 48%, rgba(7, 42, 84, 0.25) 100%),
    linear-gradient(0deg, rgba(7, 42, 84, 0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-bright);
  margin-bottom: 0.85rem;
}

.hero h1,
.page-hero h1,
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.6rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: #d45203;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.page-hero .hero-media::after {
  background:
    linear-gradient(90deg, rgba(7, 42, 84, 0.9) 0%, rgba(7, 42, 84, 0.5) 60%, rgba(7, 42, 84, 0.3) 100%),
    linear-gradient(0deg, rgba(7, 42, 84, 0.7), transparent 50%);
}

.page-hero .hero-content {
  padding: 3.5rem 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

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

.section- Tight {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  color: var(--blue-deep);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 280px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split:hover .split-media img {
  transform: scale(1.03);
}

.prose p {
  margin: 0 0 1rem;
  color: #2a3440;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Service tiles — interaction containers, not decorative cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.service-link {
  display: block;
  padding: 1.4rem 1.3rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-link:nth-child(2) {
  border-left-color: var(--blue);
}

.service-link:nth-child(3) {
  border-left-color: var(--orange);
}

.service-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.service-link h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--blue-deep);
}

.service-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-link .more {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--orange);
  font-size: 0.9rem;
}

/* Brands strip */
.brands {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.brands img {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.brand-list li {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-deep);
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.fact {
  padding: 1.25rem 0;
  border-top: 2px solid var(--green);
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-deep);
  margin-bottom: 0.35rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-block + .contact-block {
  margin-top: 1.75rem;
}

.contact-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--blue-deep);
}

.contact-block p,
.contact-block li {
  margin: 0 0 0.4rem;
  color: #2a3440;
}

.contact-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  color: var(--blue-deep);
  font-size: 1.35rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #c9d3df;
  border-radius: var(--radius);
  font: inherit;
  background: #fbfcfe;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid rgba(31, 157, 75, 0.35);
  border-color: var(--green);
}

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

.hp {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.alert {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--green);
  background: #e8f8ee;
  color: #14532d;
  font-weight: 600;
}

.alert-error {
  border-left-color: #c0392b;
  background: #fdecea;
  color: #7b1e1a;
}

.map-embed {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin: 0 0 0.85rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--green-bright);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .split,
  .split-reverse,
  .contact-grid,
  .service-grid,
  .facts,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.35rem;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0;
    font-size: 1.05rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    min-height: 70vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
