/* Fakhr Andishan 1.3 | coherent visual system for home, archive and detail pages */
:root {
  --fk-canvas: #f4f7f7;
  --fk-panel: #fff;
  --fk-ink: #142d35;
  --fk-copy: #40575e;
  --fk-dim: #687c80;
  --fk-line: #dce6e7;
  --fk-deep: #063f4d;
  --fk-primary: #087e8b;
  --fk-gold: #c9a24f;
  --fk-glow: rgba(7, 126, 139, .12);
  --fk-card-shadow: 0 10px 28px rgba(14, 51, 60, .065);
  --fk-card-shadow-hover: 0 18px 38px rgba(14, 51, 60, .12);
  --fk-container: 1220px;
  --fk-section: clamp(3.6rem, 7vw, 6.8rem);
}

html { scroll-padding-top: 90px; }
body { color: var(--fk-ink); background: #fff; font-size: 16px; line-height: 1.9; }
.site-main { overflow: clip; }
.site-main p,
.site-main li,
.site-main dd { text-align: start; }
.site-main p { text-wrap: pretty; }
.container { max-width: var(--fk-container); }
.section { padding-block: var(--fk-section); }
.section--tint { background: var(--fk-canvas); }
.section-head { max-width: 720px; margin-block-end: clamp(1.8rem, 4vw, 3.1rem); }
.section-title { color: var(--fk-ink); font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.5rem); line-height: 1.5; letter-spacing: -.025em; }
.section-lead { max-width: 64ch; margin-block-start: .55rem; color: var(--fk-dim); font-size: 1.04rem; line-height: 1.9; }
.eyebrow { color: var(--fk-primary); font-size: .9rem; letter-spacing: .005em; }
.eyebrow::before { width: 22px; height: 2px; border-radius: 99px; }

/* Navigation: quieter, more legible, and with clear active states. */
.site-header { background: rgba(4, 54, 66, .97); border-block-end: 1px solid rgba(237, 212, 127, .28); backdrop-filter: blur(16px); }
.site-header__inner { min-height: 76px; }
.brand { gap: .8rem; }
.brand__logo { width: 46px; }
.brand__name { font-size: 1rem; }
.brand__tagline { font-size: .78rem; }
.site-nav .menu > li > a { font-size: .94rem; }
.site-nav__cta { padding-inline: 1.15rem; }
.nav-toggle { border-radius: 12px; }

