/* ==========================================================================
   استودیو هوش مصنوعی 2X (AI STUDIO 2X) - Stylesheet
   Pure CSS3, RTL First, Responsive, WCAG AA Compliant
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Colors */
  --bg-navy-dark: #040914;
  --bg-navy-surface: #091224;
  --bg-navy-card: #0d1a33;
  --border-navy: #162847;
  --border-navy-light: #203a66;

  /* Accent Colors */
  --cyan-accent: #00d2ff;
  --cyan-hover: #00b4dc;
  --cyan-subtle: rgba(0, 210, 255, 0.12);
  --cyan-border: rgba(0, 210, 255, 0.35);
  --cyan-text-light: #0284c7; /* WCAG AA on white backgrounds (4.5+:1) */
  --cyan-text-dark: #38bdf8;  /* High contrast on dark backgrounds */

  /* Neutral Backgrounds */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-light-alt: #f1f5f9;

  /* Neutral Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-light-hover: #cbd5e1;

  /* Text on Dark */
  --text-on-dark: #f8fafc;
  --text-on-dark-secondary: #cbd5e1;
  --text-on-dark-muted: #94a3b8;

  /* Functional Colors */
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --success-border: #a7f3d0;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --error-border: #fecaca;

  /* Geometric & Radii Constraints */
  --radius-card: 8px; /* Strict constraint: max 8px */
  --radius-btn: 6px;
  --radius-input: 6px;
  --radius-pill: 9999px;

  /* Spacing Scale */
  --container-max-width: 1200px;
  --header-height: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  letter-spacing: 0 !important; /* Strict constraint: zero letter-spacing */
}

html {
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0 !important;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--cyan-accent);
  outline-offset: 3px;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -999px;
  right: 16px;
  background: var(--cyan-accent);
  color: #040914;
  padding: 8px 16px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  z-index: 9999;
}
.skip-link:focus {
  top: 16px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Section Common Styles */
.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section--light {
  background-color: var(--bg-white);
  color: var(--text-primary);
}

.section--subtle {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan-text-light);
  background: var(--cyan-subtle);
  border: 1px solid var(--cyan-border);
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem; /* 2:1 horizontal to vertical padding */
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  min-height: 44px; /* Accessible touch target */
}

.btn--primary {
  background-color: var(--cyan-accent);
  color: #040914;
  border: 1px solid var(--cyan-accent);
}
.btn--primary:hover {
  background-color: var(--cyan-hover);
  border-color: var(--cyan-hover);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
}

.btn--outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--border-navy-light);
}
.btn--outline-light:hover {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  background: rgba(0, 210, 255, 0.05);
}

.btn--outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light-hover);
}
.btn--outline-dark:hover {
  border-color: var(--cyan-text-light);
  color: var(--cyan-text-light);
  background: var(--cyan-subtle);
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  min-height: 38px;
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   Header (Sticky Navigation)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(4, 9, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-navy);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-on-dark);
  line-height: 1.25;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan-accent);
  letter-spacing: 0 !important;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-on-dark-secondary);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-accent);
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  color: var(--text-on-dark);
  background: var(--bg-navy-card);
  border: 1px solid var(--border-navy);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background-color: var(--bg-navy-dark);
  color: var(--text-on-dark);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-navy);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-accent);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid var(--border-navy-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-on-dark);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-on-dark-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-navy);
  width: 100%;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-on-dark-secondary);
  transition: color 0.15s ease;
}

.hero-contact-item:hover {
  color: var(--cyan-accent);
}

.hero-contact-item svg {
  color: var(--cyan-accent);
  flex-shrink: 0;
}

/* Hero Logo Presentation */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-container {
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0, 210, 255, 0.18));
}

/* ==========================================================================
   Services Section (6 Main Services)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card); /* Strict constraint: max 8px */
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--cyan-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-btn);
  background: var(--cyan-subtle);
  color: var(--cyan-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Pricing Section (Desktop Table + Mobile Cards)
   ========================================================================== */
.pricing-container {
  width: 100%;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.95rem;
}

.pricing-table th {
  background: var(--bg-light-alt);
  color: var(--text-primary);
  font-weight: 700;
  padding: 1.1rem 1.25rem;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.pricing-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}

.pricing-table tbody tr:hover {
  background-color: #f8fafc;
}

.pricing-title-cell {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 180px;
}

.pricing-output-cell {
  line-height: 1.6;
  min-width: 240px;
}

.pricing-time-cell {
  white-space: nowrap;
  font-weight: 500;
}

.pricing-cost-cell {
  white-space: nowrap;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-cost-tag {
  color: var(--cyan-text-light);
  font-size: 1.05rem;
}

.pricing-action-cell {
  white-space: nowrap;
  text-align: center;
}

/* Mobile Pricing Cards (Visible only on mobile screens) */
.pricing-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pricing-card-mobile {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.pricing-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.pricing-card-cost {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cyan-text-light);
  white-space: nowrap;
}

.pricing-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-card-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-disclaimer {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #1e40af;
  line-height: 1.7;
}

/* ==========================================================================
   Cooperation Process Section (Timeline)
   ========================================================================== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.timeline-marker {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  border: 2px solid var(--cyan-accent);
  color: var(--text-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.timeline-content {
  width: 100%;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.about-text {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-primary);
  text-align: justify;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-feature-icon {
  color: var(--cyan-text-light);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.about-feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.about-feature-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-light-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  gap: 1rem;
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--cyan-text-light);
}

.faq-icon {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--cyan-text-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background-color: var(--bg-light);
}

.faq-answer-inner {
  padding: 1.25rem 1.5rem;
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Terms & Privacy Sections
   ========================================================================== */
.legal-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-clause {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-clause:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-clause h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-clause h3 svg {
  color: var(--cyan-text-light);
}

.legal-clause p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0.5rem;
  text-align: justify;
}

.legal-clause ul {
  list-style: none;
  padding-right: 1.25rem;
}

.legal-clause li {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.legal-clause li::before {
  content: "•";
  color: var(--cyan-text-light);
  font-size: 1.25rem;
  position: absolute;
  right: -1.25rem;
  top: -2px;
}

.callout-box {
  background: var(--bg-light-alt);
  border-right: 4px solid var(--cyan-text-light);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  margin-top: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-primary);
  line-height: 1.75;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  background: var(--cyan-subtle);
  color: var(--cyan-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-item-content p,
.contact-item-content a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  transition: color 0.15s ease;
}

.contact-item-content a:hover {
  color: var(--cyan-text-light);
}

.contact-item-content .contact-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.contact-cta-box {
  background: var(--bg-navy-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-cta-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-on-dark);
}

.contact-cta-box p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-on-dark-secondary);
}

/* Map link container */
.map-link-wrap {
  margin-top: 0.75rem;
  display: none; /* hidden until CONFIG_MAP_URL is configured */
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--cyan-text-light);
  font-weight: 600;
}
.map-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-navy-dark);
  color: var(--text-on-dark-secondary);
  border-top: 1px solid var(--border-navy);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand .brand-logo-img {
  width: 48px;
  height: 48px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-on-dark-secondary);
  transition: color 0.15s ease;
}

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

