/* ==========================================================================
   HTES – Hitech Elevators Solution · Homepage styles
   Structure: tokens → base → buttons → topbar/header → hero → features →
   products → about → services → why → projects → CTA → footer → modal →
   utilities → responsive → reduced motion
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy: #081F3B;
  --navy-2: #0c2a4d;
  --blue: #0866C6;
  --royal: #004A9F;
  --sky: #EFF7FF;
  --white: #FFFFFF;
  --text: #14243A;
  --muted: #65748B;
  --muted-strong: #4d5d75;
  --line: #E1EAF5;
  --line-dark: rgba(255, 255, 255, .14);
  --light-blue: #5aa9ff; /* accent on navy backgrounds */

  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(8, 31, 59, .06);
  --shadow-md: 0 14px 34px rgba(8, 31, 59, .13);

  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --section-pad: clamp(64px, 8vw, 104px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; letter-spacing: -.015em; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
:focus-visible { outline: 3px solid var(--light-blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .85rem;
}
.eyebrow-light { color: var(--light-blue); }

.section { padding: var(--section-pad) 0; }
.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 1rem;
}
.section-title::after { /* short blue accent under headings, as in the reference */
  content: ""; display: block; width: 44px; height: 3px; background: var(--blue);
  border-radius: 3px; margin-top: 14px;
}
.services .section-title::after, .cta .section-title::after { background: var(--light-blue); }
.section-text { color: var(--muted-strong); max-width: 60ch; }

/* ---------- 3. Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 700; border-radius: 6px; letter-spacing: .01em; transition: all .25s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.btn i { transition: transform .25s var(--ease); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }

.btn-htes { background: var(--blue); color: #fff; border: 2px solid var(--blue); padding: .7rem 1.5rem; }
.btn-htes:hover, .btn-htes:focus-visible { background: var(--royal); border-color: var(--royal); color: #fff; box-shadow: 0 10px 22px rgba(0, 74, 159, .28); transform: translateY(-1px); }
.btn-htes:active { transform: translateY(0); box-shadow: none; }

.btn-htes-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); padding: .7rem 1.5rem; }
.btn-htes-outline:hover, .btn-htes-outline:focus-visible { background: var(--blue); color: #fff; transform: translateY(-1px); }

.btn-light-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .55); padding: .7rem 1.5rem; }
.btn-light-outline:hover, .btn-light-outline:focus-visible { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-1px); }

.btn-lg-htes { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-sm-htes { padding: .5rem 1.1rem; font-size: .9rem; }

/* ---------- 4. Topbar & header ---------- */
.topbar { background: var(--navy); color: #dbe6f5; font-size: .82rem; padding: 8px 0; }
.topbar .container { flex-wrap: nowrap; }
.topbar-item { display: inline-flex; align-items: center; gap: .5rem; color: #dbe6f5; white-space: nowrap; }
.topbar-item i { color: var(--light-blue); }
a.topbar-item:hover { color: #fff; }
.social-row { display: flex; gap: .55rem; }
.social-row a {
  width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 6px;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: .9rem; transition: background .2s, transform .2s;
}
.social-row a:hover { background: var(--blue); transform: translateY(-2px); color: #fff; }

.site-header { background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .3s var(--ease); z-index: 1030; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(8, 31, 59, .1); }
.site-header .navbar { padding: 10px 0; }
.navbar-brand { padding: 0; margin-right: 1rem; display: inline-flex; align-items: center; min-height: 62px; }
.navbar-brand img { height: 62px; width: auto; display: block; }
.navbar-toggler { border: 1px solid var(--line); padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(8, 102, 198, .25); }

.navbar .nav-link {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--text);
  padding: .6rem .9rem; position: relative;
}
.navbar .nav-link::after { /* smooth hover underline */
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--blue); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .dropdown-toggle::after { /* Bootstrap caret: keep, but our underline uses ::after too */
  position: static; transform: none; background: none; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; height: 0; margin-left: .45em; display: inline-block; vertical-align: .2em;
}
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .5rem; font-size: .93rem; }
.dropdown-item { border-radius: 6px; padding: .5rem .8rem; font-weight: 500; color: var(--text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--sky); color: var(--blue); }
@media (min-width: 992px) and (hover: hover) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
.nav-cta { white-space: nowrap; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.hero-media { position: relative; order: -1; height: clamp(240px, 56vw, 340px); }
.hero-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-media::after { /* fade into the page on mobile */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0)); pointer-events: none;
}
.hero-arrows { position: absolute; right: 16px; bottom: 28px; z-index: 3; display: flex; gap: 8px; }
.hero-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92);
  color: var(--navy); box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: background .2s, color .2s, transform .2s;
}
.hero-arrow:hover { background: var(--blue); color: #fff; transform: scale(1.06); }

.hero-inner { position: relative; z-index: 2; padding-top: 8px; padding-bottom: 48px; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--blue); }
.hero-lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted-strong); max-width: 48ch; margin-bottom: 1.75rem; }

