/* ===================================================
   TACHLIT – Landing Page Styles
   Design: Light theme, mobile-first, RTL Hebrew
   Color rule: 60% white / 30% dark navy / 10% blue accent
   =================================================== */

/* --- Design Tokens --- */
:root {
  --color-bg: #f8f4ec;
  --color-bg-alt: #eee8dc;
  --color-bg-accent: #dbe6d1;
  --color-text: #102945;
  --color-text-secondary: #304052;
  --color-text-light: #657281;
  --color-accent: #12c7ee;
  --color-accent-hover: #08a9cc;
  --color-accent-dark: #0d2945;
  --color-olive: #697c3d;
  --color-olive-dark: #3e4c2c;
  --color-cream: #f8f1e5;
  --color-navy: #0b213b;
  --color-navy-soft: #142e4a;
  --color-border: #d8d0c2;
  --color-card-bg: #fbf7ef;
  --color-success: #697c3d;
  --color-error: #b94a40;

  --font-family: 'Heebo', sans-serif;

  --text-hero: clamp(2.65rem, 6vw, 5.2rem);
  --text-h2: clamp(1.85rem, 3.7vw, 2.8rem);
  --text-h3: clamp(1.2rem, 2vw, 1.55rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-xs: 0.8125rem;

  --leading-tight: 1.16;
  --leading-normal: 1.7;
  --leading-relaxed: 1.82;

  --space-section: clamp(5rem, 9vw, 8.5rem);
  --space-xl: 3.5rem;
  --space-lg: 2.5rem;
  --space-md: 1.5rem;
  --space-sm: 1rem;
  --space-xs: 0.5rem;

  --max-w: 1180px;
  --max-w-narrow: 780px;
  --radius: 12px;
  --radius-lg: 26px;

  --shadow-sm: 0 8px 20px rgba(16,41,69,0.08);
  --shadow-md: 0 16px 35px rgba(16,41,69,0.12);
  --shadow-lg: 0 24px 60px rgba(8,29,52,0.2);

  --transition: 0.25s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 0 var(--radius);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

section {
  padding: var(--space-section) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-xl);
  line-height: var(--leading-relaxed);
}

.text-accent {
  color: var(--color-accent);
}

.text-secondary {
  color: var(--color-text-secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: var(--text-body);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 48px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 20px rgba(26,26,46,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.header__logo img {
  height: 48px;
  width: auto;
}

.header__logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header__nav-link {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  padding: 0.375rem 0;
  position: relative;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: right;
}

.header__nav-link:hover {
  color: var(--color-text);
}

.header__nav-link:hover::after {
  transform: scaleX(1);
}

.header__cta {
  display: none;
}

.header__mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
}

.header__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  right: 0;
  left: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-menu[aria-hidden="false"] {
  display: block;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__cta {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
}

/* --- Hero --- */
.hero {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-section);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-bg-accent);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.hero__secondary-link {
  font-size: var(--text-small);
  color: var(--color-text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__secondary-link:hover {
  color: var(--color-accent);
}

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero__image-placeholder {
  color: var(--color-text-light);
  font-size: var(--text-small);
  text-align: center;
  padding: 2rem;
}

/* --- Journey (Timeline) --- */
.journey__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  counter-reset: step;
}

.journey__step {
  counter-increment: step;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.journey__step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey__step-content h3 {
  margin-bottom: 0.375rem;
}

.journey__step-content p {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
}

/* --- Who Fits --- */
.who-fits__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}

.who-fits__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: var(--text-small);
  line-height: 1.55;
  transition: border-color var(--transition);
}

.who-fits__item:hover {
  border-color: var(--color-accent);
}

.who-fits__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  margin-top: 1px;
}

.who-fits__cta-block {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg-accent);
  border-radius: var(--radius-lg);
}

.who-fits__cta-block p {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* --- What You Get --- */
.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.benefit-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.benefit-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.benefit-card h3 {
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.benefit-card p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.benefits__wrapper-msg {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-accent);
  border-radius: var(--radius-lg);
  border-right: 4px solid var(--color-accent);
}

.benefits__wrapper-msg h3 {
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.benefits__wrapper-msg p {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

/* --- How It Works --- */
.how-works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.how-works__card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
}

.how-works__card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  color: var(--color-accent);
}

.how-works__card h3 {
  text-align: center;
}

.how-works__card p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.how-works__note {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--text-small);
  color: var(--color-text-light);
  font-weight: 500;
}

/* --- About (Nehorai) --- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.about__image-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 420px;
}

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

.about__photo-placeholder {
  color: var(--color-text-light);
  font-size: var(--text-small);
  text-align: center;
  padding: 2rem;
}

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about__stat {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  background: var(--color-bg-alt);
  border-radius: 100px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__text p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.about__quote {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-text);
  padding-right: 1.25rem;
  border-right: 3px solid var(--color-accent);
  font-style: italic;
  line-height: var(--leading-relaxed);
}

.about__cta-block {
  padding: var(--space-md);
  background: var(--color-bg-accent);
  border-radius: var(--radius-lg);
  text-align: center;
}

.about__cta-block p {
  color: var(--color-text) !important;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

/* --- Why Tachlit --- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.why__item {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-right: 3px solid var(--color-accent);
  background: var(--color-card-bg);
  box-shadow: var(--shadow-sm);
}

.why__item h3 {
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.why__item p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.why__tone {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-text);
}

/* --- Differentiation --- */
.diff {
  text-align: center;
}

.diff__body {
  max-width: 680px;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.diff__quote {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-accent);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Results (30/90 days) --- */
.results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.result-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-success);
  margin-top: 2px;
}

.result-item p {
  font-size: var(--text-small);
  line-height: 1.6;
}

.results__closing {
  margin-top: var(--space-xl);
  text-align: center;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.results__note {
  margin-top: var(--space-md);
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-text-light);
}

/* --- Army Life Timeline --- */
.army-life__body {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-top: var(--space-lg);
}

.army-life__img-col {
  flex: 0 0 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(80px + var(--space-md));
}

.army-life__img-col img {
  width: 100%;
  height: auto;
  display: block;
}

.army-life__timeline {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.army-life__timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 15px;
  width: 2px;
  background: var(--color-border);
}

.army-life__point {
  position: relative;
  padding-right: 48px;
  padding-bottom: var(--space-lg);
}

.army-life__point:last-child {
  padding-bottom: 0;
}

