/* Exogrip — light flexbox redesign (brand teal) */
:root {
  --brand: #00a19a;
  --brand-dark: #007a75;
  --ink: #1a1a1a;
  --text: #575756;
  --muted: #9d9d9c;
  --bg: #f7f9f9;
  --surface: #ffffff;
  --line: rgba(0, 161, 154, 0.22);
  --shadow: 0 18px 50px rgba(0, 40, 38, 0.12);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Helvetica, sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 161, 154, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 80, 78, 0.08), transparent 50%),
    linear-gradient(180deg, #eef6f5 0%, var(--bg) 35%, #ffffff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

.site-wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--brand);
}

.site-header__inner {
  width: var(--wrap);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-link img {
  height: 40px;
  width: auto;
}

.brand-link__mark {
  display: none;
  height: 44px;
  width: auto;
}

.brand-link__word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
}

.site-nav__list a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.site-nav__list a.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 0.55rem 1rem;
  border-bottom: none;
}

.site-nav__list a.nav-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

main {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

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

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

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%),
    url("/assets/img/hero-mascot.png") center / cover no-repeat,
    #0a1212;
  overflow: hidden;
}

.hero__content {
  width: var(--wrap);
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  animation: rise 0.9s ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.2em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.8em;
}

.hero__lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.6rem;
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.section--dark {
  background: #0d1111;
  color: rgba(255, 255, 255, 0.88);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--teal {
  background: linear-gradient(135deg, #003d3a 0%, #00a19a 100%);
  color: #fff;
}

.section--teal h2 {
  color: #fff;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

.split > * {
  flex: 1 1 280px;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.feature-strip article {
  flex: 1 1 220px;
  padding: 1.4rem 1.2rem;
  background: var(--surface);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow);
  animation: fade-in 0.8s ease both;
}

.feature-strip h3 {
  color: var(--brand-dark);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  list-style: none;
  flex: 1 1 180px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  border-left: 3px solid var(--brand);
}

.steps {
  margin: 0;
  padding: 0;
}

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

.gallery img {
  flex: 1 1 160px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
}

.quote-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.quote-grid blockquote {
  flex: 1 1 260px;
  margin: 0;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow);
  color: var(--text);
}

.quote-grid cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.media-frame {
  overflow: hidden;
  background: #000;
}

.media-frame video,
.media-frame img {
  width: 100%;
}

.page-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.page-header h1 {
  margin-bottom: 0.35em;
}

.page-header p {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 1.8em;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand-dark);
  letter-spacing: 0.04em;
}

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

/* Contact */
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-panel > * {
  flex: 1 1 260px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

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

/* Blog list (from r-template_blog) */
.blog-container {
  width: var(--wrap);
  margin: 0 auto 3rem;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.blog-card {
  flex: 1 1 280px;
  background: var(--surface);
  padding: 1.35rem;
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow);
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.blog-title a {
  text-decoration: none;
  color: var(--ink);
}

.blog-title a:hover {
  color: var(--brand);
}

.blog-preview p {
  margin: 0;
  color: var(--text);
}

/* Article shell */
.romlicontainer {
  width: var(--wrap);
  margin: 0 auto 3rem;
  max-width: 800px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #0d1111;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
}

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

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

.footer-grid {
  width: var(--wrap);
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.footer-grid section {
  flex: 1 1 180px;
}

.footer-grid h3 {
  color: var(--brand);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-bottom {
  width: var(--wrap);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.socials a {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.policy-body {
  width: var(--wrap);
  margin: 0 auto 3rem;
  max-width: 800px;
}

.policy-body h1,
.policy-body h2,
.policy-body h3 {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-header__inner {
    flex-wrap: wrap;
    padding: 0.65rem 0;
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.5rem 0 1rem;
    gap: 0.15rem;
  }

  .brand-link__word {
    display: none;
  }

  .brand-link__mark {
    display: block;
  }

  .brand-link img.brand-link__logo {
    display: none;
  }

  .hero {
    min-height: 78vh;
    align-items: flex-end;
  }
}
