/* =========================================================
   TAJ CONSTRUCTION — Main Stylesheet
   شرکت ساختمانی تاج
   ========================================================= */

/* ---------- 1. ROOT VARIABLES ---------- */
:root {
  --primary: #0E363D;
  --secondary: #214B53;
  --accent: #A49C92;
  --background: #DDDEDC;
  --background-secondary: #F2F2F0;
  --text: #0A262B;
  --text-secondary: #5A6265;
  --border: #C4C6C3;
  --white: #FFFFFF;

  --font-main: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 10px 40px rgba(10, 38, 43, 0.08);
  --shadow-hover: 0 18px 60px rgba(10, 38, 43, 0.18);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--background-secondary);
  overflow-x: hidden;
  font-weight: 400;
}

img, video { max-width: 100%; display: block; }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition), opacity var(--transition);
}

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 3. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 110px 0; }

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  position: relative;
  padding-right: 40px;
}

.section-label::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 22px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.95;
}

.section-desc.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; }

.section-head.center .section-label {
  padding-right: 0;
  padding-left: 40px;
}

.section-head.center .section-label::before {
  right: auto;
  left: 0;
}

.section-foot {
  margin-top: 60px;
  text-align: center;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14, 54, 61, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.section:not(.hero) .btn-outline,
.section-projects .btn-outline,
.section-services .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}

.section:not(.hero) .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-full { width: 100%; }

.link-arrow {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.link-arrow:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- 5. INTRO ANIMATION ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content { text-align: center; padding: 24px; }

.intro-welcome {
  color: var(--background);
  font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: introFadeIn 1s ease 0.3s forwards;
}

.intro-brand {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-top: 12px;
  opacity: 0;
  animation: introScaleIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

@keyframes introFadeIn { to { opacity: 1; } }

@keyframes introScaleIn {
  0% { opacity: 0; transform: scale(0.85); letter-spacing: 0.3em; }
  100% { opacity: 1; transform: scale(1); letter-spacing: 0.02em; }
}

/* ---------- 6. HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: var(--white);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(10, 38, 43, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 6px 0;
}

.site-header.scrolled .main-nav a { color: var(--text); }

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.main-nav a:hover,
.main-nav a.active { color: var(--accent); }

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.05em;
}

.site-header.scrolled .lang-switch {
  color: var(--primary);
  border-color: var(--border);
}

.lang-switch:hover {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.header-cta { padding: 11px 24px; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: all var(--transition);
}

.site-header.scrolled .menu-toggle span { background: var(--primary); }

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. ROTATING 3D LOGO (کره شیک) ---------- */
.logo-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  perspective: 900px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(14, 54, 61, 0.0) 55%,
    rgba(14, 54, 61, 0.35) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 18px rgba(0, 0, 0, 0.25),
    0 8px 22px rgba(10, 38, 43, 0.35),
    0 2px 6px rgba(10, 38, 43, 0.2);
  transition: box-shadow var(--transition), transform var(--transition);
}

.logo-3d::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(164, 156, 146, 0.18) 0%,
    rgba(164, 156, 146, 0.06) 45%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.logo-3d::after {
  content: "";
  position: absolute;
  top: 6%;
  right: 14%;
  width: 34%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 75%
  );
  filter: blur(1px);
  z-index: 2;
  pointer-events: none;
}

.logo-3d-inner {
  position: relative;
  width: 76%;
  height: 76%;
  transform-style: preserve-3d;
  animation: logoSpin 16s linear infinite;
  z-index: 1;
}

.logo-3d-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

@keyframes logoSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.logo-3d.header-logo { width: 56px; height: 56px; }
.logo-3d.footer-logo-3d { width: 78px; height: 78px; }

.site-header.scrolled .logo-3d.header-logo {
  width: 48px;
  height: 48px;
}

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 54, 61, 0.78) 0%,
    rgba(14, 54, 61, 0.6) 45%,
    rgba(14, 54, 61, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 60px;
}

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.9s ease 2.4s forwards;
}

.hero-title {
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 1s ease 2.6s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 1s ease 2.9s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 3.1s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  z-index: 2;
}

.hero-scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollHint 1.8s ease infinite;
}

