/* ==========================================================================
   SEOFIRM — main stylesheet
   Clean rebuild: custom properties, mobile-first, no framework.
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Varela Round";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/varela-round-latin.woff2") format("woff2");
}

/* ---------- Custom properties ---------- */

:root {
  --c-primary: #4cc2c0;        /* teal */
  --c-primary-dark: #3aa9a7;
  --c-secondary: #f15b26;      /* orange-red */
  --c-orange: #fcb03b;
  --c-green: #3cb878;
  --c-green-dark: #319a64;
  --c-yellow: #fcd846;
  --c-dark: #2f2c2c;
  --c-darker: #151414;
  --c-text: #595959;
  --c-text-light: #807d7d;
  --c-light: #f7f9f9;
  --c-white: #fff;
  --c-line: #e1e8e8;
  --font-main: "Varela Round", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --radius: 30px;
  --radius-box: 10px;
  --shadow: 0 10px 30px rgba(47, 44, 44, .12);
  --container: 1170px;
}

/* ---------- Reset / base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--c-dark);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 42px; }
h2 { font-size: 34px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin: 0 0 1em; }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color .25s ease;
}

a:hover { color: var(--c-secondary); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}

ul { padding: 0; margin: 0 0 1em; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: 0 0 8px 8px;
  transition: top .2s ease;
}

.skip-link:focus { top: 0; color: var(--c-white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn--primary { background: var(--c-primary); color: var(--c-white); }
.btn--primary:hover { background: var(--c-primary-dark); color: var(--c-white); box-shadow: var(--shadow); }

.btn--dark { background: var(--c-dark); color: var(--c-white); }
.btn--dark:hover { background: var(--c-darker); color: var(--c-white); box-shadow: var(--shadow); }

.btn--green { background: var(--c-green); color: var(--c-white); }
.btn--green:hover { background: var(--c-green-dark); color: var(--c-white); box-shadow: var(--shadow); }

.btn--secondary { background: var(--c-secondary); color: var(--c-white); }
.btn--secondary:hover { background: #d44a1a; color: var(--c-white); box-shadow: var(--shadow); }

.btn--border {
  background: transparent;
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.btn--border:hover { background: var(--c-primary); color: var(--c-white); }

.btn--border-dark {
  background: transparent;
  border-color: var(--c-dark);
  color: var(--c-dark);
}
.btn--border-dark:hover { background: var(--c-dark); color: var(--c-white); }

.btn--white { background: var(--c-white); color: var(--c-dark); }
.btn--white:hover { background: var(--c-dark); color: var(--c-white); }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar ---------- */

.top-bar {
  background: var(--c-darker);
  color: #b5b1b1;
  font-size: 13px;
  padding: 9px 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 26px;
}

.top-bar a { color: #d8d4d4; }
.top-bar a:hover { color: var(--c-primary); }
.top-bar span { color: var(--c-primary); }

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  box-shadow: 0 2px 14px rgba(47, 44, 44, .08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img { width: 46px; height: 46px; }

.logo-title {
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--c-dark);
  line-height: 1.1;
}

.logo-sub-title {
  font-size: 11px;
  color: var(--c-text-light);
  letter-spacing: .4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--c-dark);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-menu > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.primary-menu a {
  display: block;
  padding: 28px 14px;
  color: var(--c-dark);
  font-size: 15px;
}

.primary-menu a:hover,
.primary-menu a[aria-current="page"] { color: var(--c-primary); }

.has-dropdown { position: relative; }

.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 280px;
  padding: 12px 0;
  margin: 0;
  background: var(--c-dark);
  border-radius: 0 0 var(--radius-box) var(--radius-box);
  box-shadow: var(--shadow);
  display: none;
}

.primary-menu .has-dropdown:hover .dropdown,
.primary-menu .has-dropdown:focus-within .dropdown { display: block; }

.dropdown li { width: 100%; }

.dropdown a {
  padding: 11px 26px;
  color: var(--c-white);
  font-size: 14px;
}

.dropdown a:hover { color: var(--c-primary); }

/* ---------- Hero slider ---------- */

.hero { position: relative; overflow: hidden; }

.hero-slide {
  display: none;
  min-height: 540px;
  padding: 60px 0;
}

.hero-slide.is-active { display: block; animation: hero-fade .5s ease both; }

.hero-slide.is-active .hero-copy { animation: hero-rise .6s ease both; }
.hero-slide.is-active .hero-thumb { animation: hero-rise .7s ease .12s both; }

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

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.hero-slide .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  min-height: 480px;
}

