/* ============================================================
   HearITright Technology Services — Main Stylesheet
   ============================================================ */

/* Google Fonts loaded in each HTML file */

/* ---- Variables ---- */
:root {
  --primary: #09448a;
  --secondary: #047ec0;
  --bg: #f8f9fa;
  --bg-alt: #f4f6f8;
  --text: #1a1a1a;
  --text-light: #5a6272;
  --white: #ffffff;
  --dark: #1a1a1a;
  --border: #dde1e8;
  --radius: 6px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
ul {
  list-style: none;
}

/* ---- Typography ---- */
h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}
h4 {
  font-size: 1rem;
  font-weight: 700;
}
p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* ---- Layout ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 88px 0;
}
.section--alt {
  background: var(--bg-alt);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}
.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn--white:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 115px;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 40px;
  width: auto;
}
.nav__logo-fallback {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.nav__logo img {
  height: 115px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.18s;
  padding-bottom: 2px;
}
.nav__links a:hover {
  color: var(--primary);
  text-decoration: none;
}
.nav__links a.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .nav__hamburger {
    display: flex;
  }
  .nav__menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }
  .nav__menu.open {
    display: flex;
  }
  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav__links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav__links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }
  .nav__links a.active {
    border-bottom: none;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
  }
  .nav__cta {
    margin-top: 20px;
    width: 100%;
  }
  .nav__cta .btn {
    display: block;
    text-align: center;
  }
}

/* ---- Page Hero ---- */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0 72px;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}
.footer__brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer__tagline {
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color 0.18s;
}
.footer__links a:hover {
  color: var(--white);
  text-decoration: none;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

@media (max-width: 820px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---- Index Hero ---- */
.hero {
  background: var(--bg);
  padding: 100px 0 96px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 16px;
}
.hero__headline {
  margin-bottom: 24px;
}
.hero__subhead {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero__image {
  background: linear-gradient(135deg, #060f1c 0%, #0c2244 55%, #0a3870 100%);
  border-radius: 12px;
  aspect-ratio: 5/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 25% 60%,
      rgba(4, 126, 192, 0.28) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 75% 25%,
      rgba(9, 68, 138, 0.35) 0%,
      transparent 50%
    );
}
.hero__image-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero__image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hero__image-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(4, 126, 192, 0.5);
}
.hero__image-dot:nth-child(3n) {
  background: rgba(255, 255, 255, 0.15);
}
.hero__image-dot:nth-child(5n) {
  background: rgba(4, 126, 192, 0.8);
}
.hero__image-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(4, 126, 192, 0.7),
    transparent
  );
}

@media (max-width: 820px) {
  .hero {
    padding: 64px 0 56px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__image {
    aspect-ratio: 16/9;
  }
}

/* ---- Pillars ---- */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.pillars__icon {
  width: 44px;
  height: 44px;
  color: var(--primary);
  margin-bottom: 20px;
}
.pillars__item h3 {
  margin-bottom: 10px;
}
.pillars__item p {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.7;
}
.learn-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
.learn-more:hover {
  gap: 9px;
  text-decoration: none;
}

@media (max-width: 820px) {
  .pillars__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 1024px) and (min-width: 821px) {
  .pillars__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Why ---- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}
.why__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.why__icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.why__item h3 {
  margin-bottom: 8px;
}
.why__item p {
  font-size: 0.93rem;
  color: var(--text-light);
}

@media (max-width: 640px) {
  .why__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Partners ---- */
.partners__sub {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-top: 8px;
  margin-bottom: 36px;
}
.partners__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.partner-badge {
  padding: 11px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-light);
  background: var(--white);
  transition:
    border-color 0.18s,
    color 0.18s;
}
.partner-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- Stats ---- */
.stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.stat {
  text-align: center;
}
.stat__number {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat__label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 8px;
}
.stats__note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .stats {
    gap: 40px;
  }
}

/* ---- CTA Strip ---- */
.cta-strip {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}
.cta-strip h2 {
  color: var(--white);
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Section headings shared ---- */
.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section__heading {
  margin-bottom: 12px;
}
.section__subheading {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 52px;
}
.section__subheading--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(9, 68, 138, 0.09);
  transform: translateY(-2px);
}
.card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.05rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ---- Services Page ---- */
.services-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.services-section:first-of-type {
  border-top: none;
}
.services-section__intro {
  max-width: 680px;
  margin-bottom: 48px;
}
.services-section__intro h2 {
  margin-bottom: 14px;
}
.services-section__intro p {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.75;
}
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.services-subsection {
  margin-top: 52px;
}
.services-subsection__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .services-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- About Page ---- */
.story-text {
  max-width: 740px;
}
.story-text h2 {
  margin-bottom: 24px;
}
.story-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.vm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.vm-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--secondary);
  margin-bottom: 12px;
}
.vm-card p {
  font-size: 1rem;
  line-height: 1.65;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}