.army-life__dot {
  position: absolute;
  right: 6px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.army-life__point h3 {
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.army-life__point p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Testimonials --- */
.testimonials__carousel {
  position: relative;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: var(--space-md);
  transition: transform 0.4s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.testimonial-card__stars {
  color: #F59E0B;
  font-size: 1.125rem;
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  flex: 1;
}

.testimonial-card__author {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--color-text);
}

.testimonials__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.testimonials__dots {
  display: flex;
  gap: 0.375rem;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  transition: all var(--transition);
}

.testimonials__dot--active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

/* --- Pricing --- */
.pricing {
  text-align: center;
}

.pricing__body {
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* --- FAQ --- */
.faq__list {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  text-align: right;
  padding: 1.125rem 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1.4;
  min-height: 48px;
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__question-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  color: var(--color-text-light);
}

.faq__item[data-open="true"] .faq__question-icon {
  transform: rotate(180deg);
}

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__answer-inner {
  padding-bottom: 1.25rem;
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* --- Contact Form --- */
.contact {
  text-align: center;
}

/* Give the contact heading the full centered container width at every viewport size. */
#contact-title {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.contact__intro {
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.form {
  max-width: 520px;
  margin: 0 auto;
  text-align: right;
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.form__label--optional::after {
  content: " (אופציונלי)";
  font-weight: 400;
  color: var(--color-text-light);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
  min-height: 48px;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-light);
}

.form__input--error {
  border-color: var(--color-error);
}

.form__input--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form__error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: 0.25rem;
  display: none;
}

.form__group--error .form__error {
  display: block;
}

.form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

.form__textarea {
  resize: vertical;
  min-height: 90px;
}

.form__submit {
  width: 100%;
  margin-top: var(--space-sm);
}

.form__success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}

.form__success--visible {
  display: block;
}

.form__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  color: var(--color-success);
}

.form__success h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-xs);
}

.form__success p {
  color: var(--color-text-secondary);
}

/* --- Floating CTA (Mobile) --- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 90;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.floating-cta--visible {
  transform: translateY(0);
}

.floating-cta .btn {
  width: 100%;
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.footer__brand img {
  height: 36px;
  width: auto;
}

.footer__brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.footer__founder {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.6);
  margin-top: 0.375rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__contact a {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-small);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__contact a:hover {
  color: #fff;
}

.footer__contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.footer__links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

.footer__links a:hover {
  color: rgba(255,255,255,0.85);
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  line-height: 1.7;
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: calc(80px + 3rem);
}

.legal-page__section {
  padding-top: var(--space-lg);
}

.legal-document {
  padding-bottom: var(--space-xl);
}

.legal-document__header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.legal-document h1 {
  font-size: var(--text-h2);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.legal-document__title {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.legal-document h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: var(--text-h3);
}

.legal-document p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

.legal-document__home-link {
  margin-top: var(--space-xl);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* =========================
   RESPONSIVE — Tablet (768+)
   ========================= */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
  }

  .journey__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .journey__step {
    flex-direction: column;
    text-align: center;
  }

  .journey__step-number {
    align-self: center;
  }

  .who-fits__list {
    grid-template-columns: 1fr 1fr;
  }

  .benefits__grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-works__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__inner {
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
  }

  .why__grid {
    grid-template-columns: 1fr 1fr;
  }

  .results__grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - var(--space-md) / 2);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* =========================
   RESPONSIVE — Desktop (1024+)
   ========================= */
@media (min-width: 1024px) {
  .header__nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__mobile-toggle {
    display: none;
  }

  .how-works__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about__inner {
    grid-template-columns: 320px 1fr;
  }

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

  .testimonial-card {
    flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
  }

  .floating-cta {
    display: none !important;
  }
}

/* =========================
   Mobile-only (<768px)
   ========================= */
@media (max-width: 767px) {
  .floating-cta {
    display: block;
  }

  .header__inner {
    height: 68px;
  }

  .header__logo img {
    height: 36px;
  }

  .header__logo-text {
    font-size: 1.25rem;
  }

  .mobile-menu {
    top: 68px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(68px + var(--space-lg));
    padding-bottom: var(--space-xl);
  }

  .hero__image {
    max-height: 280px;
  }

  .about__photo {
    max-height: 320px;
  }

  .army-life__timeline::before {
    right: 15px;
  }

  .army-life__body {
    flex-direction: column;
  }

  .army-life__img-col {
    flex: none;
    width: 100%;
    max-width: 400px;
    position: static;
  }
}

/* Hero rebuilt from the supplied mobile reference. */
.hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: clamp(7.75rem, 14vw, 10.5rem) 0 clamp(7rem, 9vw, 9.5rem);
  color: var(--color-cream);
  background:
    radial-gradient(ellipse at 24% 16%, rgba(120, 146, 103, 0.17), transparent 28%),
    radial-gradient(ellipse at 88% 18%, rgba(52, 89, 125, 0.32), transparent 31%),
    linear-gradient(132deg, #102b47 0%, #071a30 58%, #041426 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
  background:
    radial-gradient(circle, rgba(238, 230, 213, 0.3) 1.15px, transparent 1.5px) 4% 25% / 20px 20px no-repeat,
    radial-gradient(circle, rgba(238, 230, 213, 0.23) 1px, transparent 1.4px) 48% 62% / 14px 14px no-repeat,
    linear-gradient(90deg, rgba(205, 177, 120, 0.7), transparent 42%) 0 17% / 26% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(18, 199, 238, 0.9), transparent) 73% 54% / 24% 3px no-repeat;
}

.hero::after {
  right: auto;
  bottom: 8%;
  left: max(2rem, calc((100% - min(100% - 2.5rem, 1180px)) / 2));
  width: clamp(2.5rem, 9vw, 8rem);
  height: clamp(5rem, 17vw, 10rem);
  background: radial-gradient(circle, rgba(238, 230, 213, 0.36) 1.15px, transparent 1.5px) 0 0 / 15px 15px;
  box-shadow: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.92fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.hero__content {
  position: relative;
  max-width: 650px;
}

.hero__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 clamp(1.4rem, 2.6vw, 2.15rem);
  padding: 0.5rem 1.2rem;
  color: #13233a;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: #f7efe4;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  font-size: clamp(0.76rem, 1.15vw, 0.96rem);
  font-weight: 800;
}

.hero__badge::before {
  content: "⌘";
  color: var(--color-navy);
  font-size: 1.25em;
  line-height: 1;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.02em;
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
  color: #fffaf0;
  font-size: clamp(3.25rem, 6.5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.065em;
  text-wrap: nowrap;
}

.hero__title .hero__title-brand,
.hero__title .hero__title-line {
  display: block;
  color: #fffaf0;
  white-space: nowrap;
}

.hero__title-brand {
  color: #fffaf0;
  font-size: 1.14em;
}

.hero__title em {
  color: #b6bd53;
  font-style: normal;
}

.hero__title-line:last-child::after {
  content: "";
  display: block;
  width: 67%;
  height: 0.075em;
  margin: 0.19em 0.1em 0 auto;
  border-radius: 50%;
  background: #18d3f3;
  transform: rotate(1.3deg);
}

.hero__subtitle {
  max-width: 33rem;
  margin: 0 0 clamp(1.65rem, 3vw, 2.4rem);
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}

.hero__actions {
  width: min(100%, 30rem);
  gap: 0.85rem;
  align-items: stretch;
}

.hero__primary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.6rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  color: #08213b;
  border: 0;
  border-radius: 17px;
  background: #16c8ec;
  box-shadow: 0 9px 0 rgba(5, 89, 119, 0.38), 0 18px 34px rgba(2, 13, 25, 0.28);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  font-weight: 900;
}