.hero-dots { display: flex; align-items: center; gap: 2px; margin-top: 2rem; }
.hero-dots button { /* 24px hit area, small visible dot */
  width: 24px; height: 24px; border: 0; background: none; padding: 0; position: relative;
}
.hero-dots button:not(.hero-toggle)::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: #c3d0e2; transform: translate(-50%, -50%); transition: all .3s var(--ease);
}
.hero-dots button.is-active::before { background: var(--blue); width: 24px; border-radius: 6px; }
.hero-toggle { margin-left: 10px; color: var(--muted-strong); font-size: 1.1rem; border-radius: 50%; display: grid; place-items: center; }
.hero-toggle:hover { color: var(--blue); }

@media (min-width: 992px) {
  .hero { display: block; min-height: clamp(520px, 44vw, 660px); }
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; height: auto; order: 0; }
  .hero-media::after {
    inset: 0; height: auto; width: 48%;
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, .85) 35%, rgba(255, 255, 255, 0) 100%);
  }
  .hero-arrows { bottom: 24px; right: 24px; }
  .hero-inner { display: flex; align-items: center; min-height: inherit; padding-top: 56px; padding-bottom: 56px; }
}

/* ---------- 6. Feature strip ---------- */
.features { background: var(--sky); padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 26px 22px; position: relative; transition: transform .3s var(--ease); }
.feature > i { font-size: 2.1rem; line-height: 1; color: var(--blue); transition: transform .3s var(--ease); }
.feature h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 4px; }
.feature p { font-size: .84rem; color: var(--muted-strong); margin: 0; line-height: 1.5; }
.feature:hover > i { transform: translateY(-3px) scale(1.08); }
@media (min-width: 992px) {
  .feature + .feature::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: #cfdcec; }
}
@media (max-width: 991.98px) {
  .feature { padding: 20px 12px; border-bottom: 1px solid #d9e5f3; }
  .feature:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 575.98px) {
  .feature { flex-direction: column; gap: 10px; }
}

/* ---------- 7. Placeholder images (.ph) ---------- */
.ph { position: relative; margin: 0; overflow: hidden; background: linear-gradient(135deg, var(--navy-2) 0%, #1b4f8f 100%); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph.is-missing img { display: none; }
.ph.is-missing::after { /* visible instruction while the photo file is missing */
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 16px; font: 600 .78rem/1.4 var(--font-body); color: rgba(255, 255, 255, .8); letter-spacing: .02em;
}
.is-missing-logo img { display: none; }

/* ---------- 8. Products ---------- */
.section-head { margin-bottom: 2.25rem; }
.product-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover, .product-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card .ph { aspect-ratio: 2 / 1; }
.product-card .ph img { transition: transform .8s var(--ease); }
.product-card:hover .ph img { transform: scale(1.07); }
.product-body { display: flex; align-items: center; gap: 14px; padding: 18px 18px 20px; }
.product-body > div { flex: 1; min-width: 0; }
.product-icon { font-size: 1.9rem; color: var(--blue); flex: none; }
.product-body h3 { font-size: 1.08rem; font-weight: 800; margin: 0 0 4px; }
.product-body p { font-size: .88rem; color: var(--muted-strong); margin: 0; line-height: 1.5; }
.circle-link {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue);
  display: grid; place-items: center; transition: all .25s var(--ease);
}
.product-card:hover .circle-link, .circle-link:focus-visible { background: var(--blue); color: #fff; transform: translateX(3px); }
.circle-link::after { border-radius: var(--radius); } /* stretched-link overlay follows card radius */

.product-card-sm { display: grid; grid-template-columns: 38% 1fr; }
.product-card-sm .ph { aspect-ratio: auto; min-height: 120px; height: 100%; }
.product-card-sm .product-body { padding: 14px 16px; }
.product-card-sm .product-icon { font-size: 1.6rem; align-self: flex-start; margin-top: 2px; }
.product-card-sm .product-body h3 { font-size: 1rem; }
.product-card-sm .product-body p { font-size: .82rem; }
@media (max-width: 575.98px) {
  .product-card-sm { grid-template-columns: 34% 1fr; }
  .product-card-sm .product-icon { display: none; }
}

/* ---------- 9. About ---------- */
.about { background: #fff; border-top: 1px solid var(--line); }
.about-photo { height: 100%; min-height: 340px; }
.about-photo img { position: absolute; inset: 0; }
.about-content { padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px); height: 100%; display: flex; align-items: center; }
.about-content .section-title { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
.about-content .section-text { font-size: .95rem; margin-bottom: 1.5rem; }
.about-list { list-style: none; padding: 0; margin: 0; }
.about-content .col-xl-5 { padding-top: .35rem; }
.about-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--text); transition: transform .25s var(--ease), color .25s; }
.about-list li:last-child { border-bottom: 0; }
.about-list li:hover { transform: translateX(4px); color: var(--blue); }
.about-list i { font-size: 1.35rem; color: var(--blue); }

/* ---------- 10. Services ---------- */
.services {
  position: relative; background: var(--navy); color: #fff; padding: var(--section-pad) 0; overflow: hidden; isolation: isolate;
}
.services::before { /* subtle architectural photo; add assets/images/services-bg.webp (optional) */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../images/services-bg.webp") center / cover no-repeat; opacity: .22;
}
.services::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 31, 59, .96) 30%, rgba(8, 31, 59, .72)); }
.service-card {
  height: 100%; padding: 28px 24px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.service-card > i { font-size: 2.2rem; color: var(--light-blue); display: block; margin-bottom: 1rem; transition: transform .35s var(--ease); }
.service-card h3 { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: .55rem; }
.service-card p { color: #c5d3e8; font-size: .92rem; margin: 0; }
.service-card:hover { transform: translateY(-6px); border-color: var(--light-blue); background: rgba(255, 255, 255, .08); }
.service-card:hover > i { transform: scale(1.1); }

/* ---------- 11. Why choose ---------- */
.why { background: var(--sky); padding: clamp(56px, 7vw, 88px) 0; }
.why .section-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow-sm); transition: background .25s, color .25s, transform .25s; }
.why-item:hover .why-icon { background: var(--blue); color: #fff; transform: scale(1.06); }
.why-item h3 { font-size: 1.05rem; font-weight: 800; margin: 2px 0 4px; }
.why-item p { margin: 0; color: var(--muted-strong); font-size: .92rem; }

/* ---------- 12. Testimonials ---------- */
.testimonials {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3561 100%);
  color: #fff; overflow: hidden;
}
.testimonials .eyebrow { color: var(--light-blue); }
.testimonials .section-title { color: #fff; }
.testimonials .section-title::after { margin-left: auto; margin-right: auto; }
.testimonial-slider { margin-top: 2.25rem; }
.testimonial-viewport { overflow: hidden; padding: 6px 4px 24px; }
.testimonial-track {
  display: flex; gap: 22px; transition: transform .55s var(--ease); will-change: transform;
}
.testimonial-card {
  position: relative; flex: 0 0 calc((100% - 44px) / 3); min-width: 0;
  padding: 34px 28px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18); overflow: hidden;
}
.testimonial-quote {
  position: absolute; top: 8px; right: 18px; color: rgba(8, 102, 198, .1);
  font-size: 4.5rem; line-height: 1;
}
.testimonial-review {
  position: relative; margin: 0 0 1.4rem;
  color: var(--muted-strong); font-size: .96rem; line-height: 1.75;
}
.testimonial-name {
  display: flex; align-items: center; gap: 10px; margin: auto 0 0;
  color: var(--navy); font-family: var(--font-head); font-size: 1rem; font-weight: 800;
}
.google-profile {
  width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; border: 1px solid #dfe5ec;
  box-shadow: 0 2px 7px rgba(8, 31, 59, .12); font: 800 1rem/1 Arial, sans-serif;
  background-image: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 45%, #fbbc05 0 68%, #ea4335 0 85%, #4285f4 0);
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
.testimonial-placeholder { border-style: dashed; }
.testimonial-placeholder .testimonial-review { color: #7a8799; font-style: italic; }
.testimonial-controls { display: flex; justify-content: center; gap: 10px; }
.testimonial-arrow {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1);
  color: #fff; transition: background .2s, transform .2s;
}
.testimonial-arrow:hover,
.testimonial-arrow:focus-visible { background: var(--blue); transform: translateY(-2px); }
@media (max-width: 991.98px) {
  .testimonial-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 575.98px) {
  .testimonial-track { gap: 14px; }
  .testimonial-card { flex-basis: 100%; padding: 30px 24px 25px; }
}

/* ---------- 13. Projects ---------- */
.project-grid { display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); }
.project { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.project img { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.project:hover img { transform: scale(1.08); }
.project::before { /* bottom shade so labels stay readable on any photo */
  content: ""; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(to top, rgba(8, 31, 59, .85), rgba(8, 31, 59, 0)); pointer-events: none;
}
.project figcaption {
  position: absolute; left: 12px; bottom: 10px; right: 12px; z-index: 2; color: #fff;
  font: 700 .86rem/1.3 var(--font-head); letter-spacing: .01em;
}
@media (max-width: 991.98px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .project:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* ---------- 13. CTA ---------- */
.cta { position: relative; background: linear-gradient(120deg, var(--navy) 0%, var(--royal) 140%); padding: clamp(56px, 7vw, 88px) 0; color: #fff; overflow: hidden; }
.cta::before { /* faint shaft lines referencing a lift shaft */
  content: ""; position: absolute; inset: 0; opacity: .07;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 96px);
}
.cta .section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-text { color: #d3e0f2; font-size: 1.05rem; max-width: 52ch; }
.cta .btn { width: 100%; }
@media (min-width: 576px) and (max-width: 991.98px) { .cta .btn { width: auto; } }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--navy); color: #c5d3e8; padding-top: clamp(48px, 6vw, 72px); font-size: .92rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: 8px; padding: 8px 12px; margin-bottom: 1.1rem; }
.footer-logo img { height: 48px; width: auto; display: block; }
.footer-about { max-width: 38ch; margin-bottom: 1.25rem; }
.footer-title { font-size: .95rem; font-weight: 800; color: #fff; margin-bottom: 1rem; letter-spacing: .02em; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: #c5d3e8; transition: color .2s, padding-left .2s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-links a:hover { padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: .85rem; align-items: flex-start; }
.footer-contact i { color: var(--light-blue); margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 20px 0 26px; font-size: .82rem; color: #9fb2cc; }

/* ---------- Floating quick contact ---------- */
.floating-contact {
  position: fixed; right: 22px; bottom: 24px; z-index: 1025;
  display: flex; flex-direction: column; gap: 12px;
}
.floating-contact__btn {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; font-size: 1.45rem;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(8, 31, 59, .25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .2s;
}
.floating-contact__btn--whatsapp { background: #25d366; }
.floating-contact__btn--call { background: var(--blue); }
.floating-contact__btn:hover,
.floating-contact__btn:focus-visible {
  color: #fff; transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(8, 31, 59, .32);
}
.floating-contact__btn:active { transform: scale(.96); }

/* ---------- 15. Modal / form ---------- */
.modal-content { border: 0; border-radius: 14px; box-shadow: 0 30px 70px rgba(8, 31, 59, .35); }
.modal-header { border-bottom: 1px solid var(--line); padding: 22px 26px 16px; align-items: flex-start; }
.modal-title { font-size: 1.35rem; font-weight: 800; }
.modal-sub { color: var(--muted-strong); font-size: .9rem; margin-top: 2px; }
.modal-body { padding: 22px 26px 28px; }
.form-label { font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 8px; border: 1.5px solid #d5e0ee; padding: .65rem .85rem; color: var(--text); }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 102, 198, .15); }
.form-status { min-height: 1.4rem; font-size: .9rem; margin-bottom: .75rem; }
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: #067647; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 16. Scroll reveal (only active when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 17. Small-screen refinements ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 12px 0 18px; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link { padding: .7rem .25rem; border-bottom: 1px solid var(--line); }
  .nav-cta { width: 100%; margin-top: 16px; }
  .dropdown-menu { box-shadow: none; border: 0; background: var(--sky); margin-bottom: 6px; }
  .about-photo { height: 320px; min-height: 0; }
}
@media (max-width: 575.98px) {
  .topbar { font-size: .78rem; }
  .hero-copy .btn { flex: 1 1 100%; }
  .hero-arrows { bottom: 20px; }
  .section-head .btn { width: 100%; }
  .about-photo { height: 260px; }
  .floating-contact { right: 14px; bottom: 16px; gap: 10px; }
  .floating-contact__btn { width: 50px; height: 50px; font-size: 1.25rem; }
}

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-slide img { transform: none; }
}

/* Logo fallback text if htes-logo.png is missing */
.is-missing-logo::after { content: "HTES"; font: 800 1.9rem/1 var(--font-head); color: var(--navy); letter-spacing: -.02em; }
.footer-contact a, .footer-contact span { overflow-wrap: anywhere; min-width: 0; }
.hero-slide.ph { position: absolute; }

@media (max-width: 575.98px) { .navbar-brand img { height: 52px; } }
