/* ==========================================================================
   ExiroMED — Inner Pages Styles  (About Us + Contact Us)
   assets/css/pages.css
   Loaded on pages using "About Us" or "Contact Us" template — see functions.php
   ========================================================================== */

/* ── Design-token bridge ─────────────────────────────────────────────────── */
.exiro-page {
  --warm-white:        #ffffff;
  --section-bg:        #eaeae9;
  --cream:             #f5f0ea;
  --text-dark:         #111111;
  --text-muted-dark:   #333333;
  --exiro-green:       #143931;
  --exiro-green-hover: #235247;
  --font-heading:      'Gotham', sans-serif;
  --font-body:         'Gotham', sans-serif;
  --font-fa:           'IRANSansX', sans-serif;
  --card-radius:       28px;
  --transition:        0.42s cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--warm-white);
  font-family: var(--font-body);
  letter-spacing: -0.02em;
}

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

/* ── Shared container ────────────────────────────────────────────────────── */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==========================================================================
   SHARED PAGE HERO HEADER
   ========================================================================== */
.page-hero-section {
  padding: 72px 24px 64px;
  text-align: center;
}

.page-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--exiro-green);
  margin-bottom: 18px;
}

.page-section-label::before,
.page-section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--exiro-green);
  opacity: 0.4;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}

.page-hero-desc {
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.75;
  color: #666;
  max-width: 580px;
  margin: 0 auto;
}

/* Shared section heading block (used inside sections) */
.page-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}

.page-section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
}

/* ==========================================================================
   SHARED CTA BOX  (identical treatment to archive-contact-cta)
   ========================================================================== */
.page-cta-section {
  padding: 0 24px 96px;
}

.page-cta-box {
  position: relative;
  background: var(--exiro-green);
  border-radius: 32px;
  padding: 64px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
}

.page-cta-box::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  top: -180px;
  right: -100px;
  pointer-events: none;
}

.page-cta-box::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.028);
  bottom: -80px;
  left: 10%;
  pointer-events: none;
}

.page-cta-text {
  flex: 1;
  position: relative;
  z-index: 2;
}

.page-cta-text span {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}

.page-cta-text p {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.60);
}

.page-cta-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.page-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  border-radius: 500px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  white-space: nowrap;
}

.page-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.page-cta-btn--white {
  background: #ffffff;
  color: var(--exiro-green);
}

.page-cta-btn--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.page-cta-btn--outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   ABOUT PAGE — Story section
   ========================================================================== */
.about-story-section {
  padding: 0 24px 96px;
}

.about-story-inner {
  display: flex;
  align-items: center;
  gap: 8%;
}

.about-story-image {
  flex: 0 0 44%;
  max-width: 44%;
}

.about-story-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.08));
}

.about-story-text {
  flex: 1;
  min-width: 0;
}

.about-story-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--exiro-green);
  margin-bottom: 16px;
}

.about-story-heading {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}