.hero__primary-link:hover {
  color: #08213b;
  background: #36d6f3;
  transform: translateY(-2px);
}

.hero__primary-arrow {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #0a203a;
  font-size: 2rem;
  line-height: 1;
}

.hero__secondary-link {
  align-self: center;
  color: #3ed5f1;
  font-size: clamp(0.95rem, 1.45vw, 1.15rem);
  font-weight: 500;
  text-decoration-color: #3ed5f1;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.36em;
}

.hero__secondary-link:hover {
  color: #fffaf0;
}

.hero__portrait {
  position: relative;
  align-self: stretch;
  min-height: clamp(34rem, 60vw, 48rem);
  overflow: visible;
}

.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  border: 1px solid rgba(205, 177, 120, 0.78);
  border-radius: 31px 31px 14px 14px;
  background: rgba(105, 124, 61, 0.44);
  clip-path: polygon(0 0, 77% 0, 100% 18%, 100% 100%, 0 100%);
  transform: translate(1.1rem, 1.15rem);
}

.hero__portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 48% 18%;
  border: 1px solid rgba(255, 250, 240, 0.76);
  border-radius: 31px 31px 14px 14px;
  box-shadow: 0 25px 43px rgba(0, 0, 0, 0.32);
  clip-path: polygon(0 0, 82% 0, 100% 16%, 100% 100%, 0 100%);
  filter: saturate(0.83) contrast(1.07) brightness(0.83);
}

.hero__portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 28%;
  left: -1.1rem;
  width: 1.4rem;
  height: 3rem;
  opacity: 0.72;
  background:
    linear-gradient(45deg, transparent 45%, #ded1af 46% 55%, transparent 56%) top / 100% 50% no-repeat,
    linear-gradient(45deg, transparent 45%, #ded1af 46% 55%, transparent 56%) bottom / 100% 50% no-repeat;
}

.hero__credentials {
  position: absolute;
  z-index: 3;
  right: -1.5rem;
  bottom: 1.6rem;
  display: flex;
  gap: 0.75rem;
  direction: rtl;
}

.hero__credential {
  position: relative;
  display: flex;
  width: 8.1rem;
  min-height: 9.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.7rem 1.3rem;
  text-align: center;
  border: 1px solid rgba(205, 177, 120, 0.88);
  border-radius: 17px 17px 28px 17px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
}

.hero__credential::after {
  content: "✦";
  position: absolute;
  bottom: -0.9rem;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  color: #fff9eb;
  border: 1px solid rgba(205, 177, 120, 0.9);
  background: #5a6b35;
  clip-path: polygon(50% 0, 93% 24%, 93% 76%, 50% 100%, 7% 76%, 7% 24%);
}

.hero__credential--personal {
  color: #fff9eb;
  background: rgba(65, 81, 38, 0.97);
}

.hero__credential--direction {
  color: #172943;
  border-radius: 17px 17px 17px 28px;
  background: #f7efe4;
}

.hero__credential--direction::after {
  background: #152e4a;
}

.hero__credential-icon {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
}

.hero__credential p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (min-width: 1024px) {
  .hero__portrait {
    min-height: 39rem;
  }

  .hero__credentials {
    right: -2.4rem;
    bottom: 1.8rem;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 6rem 0 2.15rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 0.62rem;
    align-items: start;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
  }

  .hero__badge {
    margin-bottom: 0.65rem;
    padding: 0.42rem 0.68rem;
    font-size: 0.61rem;
    white-space: nowrap;
  }

  .hero__title {
    gap: 0.07em;
    margin-bottom: 1.1rem;
    font-size: clamp(2rem, 8.4vw, 2.5rem);
    line-height: 0.98;
    letter-spacing: -0.085em;
    text-wrap: nowrap;
  }

  .hero__title-brand {
    font-size: 1.08em;
  }

  .hero__title .hero__title-line {
    transform: scaleX(0.86);
    transform-origin: right center;
  }

  .hero__title-line:last-child::after {
    width: 80%;
    margin-top: 0.24em;
  }

  .hero__subtitle {
    margin-bottom: 1.5rem;
    font-size: 0.76rem;
    line-height: 1.64;
  }

  .hero__actions {
    width: 100%;
    gap: 0.75rem;
  }

  .hero__primary-link {
    min-height: 3.85rem;
    padding: 0.55rem 0.65rem 0.55rem 0.8rem;
    border-radius: 13px;
    box-shadow: 0 6px 0 rgba(5, 89, 119, 0.38), 0 12px 24px rgba(2, 13, 25, 0.24);
    font-size: 0.95rem;
  }

  .hero__primary-arrow {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.65rem;
  }

  .hero__secondary-link {
    font-size: 0.75rem;
    text-align: center;
  }

  .hero__portrait {
    grid-column: 2;
    grid-row: 1;
    min-height: 22rem;
    margin-top: 0;
  }

  .hero__portrait::before {
    border-radius: 23px 23px 10px 10px;
    transform: translate(0.44rem, 0.68rem);
  }

  .hero__portrait img {
    border-radius: 23px 23px 10px 10px;
    object-position: 49% 13%;
  }

  .hero__portrait::after {
    top: 29%;
    left: -0.45rem;
    width: 0.8rem;
    height: 2rem;
  }

  .hero__credentials {
    right: -0.45rem;
    bottom: -0.75rem;
    gap: 0.25rem;
    direction: ltr;
  }

  .hero__credential {
    width: 4.75rem;
    min-height: 6.45rem;
    gap: 0.22rem;
    padding: 0.45rem 0.3rem 0.8rem;
    border-radius: 10px 10px 17px 10px;
  }

  .hero__credential--direction {
    border-radius: 10px 10px 10px 17px;
  }

  .hero__credential::after {
    bottom: -0.52rem;
    width: 1.05rem;
    height: 1.05rem;
    font-size: 0.62rem;
  }

  .hero__credential-icon {
    font-size: 1.35rem;
  }

  .hero__credential p {
    font-size: 0.53rem;
    line-height: 1.34;
    direction: rtl;
  }
}

@media (max-width: 359px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }

  .hero__portrait {
    min-height: 26.5rem;
  }

  .hero__title {
    font-size: 2.12rem;
  }
}

