/*
Theme Name: PVI Inspection
Description: Pipe Vision Inspection website design
Version: 1.0.2
Requires PHP: 7.4
*/
@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #142b43;
  --muted: #456076;
  --deep: #0c2032;
  --teal: #b5e584;
  --teal-dark: #275b28;
  --paper: #f5f8fb;
  --line: #d5e0ea;
  font-family: Manrope, "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-weight: 500; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid #28815a; outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
p + p { margin-top: .85rem; }
.wrap { width: min(100% - 4rem, 84rem); margin-inline: auto; }
.skip { position: absolute; z-index: 4; translate: 0 -150%; padding: .65rem 1rem; background: white; }
.skip:focus { translate: 0; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; }
.logo { width: 5.7rem; height: auto; }
.header nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.2rem, 2vw, 1.8rem); }
.header nav a { display: inline-block; padding: .55rem .75rem; text-decoration: none; font-weight: 650; font-size: .96rem; }
.header nav a:hover, .header nav a[aria-current="page"] { color: var(--teal-dark); text-decoration: underline; text-underline-offset: .4em; }
.header nav .nav-contact { border: 1px solid #b8cbdb; border-radius: .35rem; padding-inline: 1rem; }
.hero { position: relative; isolation: isolate; background: var(--deep); color: white; }
.hero-image { position: absolute; z-index: -1; inset: 0 0 0 38%; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep), #0c203255 35%, transparent 70%); }
.photo-credit { position: absolute; z-index: 1; right: 1rem; bottom: 1rem; background: #0c2032df; padding: .2rem .55rem; color: #eef8f6; font-size: .8rem; }
.hero-inner { padding-block: clamp(5rem, 9vw, 9rem); }
.eyebrow { margin: 0 0 .95rem; color: var(--teal-dark); font-size: .88rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 750; }
.hero .eyebrow, .contact .eyebrow { color: var(--teal); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.038em; }
h1 { font-weight: 800; font-size: clamp(2.85rem, 6.2vw, 6.1rem); max-width: 13ch; }
h1 em { color: var(--teal); font-style: normal; }
h2 { font-weight: 800; font-size: clamp(2.15rem, 4vw, 4rem); }
h3 { font-weight: 750; font-size: 1.4rem; letter-spacing: -.025em; }
.hero p:not(.eyebrow) { max-width: 29rem; margin-top: 1.15rem; color: #e2edf6; font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.55rem; }
.button { display: inline-block; padding: .78rem 1.15rem; border: 1px solid transparent; border-radius: .35rem; background: var(--teal); color: var(--deep); font-weight: 750; text-decoration: none; }
.button:hover { background: #d0f1ad; }
.button.secondary { border-color: #819c9b; background: #0c203299; color: white; }
.button.secondary:hover { background: #27434a; }
.text-link { color: var(--teal-dark); font-weight: 750; }
.scope-rail { background: #142f46; color: #e1efe9; border-top: 1px solid #385056; }
.scope-rail .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.scope-rail span { padding: 1rem .8rem; border-inline-start: 1px solid #385056; text-align: center; font-size: .92rem; font-weight: 650; }
.scope-rail span:last-child { border-inline-end: 1px solid #385056; }
.section { padding-block: clamp(3.4rem, 7vw, 6.5rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.feature-grid, .service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.5rem); }
.feature { position: relative; display: block; overflow: hidden; background: var(--deep); color: white; border-radius: .55rem; isolation: isolate; }
.feature img { width: 100%; aspect-ratio: 1.22; object-fit: cover; transition: transform .25s ease; }
.feature::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #091820f5); }
.feature span { position: absolute; z-index: 1; inset: auto 1.25rem 1.15rem; font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 730; }
.feature:hover img { transform: scale(1.035); }
.image-note, figcaption { font-size: .875rem; color: var(--muted); margin-top: .55rem; }
.field, .equipment, .work { background: #eaf1f7; }
.split, .field-grid, .service-lead, .contact-grid, .inspection-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.6rem, 5.5vw, 6rem); }
.split p:not(.eyebrow), .field p:not(.eyebrow), .service-intro > p:last-child, .intro, .inspection-details p, .inspection-note { color: var(--muted); margin-top: 1rem; }
.split .button, .field .button, .split .text-link, .inspection-details .button { margin-top: 1rem; }
.lede { font-size: 1.18rem; }
.field img, .photo-frame img { width: 100%; aspect-ratio: 1.55; height: auto; object-fit: cover; border-radius: .55rem; }
.application-title { margin: clamp(2.5rem, 5vw, 5rem) 0 1.4rem; }
.service-cards article, .cases article { overflow: hidden; border: 1px solid var(--line); background: white; border-radius: .55rem; }
.service-cards img, .cases img { width: 100%; aspect-ratio: 1.65; height: auto; object-fit: cover; }
.service-cards article div, .cases article div { padding: 1.3rem; }
.service-cards p, .cases p { color: var(--muted); margin-top: .65rem; }
.inspection-details { margin-top: 2.65rem; align-items: start; }
.inspection-note { max-width: 53rem; margin-top: 2rem; padding-inline-start: 1rem; border-inline-start: 3px solid #299c79; }
.cases { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
.contact { background: var(--deep); color: white; }
.contact h1 { font-size: clamp(2.85rem, 5.5vw, 5.4rem); }
.contact p { color: #dbe9e7; margin: 1rem 0; }
.contact .button { margin: .25rem .45rem .25rem 0; }
address { font-style: normal; padding: clamp(1.35rem, 4vw, 2.8rem); border: 1px solid #476467; background: #142f46; border-radius: .55rem; overflow-wrap: anywhere; }
address p:last-child { margin-bottom: 0; }
.footer { padding-block: 2.65rem; background: #091b2c; color: #e0efec; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.5rem; }
.footer-brand { color: white; font-size: 1.25rem; font-weight: 750; }
.footer p { margin-top: .35rem; color: #b7cbdc; }
.footer nav, .footer-contact { display: grid; gap: .45rem; align-content: start; justify-items: start; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .25rem .8rem; padding-block: .45rem .6rem; }
  .header nav a { padding-inline: .42rem; }
  .header nav .nav-contact { padding-inline: .55rem; }
  .hero-image { inset: 0; }
  .hero-image::after { background: linear-gradient(90deg, #0c2032f2, #0c20327a); }
  .scope-rail .wrap, .feature-grid, .service-cards, .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scope-rail span { border: 0; }
  .scope-rail span:last-child { border: 0; }
  .split, .field-grid, .service-lead, .contact-grid, .inspection-details { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .section-heading { flex-wrap: wrap; }
  .feature-grid, .service-cards, .cases, .footer-grid { grid-template-columns: 1fr; }
  .feature img { aspect-ratio: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
  .feature img { transition: none; }
}

.hero-image { z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; font-size: clamp(2.85rem, 5.45vw, 5.15rem); }
.hero .photo-credit { z-index: 2; }
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero-image { position: relative; inset: auto; order: 1; }
  .hero-image img { aspect-ratio: 1.85; }
  .hero-image::after { background: linear-gradient(180deg, #0c203233, transparent 35%); }
  .hero-inner { padding-block: 3.1rem 2rem; }
}

.tank-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.tank-views img { aspect-ratio: .825; }

.service-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.arabic-services {
  max-width: 54rem;
  margin: 2.5rem 0 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .55rem;
  font-family: Tahoma, Arial, sans-serif;
}
.arabic-services h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.4; letter-spacing: normal; }
.arabic-services p { margin-top: .75rem; color: var(--muted); line-height: 1.85; }
.arabic-services .button { margin-top: 1rem; }
