/* ==========================================================
   Concrete Towers — page sections
   ========================================================== */

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(620px, 92svh, 900px);
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 7rem;
  color: var(--white); background: var(--navy-900);
}
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slides { z-index: -2; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { transform: scale(1); }
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(to top, rgb(15 23 42 / 0.85), transparent 45%),
    linear-gradient(to left, rgb(15 23 42 / 0.94) 0%, rgb(15 23 42 / 0.72) 45%, rgb(15 23 42 / 0.2) 100%);
}
[dir="ltr"] .hero-shade {
  background:
    linear-gradient(to top, rgb(15 23 42 / 0.85), transparent 45%),
    linear-gradient(to right, rgb(15 23 42 / 0.94) 0%, rgb(15 23 42 / 0.72) 45%, rgb(15 23 42 / 0.2) 100%);
}
.hero-shade::after { /* blueprint grid */
  content: ""; position: absolute; inset: 0; opacity: 0.08;
  background-image: linear-gradient(rgb(255 255 255 / 0.6) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(255 255 255 / 0.6) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero-content { position: relative; }
.hero-title { font-size: var(--text-hero); line-height: 1.15; max-width: 16ch; text-wrap: balance; }
.hero-title span { display: block; }
.hero-title-accent {
  color: transparent; -webkit-text-stroke: 0;
  background: linear-gradient(90deg, #7fb8f5, #ffffff 70%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-lead { margin-block: 1.4rem 2.2rem; max-width: 52ch; font-size: var(--text-lg); color: #dbe4ef; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-controls { display: flex; align-items: center; gap: 1rem; margin-block-start: 3.5rem; }
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dot {
  width: 34px; height: 24px; padding: 0; border: 0; background: transparent; position: relative;
}
.hero-dot::before {
  content: ""; position: absolute; inset-inline: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 2px; background: rgb(255 255 255 / 0.35); transition: background-color var(--dur);
}
.hero-dot.is-active::before, .hero-dot:hover::before { background: var(--white); }
.hero-pause {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 0.5); background: transparent; color: var(--white);
}
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-caption { font-size: var(--text-sm); color: #b8c6d8; }

/* ---------- stats ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -4.5rem; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--blue-700); overflow: hidden;
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.6rem 1.75rem; }
.stat + .stat { border-inline-start: 1px solid var(--slate-200); }
.stat dd {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1.1; color: var(--blue-700); direction: ltr; text-align: start;
}
[dir="rtl"] .stat dd { text-align: end; }
.stat dt { margin-top: 0.35rem; font-size: var(--text-sm); color: var(--slate-600); }

/* ---------- about ---------- */
.about {
  background-color: var(--slate-50);
  background-image: linear-gradient(rgb(0 76 151 / 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(0 76 151 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.about-media { position: relative; padding-block-end: 18%; padding-inline-end: 14%; }
.about-img-main img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3.3; object-fit: cover; width: 100%; }
.about-img-sub {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 52%;
  border: 6px solid var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-img-sub img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; inset-inline-start: -0.75rem; top: 1.5rem;
  display: flex; flex-direction: column; padding: 0.9rem 1.2rem; border-radius: var(--radius-md);
  background: var(--blue-700); color: var(--white); box-shadow: var(--shadow-md);
}
.about-badge strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; direction: ltr; }
.about-badge span { font-size: 0.8rem; opacity: 0.9; }
.about-copy .section-title { margin-block-end: 1.25rem; }
.about-copy p { color: var(--slate-600); margin-block-end: 1rem; }
.checklist { display: grid; gap: 0.75rem; margin-block-start: 1.5rem; }
.checklist li { position: relative; padding-inline-start: 2.1rem; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.3em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--blue-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- services ---------- */
.section-head { max-width: 640px; margin-block-end: clamp(2rem, 4vw, 3.25rem); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), border-color var(--dur);
}
.service-card picture { overflow: hidden; }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease-out); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover img { transform: scale(1.06); }
.service-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.4rem 1.4rem; }
.service-num {
  position: absolute; top: -1.35rem; inset-inline-end: 1.2rem;
  display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: var(--radius-sm);
  background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.service-body h3 { font-size: var(--text-h3); margin-block-end: 0.6rem; }
.service-body p { color: var(--slate-600); font-size: 0.95rem; margin-block-end: 1.2rem; flex: 1; }
.service-card--feature { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.service-card--feature .service-body p { color: #d6e6f8; }
.service-card--feature .text-link { color: var(--white); }
.service-card--feature .service-num { background: var(--white); color: var(--blue-700); }

/* ---------- fleet ---------- */
.fleet { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 10vw, 9rem); color: var(--white); }
.fleet-bg { position: absolute; inset: 0; z-index: -1; }
.fleet-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.fleet-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgb(15 23 42 / 0.9), rgb(15 23 42 / 0.35)); }
[dir="ltr"] .fleet-bg::after { background: linear-gradient(to right, rgb(15 23 42 / 0.9), rgb(15 23 42 / 0.35)); }
.fleet-panel {
  max-width: 560px; padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: var(--radius-lg);
  background: rgb(15 23 42 / 0.55); border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fleet-panel .section-title { margin-block-end: 1rem; }
.fleet-panel > p { color: #d4dde9; }
.fleet-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block-start: 1.75rem; padding-block-start: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.18); }
.fleet-specs strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: #9cc7f5; direction: ltr; unicode-bidi: isolate; }
.fleet-specs span { font-size: var(--text-sm); color: #c5d1e0; }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.35rem; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 999px; }
.filter {
  min-height: 40px; padding: 0.4rem 1.1rem; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--slate-600);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.filter:hover { color: var(--blue-700); }
.filter.is-active { background: var(--navy-900); color: var(--white); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, auto); gap: 1.1rem; }
.project {
  position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--navy-800); min-height: 260px;
  animation: pop-in 480ms var(--ease-out) both;
}
.project[hidden] { display: none; }
.project--wide { grid-column: span 2; grid-row: span 2; }
.project picture, .project img { position: absolute; inset: 0; width: 100%; height: 100%; }
.project img { object-fit: cover; transition: transform 800ms var(--ease-out); }
.project .pos-start img { object-position: 0% center; }
.project .pos-end img { object-position: 100% center; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(15 23 42 / 0.92) 5%, rgb(15 23 42 / 0.1) 60%); transition: background-color var(--dur); }
.project-info { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 1.4rem; color: var(--white); }
.project h3 { font-size: var(--text-h3); }
.project--wide h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); }
.project p { max-height: 0; opacity: 0; overflow: hidden; color: #d4dde9; font-size: 0.925rem; transition: max-height var(--dur) var(--ease-out), opacity var(--dur), margin var(--dur); }
.project:hover img { transform: scale(1.06); }
.project:hover::after { background-color: rgb(0 76 151 / 0.25); }
.project:hover p { max-height: 6rem; opacity: 1; margin-block-start: 0.4rem; }
.tag { display: inline-block; margin-block-end: 0.6rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--blue-700); font-size: 0.78rem; font-weight: 600; }
@media (hover: none) { .project p { max-height: none; opacity: 1; margin-block-start: 0.4rem; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- library ---------- */
.library { background: var(--slate-50); border-top: 1px solid var(--slate-200); }
.library-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.library-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.library-head .section-title { margin-block-end: 1rem; }
.library-head p { color: var(--slate-600); }
.doc-list { display: grid; gap: 0.85rem; }
.doc {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.25rem;
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur), transform var(--dur) var(--ease-out);
}
.doc-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 3rem; height: 3.5rem; border-radius: 4px 12px 4px 4px;
  background: #fde8e8; color: #b42318; font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
}
.doc-meta { flex: 1; min-width: 0; }
.doc-meta h3 { font-size: 1.02rem; }
.doc-meta p { font-size: 0.82rem; color: var(--slate-500); direction: ltr; text-align: end; }
[dir="ltr"] .doc-meta p { text-align: start; }
.doc-soon {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.4rem 0.9rem;
  border-radius: 999px; background: var(--slate-50); border: 1px dashed var(--slate-300); color: var(--slate-600);
  font-family: var(--font-display); font-weight: 500; font-size: 0.82rem; white-space: nowrap; cursor: default;
}
.doc-soon svg { width: 16px; height: 16px; }