/* --- Print --- */
@media print {
  .header,
  .floating-cta,
  .mobile-menu {
    display: none !important;
  }

  section {
    page-break-inside: avoid;
  }

  body {
    font-size: 12pt;
  }
}

/* ===================================================
   CLIENT VISUAL DIRECTION
   The client reference uses a field-inspired navy, warm paper,
   olive, and cyan system that remains legible on every section.
   =================================================== */

::selection {
  color: var(--color-navy);
  background: var(--color-accent);
}

body {
  background: var(--color-bg);
}

section {
  position: relative;
  overflow: hidden;
}

section:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background-image: radial-gradient(rgba(16, 41, 69, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

section > .container {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.025em;
}

h2 {
  max-width: 820px;
}

h2::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--color-accent);
  transform: skewX(-28deg);
}

.section-subtitle {
  max-width: 660px;
  color: var(--color-text-secondary);
}

.section--alt {
  background: var(--color-bg-alt);
}

.header {
  background: rgba(11, 33, 59, 0.97);
  border-bottom-color: rgba(248, 241, 229, 0.12);
  box-shadow: 0 10px 30px rgba(4, 17, 31, 0.16);
}

.header--scrolled {
  border-bottom-color: rgba(18, 199, 238, 0.42);
  box-shadow: 0 12px 28px rgba(4, 17, 31, 0.24);
}

.header__logo-text,
.header__nav-link {
  color: var(--color-cream);
}

.header__nav-link {
  font-weight: 600;
}

.header__nav-link:hover {
  color: var(--color-accent);
}

.header__nav-link::after {
  background: var(--color-accent);
}

.header__mobile-toggle span {
  background-color: var(--color-cream);
}

.mobile-menu {
  background: var(--color-navy);
}

.mobile-menu__link {
  color: var(--color-cream);
  border-bottom-color: rgba(248, 241, 229, 0.16);
}

.btn {
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn--primary {
  color: var(--color-navy);
  background: var(--color-accent);
  box-shadow: 0 8px 0 rgba(8, 97, 125, 0.28), 0 15px 28px rgba(18, 199, 238, 0.22);
}

.btn--primary:hover {
  color: var(--color-navy);
  background: #48d9f3;
  box-shadow: 0 5px 0 rgba(8, 97, 125, 0.28), 0 16px 30px rgba(18, 199, 238, 0.28);
}

.btn--secondary {
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  color: var(--color-cream);
  background: var(--color-navy);
}

.hero {
  isolation: isolate;
  color: var(--color-cream);
  background:
    radial-gradient(circle at 16% 30%, rgba(105, 124, 61, 0.26), transparent 24rem),
    radial-gradient(circle at 88% 14%, rgba(18, 199, 238, 0.16), transparent 26rem),
    var(--color-navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: radial-gradient(rgba(248, 241, 229, 0.28) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, transparent 78%);
}

.hero__content {
  max-width: 650px;
}

.hero__badge {
  color: var(--color-navy);
  background: var(--color-cream);
  border: 1px solid rgba(248, 241, 229, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  font-weight: 800;
  padding: 0.5rem 1rem;
}

.hero__title {
  color: var(--color-cream);
  font-weight: 900;
  text-wrap: balance;
}

.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  color: rgba(248, 241, 229, 0.82);
  max-width: 560px;
}

.hero__secondary-link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.hero__secondary-link:hover {
  color: var(--color-cream);
}

.hero__image {
  border: 1px solid rgba(248, 241, 229, 0.58);
  border-radius: 30px;
  box-shadow: 20px 24px 0 rgba(105, 124, 61, 0.55), var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(18, 199, 238, 0.05), rgba(11, 33, 59, 0.4));
  mix-blend-mode: multiply;
}

.journey__step-number {
  border-radius: 12px 12px 12px 3px;
  background: var(--color-olive);
  box-shadow: 5px 5px 0 rgba(62, 76, 44, 0.22);
}

.journey__step-content h3,
.benefit-card h3,
.how-works__card h3,
.why__item h3,
.result-item strong {
  color: var(--color-navy);
}

.who-fits__item,
.benefit-card,
.how-works__card,
.why__item,
.result-item,
.testimonial-card,
.faq__item {
  border-color: rgba(16, 41, 69, 0.16);
  box-shadow: var(--shadow-sm);
}

.who-fits__item {
  background: rgba(251, 247, 239, 0.8);
}

.who-fits__item:hover,
.benefit-card:hover {
  border-color: var(--color-accent);
}

.who-fits__icon,
.benefit-card__icon,
.how-works__card-icon,
.result-item__icon {
  color: var(--color-olive);
}

.who-fits__cta-block,
.benefits__wrapper-msg,
.about__cta-block {
  color: var(--color-cream);
  background: var(--color-navy);
  border: 1px solid rgba(18, 199, 238, 0.32);
  box-shadow: var(--shadow-md);
}

.who-fits__cta-block p,
.benefits__wrapper-msg h3,
.benefits__wrapper-msg p,
.about__cta-block p {
  color: var(--color-cream) !important;
}

.benefit-card {
  position: relative;
  overflow: hidden;
  background: var(--color-card-bg);
  border-radius: 20px 20px 9px 20px;
  padding: 1.75rem;
}

.benefit-card::before,
.how-works__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(16, 41, 69, 0.08);
  border-radius: 14px 14px 5px 14px;
}

.benefit-card > *,
.how-works__card > * {
  position: relative;
  z-index: 1;
}

.benefit-card__icon,
.how-works__card-icon {
  padding: 0.65rem;
  border-radius: 14px;
  background: var(--color-olive-dark);
  color: var(--color-cream);
  box-sizing: content-box;
}

.how-works__card {
  position: relative;
  background: var(--color-card-bg);
  border-radius: 20px 20px 9px 20px;
}

.about__photo,
.army-life__img-col {
  border: 1px solid rgba(16, 41, 69, 0.2);
  box-shadow: var(--shadow-md);
}

.about__stat {
  color: var(--color-cream);
  background: var(--color-olive-dark);
}

.about__quote,
.diff__quote {
  color: var(--color-olive-dark);
  border-right-color: var(--color-accent);
}

.why__item {
  border-right-color: var(--color-olive);
  background: var(--color-card-bg);
}

.diff {
  color: var(--color-cream);
  background: var(--color-navy);
}

.diff h2,
.diff__body {
  color: var(--color-cream);
}

.diff__quote {
  color: var(--color-accent);
}

.army-life__timeline::before {
  background: rgba(16, 41, 69, 0.18);
}