.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.value-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  flex-shrink: 0;
}
.value-item h3 {
  margin-bottom: 8px;
}
.value-item p {
  font-size: 0.92rem;
  color: var(--text-light);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 64px;
  align-items: start;
}
.founder-photo {
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.82rem;
  text-align: center;
  padding: 20px;
}
.founder-content__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.founder-content__title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
}
.founder-content p {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.8;
}

.team-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .vm-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---- Careers Page ---- */
.culture-text {
  max-width: 720px;
}
.culture-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.look-for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
}
.look-for-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.look-for-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  flex-shrink: 0;
}
.look-for-item h3 {
  margin-bottom: 8px;
}
.look-for-item p {
  font-size: 0.92rem;
  color: var(--text-light);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--primary);
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.practice-card:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.practice-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.form-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px 36px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}
.form-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

@media (max-width: 820px) {
  .look-for-grid {
    grid-template-columns: 1fr;
  }
  .practice-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 72px;
  align-items: start;
}
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.contact-detail:last-child {
  margin-bottom: 0;
}
.contact-detail__icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-detail__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-detail__value {
  font-size: 0.97rem;
  color: var(--text);
}
.contact-detail__value a {
  color: var(--primary);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form__group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}
.form__group input,
.form__group select,
.form__group textarea {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 0.97rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  width: 100%;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(9, 68, 138, 0.1);
}
.form__group textarea {
  resize: vertical;
  min-height: 128px;
}
.form__select-wrap {
  position: relative;
}
.form__select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-light);
  pointer-events: none;
}
.form__note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}
.form__success {
  display: none;
  background: #e8f4f0;
  border: 1px solid #a8d5c2;
  color: #1a5c40;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form__success.visible {
  display: block;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ---- Team Grid ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.team-card:hover {
  box-shadow: 0 6px 28px rgba(9, 68, 138, 0.09);
  transform: translateY(-2px);
}
.team-card__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-card__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.8rem;
}
.team-card__photo-placeholder svg {
  opacity: 0.35;
}
.team-card__info {
  padding: 20px 24px 24px;
}
.team-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}
.team-card__role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 10px;
}
.team-card__bio {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 0;
}
.team-card--placeholder .team-card__name {
  color: var(--text-light);
  font-weight: 600;
}
.team-card--placeholder .team-card__role {
  color: var(--border);
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Testimonials grid ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) and (min-width: 821px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Cookie Consent Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  max-width: 336px;
  background: rgba(8, 16, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px 20px 18px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Source Serif Pro", Georgia, serif;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.36s ease,
    transform 0.36s ease;
  pointer-events: none;
}
.cookie-banner.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cookie-banner.hiding {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.cookie-banner__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.cookie-banner__text {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}
.cookie-banner__text a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}
.cookie-banner__text a:hover {
  color: #fff;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
}
.cookie-banner__accept {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 4px;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s;
}
.cookie-banner__accept:hover {
  opacity: 0.84;
}
.cookie-banner__decline {
  flex: 1;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 14px;
  border-radius: 4px;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    color 0.18s,
    border-color 0.18s;
}
.cookie-banner__decline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: opacity 0.18s;
    transform: none;
  }
  .cookie-banner.hiding {
    transform: none;
  }
}

/* ---- Scroll Reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.52s ease,
      transform 0.52s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .reveal-delay-1 {
    transition-delay: 0.08s;
  }
  .reveal-delay-2 {
    transition-delay: 0.16s;
  }
  .reveal-delay-3 {
    transition-delay: 0.24s;
  }
}

/* ---- Footer social + legal ---- */
.footer__social {
  margin-top: 16px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color 0.18s;
}
.footer__social-link:hover {
  color: var(--white);
  text-decoration: none;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  transition: color 0.18s;
}
.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.footer__legal-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

/* ---- Policy pages ---- */
.policy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0 88px;
}
.policy-content h2 {
  font-size: 1.35rem;
  margin-top: 48px;
  margin-bottom: 14px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.policy-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.policy-content h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--primary);
}
.policy-content p {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.8;
}
.policy-content ul {
  padding-left: 20px;
  margin-bottom: 1rem;
  list-style: disc;
}
.policy-content ul li {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 4px;
}
.policy-content a {
  color: var(--primary);
}
.policy-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.policy-meta strong {
  color: var(--text);
}

/* ---- Zoho Form Wrapper ---- */
.zoho-form-wrap iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: var(--radius);
}

/* ---- Utilities ---- */
.text-center {
  text-align: center;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-48 {
  margin-top: 48px;
}
.mb-0 {
  margin-bottom: 0 !important;
}