/* Homepage hero: bespoke workshop blueprint, not generic corporate gradient. */
.hero--home {
  isolation: isolate;
  padding-block: clamp(4rem, 8vw, 7.5rem);
  background:
    radial-gradient(ellipse at 16% 86%, rgba(8, 126, 139, .29), transparent 44%),
    linear-gradient(122deg, #062f3a 0%, #064553 53%, #075c65 100%);
}
.hero--home::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}
.hero--home::after { height: 2px; background: linear-gradient(90deg, transparent, #e7c968 22%, #fff4c2 50%, #e7c968 78%, transparent); opacity: .7; }
.hero__inner { position: relative; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: clamp(2rem, 6vw, 5.4rem); }
.hero__content { max-width: 690px; }
.hero__overline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-block: 0 1.2rem; color: rgba(255,255,255,.74); font-size: .86rem; line-height: 1.7; }
.hero__signal { width: 8px; height: 8px; border-radius: 50%; background: #edd47f; box-shadow: 0 0 0 5px rgba(237,212,127,.13); }
.hero__overline-rule { width: 24px; height: 1px; background: rgba(237,212,127,.55); }
.hero__kicker { margin-block-end: .7rem; color: #f3d982; font-size: 1rem; }
.hero__kicker::before { width: 30px; height: 2px; border-radius: 99px; }
.hero__title { max-width: 17ch; margin-block-end: 1.1rem; font-size: clamp(2.2rem, 1.35rem + 3.7vw, 4.2rem); font-weight: 850; line-height: 1.45; letter-spacing: -.04em; }
.hero__text { max-width: 55ch; margin-block-end: 1.8rem; color: rgba(255,255,255,.78); font-size: clamp(1.04rem, .96rem + .35vw, 1.2rem); line-height: 2; text-align: start; }
.hero__actions { gap: .8rem; }
.hero__actions .btn { min-height: 54px; border-radius: 12px; }
.btn { border-radius: 11px; font-weight: 750; }
.btn--gold { background: linear-gradient(135deg, #f1d782, #d5b157); color: #182f35; box-shadow: 0 8px 18px rgba(201,162,79,.16); }
.btn--gold:hover { background: #f4df9e; color: #142d35; }
.btn--primary { box-shadow: 0 8px 18px rgba(8,126,139,.16); }
.hero__visual { position: relative; align-self: center; max-width: 570px; padding: clamp(.4rem, 2vw, 1rem); }
.hero__visual::before { content: ""; position: absolute; inset: 7% 4% 9% 8%; border: 1px solid rgba(237,212,127,.34); border-radius: 26px; transform: rotate(-3deg); }
.hero__visual::after { content: ""; position: absolute; inset: 15% 10% 15% 5%; border-radius: 24px; background: radial-gradient(ellipse, rgba(8,126,139,.17), transparent 70%); pointer-events: none; }
.hero__visual-label { position: absolute; z-index: 2; inset-inline-start: 8%; inset-block-end: 3%; display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(4,48,58,.8); color: rgba(255,255,255,.85); font-size: .78rem; backdrop-filter: blur(8px); }
.hero__visual-line { width: 34px; height: 1px; background: #edd47f; }
.hero-art { position: relative; z-index: 1; filter: drop-shadow(0 18px 32px rgba(0,0,0,.16)); }
.hero__img { position: relative; z-index: 1; border: 1px solid rgba(237,212,127,.38); border-radius: 20px; box-shadow: 0 25px 55px rgba(0,0,0,.2); }

/* Service cards: equal-height rows, aligned baselines, no stretched Persian word spacing. */
.home-services { position: relative; background: var(--fk-canvas); }
.home-services::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--fk-line), transparent); }
.home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.3vw, 1.6rem); align-items: stretch; }
.service-card {
  display: grid;
  grid-template-rows: auto minmax(3.2em, auto) minmax(5.7em, auto) 1fr auto;
  gap: .6rem;
  min-width: 0;
  min-height: 410px;
  padding: clamp(1.3rem, 2.7vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--fk-line);
  border-block-start: 3px solid var(--fk-gold);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(15, 55, 65, .045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card::after { content: ""; position: absolute; inset-inline-end: -56px; inset-block-end: -66px; width: 150px; height: 150px; border: 1px solid rgba(8,126,139,.08); border-radius: 50%; box-shadow: 0 0 0 16px rgba(8,126,139,.025), 0 0 0 34px rgba(8,126,139,.018); pointer-events: none; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(8,126,139,.3); box-shadow: var(--fk-card-shadow-hover); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.service-card .card__icon { width: 58px; height: 58px; margin: 0; border-radius: 16px; background: linear-gradient(145deg, #0a5965, #073f4d); color: #f3d982; box-shadow: 0 8px 18px rgba(6,63,77,.16); }
.service-card__index { color: #a9b9b9; font-size: .9rem; font-weight: 800; letter-spacing: .12em; }
.service-card .card__title { min-height: 3.2em; margin: .35rem 0 0; font-size: clamp(1.14rem, 1.02rem + .42vw, 1.4rem); line-height: 1.65; }
.service-card .card__title a { position: static; color: var(--fk-ink); }
.service-card .card__title a::after { inset: 0; }
.service-card .card__text { display: -webkit-box; min-height: 5.7em; margin: 0; overflow: hidden; color: var(--fk-copy); font-size: .96rem; line-height: 1.9; text-align: start; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.service-card__list { display: grid; align-content: start; gap: .5rem; margin: 0; padding: .85rem 0 0; border-block-start: 1px solid #edf1f1; list-style: none; }
.service-card__list li { position: relative; min-height: 2.8em; margin: 0; padding-inline-start: 1.15rem; color: var(--fk-dim); font-size: .88rem; line-height: 1.75; text-align: start; }
.service-card__list li::before { content: ""; position: absolute; inset-inline-start: .15rem; inset-block-start: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--fk-gold); }
.service-card .card__more { position: relative; z-index: 1; align-self: end; width: fit-content; gap: .55rem; margin-block-start: .3rem; color: var(--fk-primary); font-size: .91rem; }
.service-card .card__more .icon { transition: transform .2s ease; }
.service-card:hover .card__more .icon { transform: translateX(-4px); }

/* Clear reading hierarchy, purposeful section transitions, fewer same-looking boxes. */
.home-intro { background: #fff; }
.intro__grid { grid-template-columns: minmax(230px, 4fr) minmax(0, 7fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.intro__head { position: relative; border-inline-start: 0; padding: 0; }
.intro__index { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; color: var(--fk-primary); font-size: .88rem; font-weight: 750; }
.intro__index::before { content: ""; width: 20px; height: 2px; border-radius: 99px; background: var(--fk-gold); }
.intro__head .eyebrow { margin-block-end: .7rem; }
.intro__head .section-title { max-width: 15ch; }
.intro__body { position: relative; max-width: 720px; padding: clamp(1.3rem, 3.6vw, 2.5rem); border: 1px solid var(--fk-line); border-radius: 18px; background: var(--fk-canvas); }
.intro__body > p { margin: 0; color: var(--fk-copy); font-size: 1.06rem; line-height: 2.15; text-align: start; }
.intro__quote-mark { position: absolute; inset-inline-end: 1.2rem; inset-block-start: -.52em; padding-inline: .2em; background: var(--fk-canvas); color: var(--fk-gold); font-family: Georgia, serif; font-size: 3.6rem; line-height: 1; }
.intro__body .link-arrow { margin-block-start: 1.25rem; }
.link-arrow { color: var(--fk-primary); }

/* Editorial title bands and every long-form page remain aligned to Persian reading direction. */
.page-banner { padding-block: clamp(2.3rem, 5vw, 4.1rem); }
.page-banner__title { max-width: 22ch; }
.page-banner__lead { text-align: start; }
.site-main .entry-content,
.site-main .entry-content p,
.site-main .entry-content li { text-align: start; }
.site-main .entry-content { line-height: 2.05; }
.content-article { border-radius: 20px; box-shadow: var(--fk-card-shadow); }
.inner-content-section { background: var(--fk-canvas); }
.layout-sidebar.inner-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
.sidebar__box { border-radius: 16px; }

/* Cards, steps, values and contact surfaces share one corner/rhythm system. */
.card { border-color: var(--fk-line); border-radius: 16px; box-shadow: 0 5px 20px rgba(15,55,65,.045); }
.card:hover { border-color: rgba(8,126,139,.35); box-shadow: var(--fk-card-shadow-hover); }
.card__title { line-height: 1.65; }
.card__text { color: var(--fk-copy); line-height: 1.9; text-align: start; }
.steps { gap: 1rem; align-items: stretch; }
.step { min-width: 0; min-height: 230px; padding: 1.4rem; border: 1px solid var(--fk-line); border-radius: 16px; box-shadow: 0 4px 16px rgba(15,55,65,.035); }
.step__num { width: 46px; height: 46px; border: 0; background: #edf5f4; color: var(--fk-primary); }
.step__title { min-height: 1.65em; font-size: 1.1rem; }
.step__text { color: var(--fk-copy); line-height: 1.9; text-align: start; }
.process .step:not(:last-child)::after { inset-inline-end: -1rem; width: 1rem; background: var(--fk-gold); }
.adv { min-height: 190px; padding: 1.25rem; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.045); }
.adv__title { line-height: 1.7; }
.adv__text { color: rgba(255,255,255,.74); line-height: 1.9; text-align: start; }
.section--deep .section-title { color: #fff; }
.section--deep .section-head { margin-block-end: 2rem; }

/* The final call-to-action has a strong but compact finish. */
.cta--home { isolation: isolate; overflow: hidden; padding-block: clamp(2.8rem, 6vw, 4.6rem); background: linear-gradient(115deg, #063944, #075966); }
.cta--home::before { width: 4px; background: linear-gradient(#f5e1a0, #bb9342); }
.cta__inner { position: relative; }
.cta__title { max-width: 24ch; font-size: clamp(1.5rem, 1.12rem + 1.6vw, 2.2rem); line-height: 1.55; }
.cta__text { max-width: 62ch; line-height: 1.9; text-align: start; }
.cta__ornament { position: absolute; z-index: -1; inset-inline-end: 10%; inset-block-start: -160%; width: 300px; aspect-ratio: 1; border: 1px solid rgba(237,212,127,.12); border-radius: 50%; box-shadow: 0 0 0 24px rgba(237,212,127,.025), 0 0 0 60px rgba(237,212,127,.02); }

/* Contact, forms and footer. */
.contact__info, .contact__form { border-radius: 18px; box-shadow: var(--fk-card-shadow); }
.fakhr-form input[type="text"], .fakhr-form input[type="tel"], .fakhr-form input[type="email"], .fakhr-form select, .fakhr-form textarea { border-radius: 10px; }
.site-footer { border-block-start: 3px solid var(--fk-gold); background: #052f39; }
.site-footer__grid { padding-block: clamp(3rem, 6vw, 4.7rem); }
.site-footer__title { font-size: 1.05rem; }
.site-footer__title::after { width: 38px; border-radius: 99px; }
.site-footer__bottom { background: rgba(0,0,0,.1); }

@media (min-width: 960px) {
  .home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 2rem; }
  .hero__title { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.2rem); }
  .home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 400px; }
  .intro__grid { gap: 2.5rem; }
}
@media (max-width: 699px) {
  .site-header__inner { min-height: 68px; }
  .hero--home { padding-block: 3.5rem 4.2rem; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 2.1rem; }
  .hero__content { max-width: none; }
  .hero__title { max-width: 18ch; font-size: clamp(2rem, 1.5rem + 3.8vw, 2.8rem); }
  .hero__visual { width: min(100%, 480px); }
  .hero__visual-label { inset-block-end: 0; }
  .home-services__grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; grid-template-rows: auto auto auto 1fr auto; }
  .service-card .card__title { min-height: 0; }
  .service-card .card__text { min-height: 0; }
  .service-card__list li { min-height: 0; }
  .intro__grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .intro__head .section-title { max-width: 22ch; }
  .intro__body { padding: 1.4rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 0; }
  .process .step:not(:last-child)::after { display: none; }
  .page-banner { padding-block: 2rem 2.6rem; }
  .section-head { margin-block-end: 1.7rem; }
  .cta__inner { align-items: stretch; }
  .cta__inner .btn { align-self: flex-start; }
}
@media (max-width: 420px) {
  .hero__overline { font-size: .8rem; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .service-card { padding: 1.2rem; }
  .section { padding-block: 3.2rem; }
  .page-banner__title { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