.army-life__dot {
  background: var(--color-accent);
  border-color: var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.testimonial-card {
  background: var(--color-card-bg);
}

.testimonial-card__stars {
  color: var(--color-olive);
}

.testimonials__btn {
  color: var(--color-navy);
  background: var(--color-card-bg);
  border-color: var(--color-navy);
}

.testimonials__btn:hover {
  color: var(--color-navy);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.faq__item {
  background: var(--color-card-bg);
}

.faq__question:hover,
.faq__item[data-open="true"] .faq__question {
  color: var(--color-olive-dark);
}

.form__input,
.form__select,
.form__textarea {
  color: var(--color-navy);
  background: var(--color-card-bg);
  border-color: rgba(16, 41, 69, 0.22);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(18, 199, 238, 0.18);
}

.footer {
  background: #07182b;
}

.floating-cta {
  background: rgba(248, 244, 236, 0.94);
  border-top-color: rgba(16, 41, 69, 0.16);
}

#who-fits,
#how-it-works,
#testimonials,
#contact {
  color: var(--color-cream);
  background: var(--color-navy);
}

#who-fits h2,
#how-it-works h2,
#testimonials h2,
#contact h2,
#who-fits .section-subtitle,
#how-it-works .section-subtitle,
#contact .contact__intro {
  color: var(--color-cream);
}

#who-fits::before,
#how-it-works::before,
#testimonials::before,
#contact::before,
.diff::before {
  background-image: radial-gradient(rgba(248, 241, 229, 0.2) 1px, transparent 1px);
}

#who-fits .who-fits__item {
  color: var(--color-cream);
  background: rgba(20, 46, 74, 0.86);
  border-color: rgba(248, 241, 229, 0.16);
}

#who-fits .who-fits__item:hover {
  border-color: var(--color-accent);
}

#who-fits .who-fits__cta-block,
#how-it-works .how-works__card,
#testimonials .testimonial-card {
  background: rgba(20, 46, 74, 0.9);
  border-color: rgba(248, 241, 229, 0.15);
}

#how-it-works .how-works__card h3,
#how-it-works .how-works__card p,
#testimonials .testimonial-card__text,
#testimonials .testimonial-card__author {
  color: var(--color-cream);
}

#how-it-works .how-works__note {
  color: rgba(248, 241, 229, 0.66);
}

#contact .form__label {
  color: var(--color-cream);
}

@media (min-width: 768px) {
  .hero__inner {
    gap: clamp(3rem, 7vw, 7rem);
  }

  .hero__image {
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  }

  .benefits__grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header__inner {
    height: 84px;
  }

  .header__logo img {
    height: 54px;
  }

  .header__logo-text {
    font-size: 1.7rem;
  }

  .hero {
    min-height: 760px;
    padding-top: calc(84px + 5rem);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  }

  .hero__actions {
    align-items: flex-start;
  }

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

  #service-types .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #service-types .benefit-card:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 767px) {
  section {
    padding: 4.75rem 0;
  }

  .header__inner {
    height: 68px;
  }

  .header__logo img {
    height: 38px;
  }

  .header__logo-text {
    font-size: 1.3rem;
  }

  .hero {
    padding-top: calc(68px + 3.2rem);
    padding-bottom: 5.2rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0.7rem;
    align-items: start;
  }

  .hero__content {
    min-width: 0;
  }

  .hero__title {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
  }

  .hero__image {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 380px;
    margin: 7.5rem 0 0;
    transform: rotate(-1deg);
    box-shadow: 10px 12px 0 rgba(105, 124, 61, 0.55), var(--shadow-md);
  }

  .hero__actions .btn {
    width: 100%;
  }

  h2::after {
    margin-top: 0.8rem;
  }

  .benefit-card,
  .how-works__card {
    padding: 1.5rem;
  }

  .floating-cta .btn {
    box-shadow: none;
  }
}

@media (max-width: 359px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
  }

  .hero__image {
    width: calc(100% - 0.8rem);
    height: 280px;
    margin: 0 0.4rem;
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Reference-aligned composition: briefing lines, paper panels, and straight imagery. */
:root {
  --color-gold: #cdb178;
  --paper-line: rgba(16, 41, 69, 0.13);
  --navy-line: rgba(248, 241, 229, 0.18);
}

.header__logo img,
.footer__brand img {
  filter: brightness(0) invert(1);
}

/* Legal and accessibility pages use the colorful logo without the white filter. */
.header__logo--colorful img {
  filter: none;
}

.hero {
  background:
    linear-gradient(110deg, rgba(74, 95, 71, 0.18), transparent 42%),
    radial-gradient(circle at 7% 37%, rgba(196, 175, 120, 0.16), transparent 18rem),
    radial-gradient(circle at 90% 5%, rgba(18, 199, 238, 0.12), transparent 24rem),
    #071d36;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7.5%;
  width: 48%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  box-shadow: 0 -12px 0 -11px rgba(205, 177, 120, 0.88);
}

.hero__image {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none !important;
}

.hero__image img {
  height: 100%;
  border: 1px solid rgba(248, 241, 229, 0.78);
  border-radius: 30px 30px 30px 8px;
  box-shadow: 16px 0 0 rgba(105, 124, 61, 0.7), 0 22px 45px rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 0, 86% 0, 100% 18%, 100% 100%, 0 100%);
}

.hero__credentials {
  position: absolute;
  left: 6%;
  bottom: 1.25rem;
  display: flex;
  gap: 0.45rem;
  direction: rtl;
}

.hero__credentials p {
  width: 116px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  color: var(--color-cream);
  background: rgba(62, 76, 44, 0.96);
  border: 1px solid rgba(205, 177, 120, 0.8);
  border-radius: 16px 16px 28px 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.hero__credentials p::before {
  content: "✦";
  position: absolute;
  margin-top: 76px;
  color: var(--color-gold);
  font-size: 1.1rem;
}

.hero__credentials p + p {
  color: var(--color-navy);
  background: var(--color-cream);
  border-radius: 16px 16px 16px 28px;
}

.hero__credentials p + p::before {
  color: var(--color-navy);
}

#journey {
  z-index: 2;
  margin-top: -2.5rem;
  padding-top: calc(var(--space-section) + 1.8rem);
  border-radius: 42px 42px 0 0;
  background:
    repeating-radial-gradient(ellipse at 100% 0, transparent 0 26px, rgba(16, 41, 69, 0.05) 27px 28px, transparent 29px 54px),
    var(--color-bg-alt);
}

#journey::after,
#benefits::after,
#how-it-works::after,
#why::after,
#testimonials::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  right: 7%;
  width: 86%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.journey__steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 1.5rem);
  align-items: stretch;
}

.journey__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.8rem);
  text-align: center;
  background: rgba(251, 247, 239, 0.92);
  border: 1px solid var(--paper-line);
  border-radius: 18px 18px 7px 18px;
  box-shadow: 0 12px 22px rgba(16, 41, 69, 0.1);
}