.hero-copy { flex: 1 1 420px; max-width: 600px; }
.hero-thumb { flex: 1 1 380px; text-align: center; }
.hero-thumb img { max-height: 420px; width: auto; }

.hero-slide--centered .container {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 28px;
}

/* In a column layout the flex-basis from .hero-copy/.hero-thumb becomes
   height and inflates the slide — let centered slides hug their content. */
.hero-slide--centered .hero-copy,
.hero-slide--centered .hero-thumb { flex: 0 0 auto; }

.hero-slide--centered .hero-copy { max-width: 760px; }

.hero-slide--centered .hero-thumb img { max-height: 330px; }

.hero-title { font-size: 46px; margin-bottom: 18px; }
.hero-text { font-size: 17px; margin-bottom: 28px; }

.hero-slide--light { background: var(--c-light); }
.hero-slide--teal { background: var(--c-primary); }
.hero-slide--coral { background: var(--c-secondary); }
.hero-slide--amber { background: var(--c-orange); }
.hero-slide--green { background: var(--c-green); }

.hero-slide--teal .hero-title,
.hero-slide--coral .hero-title,
.hero-slide--amber .hero-title,
.hero-slide--green .hero-title { color: var(--c-dark); }

.hero-slide--teal .hero-text,
.hero-slide--coral .hero-text,
.hero-slide--amber .hero-text,
.hero-slide--green .hero-text { color: rgba(255, 255, 255, .95); }

.hero-slide--light .hero-text { color: var(--c-text); }

/* Slider tab strip */

.hero-tabs {
  display: flex;
  flex-wrap: wrap;
}

.hero-tab {
  flex: 1 1 20%;
  min-width: 150px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  text-align: left;
  color: var(--c-dark);
  transition: filter .25s ease;
}

.hero-tab .num { font-size: 22px; opacity: .55; }

.hero-tab--light { background: var(--c-light); }
.hero-tab--teal { background: var(--c-primary); }
.hero-tab--coral { background: var(--c-secondary); }
.hero-tab--amber { background: var(--c-orange); }
.hero-tab--green { background: var(--c-green); }

.hero-tab:hover,
.hero-tab.is-active { filter: brightness(1.08); }

.hero-tab[aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--c-dark); }

/* ---------- Scroll reveal (class added by JS only) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Sections / headings ---------- */

.section { padding: 90px 0; }
.section--light { background: var(--c-light); }
.section--green { background: var(--c-green); }
.section--yellow { background: var(--c-yellow); }
.section--dark { background: var(--c-dark); }

.heading { margin-bottom: 44px; }

.heading--center { text-align: center; }
.heading--center .heading-line { justify-content: center; }

.heading-title { font-size: 36px; margin-bottom: 14px; }

.heading-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.heading-line .short-line,
.heading-line .long-line {
  display: inline-block;
  height: 4px;
  border-radius: 2px;
  background: var(--c-primary);
}

.heading-line .short-line { width: 18px; }
.heading-line .long-line { width: 46px; }

.heading-line--yellow .short-line,
.heading-line--yellow .long-line { background: var(--c-yellow); }

.heading-text { font-size: 16px; color: var(--c-text); margin: 0; }

/* ---------- Info boxes ---------- */

.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 30px;
}

.info-box { display: flex; gap: 22px; }

.info-box-image { flex: 0 0 72px; }

.info-box-title { font-size: 20px; margin-bottom: 8px; }

.info-box-text { margin: 0; font-size: 15px; }

.info-box--centered {
  display: block;
  text-align: center;
}

.info-box--centered .info-box-image { margin-bottom: 18px; }

/* ---------- SEO score banner ---------- */

.seo-score {
  position: relative;
  background: var(--c-dark);
  padding: 90px 0;
  overflow: hidden;
}

.seo-score .heading-title { color: var(--c-white); }
.seo-score .heading-text { color: #c9c5c5; }

.seo-score-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 26px;
  margin-top: 40px;
}

.seo-score-art img { max-height: 120px; width: auto; }

.seo-score-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 820px;
  margin: 30px auto 0;
}

.seo-score-form input {
  flex: 1 1 240px;
  padding: 14px 22px;
  border: 1px solid #4a4646;
  border-radius: var(--radius);
  background: #3b3838;
  color: var(--c-white);
  font-family: var(--font-main);
  font-size: 15px;
}

