/* ============================================================
   HELMSMAN TECHNOLOGY SOLUTIONS LLC — Professional Website
   Design System & Stylesheet
   ============================================================ */

/* --- CSS Custom Properties --------------------------------- */
:root {
  /* Color Palette */
  --color-navy-deep: #060f1e;
  --color-navy: #0a1929;
  --color-navy-medium: #11243e;
  --color-navy-light: #1a3555;
  --color-slate: #1e293b;
  --color-slate-light: #334155;

  --color-gold: #c9a24e;
  --color-gold-dark: #a88435;
  --color-gold-light: #d4af6b;
  --color-gold-pale: #f5ecd7;

  --color-white: #ffffff;
  --color-off-white: #f8f9fb;
  --color-light-gray: #f1f3f6;
  --color-border: #e2e6ed;
  --color-border-light: #edf0f4;

  --color-text-primary: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  --color-success: #0d9488;
  --color-error: #dc2626;

  /* Typography */
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', Times, serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --header-height: 76px;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-gold: 0 4px 16px rgba(201,162,78,0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-navy-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

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

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

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

/* --- Header / Navigation ----------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition-base);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand__logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-navy-deep);
  letter-spacing: 0.5px;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand__tagline {
  font-size: 0.7rem;
  color: var(--color-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
  transition: transform var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav__cta {
  margin-left: var(--space-md);
  padding: 0.55rem 1.4rem;
  background: var(--color-gold);
  color: var(--color-navy-deep) !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
}

.nav__cta:hover {
  background: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.nav__cta::after {
  display: none;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section ------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--color-navy-deep) 0%, var(--color-navy) 30%, var(--color-navy-medium) 60%, var(--color-navy) 100%);
  overflow: hidden;
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-4xl);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(201,162,78,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,78,0.3), transparent);
}

/* Geometric pattern overlay */
.hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image:
    linear-gradient(30deg, var(--color-white) 1px, transparent 1px),
    linear-gradient(-30deg, var(--color-white) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: 48px;
}

.hero__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 1.5px;
  background: var(--color-gold);
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.5px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.4;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy-deep);
}

.btn--primary:hover {
  background: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  color: var(--color-navy-deep);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__card-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.hero__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(4px);
  position: relative;
}

.hero__card--offset {
  position: absolute;
  top: var(--space-xl);
  left: var(--space-xl);
  right: calc(-1 * var(--space-xl));
  bottom: calc(-1 * var(--space-xl));
  z-index: -1;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

.hero__card-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,162,78,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.hero__card h4 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

.hero__card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.hero__stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-xs);
}

/* --- Section Common ---------------------------------------- */
.section {
  padding: var(--space-5xl) 0;
}

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

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4xl);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-md);
}

.section__title {
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.section__description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* --- Services Grid ----------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  color: var(--color-gold-dark);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-gold-dark);
}

.service-card__link:hover {
  gap: var(--space-md);
}

/* --- About Preview ----------------------------------------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-preview__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-navy-medium), var(--color-navy));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-preview__image-inner {
  text-align: center;
  color: var(--color-white);
  padding: var(--space-3xl);
}

.about-preview__image-inner .big-number {
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}

.about-preview__image-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-top: var(--space-md);
}

.about-preview__content h2 {
  margin-bottom: var(--space-lg);
}

.about-preview__content .lead {
  font-size: 1.15rem;
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-preview__features {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.about-preview__feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.about-preview__feature-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--color-gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  margin-top: 2px;
}

.about-preview__feature h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.about-preview__feature p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Stats Bar --------------------------------------------- */
.stats-bar {
  background: var(--color-navy);
  padding: var(--space-3xl) 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  text-align: center;
}

.stat-item__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-item__label {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Testimonials ------------------------------------------ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-gold);
  opacity: 0.3;
  line-height: 0.7;
  display: block;
  margin-bottom: var(--space-sm);
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-card__name {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- CTA Section ------------------------------------------- */
.cta-section {
  background: linear-gradient(160deg, var(--color-navy-deep), var(--color-navy-medium));
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(201,162,78,0.08), transparent 60%);
  pointer-events: none;
}

.cta-section .section__title {
  color: var(--color-white);
}

.cta-section .section__description {
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-2xl);
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--color-navy-deep);
  padding: var(--space-4xl) 0 var(--space-2xl);
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-2xl);
}

.footer__about p {
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.footer__heading {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer__contact li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.footer__contact-icon {
  color: var(--color-gold);
  font-size: 0.9rem;
  min-width: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* --- Page Header (inner pages) ----------------------------- */
.page-header {
  background: linear-gradient(160deg, var(--color-navy-deep), var(--color-navy-medium));
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
  position: relative;
}

.page-header__title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-header__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.page-header__breadcrumb a {
  color: var(--color-gold);
}

.page-header__breadcrumb span {
  color: rgba(255,255,255,0.4);
}

/* --- About Page -------------------------------------------- */
.about-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-detail__text h3 {
  margin-bottom: var(--space-lg);
}

.about-detail__text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-detail__visual {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-medium));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-detail__visual-inner {
  text-align: center;
  color: var(--color-white);
  padding: var(--space-3xl);
}

.about-detail__visual-inner .icon-large {
  font-size: 3.5rem;
  margin-bottom: var(--space-lg);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-lg);
  background: var(--color-gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-gold-dark);
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Services Page ----------------------------------------- */
.service-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.service-detail-block:last-child {
  border-bottom: none;
}

.service-detail-block:nth-child(even) {
  direction: rtl;
}

.service-detail-block:nth-child(even) .service-detail-block__content {
  direction: ltr;
}

.service-detail-block__visual {
  background: var(--color-light-gray);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-navy-light);
}

.service-detail-block__content h3 {
  margin-bottom: var(--space-md);
}

.service-detail-block__content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.service-detail-block__list {
  display: grid;
  gap: var(--space-sm);
}

.service-detail-block__list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-text-body);
}

.service-detail-block__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  min-width: 6px;
}

/* Process */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 18px);
  right: calc(12.5% + 18px);
  height: 2px;
  background: var(--color-border);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
  position: relative;
  z-index: 2;
  transition: all var(--transition-base);
}

.process-step:hover .process-step__number {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  box-shadow: 0 0 0 8px var(--color-gold-pale);
}

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* --- Contact Page ------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
}

.contact-info__item {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact-info__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--color-gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-gold-dark);
}

.contact-info__detail h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.contact-info__detail p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-off-white);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,162,78,0.12);
  background: var(--color-white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* --- Legal Pages (Privacy & Terms) ------------------------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
  color: var(--color-text-body);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
  color: var(--color-text-body);
}

.legal-content strong {
  color: var(--color-text-primary);
}

.legal-content .last-updated {
  background: var(--color-light-gray);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3xl);
}

/* --- Animations -------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in--delay1 { animation-delay: 0.1s; opacity: 0; }
.animate-in--delay2 { animation-delay: 0.2s; opacity: 0; }
.animate-in--delay3 { animation-delay: 0.3s; opacity: 0; }
.animate-in--delay4 { animation-delay: 0.4s; opacity: 0; }

/* --- Scroll-triggered animation ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Responsive Design ------------------------------------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .about-preview__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline::before {
    display: none;
  }

  .about-detail {
    grid-template-columns: 1fr;
  }

  .service-detail-block {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }

  .service-detail-block:nth-child(even) {
    direction: ltr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-5xl: 4rem;
    --space-4xl: 3rem;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-navy-deep);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-sm);
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-xl);
  }

  .nav.open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
    width: 100%;
    justify-content: center;
  }

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

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

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

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

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

  .process-timeline {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