.journey__step-number {
  width: clamp(44px, 5vw, 66px);
  height: clamp(44px, 5vw, 66px);
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
  border-radius: 0;
  background: var(--color-navy);
  box-shadow: none;
}

.journey__step:nth-child(odd) .journey__step-number {
  background: var(--color-olive-dark);
}

.journey__step-content h3 {
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.journey__step-content p {
  font-size: var(--text-xs);
  line-height: 1.6;
}

#service-types,
#about,
#thirty-days,
#army-life,
#pricing,
#faq {
  background:
    linear-gradient(135deg, rgba(205, 177, 120, 0.12), transparent 36%),
    var(--color-bg);
}

#benefits,
#ninety-days {
  color: var(--color-cream);
  background:
    radial-gradient(circle at 12% 18%, rgba(18, 199, 238, 0.12), transparent 20rem),
    radial-gradient(circle at 86% 86%, rgba(105, 124, 61, 0.22), transparent 24rem),
    var(--color-navy);
}

#benefits h2,
#ninety-days h2,
#benefits .section-subtitle {
  color: var(--color-cream);
}

#benefits .benefit-card,
#ninety-days .result-item {
  color: var(--color-cream);
  background: rgba(20, 46, 74, 0.92);
  border-color: var(--navy-line);
  box-shadow: none;
}

#benefits .benefit-card::before {
  border-color: rgba(248, 241, 229, 0.1);
}

#benefits .benefit-card h3,
#benefits .benefit-card p,
#ninety-days .result-item p,
#ninety-days .results__note,
#ninety-days .results__closing {
  color: var(--color-cream);
}

#benefits .benefit-card__icon,
#ninety-days .result-item__icon {
  color: var(--color-accent);
}

.benefit-card,
.how-works__card {
  border-radius: 20px 20px 9px 20px;
}

.benefit-card__icon,
.how-works__card-icon {
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
  border-radius: 0;
  background: var(--color-navy);
}

.how-works__card:nth-child(even) .how-works__card-icon {
  background: var(--color-olive-dark);
}

.benefit-card::after,
.how-works__card::after,
.testimonial-card::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 13px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(205, 177, 120, 0.8);
  border-right: 1px solid rgba(205, 177, 120, 0.8);
}

#how-it-works .how-works__card,
#testimonials .testimonial-card {
  position: relative;
  border-radius: 20px 20px 7px 20px;
}

#how-it-works .how-works__card::after,
#testimonials .testimonial-card::after {
  border-color: rgba(18, 199, 238, 0.8);
}

.about__photo {
  position: relative;
  border-radius: 26px 26px 26px 6px;
}

.about__photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(248, 241, 229, 0.42);
  border-radius: 18px 18px 18px 4px;
}

.about__stat {
  position: relative;
  padding: 0.62rem 1rem 0.62rem 1.45rem;
  border-radius: 10px 10px 18px 10px;
}

.about__stat::before {
  content: "✦";
  position: absolute;
  left: 0.55rem;
  color: var(--color-gold);
}

.why__item {
  position: relative;
  border-right: 0;
  border-radius: 18px 18px 7px 18px;
}

.why__item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 4px;
  border-radius: 5px 0 0 5px;
  background: var(--color-olive);
}

.diff {
  background:
    linear-gradient(90deg, rgba(18, 199, 238, 0.08), transparent 40%),
    var(--color-navy);
}

.result-item {
  border-radius: 14px 14px 7px 14px;
}

.result-item__icon {
  padding: 0.28rem;
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
  background: var(--color-olive-dark);
  color: var(--color-cream);
}

.faq__item {
  border-radius: 16px 16px 6px 16px;
  border-right: 4px solid var(--color-olive);
}

.faq__question {
  font-weight: 800;
}

#contact {
  border-radius: 42px 42px 0 0;
}

@media (min-width: 1024px) {
  .hero__image img {
    clip-path: polygon(0 0, 90% 0, 100% 14%, 100% 100%, 0 100%);
  }

  .hero__credentials {
    bottom: -2.8rem;
    left: 4%;
  }

  #journey {
    margin-top: 0;
    border-radius: 0;
  }
}

@media (max-width: 767px) {
  .hero__image {
    height: 400px;
    max-height: none;
  }

  .hero__image img {
    border-radius: 24px 24px 24px 7px;
    box-shadow: 9px 0 0 rgba(105, 124, 61, 0.72), 0 14px 28px rgba(0, 0, 0, 0.25);
    clip-path: polygon(0 0, 88% 0, 100% 14%, 100% 100%, 0 100%);
  }

  .hero__credentials {
    left: -0.7rem;
    bottom: 0.5rem;
    gap: 0.25rem;
  }

  .hero__credentials p {
    width: 74px;
    min-height: 74px;
    padding: 0.45rem;
    font-size: 0.58rem;
  }

  .hero__credentials p::before {
    margin-top: 49px;
    font-size: 0.7rem;
  }

  #journey {
    margin-top: -1.8rem;
    padding-top: calc(4.75rem + 1.6rem);
  }

  .journey__steps {
    gap: 0.45rem;
  }

  .journey__step {
    min-width: 0;
    gap: 0.7rem;
    padding: 0.72rem 0.45rem 0.85rem;
  }

  .journey__step-content h3 {
    font-size: 0.86rem;
  }

  .journey__step-content p {
    font-size: 0.66rem;
    line-height: 1.48;
  }

  .journey__step-number {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .benefit-card::after,
  .how-works__card::after,
  .testimonial-card::after {
    right: 9px;
    top: 9px;
    width: 13px;
    height: 13px;
  }
}

/* Keep the mobile headline inside the free grid column beside the portrait. */
@media (max-width: 767px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) clamp(7.7rem, 36vw, 9rem);
    gap: 0.55rem;
  }

  .hero__content {
    z-index: 2;
    min-width: 0;
  }

  .hero__portrait {
    z-index: 1;
  }

  .hero__title {
    font-size: clamp(1.65rem, 7.15vw, 2.45rem);
    letter-spacing: -0.1em;
  }

  .hero__title .hero__title-line {
    transform: none;
  }
}

@media (max-width: 359px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__portrait {
    grid-column: 1;
    grid-row: 2;
    width: 48%;
    min-height: 18rem;
    justify-self: start;
    margin-top: 1rem;
  }
}

/* Final responsive hero rules win over the earlier legacy breakpoints. */
.hero__badge::before {
  content: none;
}

.hero__badge-icon {
  width: 1.55em;
  height: 1.55em;
  flex: 0 0 auto;
}

