/*
Theme Name: Elevated Vision
Theme URI: https://elevatedvision.co.uk/
Author: Elevated Vision
Description: Bespoke one-page heritage survey and 3D documentation theme.
Version: 1.1.4
Text Domain: elevated-vision
*/

:root {
  --ink: #080a09;
  --paper: #f7f6f3;
  --line: #d8d4cd;
  --green: #002b27;
  --green-deep: #001b18;
  --green-black: #001311;
  --pale-green: #dfe7e3;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(calc(100% - 56px), 1180px); margin-inline: auto; }
.eyebrow {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.dot { color: inherit; }

.hero {
  position: relative;
  min-height: 585px;
  overflow: hidden;
  background: #020504;
  color: white;
}
.hero-image {
  position: absolute;
  inset: 0;
  left: 41%;
  opacity: .5;
  background: url("assets/ev-hero-scan.png") 44% center / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,4,3,.96) 0%, rgba(0,7,6,.85) 27%, rgba(0,8,7,.36) 52%, rgba(0,0,0,.05) 78%),
    linear-gradient(0deg, rgba(0,7,6,.32), transparent 45%);
}
.site-header {
  position: relative;
  z-index: 5;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 23px;
  font-weight: 300;
  letter-spacing: -.04em;
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(30px, 3.2vw, 56px); }
.nav a { color: rgba(255,255,255,.94); font-size: 14px; }
.nav a:last-child {
  min-width: 150px;
  padding: 13px 24px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 8px;
  text-align: center;
}
.nav a:hover, footer nav a:hover { opacity: .72; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 28px; height: 2px; margin: 6px 0; background: white; }
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 44px;
}
.hero-content .eyebrow { font-size: 16px; font-weight: 400; letter-spacing: .18em; text-transform: none; }
h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: .99;
  letter-spacing: -.055em;
}
.hero-copy {
  max-width: 470px;
  margin-bottom: 27px;
  font-size: 15px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 18px; }
.button {
  min-width: 176px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.7);
  color: white;
  font-size: 12px;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #202321; }