@keyframes scrollHint {
  0% { opacity: 0; top: 8px; }
  50% { opacity: 1; }
  100% { opacity: 0; top: 22px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 9. REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 10. INTRO SECTION ---------- */
.section-intro { background: var(--background-secondary); }

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- 11. STATS ---------- */
.section-stats {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-card {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card:last-child { border-right: none; }

.stat-number {
  display: inline-block;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-plus {
  display: inline-block;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  vertical-align: top;
  margin-right: 4px;
}

.stat-label {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

/* ---------- 12. SERVICES ---------- */
.section-services { background: var(--background-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  padding: 42px 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-icon {
  width: 58px;
  height: 58px;
  color: var(--primary);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.service-card:hover .service-icon { color: var(--accent); }

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ---------- 13. PROJECTS ---------- */
.section-projects { background: var(--background); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-media {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-media img { transform: scale(1.08); }

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 40px;
  letter-spacing: 0.04em;
}

.badge-sold { background: var(--primary); color: var(--white); }

.badge-inline {
  position: static !important;
  display: inline-block;
  margin-bottom: 14px;
}

.project-body { padding: 28px 26px 32px; }

.project-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.project-loc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-loc::before {
  content: "◈";
  color: var(--accent);
  font-size: 0.75rem;
}

.project-meta {
  margin-bottom: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.project-meta li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 4px 0;
  position: relative;
  padding-right: 16px;
}

.project-meta li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 14px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.project-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 20px 0 26px;
  font-style: italic;
}

.project-feature { margin-bottom: 70px; }
.project-feature:last-child { margin-bottom: 0; }

.project-feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.project-feature:hover .project-feature-grid,
.project-feature-grid:hover { box-shadow: var(--shadow-soft); }

.project-feature-gallery {
  padding: 24px;
  background: var(--background);
}

.project-feature-main {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-thumbs img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
  opacity: 0.85;
}

.project-thumbs img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.project-feature-info { padding: 40px 40px 40px 10px; }

.project-feature-info .badge {
  position: static;
  display: inline-block;
  margin-bottom: 18px;
}

.project-feature-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.project-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 100%);
  border-bottom: 1px solid var(--border);
}

.placeholder-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

/* ---------- 14. ACTIVITY ---------- */
.section-activity {
  background: var(--primary);
  color: var(--white);
}

.section-activity .section-title,
.section-activity .section-label { color: var(--white); }

.section-activity .section-label::before { background: var(--accent); }

.section-activity .section-desc { color: rgba(255, 255, 255, 0.78); }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.activity-item {
  padding: 36px 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.activity-item span {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
}

.activity-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.activity-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
}

/* ---------- 15. FOUNDER ---------- */
.section-founder { background: var(--background-secondary); }

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.founder-media { position: relative; }

.founder-media img:first-child {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.founder-media-secondary {
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--background-secondary);
  box-shadow: var(--shadow-hover);
}

.founder-role {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

.founder-points { margin: 26px 0 34px; }

.founder-points li {
  font-size: 0.98rem;
  color: var(--text);
  padding: 10px 28px 10px 0;
  position: relative;
}

.founder-points li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 10px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 16. ACTIVE PROPERTIES ---------- */
.section-active { background: var(--background); }

.active-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.active-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  display: block;
}

.active-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.active-card .badge {
  position: static;
  display: inline-block;
  margin-bottom: 20px;
}

.active-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.active-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.9;
}

.active-loc {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.active-loc::before { content: "◈"; font-size: 0.75rem; }

.quick-card { cursor: pointer; }

.quick-card .link-arrow {
  display: inline-block;
  margin-top: 4px;
}

/* ---------- 17. PROCESS ---------- */
.section-process { background: var(--background-secondary); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.process-step {
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.process-step span {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.process-step p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- 18. CTA ---------- */
.section-cta {
  background: var(--primary);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.cta-inner { max-width: 720px; margin: 0 auto; }

.cta-title {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 19. CONTACT ---------- */
.section-contact { background: var(--background-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-list { margin-top: 32px; }

.contact-list li {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li span:first-child {
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.contact-list li a,
.contact-list li span:last-child {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.contact-list li a:hover { color: var(--accent); }

.contact-form {
  background: var(--white);
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
}

.form-row { margin-bottom: 22px; }

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  color: var(--text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 22px;
  font-weight: 500;
}

.form-note.success { color: var(--primary); }
.form-note.error { color: #8b3a3a; }

/* ---------- 20. BLOG ---------- */
.section-blog { background: var(--background-secondary); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.blog-media {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-media img { transform: scale(1.08); }

.blog-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 100%);
  border-bottom: 1px solid var(--border);
}

.blog-body {
  padding: 28px 26px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.blog-body p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 18px;
  flex: 1;
}

/* ---------- 21. PAGE HERO ---------- */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 200px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.page-hero .section-label {
  padding-right: 0;
  padding-left: 40px;
}

.page-hero .section-label::before {
  right: auto;
  left: 0;
}

.page-title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 20px;
}

.page-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.95;
}

/* ---------- 22. STRENGTHS GRID ---------- */
.section-strengths { background: var(--background-secondary); }

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strength-item {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.strength-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.strength-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.strength-item p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ---------- 23. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .section { padding: 90px 0; }

  .intro-grid,
  .founder-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .intro-image img,
  .founder-media img:first-child { height: 420px; }

  .founder-media-secondary {
    position: static;
    width: 100%;
    height: 240px;
    border: none;
    margin-top: 20px;
  }

  .services-grid,
  .projects-grid,
  .active-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .project-feature-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-feature-info { padding: 32px 28px 36px; }
  .project-feature-main { height: 320px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 84%;
    max-width: 340px;
    height: 100vh;
    background: var(--primary);
    padding: 100px 30px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-nav a {
    color: var(--white) !important;
    font-size: 1.05rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a::after { display: none; }

  .menu-toggle { display: flex; z-index: 1000; }
  .menu-toggle.open span { background: var(--white) !important; }

  .header-cta { display: none; }

  .hero { min-height: 560px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .services-grid,
  .projects-grid,
  .active-grid,
  .activity-grid,
  .process-grid,
  .stats-grid,
  .blog-grid,
  .strengths-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px 12px;
  }

  .stat-card:last-child { border-bottom: none; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-form { padding: 32px 24px; }
  .page-hero { padding: 150px 0 70px; }
  .project-feature { margin-bottom: 50px; }
  .project-feature-gallery { padding: 16px; }
  .project-feature-main { height: 240px; }
  .project-thumbs img { height: 70px; }

  .logo-3d.header-logo { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 4.4rem; }
  .section-title { font-size: 1.45rem; }
  .btn { padding: 13px 26px; font-size: 0.92rem; }
}

/* ---------- 24. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .intro-overlay { display: none; }
  .reveal { opacity: 1; transform: none; }
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-cta { opacity: 1; animation: none; }
  .logo-3d-inner { animation: none; }
}

/* ---------- 25. BODY WHEN INTRO ACTIVE ---------- */
body.intro-active { overflow: hidden; }