.hero__credential-icon {
  display: block;
  width: clamp(1.35rem, 3vw, 2.2rem);
  height: clamp(1.35rem, 3vw, 2.2rem);
  flex: 0 0 auto;
}

.hero__credential {
  width: clamp(5rem, 9vw, 8.1rem);
  min-height: 0;
  aspect-ratio: 0.78;
}

.hero__credential p {
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.62rem, 1.05vw, 0.84rem);
}

/* The credential cards no longer use the decorative star badge. */
.hero__credential::after {
  content: none;
}

.hero__credentials p::before {
  content: none;
}

.hero__portrait {
  width: 100%;
  height: auto;
  min-height: 0;
  min-width: 0;
  align-self: start;
  aspect-ratio: 2 / 3;
}

.hero__portrait img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero__content {
    container-type: inline-size;
  }

  .hero__title .hero__title-line:last-child {
    font-size: 0.74em;
    transform: scaleX(clamp(0.66, calc(100cqw / 850), 0.76));
    transform-origin: right center;
  }
}

@media (max-width: 1024px) {
  /* Place the credentials in the clear space beneath the portrait on mobile. */
  .hero__portrait {
    margin-bottom: clamp(4.8rem, 25vw, 6.2rem);
  }

  .hero__credentials {
    right: -0.25rem;
    top: calc(100% + 1.35rem);
    bottom: auto;
    display: grid;
    width: clamp(7.5rem, 38vw, 9.5rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .hero__portrait {
    width: 100%;
    height: auto;
    min-height: 0;
    min-width: 0;
    align-self: start;
    aspect-ratio: 2 / 3;
  }

  .hero__portrait img {
    aspect-ratio: 2 / 3;
  }

  .hero__credential {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    place-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.28rem;
    aspect-ratio: 0.78;
  }

  .hero__credential-icon {
    width: clamp(1.05rem, 4.7vw, 1.25rem);
    height: clamp(1.05rem, 4.7vw, 1.25rem);
  }

  .hero__credential p {
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 0.18rem 0.12rem;
    align-self: stretch;
    font-size: clamp(0.5rem, 1.9vw, 0.62rem);
    line-height: 1.28;
  }
}

@media (min-width: 1025px) and (max-width: 1399px) {
  /* Keep the desktop card content contained before the full-size layout takes over. */
  .hero__credential {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    place-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.45rem;
  }

  .hero__credential-icon {
    width: clamp(1.1rem, 2vw, 1.5rem);
    height: clamp(1.1rem, 2vw, 1.5rem);
  }

  .hero__credential p {
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 0.2rem 0.12rem;
    align-self: stretch;
    font-size: clamp(0.56rem, 0.75vw, 0.72rem);
    line-height: 1.25;
  }
}

@media (max-width: 359px) {
  .hero__portrait {
    width: min(100%, 11rem);
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 3;
  }
}

/* Match the navy dotted treatment used by the other guidance sections. */
#journey {
  color: var(--color-cream);
  background: var(--color-navy);
}

#journey::before {
  background-image: radial-gradient(rgba(248, 241, 229, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
}

#journey h2,
#journey .section-subtitle {
  color: var(--color-cream);
}

#journey .journey__step {
  color: var(--color-cream);
  background: rgba(20, 46, 74, 0.9);
  border-color: rgba(248, 241, 229, 0.16);
  box-shadow: none;
}

#journey .journey__step-content h3,
#journey .journey__step-content p {
  color: var(--color-cream);
}

/* Keep the FAQ heading aligned with the accordion's RTL content column. */
#faq h2 {
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  direction: rtl;
  text-align: right;
}

#faq h2::after {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

/* Give both the question controls and answers equal breathing room inside the card. */
#faq .faq__question,
#faq .faq__answer-inner {
  padding-inline: clamp(1rem, 2.5vw, 1.75rem);
}

#faq .faq__question {
  direction: rtl;
}

#faq .faq__question > span {
  min-width: 0;
  flex: 1 1 auto;
}

#faq .faq__answer-inner {
  text-align: right;
}

#faq .faq__list {
  gap: clamp(0.55rem, 1.5vw, 0.9rem);
}

@media (max-width: 767px) {
  /* Expanded answers must not increase the intrinsic width of the flex list. */
  #faq .faq__list,
  #faq .faq__item,
  #faq .faq__answer,
  #faq .faq__answer-inner {
    width: 100%;
    min-width: 0;
  }

  #faq .faq__list {
    overflow-x: hidden;
  }
}

/* Alternate one shared navy and one shared paper surface from top to bottom. */
:root {
  --section-navy: var(--color-navy);
  --section-light: var(--color-bg);
}

.hero {
  background:
    linear-gradient(110deg, rgba(74, 95, 71, 0.18), transparent 42%),
    radial-gradient(circle at 7% 37%, rgba(196, 175, 120, 0.16), transparent 18rem),
    radial-gradient(circle at 90% 5%, rgba(18, 199, 238, 0.12), transparent 24rem),
    var(--section-navy);
}

#journey,
#service-types,
#how-it-works,
#why,
#thirty-days,
#army-life,
#pricing,
#contact {
  color: var(--color-text);
  background: var(--section-light);
}

#who-fits,
#benefits,
#about,
#differentiation,
#ninety-days,
#testimonials,
#faq {
  color: var(--color-cream);
  background: var(--section-navy);
}

#journey::before,
#service-types::before,
#how-it-works::before,
#why::before,
#thirty-days::before,
#army-life::before,
#pricing::before,
#contact::before {
  background-image: radial-gradient(rgba(16, 41, 69, 0.12) 1px, transparent 1px);
}

#who-fits::before,
#benefits::before,
#about::before,
#differentiation::before,
#ninety-days::before,
#testimonials::before,
#faq::before {
  background-image: radial-gradient(rgba(248, 241, 229, 0.2) 1px, transparent 1px);
}

#journey h2,
#journey .section-subtitle,
#how-it-works h2,
#how-it-works .section-subtitle,
#contact h2,
#contact .contact__intro,
#contact .form__label {
  color: var(--color-text);
}

#journey .journey__step {
  color: var(--color-text);
  background: rgba(251, 247, 239, 0.92);
  border-color: var(--paper-line);
  box-shadow: 0 12px 22px rgba(16, 41, 69, 0.1);
}

#journey .journey__step-content h3,
#journey .journey__step-content p,
#how-it-works .how-works__card h3,
#how-it-works .how-works__card p {
  color: var(--color-navy);
}

#how-it-works .how-works__card {
  background: var(--color-card-bg);
  border-color: rgba(16, 41, 69, 0.16);
  box-shadow: var(--shadow-sm);
}

#how-it-works .how-works__note {
  color: var(--color-text-light);
}

#about h2,
#faq h2,
#about .about__text p {
  color: var(--color-cream);
}

