/*
  Apex Gas & Heating — additions on top of style.css
  (hero, verification block, service categories, areas, gallery, floating call button).
  Loaded after style.css on every page.
*/

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 2000;
  padding: .6rem 1rem;
  background: var(--accent-color);
  color: #0D1B2E;
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 8px;
  color: #0D1B2E;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.brand-logo img.brand-img {
  display: block;
  height: 54px;
  width: auto;
}

#header-top .top-note {
  color: #cfe0ff;
  font-size: .84rem;
  font-weight: 600;
}

#header-top .top-note svg {
  color: var(--accent-color);
}

.top-call {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 60px;
  background: var(--accent-color);
  color: #0D1B2E;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all .25s ease-in-out;
}

.top-call:hover {
  background: #fff;
  color: #0D1B2E;
}

/* page header: cap the height on very tall screens */
.page-header {
  height: clamp(260px, 46vh, 420px);
  min-height: 0;
}

/* hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(80vh, 700px);
  overflow: hidden;
  border-radius: var(--bs-border-radius-lg);
  background: var(--secondary-color) center / cover no-repeat;
}

.hero .slider-video-overlay {
  background: linear-gradient(100deg, rgba(13,27,46,.86) 8%, rgba(13,27,46,.5) 55%, rgba(13,27,46,.12) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero .hero-anim {
  animation: banner-rise .9s cubic-bezier(.22,1,.36,1) both;
}

.hero .hero-anim.d2 { animation-delay: .12s; }
.hero .hero-anim.d3 { animation-delay: .26s; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .9rem;
}

.hero-title {
  color: #fff;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 1px 2px 4px rgba(0,0,0,.5);
}

.hero-lead {
  color: #e6eefb;
  max-width: 560px;
}

.hero-meta {
  color: #cfe0ff;
  font-size: .9rem;
  font-weight: 600;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.97);
  color: var(--black-color);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.hero-trust img {
  width: 54px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

.hero-trust strong {
  display: block;
  line-height: 1.25;
}

.hero-trust .reg {
  font-size: .9rem;
  color: var(--light-black-color);
}

.hero-trust a {
  font-weight: 700;
  font-size: .88rem;
  color: var(--primary-color);
}

.hero-trust a:hover {
  text-decoration: underline;
}

.btn-call {
  --bs-btn-color: #0D1B2E;
  --bs-btn-bg: var(--accent-color);
  --bs-btn-border-color: var(--accent-color);
  --bs-btn-hover-color: #0D1B2E;
  --bs-btn-hover-bg: #ffd83d;
  --bs-btn-hover-border-color: #ffd83d;
  --bs-btn-active-color: #0D1B2E;
  --bs-btn-active-bg: #ffd83d;
  --bs-btn-active-border-color: #ffd83d;
  box-shadow: 0 6px 16px rgba(255,200,0,.25);
}

/* verification */
.verify-card {
  background: #fff;
  border: 1px solid #e0e7f3;
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 18px 50px rgba(12,20,40,.08);
}

.verify-card .gas-safe-img {
  width: 150px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.verify-card .qr-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border: 1px solid #e0e7f3;
  border-radius: 14px;
}

.verify-list {
  margin: 0;
}

.verify-list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid #e7ecf5;
}

.verify-list > div:last-child {
  border-bottom: 0;
}

.verify-list dt {
  font-weight: 600;
  color: var(--gray-color);
}

.verify-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--black-color);
}

/* service categories */
.service-cat {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e7eaf0;
  box-shadow: 0 2px 10px rgba(12,20,40,.04);
}

.service-cat img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-cat .service-cat-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-cat .service-cat-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-block: .28rem;
  padding-inline-start: 1.7rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62rem;
  width: 1.05rem;
  height: 1.05rem;
  background: var(--primary-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-note {
  font-size: .9rem;
  color: var(--gray-color);
}

/* areas */
.area-chip {
  display: inline-block;
  margin: .25rem;
  padding: .45rem 1.05rem;
  border-radius: 60px;
  background: #fff;
  border: 1px solid #d5e0f1;
  color: var(--dark-color);
  font-weight: 600;
  font-size: .95rem;
}

.area-chip.is-focus {
  background: var(--primary-tint);
  border-color: #b9d0f0;
  color: var(--primary-dark);
}

/* work gallery: captions always visible (no hover on touch screens) */
figure.project-content {
  margin: 0;
}

.project-content .project-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.project-content:hover .project-img {
  opacity: 1;
  transform: scale(1.05);
}

.project-content .project-description {
  opacity: 1;
  transform: none;
  width: 100%;
  padding: 2.2rem 1rem .8rem !important;
  background: linear-gradient(to top, rgba(13,27,46,.88), rgba(13,27,46,0));
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12,20,40,.14);
  object-fit: cover;
}

/* floating call button */
.fab-call {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(30,95,191,.4);
  transition: transform .25s ease-in-out;
}

.fab-call:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.05);
}

.form-note {
  font-size: .88rem;
  color: var(--gray-color);
}

.footer-logo-card {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 14px;
  background: #fff;
}

.footer-logo-card img {
  display: block;
  height: 56px;
  width: auto;
}

@media (max-width: 767px) {
  .hero {
    min-height: 0;
  }

  .hero .slider-video-overlay {
    background: linear-gradient(180deg, rgba(13,27,46,.78) 0%, rgba(13,27,46,.66) 55%, rgba(13,27,46,.86) 100%);
  }

  .hero-title {
    font-size: 2rem;
  }

  .verify-card {
    padding: 1.4rem;
  }
}

@media (max-width: 575px) {
  .brand-logo img.brand-img {
    height: 44px;
  }
}

/* floating buttons: call + WhatsApp on the trailing side, back-to-top on the leading side */
html[dir] .whatsapp-fab-group {
  bottom: 20px;
  left: auto;
  right: 18px;
}

html[dir="rtl"] .whatsapp-fab-group {
  right: auto;
  left: 18px;
}

html[dir] .back-to-top {
  right: auto;
  left: 18px;
  bottom: 20px;
}

html[dir="rtl"] .back-to-top {
  left: auto;
  right: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-anim {
    animation: none;
  }
}

/* headings inside cards */
.service-cat h3,
.value-card h3,
.contact-info-card h2,
.contact-info-card h3,
.verify-card h3 {
  color: var(--black-color);
}

/* gas leak safety notice (Persian services page) */
.gas-warning {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #f0c400;
  border-inline-start: 6px solid var(--accent-color);
  border-radius: 14px;
  background: #fff9e0;
  color: var(--black-color);
}

.gas-warning a {
  color: var(--secondary-color);
}