.about-story-text p {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.75;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

/* ==========================================================================
   ABOUT PAGE — Values grid
   ========================================================================== */
.about-values-section {
  padding: 80px 24px 96px;
  background: var(--section-bg);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-value-card {
  background: var(--warm-white);
  border-radius: var(--card-radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(20, 57, 49, 0.10);
}

.about-value-icon {
  width: 52px;
  height: 52px;
  background: rgba(20, 57, 49, 0.07);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--exiro-green);
  flex-shrink: 0;
}

.about-value-icon svg {
  width: 26px;
  height: 26px;
}

.about-value-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin: 0;
}

.about-value-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* ==========================================================================
   ABOUT PAGE — Stats strip
   ========================================================================== */
.about-stats-section {
  padding: 80px 24px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(20, 57, 49, 0.08);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.about-stat {
  background: var(--warm-white);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.about-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 700;
  color: var(--exiro-green);
  letter-spacing: -0.04em;
  line-height: 1;
}

.about-stat-number span {
  font-size: 0.55em;
  vertical-align: super;
  opacity: 0.7;
}

.about-stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
}

/* ==========================================================================
   CONTACT PAGE — Layout
   ========================================================================== */
.contact-main-section {
  padding: 0 24px 96px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}

/* ── Info cards ─────────────────────────────────────────────────────────── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--section-bg);
  border-radius: 20px;
  padding: 24px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(20, 57, 49, 0.09);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--exiro-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-content h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.contact-info-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.contact-info-content a {
  color: var(--exiro-green);
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-info-content a:hover {
  color: var(--exiro-green-hover);
}

/* ── Form card ──────────────────────────────────────────────────────────── */
.contact-form-card {
  background: var(--section-bg);
  border-radius: var(--card-radius);
  padding: 48px 44px;
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.contact-form-subtitle {
  font-size: 14px;
  line-height: 1.65;
  color: #777;
  margin: 0 0 36px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--warm-white);
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: none;
  letter-spacing: 0;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
  color: #bbb;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--exiro-green);
  box-shadow: 0 0 0 3px rgba(20, 57, 49, 0.08);
}

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  background: var(--exiro-green);
  color: #fff;
  border: none;
  border-radius: 500px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.contact-form-submit:hover {
  background: var(--exiro-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(20, 57, 49, 0.22);
}

.contact-form-submit:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 860px) {
  .about-story-inner {
    flex-direction: column;
    gap: 40px;
  }

  .about-story-image {
    flex: none;
    max-width: 100%;
    width: 80%;
    margin: 0 auto;
  }

  .page-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 40px;
    gap: 32px;
    border-radius: 24px;
  }

  .page-cta-buttons {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-hero-section {
    padding: 48px 16px 48px;
  }

  .about-story-section,
  .contact-main-section,
  .page-cta-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-values-section {
    padding: 56px 16px 72px;
  }

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

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

  .about-story-image {
    width: 100%;
  }

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

  .contact-form-card {
    padding: 32px 24px;
  }

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

  .page-cta-box {
    padding: 40px 24px;
  }

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

/* ==========================================================================
   RTL OVERRIDES
   ========================================================================== */
[dir="rtl"] .exiro-page,
.rtl .exiro-page {
  font-family: var(--font-fa);
  letter-spacing: 0;
}

[dir="rtl"] .exiro-page h1,
[dir="rtl"] .exiro-page h2,
[dir="rtl"] .exiro-page h3,
[dir="rtl"] .exiro-page h4,
[dir="rtl"] .exiro-page p,
[dir="rtl"] .exiro-page span,
[dir="rtl"] .exiro-page label,
[dir="rtl"] .exiro-page input,
[dir="rtl"] .exiro-page textarea,
[dir="rtl"] .exiro-page button,
[dir="rtl"] .exiro-page a,
.rtl .exiro-page h1,
.rtl .exiro-page h2,
.rtl .exiro-page h3,
.rtl .exiro-page h4,
.rtl .exiro-page p,
.rtl .exiro-page span,
.rtl .exiro-page label,
.rtl .exiro-page input,
.rtl .exiro-page textarea,
.rtl .exiro-page button,
.rtl .exiro-page a {
  font-family: var(--font-fa);
  letter-spacing: 0;
}

[dir="rtl"] .page-hero-title,
[dir="rtl"] .page-section-title,
[dir="rtl"] .about-story-heading,
[dir="rtl"] .page-cta-text span,
.rtl .page-hero-title,
.rtl .page-section-title,
.rtl .about-story-heading,
.rtl .page-cta-text span {
  letter-spacing: 0;
}

/* Story: image right, text left in RTL */
[dir="rtl"] .about-story-inner,
.rtl .about-story-inner {
  flex-direction: row-reverse;
}

/* CTA box: bubble flips */
[dir="rtl"] .page-cta-box::before,
.rtl .page-cta-box::before {
  right: auto;
  left: -100px;
}

/* Contact submit arrow */
[dir="rtl"] .contact-form-submit:hover svg,
.rtl .contact-form-submit:hover svg {
  transform: translateX(-4px);
}

/* Value card icon alignment */
[dir="rtl"] .about-value-card,
.rtl .about-value-card {
  text-align: right;
}

[dir="rtl"] .contact-info-card,
.rtl .contact-info-card {
  flex-direction: row-reverse;
}