#about .about__quote {
  color: var(--color-cream);
}

/* Keep the hero as one responsive composition instead of inheriting legacy breakpoints. */
.hero {
  padding-block: clamp(6.75rem, 10vw, 10.5rem) clamp(7.75rem, 9vw, 10.75rem);
}

.hero__inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  gap: clamp(2.75rem, 6vw, 6.5rem);
  align-items: center;
}

.hero__content {
  min-width: 0;
  max-width: 42rem;
}

/* These wrappers become layout groups only where the mobile composition needs them. */
.hero__intro,
.hero__details {
  display: contents;
}

.hero__badge {
  max-width: 100%;
  white-space: normal;
}

.hero__title {
  max-width: 100%;
  font-size: clamp(3.1rem, 6vw, 6.5rem);
}

.hero__subtitle,
.hero__actions {
  max-width: min(100%, 30rem);
}

/* Match both headline lines to the smaller, reference-aligned scale. */
.hero__title .hero__title-line {
  font-size: 0.74em;
  transform: scaleX(clamp(0.66, calc(100cqw / 850), 0.76));
  transform-origin: right center;
}

.hero__portrait {
  justify-self: stretch;
  width: min(100%, 31rem);
  margin-inline-start: auto;
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 0.68fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
  }

  .hero__title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
  }

  .hero__subtitle {
    font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-block: clamp(6rem, 11vw, 7.5rem) clamp(4.25rem, 8vw, 6rem);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) clamp(7.6rem, 30vw, 15rem);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
  }

  .hero__portrait {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin-inline: 0;
  }

  .hero__title {
    font-size: clamp(2rem, 5.25vw, 3.7rem);
  }

  .hero__title .hero__title-line:last-child {
    font-size: 0.76em;
    transform: scaleX(clamp(0.7, calc(100cqw / 760), 0.8));
    transform-origin: right center;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-block: 6rem 3.75rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) clamp(7rem, 35vw, 9.75rem);
    gap: clamp(0.65rem, 2.4vw, 0.9rem);
  }

  .hero__badge {
    gap: 0.35rem;
    margin-bottom: clamp(0.7rem, 2vw, 1rem);
    padding: 0.4rem 0.65rem;
    font-size: clamp(0.57rem, 2vw, 0.72rem);
    line-height: 1.25;
  }

  .hero__badge-icon {
    width: 1.35em;
    height: 1.35em;
  }

  .hero__title {
    margin-bottom: clamp(0.9rem, 3vw, 1.25rem);
    font-size: clamp(1.45rem, 7.2vw, 2.4rem);
    line-height: 0.98;
    letter-spacing: -0.09em;
  }

  .hero__title-brand {
    min-width: 0;
  }

  .hero__title .hero__title-line {
    min-width: 0;
    font-size: 0.78em;
    transform: scaleX(0.78);
    transform-origin: right center;
  }

  .hero__title .hero__title-line:last-child {
    font-size: 0.78em;
    transform: scaleX(0.78);
  }

  .hero__subtitle {
    margin-bottom: clamp(1.25rem, 4vw, 1.65rem);
    font-size: clamp(0.72rem, 2.35vw, 0.9rem);
    line-height: 1.62;
  }

  .hero__primary-link {
    min-height: clamp(3.65rem, 12vw, 4.1rem);
    font-size: clamp(0.88rem, 2.8vw, 1.05rem);
  }

  .hero__secondary-link {
    font-size: clamp(0.7rem, 2.2vw, 0.82rem);
  }

  .hero__portrait {
    margin-bottom: clamp(4.9rem, 25vw, 6.5rem);
  }

  .hero__credentials {
    top: calc(100% + clamp(0.9rem, 3vw, 1.35rem));
    width: min(100%, clamp(7rem, 38vw, 9.5rem));
  }
}

@media (max-width: 359px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 6.7rem;
  }

  .hero__title {
    font-size: 1.4rem;
  }

  .hero__badge {
    font-size: 0.54rem;
  }

  .hero__portrait {
    margin-bottom: 4.7rem;
  }
}

/* Preserve the reference's generous split layout on wider phones. */
@media (min-width: 480px) and (max-width: 767px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) clamp(10.5rem, 41vw, 16rem);
    gap: clamp(0.8rem, 2.8vw, 1.25rem);
  }

  .hero__title {
    font-size: clamp(2rem, 6.2vw, 2.5rem);
  }

  .hero__title .hero__title-line {
    transform: none;
  }

  .hero__portrait {
    margin-bottom: clamp(5.5rem, 19vw, 7.25rem);
  }

  .hero__credentials {
    width: min(100%, clamp(10rem, 39vw, 14rem));
  }
}

/* Narrow phones need a composed hero, not a compressed desktop grid. */
@media (max-width: 479px) {
  .hero {
    padding-block: 5.8rem 4.25rem;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    grid-template-rows: auto;
    column-gap: clamp(0.45rem, 2.2vw, 0.7rem);
    align-items: start;
  }

  .hero__content {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: none;
    flex-direction: column;
  }

  .hero__intro {
    display: block;
    min-width: 0;
  }

  .hero__details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: clamp(0.75rem, 3vw, 1rem);
  }

  .hero__badge {
    margin: 0 0 clamp(0.55rem, 2.4vw, 0.8rem);
  }

  .hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 9.5vw, 2.65rem);
    letter-spacing: -0.025em;
  }

  .hero__title .hero__title-line,
  .hero__title .hero__title-line:last-child {
    font-size: 0.58em;
    transform: none;
  }

  .hero__subtitle {
    margin: 0;
    font-size: clamp(0.9rem, 3.8vw, 1rem);
    line-height: 1.62;
  }

  .hero__actions {
    width: 100%;
    margin: 0;
  }

  .hero__primary-link {
    min-height: 3.55rem;
    padding-inline: 0.6rem;
    font-size: clamp(0.76rem, 3.35vw, 0.9rem);
  }

  .hero__primary-arrow {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.5rem;
  }

  .hero__secondary-link {
    font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  }

  .hero__portrait {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    max-width: none;
    margin: 0 0 clamp(5.4rem, 24vw, 6.6rem);
    align-self: start;
    justify-self: stretch;
  }

  .hero__credentials {
    right: 0;
    top: calc(100% + clamp(0.8rem, 3vw, 1rem));
    width: 100%;
  }

  .hero__credential {
    padding: 0.4rem 0.25rem;
  }
}

@media (max-width: 359px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 2.2rem);
  }

  .hero__title .hero__title-line,
  .hero__title .hero__title-line:last-child {
    font-size: 0.54em;
  }

  .hero__portrait {
    width: auto;
    justify-self: stretch;
  }
}

/* Reserve visible navy space before the paper journey panel. */
#journey {
  margin-top: 0;
}