/* Enamad official trust seal */
#enamad-badge,
.enamad-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: none;
  border-radius: var(--radius-card);
  padding: 0.25rem 0;
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
  text-align: center;
  background: transparent;
}

.footer-contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

.footer-contact-list a {
  color: var(--text-on-dark-secondary);
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: var(--cyan-accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Order Modal & Proforma Invoice (Drawer/Dialog)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(4, 9, 20, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.modal-overlay.is-active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background-color: var(--bg-white);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.2s ease-out;
}

.modal-overlay.is-active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-navy-dark);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--border-navy);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title svg {
  color: var(--cyan-accent);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-secondary);
  background: var(--bg-navy-card);
  border: 1px solid var(--border-navy);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-on-dark);
  background-color: var(--border-navy-light);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-grow: 1;
}

/* Modal Steps */
.step-pane {
  display: none;
}
.step-pane.is-active {
  display: block;
}

/* Form Groups & Validation */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label .required {
  color: #dc2626;
  margin-right: 0.2rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light-hover);
  border-radius: var(--radius-input);
  background-color: var(--bg-white);
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan-text-light);
  box-shadow: 0 0 0 3px var(--cyan-subtle);
}

.form-control.has-error {
  border-color: #ef4444;
  background-color: #fff5f5;
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.form-error {
  font-size: 0.775rem;
  color: #dc2626;
  margin-top: 0.2rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.checkbox-group input {
  margin-top: 0.25rem;
  accent-color: var(--cyan-text-light);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.checkbox-group a {
  color: var(--cyan-text-light);
  text-decoration: underline;
}

/* Proforma Invoice Display */
.invoice-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  background: var(--bg-white);
  margin-bottom: 1.5rem;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.invoice-header-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.invoice-header-meta {
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.invoice-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.invoice-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-light);
}

.invoice-row:last-child {
  border-bottom: none;
}

.invoice-row .key {
  color: var(--text-muted);
}

.invoice-row .val {
  font-weight: 600;
  color: var(--text-primary);
}

.invoice-total-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1rem;
  border-radius: var(--radius-btn);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.invoice-total-label {
  font-weight: 700;
  color: #166534;
  font-size: 1.05rem;
}

.invoice-total-amount {
  font-weight: 800;
  color: #15803d;
  font-size: 1.25rem;
}

.invoice-notice {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Success Confirmation Pane */
.success-banner {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  padding: 1.25rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1.5rem;
  text-align: center;
}

.order-code-display {
  display: inline-block;
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--bg-white);
  border: 1px dashed var(--success-text);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-btn);
  margin: 0.5rem 0;
  direction: ltr;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Print Stylesheet
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }

  #printable-invoice-area, #printable-invoice-area * {
    visibility: visible;
  }

  #printable-invoice-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
    background: #fff !important;
    color: #000 !important;
  }

  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive Adaptations
   Checked widths: 360px, 390px, 768px, 1024px, 1440px
   ========================================================================== */

/* Tablet (1024px and down) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-step {
    flex-direction: row;
    text-align: right;
    gap: 1.25rem;
  }

  .timeline-marker {
    margin-bottom: 0;
    flex-shrink: 0;
  }

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

/* Mobile & Tablet Portrait (768px and down) */
@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--bg-navy-dark);
    border-bottom: 1px solid var(--border-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-navy);
  }

  .header-actions .btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-img {
    max-width: 220px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

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

  /* Transform Pricing Table to Mobile Cards */
  .table-wrapper {
    display: none;
  }

  .pricing-mobile-cards {
    display: flex;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

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

  .invoice-details-grid {
    grid-template-columns: 1fr;
  }

  .modal-dialog {
    max-height: 95vh;
    border-radius: 6px;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* Small Mobile (390px and down) */
@media (max-width: 390px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-contact-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