.section, .technology, .model-gallery, .contact { position: relative; }
.section { padding: 52px 0 38px; background: var(--paper); }
.section h2, .technology h2, .model-gallery h2 {
  margin-bottom: 26px;
  font-size: clamp(28px, 3.3vw, 39px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.back-to-top {
  position: absolute;
  z-index: 6;
  top: 20px;
  right: max(28px, calc((100vw - 1180px) / 2));
  padding: 6px 13px 6px 7px;
  border: 1px solid rgba(0,0,0,.24);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.78);
  font-size: 16px;
  font-weight: 700;
}
.back-icon { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #080a09; color: white; }
.back-to-top.on-dark { border-color: rgba(255,255,255,.35); background: rgba(0,19,17,.65); color: white; }
.back-to-top.on-dark .back-icon { background: white; color: #080a09; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f6;
}
.service-photo { width: 100%; height: 250px; object-fit: cover; }
.service-photo-wrap { position: relative; }
.service-photo-wrap .service-photo { display: block; }
.service-photo-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: -18px;
  width: 42px;
  height: 42px;
}
.service-info { min-height: 124px; padding: 20px 24px; display: grid; grid-template-columns: 66px 1fr; gap: 18px; align-items: center; }
.service-info > img {
  width: 62px;
  height: 62px;
  object-fit: cover;
}
.service-info-text-only { display: block; padding-top: 27px; }
.workflow-step img {
  padding: 8px;
  object-fit: contain;
  background: #efede8;
}
.service-info h3, .tech-copy h3 { margin-bottom: 7px; font-size: 17px; }
.service-info p, .tech-copy p { margin-bottom: 0; font-size: 12px; line-height: 1.45; }

.technology {
  padding: 52px 0 34px;
  background: radial-gradient(circle at 30% 0, #02241f 0, #00110f 48%, #000806 100%);
  color: white;
}
.technology .eyebrow, .model-gallery .eyebrow { color: white; }
.technology-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.tech-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  background: rgba(0,18,16,.58);
}
.tech-card > img { width: 100%; height: 230px; object-fit: cover; }
.tech-copy { position: relative; min-height: 118px; padding: 22px 18px 18px 92px; }
.quality-icon {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 56px;
  height: 56px;
  border-radius: 3px;
  object-fit: cover;
}
.tech-copy p { color: rgba(255,255,255,.88); }

.approach { padding: 52px 0 52px; }
.workflow {
  margin: 22px 0 28px;
  padding-bottom: 27px;
  border-bottom: 1px solid #999;
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.workflow-step { min-height: 78px; padding: 0 26px; border-right: 1px solid #aaa; display: flex; align-items: center; gap: 16px; }
.workflow-step:first-child { padding-left: 0; }
.workflow-step:last-child { border-right: 0; }
.workflow-step img { width: 70px; height: 62px; flex: 0 0 auto; }
.workflow-step span { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 700; }
.workflow-step h3 { margin: 0; font-size: 17px; }
.projects-title { margin-bottom: 18px !important; font-size: 25px !important; }
.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.project-grid figure { margin: 0; }
.project-grid img { width: 100%; height: 190px; object-fit: cover; border-radius: 7px; }
.project-grid figcaption { padding-top: 10px; text-align: center; font-size: 13px; font-weight: 700; }

.model-gallery {
  padding: 38px 0 34px;
  background: radial-gradient(circle at 38% 0, #022620 0, #001512 44%, #000806 100%);
  color: white;
}
.gallery-intro { margin-bottom: 20px; font-size: 16px; }
.gallery-stage { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 18px; align-items: center; }
.gallery-slides { position: relative; min-width: 0; overflow: hidden; }
.gallery-page { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; opacity: 0; pointer-events: none; }
.gallery-page.is-active { position: relative; z-index: 2; opacity: 1; pointer-events: auto; }
.model-preview-card { overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(0,19,17,.62); }
.model-preview-viewer { position: relative; height: clamp(190px,20vw,250px); overflow: hidden; background: #000; }
.model-preview-viewer iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.model-preview-open { position: absolute; inset: 0; border: 0; display: flex; align-items: flex-end; justify-content: center; padding: 18px; background: linear-gradient(0deg,rgba(0,0,0,.68),transparent 45%); color: white; cursor: pointer; }
.model-preview-open span { padding: 8px 14px; border: 1px solid white; border-radius: 999px; background: rgba(0,19,17,.75); font-size: 13px; }
.model-preview-details { padding: 15px 18px 17px; }
.model-label { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.model-preview-details h3 { margin: 0; font-size: 18px; }
.carousel-arrow { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; display: grid; place-items: center; background: transparent; color: white; cursor: pointer; font-size: 25px; }
.carousel-progress { margin: 17px 0 0; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gallery-slides.is-moving-next { --enter: 90px; --leave: -90px; }
.gallery-slides.is-moving-previous { --enter: -90px; --leave: 90px; }
.gallery-slides.motion-a .gallery-page.is-active, .gallery-slides.motion-b .gallery-page.is-active { animation: enter .65s ease both; }
.gallery-slides.motion-a .gallery-page:not(.is-active), .gallery-slides.motion-b .gallery-page:not(.is-active) { z-index: 3; animation: leave .65s ease both; }
@keyframes enter { from { opacity: 0; transform: translateX(var(--enter)); } to { opacity: 1; transform: none; } }
@keyframes leave { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(var(--leave)); } }

.contact { padding: 50px 0; background: var(--paper); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 54px; }
.contact-intro, .contact-form { min-height: 410px; padding: 42px 50px; border-radius: 10px; background: linear-gradient(135deg,#e7ece9,#d7e0dc); box-shadow: 0 16px 35px rgba(0,0,0,.08); }
.contact-intro { display: flex; flex-direction: column; justify-content: center; }
.contact-intro h2 { max-width: 500px; margin-bottom: 18px; font-size: clamp(30px,3.7vw,44px); line-height: 1.04; letter-spacing: -.04em; }
.contact-intro > p:not(.eyebrow) { margin-bottom: 22px; font-size: 14px; line-height: 1.55; }
.contact-intro ul { margin: 0; padding: 0; display: grid; gap: 15px; list-style: none; }
.contact-intro li { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.contact-list-icon { width: 30px; height: 30px; flex: 0 0 30px; padding: 5px; border: 1px solid rgba(11,13,12,.35); border-radius: 50%; background: rgba(255,255,255,.38); object-fit: contain; }
.contact-intro li.contact-detail a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-form { position: relative; padding: 23px; }
.website-field { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.form-submitting {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: rgba(231,236,233,.94);
  color: var(--ink);
  text-align: center;
}
.form-submitting[hidden] { display: none; }
.form-submitting strong { font-size: 15px; }
.form-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(0,43,39,.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: form-spin .7s linear infinite;
}
@keyframes form-spin { to { transform: rotate(360deg); } }
.form-heading { margin-bottom: 18px; }
.form-heading span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.form-heading h3 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.contact-form label:not(.consent) { margin-bottom: 12px; display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.optional { font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 0; border-radius: 5px; outline: none; background: white; color: var(--ink); font-size: 13px; }
.contact-form input, .contact-form select { height: 39px; padding: 0 12px; }
.contact-form textarea { min-height: 84px; padding: 11px 12px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { box-shadow: 0 0 0 3px rgba(0,43,39,.25); }
.consent { margin: 2px 0 17px; display: flex; gap: 10px; align-items: center; font-size: 11px; }
.consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.form-actions { display: flex; align-items: center; gap: 16px; }
.form-actions .button { min-width: 145px; min-height: 46px; padding: 12px 20px; border: 0; font-size: 13px; cursor: pointer; }
.privacy-note { margin: 0; font-size: 11px; }
.form-status { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--green); background: white; font-size: 12px; }
.submission-success { display: flex; min-height: 505px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.submission-success-icon { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-size: 28px; }
.submission-success .eyebrow { margin-bottom: 8px; }
.submission-success h3 { margin-bottom: 10px; font-size: 26px; }
.submission-success p:last-child { max-width: 360px; margin: 0; font-size: 13px; line-height: 1.55; }
.form-error { margin: 12px 0 0; color: #7d241f; font-size: 12px; font-weight: 700; }

footer { background: #030504; color: white; }
.footer-main { min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.footer-brand { position: relative; min-width: 400px; display: grid; grid-template-columns: 90px 1fr; grid-template-rows: auto auto; column-gap: 22px; align-items: center; }
.footer-brand img { grid-row: 1 / 3; width: 90px; height: 90px; object-fit: contain; }
.footer-name { align-self: end; font-size: 34px; letter-spacing: -.05em; }
.footer-tagline { align-self: start; font-size: 16px; }
footer nav { display: flex; gap: clamp(28px,3vw,55px); }
footer nav a { font-size: 14px; }
.footer-legal { border-top: 2px solid #16443d; background: var(--green-black); }
.footer-legal .shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 40px; font-size: 14px; }

.model-modal { position: fixed; z-index: 1000; inset: 0; padding: 24px; display: grid; place-items: center; }
.model-modal[hidden] { display: none; }
.model-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,8,7,.9); }
.model-modal-panel { position: relative; z-index: 1; width: min(1320px,96vw); overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: var(--green-deep); color: white; }
.model-modal-header { min-height: 76px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; }
.model-modal-header h2 { margin: 0; font-size: 24px; }
.model-modal-close { width: 42px; height: 42px; border: 1px solid white; border-radius: 50%; background: transparent; color: white; font-size: 28px; cursor: pointer; }
.model-modal-viewer { height: min(74vh,760px); background: black; }
.model-modal-viewer iframe { width: 100%; height: 100%; border: 0; }
.model-modal-link { position: absolute; right: 18px; bottom: 18px; padding: 9px 13px; border-radius: 5px; background: rgba(0,27,24,.9); font-size: 12px; }

@media (max-width: 1100px) {
  .shell { width: min(calc(100% - 56px), 900px); }
  .site-header { height: 92px; }
  .brand { font-size: 24px; }
  .brand img { width: 54px; height: 54px; }
  .menu-toggle { display: block; position: relative; z-index: 7; }
  .nav { position: absolute; top: 80px; right: 0; width: 270px; padding: 18px; border: 1px solid #555; border-radius: 8px; display: none; flex-direction: column; align-items: stretch; gap: 6px; background: rgba(0,12,10,.98); }
  .nav.open { display: flex; }
  .nav a, .nav a:last-child { min-width: 0; padding: 10px; border: 0; text-align: left; }
  .hero { min-height: 625px; }
  .hero-image, .hero-shade { top: 0; }
  .hero-image { background-position: 38% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(0,4,3,.86) 0%,rgba(0,5,4,.42) 48%,rgba(0,5,4,.08) 100%); }
  .hero-content { padding-top: 52px; }
  h1 { font-size: 46px; }
  .hero-copy { font-size: 15px; }
  .button { min-width: 176px; min-height: 48px; font-size: 12px; }
  .service-grid, .technology-grid { grid-template-columns: 1fr; }
  .service-photo, .tech-card > img { height: 280px; }
  .workflow { grid-template-columns: repeat(2,1fr); row-gap: 22px; }
  .workflow-step:nth-child(2) { border-right: 0; }
  .project-grid img { height: 150px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro, .contact-form { min-height: 0; }
  .footer-main { padding: 55px 0; flex-direction: column; align-items: flex-start; }
  .footer-legal .shell { padding: 36px 0; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 650px) {
  .shell { width: min(calc(100% - 32px), 560px); }
  .brand { gap: 11px; font-size: 21px; }
  .brand img { width: 48px; height: 48px; }
  .hero { min-height: 620px; }
  .hero-image { top: 0; right: 0; bottom: 0; background-position: 38% center; }
  .hero-shade { inset: 0; background: linear-gradient(90deg,rgba(0,4,3,.86) 0%,rgba(0,5,4,.42) 48%,rgba(0,5,4,.08) 100%); }
  .site-header { height: 80px; }
  .hero-content { padding-top: 70px; }
  .hero-content .eyebrow { font-size: 15px; }
  h1 { font-size: 35px; }
  .hero-copy { font-size: 14px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .button { width: 100%; min-width: 0; min-height: 48px; font-size: 12px; }
  .section, .technology, .model-gallery, .contact { padding: 40px 0; }
  .back-to-top { top: 16px; right: 16px; }
  .back-to-top > span:last-child { display: none; }
  .service-photo, .tech-card > img { height: 210px; }
  .service-info { grid-template-columns: 60px 1fr; padding: 18px; }
  .service-info > img { width: 58px; height: 58px; }
  .tech-copy { padding-left: 94px; }
  .quality-icon { left: 18px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid #bbb; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid img { height: 230px; }
  .gallery-stage { grid-template-columns: 1fr 1fr; }
  .gallery-slides { grid-column: 1 / -1; }
  .gallery-page { grid-template-columns: 1fr; }
  .gallery-page .model-preview-card:nth-child(2) { display: none; }
  .model-preview-viewer { height: 250px; }
  .carousel-previous { justify-self: start; }
  .carousel-next { justify-self: end; }
  .contact-intro, .contact-form { padding: 24px 20px; }
  .contact-intro h2 { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .footer-brand { min-width: 0; width: 100%; grid-template-columns: 82px 1fr; column-gap: 16px; }
  .footer-brand img { width: 82px; height: 82px; }
  .footer-name { font-size: 32px; }
  .footer-tagline { font-size: 15px; }
  footer nav { flex-wrap: wrap; gap: 18px 26px; }
  .footer-legal .shell { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