.seo-score-form input::placeholder { color: #a39f9f; }

/* ---------- Offers ---------- */

.offers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.offers-content { flex: 1 1 460px; }
.offers-thumb { flex: 1 1 380px; text-align: center; }

.list-check { margin: 0 0 30px; }

.list-check li {
  position: relative;
  padding: 5px 0 5px 32px;
  color: var(--c-dark);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 9px;
  border-left: 3px solid var(--c-green);
  border-bottom: 3px solid var(--c-green);
  transform: rotate(-45deg);
}

/* ---------- Packages (mountains) ---------- */

.packages {
  position: relative;
  background: linear-gradient(180deg, #eef7f6 0%, var(--c-light) 100%);
  overflow: hidden;
}

.packages-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  opacity: .85;
}

.packages .container { position: relative; }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px 30px;
  margin-bottom: 48px;
}

.packages .btn-group { justify-content: center; }

/* ---------- Counters ---------- */

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px 30px;
  text-align: center;
}

.counter-number {
  font-size: 52px;
  color: var(--c-white);
  line-height: 1;
}

.counter-title {
  display: block;
  margin-top: 10px;
  color: var(--c-dark);
  font-size: 17px;
}

.counter-line {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.counter-line span {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .8);
}

.counter-line .short-line { width: 16px; }
.counter-line .long-line { width: 42px; }

/* ---------- Value props (green band) ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px 30px;
  text-align: center;
}

.value-grid h3 {
  color: var(--c-white);
  font-size: 20px;
  margin-bottom: 8px;
}

.value-grid p {
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  margin: 0 0 4px;
}

.section--green .heading-title { color: var(--c-dark); }

/* ---------- Testimonials ---------- */

.testimonials-section { overflow: hidden; }

.testimonials-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.testimonials-intro { flex: 1 1 300px; }
.testimonials-slider { flex: 1 1 460px; position: relative; }

.testimonial-card {
  display: none;
  position: relative;
  background: var(--c-white);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow);
  padding: 40px 44px 34px;
}

.testimonial-card.is-active,
.testimonial-card--static { display: block; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 30px;
}

.testimonials-grid .testimonial-card { margin-top: 22px; }

.testimonial-card .quote-mark {
  position: absolute;
  top: -22px;
  left: 40px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-secondary);
  color: var(--c-white);
  font-size: 26px;
  line-height: 48px;
  text-align: center;
  font-family: Georgia, serif;
}

.testimonial-text { font-size: 17px; color: var(--c-text); }

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.testimonial-meta img { width: 56px; height: 56px; border-radius: 50%; }

.testimonial-author { color: var(--c-dark); font-size: 16px; }
.testimonial-company { color: var(--c-text-light); font-size: 14px; }

.slider-dots {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 44, 44, .3);
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}

.slider-dots button.is-active,
.slider-dots button:hover { background: var(--c-dark); transform: scale(1.15); }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.pricing-card {
  background: var(--c-white);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow);
  padding: 44px 34px 40px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(47, 44, 44, .18); }

.pricing-card .pricing-icon { height: 96px; margin-bottom: 18px; }
.pricing-card .pricing-icon img { max-height: 96px; width: auto; }

.pricing-title { font-size: 22px; color: var(--c-dark); margin-bottom: 20px; display: block; }

.pricing-features { margin: 0 0 26px; }

.pricing-features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
}

.pricing-features li:last-child { border-bottom: 0; }

.pricing-features .count { color: var(--c-dark); margin-right: 4px; }

.pricing-rate {
  font-size: 38px;
  color: var(--c-secondary);
  margin-bottom: 24px;
}

/* ---------- Clients ---------- */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.clients-grid img { filter: grayscale(20%); transition: filter .25s ease, transform .25s ease; }
.clients-grid a:hover img { filter: none; transform: scale(1.04); }

/* ---------- Subscribe ---------- */

.subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.subscribe-art {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.subscribe-art img { max-height: 130px; width: auto; }

.subscribe-content { flex: 1 1 420px; }

.subscribe-title { color: var(--c-white); font-size: 30px; }

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}

.subscribe-form input {
  flex: 1 1 260px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--c-dark);
}

.subscribe-note { color: rgba(255, 255, 255, .9); font-size: 14px; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: var(--c-primary);
  padding: 70px 0;
}

.page-hero--coral { background: var(--c-secondary); }
.page-hero--amber { background: var(--c-orange); }
.page-hero--green { background: var(--c-green); }
.page-hero--yellow { background: var(--c-yellow); }
.page-hero--light { background: var(--c-light); }

.page-hero h1 { color: var(--c-dark); margin-bottom: 10px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: rgba(47, 44, 44, .75);
}