/* ---------- contact ---------- */
.contact {
  color: var(--white); background-color: var(--navy-800);
  background-image: radial-gradient(ellipse at 85% 0%, rgb(0 76 151 / 0.55), transparent 55%),
                    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact-copy .section-title { margin-block-end: 1rem; }
.contact-copy p { color: #cfd9e6; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white); color: var(--navy-900); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.9rem; border: 1.5px solid var(--slate-300); border-radius: var(--radius-sm);
  background: var(--slate-50); transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-700); background: var(--white); box-shadow: 0 0 0 4px rgb(0 76 151 / 0.15); }
.field [aria-invalid="true"] { border-color: #b42318; }
.form-foot { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { font-size: 0.9rem; font-weight: 500; }
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: #067647; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #b6c2d3; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); padding-block: 4rem 3rem; }
.footer-logo { display: inline-block; padding: 0.6rem 0.8rem; background: var(--white); border-radius: var(--radius-md); margin-block-end: 1rem; }
.footer-logo img { width: 72px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white); margin-block-end: 0.5rem; }
.footer-title { font-size: 1.05rem; color: var(--white); margin-block-end: 1.1rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.75rem; margin-block-end: 0.9rem; }
.phones { display: flex; flex-direction: column; }
.footer-contact svg { width: 20px; height: 20px; flex-shrink: 0; color: #7fb8f5; }
.footer-contact a:hover, .to-top:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 0.6rem; margin-block-start: 1.4rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.18); color: var(--white);
  transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.social svg { width: 20px; height: 20px; }
.social a:hover { background: var(--blue-700); border-color: var(--blue-700); transform: translateY(-2px); }
.map-frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12); background-color: var(--navy-800);
  background-image: linear-gradient(rgb(127 184 245 / 0.12) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(127 184 245 / 0.12) 1px, transparent 1px),
                    radial-gradient(circle at 55% 45%, rgb(0 76 151 / 0.6), transparent 60%);
  background-size: 28px 28px, 28px 28px, auto;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  border: 0; background: transparent; color: var(--white); font-family: var(--font-display); font-weight: 600;
}
.map-load svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--blue-700); box-shadow: 0 0 0 10px rgb(0 76 151 / 0.3); transition: transform var(--dur) var(--ease-out); }
.map-load:hover svg { transform: translateY(-4px); }
.footer-bar { border-top: 1px solid rgb(255 255 255 / 0.08); }
.footer-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-block: 1.25rem; font-size: 0.875rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--slate-200); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; }
  .map-frame { aspect-ratio: 21 / 9; }
}
@media (max-width: 860px) {
  .about-grid, .library-grid, .contact-grid { grid-template-columns: 1fr; }
  .library-head { position: static; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project--wide { grid-row: span 1; }
}
@media (max-width: 600px) {
  .hero { padding-block-end: 6rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .service-grid, .project-grid, .footer-grid { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; }
  .contact-form { grid-template-columns: 1fr; }
  .fleet-specs { grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
  .fleet-specs strong { font-size: 1.15rem; }
  .stat { padding: 1.2rem 1.1rem; }
  .map-frame { aspect-ratio: 4 / 3; }
  .doc { flex-wrap: wrap; }
  .doc-soon { margin-inline-start: auto; }
}