.breadcrumbs a { color: var(--c-dark); }
.breadcrumbs a:hover { color: var(--c-white); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

.page-hero--light .breadcrumbs a:hover,
.page-hero--yellow .breadcrumbs a:hover { color: var(--c-secondary); }

/* ---------- Content layouts (service pages) ---------- */

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.split > .split-copy { flex: 1 1 440px; }
.split > .split-media { flex: 1 1 360px; text-align: center; }
.split--reverse { flex-direction: row-reverse; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 36px 30px;
}

.cta-band { text-align: center; }

.cta-band .heading { margin-bottom: 28px; }

.cta-band .btn-group { justify-content: center; }

/* ---------- Forms (contact etc.) ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

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

label {
  display: block;
  margin-bottom: 6px;
  color: var(--c-dark);
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 13px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-box);
  background: var(--c-white);
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--c-dark);
  transition: border-color .25s ease;
}

input:focus, textarea:focus { border-color: var(--c-primary); }

textarea { min-height: 150px; resize: vertical; }

.form-note { font-size: 13px; color: var(--c-text-light); }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-box);
  background: #e7f6ee;
  color: #1d6b43;
  font-size: 15px;
}

.form-status.is-error { background: #fdeae2; color: #a33c12; }
.form-status.is-visible { display: block; }

/* Honeypot field — hidden from humans */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.seo-score .form-note { color: #c9c5c5; text-align: center; margin: 14px 0 0; }
.seo-score .form-note a { color: var(--c-white); text-decoration: underline; }
.subscribe-note a { color: var(--c-white); text-decoration: underline; }

/* ---------- Contact page ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-box);
  padding: 30px 26px;
  text-align: center;
}

.contact-card svg { width: 44px; height: 44px; margin-bottom: 14px; }

.contact-card h3 { font-size: 18px; }
.contact-card p { margin: 0; font-size: 15px; }

/* ---------- Legal pages ---------- */

.legal-content { max-width: 820px; }

.legal-content h2 { font-size: 24px; margin: 1.6em 0 .5em; }

.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 1.4em; }

.legal-content li { margin-bottom: .4em; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-dark);
  color: #b5b1b1;
  padding: 80px 0 0;
  font-size: 15px;
}

.site-footer .heading-title { color: var(--c-white); font-size: 22px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px 40px;
  margin-bottom: 60px;
}

.footer-about { grid-column: span 1; }

.footer-links { columns: 2; column-gap: 30px; }

.footer-links li { padding: 5px 0; break-inside: avoid; }

.footer-links a { color: #b5b1b1; }
.footer-links a:hover { color: var(--c-primary); }

.footer-links li::before {
  content: "›";
  color: var(--c-primary);
  margin-right: 9px;
}

.footer-offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  padding-bottom: 60px;
}

.office h3 { color: var(--c-white); font-size: 18px; margin-bottom: 10px; }

.office p { margin: 0 0 6px; }

.office a { color: #b5b1b1; }
.office a:hover { color: var(--c-primary); }

.sub-footer {
  border-top: 1px solid #443f3f;
  padding: 22px 0;
  font-size: 14px;
}

.sub-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sub-footer a { color: var(--c-primary); }

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b5b1b1;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .primary-menu {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 150;
    background: var(--c-dark);
    padding: 90px 30px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
  }

  .primary-menu.is-open { transform: translateX(0); }

  .primary-menu > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-menu a {
    padding: 14px 6px;
    color: var(--c-white);
    font-size: 18px;
    border-bottom: 1px solid #443f3f;
  }

  .dropdown {
    position: static;
    display: block;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 18px;
  }

  .dropdown a { font-size: 15px; border-bottom: 0; padding: 10px 6px; }

  .has-dropdown > a::after { display: none; }

  .nav-toggle { display: flex; z-index: 160; position: relative; }

  .nav-toggle[aria-expanded="true"] span { background: var(--c-white); }

  .hero-title { font-size: 34px; }
  .hero-slide { min-height: 0; }
  .hero-tab { flex-basis: 50%; }

  h1 { font-size: 34px; }
  .heading-title { font-size: 29px; }
  .section { padding: 64px 0; }
}

@media (max-width: 575px) {
  .top-bar .container { font-size: 12px; gap: 4px 14px; }
  .hero-title { font-size: 28px; }
  .hero-text { font-size: 15px; }
  .hero-thumb img { max-height: 260px; }
  .counter-number { font-size: 42px; }
  .testimonial-card { padding: 34px 24px 28px; }
  .footer-links { columns: 1; }
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .top-bar, .site-header, .site-footer, .hero-tabs, .subscribe { display: none; }
}
