/* =========================================================
   H CARE MEDICAL ENGINEERING — STYLESHEET
   Design language: clinical precision + biomedical engineering.
   Motifs: calibration crosshairs, blueprint grid, EKG waveform.
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ---------- Design tokens ---------- */
:root{
  /* color — palette derived from H Care logo (blue + orange) */
  --ink:        #0D2545;   /* primary text / headings */
  --ink-soft:   #4A637E;   /* secondary text */
  --petrol:     #2B72B5;   /* brand primary — logo blue */
  --petrol-deep:#1A4F8C;   /* footer / dark surfaces */
  --petrol-50:  #E8F1FA;   /* tinted backgrounds */
  --amber:      #F5A523;   /* signal accent / primary CTA — logo orange */
  --amber-deep: #D68A15;
  --green:      #2BAE66;   /* vital / status-good accent */
  --mist:       #F3F7FB;   /* page background */
  --white:      #FFFFFF;
  --line:       #D3E3EF;   /* hairline borders */
  --line-deep:  #AECAE2;

  /* type */
  --f-display: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  --f-body:    'IBM Plex Sans', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  /* layout */
  --container: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(13,37,69,0.04), 0 8px 24px -12px rgba(13,37,69,0.12);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{ margin:0; }
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; }
input,textarea,select{ font:inherit; }
h1,h2,h3,h4,p{ margin:0; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

:focus-visible{ outline: 2.5px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

/* ---------- Base ---------- */
body{
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Form fields must stay fully selectable/pasteable for usability */
input, textarea, select{
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Discourage right-click "save image" / dragging on any future photos */
img{ -webkit-user-drag: none; user-drag: none; }

h1,h2,h3,h4{ font-family: var(--f-display); color: var(--ink); line-height: 1.15; font-weight: 600; }

.container{ width:100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

main{ display:block; }

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow{
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content:"";
  width: 7px; height: 7px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-head{ max-width: 680px; margin-bottom: 44px; }
.section-head .eyebrow{ margin-bottom: 14px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; }
.section-head p{ color: var(--ink-soft); font-size: 17px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }

section{ padding: 84px 0; position: relative; }
.section-alt{ background: var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-deep{ background: var(--petrol-deep); color: #D4E8F5; }
.section-deep h2,.section-deep h3{ color: var(--white); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg{ width:18px; height:18px; flex-shrink:0; }
.btn-primary{ background: var(--amber); color: #2B1600; }
.btn-primary:hover{ background: var(--amber-deep); transform: translateY(-1px); }
.btn-outline{ background: transparent; border-color: var(--line-deep); color: var(--ink); }
.btn-outline:hover{ border-color: var(--petrol); color: var(--petrol); transform: translateY(-1px); }
.btn-ghost-light{ background: transparent; border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn-ghost-light:hover{ border-color: var(--amber); color: var(--amber); }
.btn-block{ width:100%; justify-content:center; }
.btn[disabled]{ opacity:0.6; cursor:not-allowed; transform:none; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  border-bottom: 3px solid var(--amber); /* orange accent — logo outer ring */
}
.site-header::before{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background: rgba(26,79,140,0.97); /* logo blue, near-opaque */
  backdrop-filter: saturate(160%) blur(12px);
  pointer-events: none;
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 78px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand .mark{ height: 44px; width: auto; flex-shrink:0; }
.brand .wordmark{ display:flex; flex-direction:column; line-height:1.05; }
.brand .wordmark .name{ font-family: var(--f-display); font-weight:700; font-size:19px; color: var(--white); letter-spacing:-0.01em; }
.brand .wordmark .tag{ font-family: var(--f-mono); font-size:10px; letter-spacing:0.12em; color: rgba(255,255,255,0.58); text-transform:uppercase; }

.main-nav{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  font-size: 15px; font-weight:500; color: rgba(255,255,255,0.72);
  position:relative; padding: 6px 0;
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--white); }
.main-nav a.active{ color: var(--white); font-weight:600; }
.main-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2.5px; background: var(--amber); border-radius:2px;
}

.header-actions{ display:flex; align-items:center; gap:14px; }
.call-pill{
  display:flex; align-items:center; gap:8px;
  font-family: var(--f-mono); font-size: 13.5px; font-weight:600;
  color: var(--white); border:1.5px solid rgba(255,255,255,0.32); border-radius: 999px;
  padding: 9px 16px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.call-pill svg{ width:16px; height:16px; }
.call-pill:hover{ background: var(--amber); color: #2B1600; border-color: var(--amber); }

.nav-toggle{
  display:none; background:none; border:none; width:40px; height:40px;
  align-items:center; justify-content:center; color: var(--white);
}
.nav-toggle svg{ width:24px; height:24px; }

/* ---------- Hero ---------- */
.hero{
  padding: 64px 0 90px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(170deg, rgba(43,114,181,0.06) 0%, var(--mist) 38%);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(43,114,181,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,114,181,0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
  opacity: 1;
  pointer-events:none;
}
.hero .container{ position:relative; }
.hero-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap:56px; align-items:center;
  position: relative;
}
.crosshair{ position:absolute; width:22px; height:22px; color: var(--line-deep); pointer-events:none; }
.crosshair.tl{ top:-30px; left:-6px; }
.crosshair.tr{ top:-30px; right:-6px; }

.hero-copy h1{ font-size: clamp(34px, 4.6vw, 54px); letter-spacing:-0.01em; margin: 16px 0 18px; }
.hero-copy h1 em{ font-style:normal; color: var(--petrol); }
.hero-copy > p{ font-size: 18px; color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 34px; }
.trust-strip{ display:flex; flex-wrap:wrap; gap: 20px 28px; }
.trust-strip li{ display:flex; align-items:center; gap:8px; font-size:14px; color: var(--ink-soft); font-weight:500; }
.trust-strip svg{ width:16px; height:16px; color: var(--green); flex-shrink:0; }

.hero-visual{ position:relative; }
.device-frame{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 22px 22px 18px;
  position: relative;
}
.device-frame .device-dots{ display:flex; gap:6px; margin-bottom:14px; }
.device-frame .device-dots span{ width:9px; height:9px; border-radius:50%; background: var(--line-deep); }
.device-frame .device-dots span:first-child{ background: var(--green); }
.device-frame .device-readout{
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft);
  display:flex; justify-content:space-between; margin-bottom:10px;
}
.device-frame .device-readout b{ color: var(--green); font-weight:600; }
.waveform-path{
  stroke: var(--petrol);
  stroke-width: 2.4;
  fill:none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.6s ease-out forwards infinite;
}
@keyframes draw{
  0%{ stroke-dashoffset: 600; }
  60%{ stroke-dashoffset: 0; }
  100%{ stroke-dashoffset: 0; }
}
.bracket{ position:absolute; width:26px; height:26px; color: var(--petrol); opacity:0.7; }
.bracket.tl{ top:-10px; left:-10px; }
.bracket.br{ bottom:-10px; right:-10px; transform: rotate(180deg); }

/* ---------- EKG divider ---------- */
.ekg-divider{ width:100%; height:34px; color: var(--amber); opacity:0.6; margin: 0 0 -1px; }
.ekg-divider path{ stroke: currentColor; stroke-width:2.5; fill:none; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap: 26px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover{ border-color: var(--petrol); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card .corner{ position:absolute; width:16px; height:16px; color: var(--petrol); opacity:0; transition:opacity .2s ease; }
.card:hover .corner{ opacity:1; }
.card .corner.tl{ top:8px; left:8px; }
.card .corner.br{ bottom:8px; right:8px; transform: rotate(180deg); }

.icon-circle{
  width:52px; height:52px; border-radius: 50%;
  background: var(--petrol-50); color: var(--petrol);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px; flex-shrink:0;
}
.icon-circle svg{ width:24px; height:24px; }

.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ color: var(--ink-soft); font-size:15px; }
.card ul.feature-list{ margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.card ul.feature-list li{ display:flex; align-items:flex-start; gap:8px; font-size:14px; color: var(--ink-soft); }
.card ul.feature-list svg{ width:15px; height:15px; color: var(--green); margin-top:3px; flex-shrink:0; }

.card-link{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-weight:600; font-size:14.5px; color: var(--petrol); }
.card-link svg{ width:15px; height:15px; transition: transform .15s ease; }
.card:hover .card-link svg{ transform: translateX(3px); }

/* ---------- Process steps ---------- */
.process{ display:grid; grid-template-columns: repeat(4,1fr); gap: 28px; position:relative; }
.process::before{
  content:""; position:absolute; top:23px; left: 10%; right:10%; height:1px;
  background: repeating-linear-gradient(90deg, var(--line-deep) 0 8px, transparent 8px 16px);
}
.process-step{ position:relative; padding-top: 0; }
.process-step .num{
  font-family: var(--f-mono); font-weight:600; font-size:14px;
  width:46px; height:46px; border-radius:50%;
  background: var(--white); border:1.5px solid var(--petrol); color: var(--petrol);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px; position:relative; z-index:1;
}
.process-step h4{ font-size:16.5px; margin-bottom:8px; }
.process-step p{ color: var(--ink-soft); font-size:14.5px; }

/* ---------- Why-us strip ---------- */
.feature-row{ display:flex; gap:18px; align-items:flex-start; }
.feature-row .icon-circle{ margin-bottom:0; }
.feature-row h4{ font-size:16px; margin-bottom:6px; }
.feature-row p{ font-size:14.5px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--petrol-deep);
  border-radius: 16px;
  padding: 52px 48px;
  display:flex; align-items:center; justify-content:space-between; gap:30px;
  position: relative;
  overflow:hidden;
}
.cta-banner::after{
  content:"";
  position:absolute; right:-60px; top:-60px; width:220px; height:220px;
  border:1px dashed rgba(255,255,255,0.18); border-radius:50%;
}
.cta-banner h2{ color:var(--white); font-size: clamp(24px,2.6vw,30px); margin-bottom:8px; max-width:480px; }
.cta-banner p{ color: #B5CFE8; font-size:15.5px; max-width:440px; }
.cta-banner .cta-actions{ display:flex; gap:14px; flex-shrink:0; flex-wrap:wrap; }

/* ---------- Page header (sub-pages) ---------- */
.page-header{
  padding: 52px 0 50px; border-bottom:1px solid var(--line);
  position:relative; overflow:hidden;
  background: linear-gradient(135deg, rgba(43,114,181,0.07) 0%, var(--mist) 55%);
}
.page-header::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(43,114,181,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,114,181,0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 0% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 100% at 0% 0%, #000 30%, transparent 80%);
  opacity:1;
}
.page-header::after{
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background: linear-gradient(to bottom, var(--amber), transparent);
}
.page-header .container{ position:relative; }
.breadcrumb{ font-family: var(--f-mono); font-size:12.5px; color: var(--ink-soft); margin-bottom:14px; letter-spacing:0.04em; }
.breadcrumb a{ color: var(--petrol); }
.page-header h1{ font-size: clamp(30px,4vw,44px); max-width:680px; }
.page-header p{ color: var(--ink-soft); font-size:16.5px; max-width:600px; margin-top:14px; }

/* ---------- About page specifics ---------- */
.value-card{ text-align:left; }
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
.split-visual{
  background: var(--white); border:1px solid var(--line); border-radius:14px; padding:28px;
  box-shadow: var(--shadow-card);
}
.split-visual .row{ display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-bottom:1px dashed var(--line); }
.split-visual .row:last-child{ border-bottom:none; }
.split-visual .row .label{ font-family:var(--f-mono); font-size:12.5px; color:var(--ink-soft); letter-spacing:0.06em; text-transform:uppercase; }
.split-visual .row .value{ font-weight:600; color: var(--ink); font-size:15px; }

/* ---------- Sales page specifics ---------- */
.quote-strip{
  background: var(--petrol-50); border:1px solid #C2DAEE; border-radius: var(--radius);
  padding: 18px 22px; display:flex; align-items:center; gap:14px; margin-top:18px;
  font-size: 14px; color: var(--ink); 
}
.quote-strip svg{ width:20px; height:20px; color:var(--petrol); flex-shrink:0; }

/* ---------- Gallery page ---------- */
.filter-tabs{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom: 42px;
}
.filter-tab{
  font-family: var(--f-mono); font-size:13px; font-weight:600; letter-spacing:0.02em;
  color: var(--ink-soft); background: var(--white); border:1.5px solid var(--line);
  border-radius:999px; padding:9px 18px; cursor:pointer; transition: all .15s ease;
}
.filter-tab:hover{ border-color: var(--petrol); color: var(--petrol); }
.filter-tab.active{ background: var(--petrol); border-color: var(--petrol); color: var(--white); }

.gallery-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:24px; }
.gallery-item{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; cursor:pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  opacity:1; transform: scale(1);
}
.gallery-item:hover{ border-color: var(--petrol); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.gallery-item.hidden{ display:none; }

.gallery-thumb{
  position:relative; aspect-ratio: 4 / 3; background: var(--petrol-50);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.gallery-thumb::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line-deep) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-deep) 1px, transparent 1px);
  background-size: 22px 22px; opacity:0.22;
}
.gallery-thumb img{ width:100%; height:100%; object-fit:cover; position:relative; z-index:1; }
.gallery-thumb .icon-circle{
  width:74px; height:74px; background: var(--white); position:relative; z-index:1;
  box-shadow: var(--shadow-card); margin-bottom:0;
}
.gallery-thumb .icon-circle svg{ width:34px; height:34px; }
.gallery-thumb .g-corner{ position:absolute; width:18px; height:18px; color: var(--petrol); opacity:0.55; z-index:1; }
.gallery-thumb .g-corner.tl{ top:10px; left:10px; }
.gallery-thumb .g-corner.br{ bottom:10px; right:10px; transform: rotate(180deg); }

.gallery-caption{ padding:16px 18px; }
.gallery-caption .cat{ font-family: var(--f-mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color: var(--petrol); margin-bottom:4px; display:block; }
.gallery-caption h4{ font-size:15.5px; color: var(--ink); }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; background: rgba(13,37,69,0.82); z-index: 200;
  display:none; align-items:center; justify-content:center; padding:24px;
}
.lightbox.open{ display:flex; }
.lightbox-box{
  background: var(--white); border-radius:16px; max-width:560px; width:100%;
  overflow:hidden; position:relative;
}
.lightbox-visual{
  aspect-ratio: 4/3; background: var(--petrol-50); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
}
.lightbox-visual::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line-deep) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-deep) 1px, transparent 1px);
  background-size: 26px 26px; opacity:0.22;
}
.lightbox-visual img{ width:100%; height:100%; object-fit:cover; position:relative; z-index:1; }
.lightbox-visual .icon-circle{ width:96px; height:96px; background: var(--white); position:relative; z-index:1; box-shadow: var(--shadow-card); margin-bottom:0; }
.lightbox-visual .icon-circle svg{ width:44px; height:44px; }
.lightbox-info{ padding:24px 26px 26px; }
.lightbox-info .cat{ font-family: var(--f-mono); font-size:11.5px; letter-spacing:0.06em; text-transform:uppercase; color: var(--petrol); display:block; margin-bottom:6px; }
.lightbox-info h3{ font-size:21px; margin-bottom:10px; }
.lightbox-info p{ color: var(--ink-soft); font-size:14.5px; margin-bottom:18px; }
.lightbox-close{
  position:absolute; top:14px; right:14px; width:36px; height:36px; border-radius:50%;
  background: rgba(255,255,255,0.92); border:1px solid var(--line); color: var(--ink);
  display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:2;
}
.lightbox-close svg{ width:18px; height:18px; }
.lightbox-close:hover{ color: var(--petrol); }

/* ---------- Contact page ---------- */
.contact-wrap{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items:flex-start; }
.contact-wrap > *{ min-width:0; }
.contact-info-card{
  background: var(--white); border:1px solid var(--line); border-radius:14px; padding:30px;
  box-shadow: var(--shadow-card);
}
.contact-info-card h3{ font-size:18px; margin-bottom:20px; }
.contact-line{ display:flex; gap:14px; align-items:flex-start; margin-bottom:20px; }
.contact-line .icon-circle{ width:42px; height:42px; margin-bottom:0; flex-shrink:0; }
.contact-line .icon-circle svg{ width:19px; height:19px; }
.contact-line .ctext{ min-width:0; }
.contact-line .ctext .t{ font-size:13px; font-family:var(--f-mono); color: var(--ink-soft); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:3px; }
.contact-line .ctext .v{ font-size:15px; font-weight:500; color: var(--ink); }
.map-frame{ border-radius:14px; overflow:hidden; border:1px solid var(--line); margin-top:24px; box-shadow: var(--shadow-card); }
.map-frame iframe{ width:100%; height:230px; border:0; display:block; }

.form-card{
  background: var(--white); border:1px solid var(--line); border-radius:14px; padding:34px;
  box-shadow: var(--shadow-card);
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13.5px; font-weight:600; color: var(--ink); margin-bottom:7px; }
.field .req{ color: var(--amber-deep); }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border:1.5px solid var(--line-deep); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font-size:15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--petrol); box-shadow: 0 0 0 3px var(--petrol-50); outline:none;
}
.field textarea{ resize: vertical; min-height: 120px; }
.field .hint{ font-size:12.5px; color: var(--ink-soft); margin-top:6px; }
.field.error input, .field.error select, .field.error textarea{ border-color:#D14343; }
.field .error-msg{ display:none; font-size:12.5px; color:#D14343; margin-top:6px; font-weight:500; }
.field.error .error-msg{ display:block; }
.honeypot{ position:absolute; left:-9999px; opacity:0; }

.form-status{
  display:none; padding:14px 16px; border-radius: var(--radius-sm); font-size:14.5px; font-weight:500; margin-bottom:20px;
  align-items:center; gap:10px;
}
.form-status.show{ display:flex; }
.form-status.success{ background:#E5F6EC; color:#1F7A45; border:1px solid #BCE6CD; }
.form-status.error{ background:#FDEAEA; color:#B23A3A; border:1px solid #F5C6C6; }
.form-status svg{ width:18px; height:18px; flex-shrink:0; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--petrol-deep); color: #C4D8EE; padding-top: 64px; }
.footer-grid{ display:grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap:48px; padding-bottom: 44px; }
.footer-brand .brand .name{ color: var(--white); }
.footer-brand .brand .tag{ color: #96B9D8; }
.footer-brand .mark{ color: var(--amber); }
.footer-brand p{ color:#A5C2E0; font-size:14.5px; margin-top:16px; max-width:320px; }
.footer-col h4{ color: var(--white); font-size:14px; font-family:var(--f-mono); letter-spacing:0.08em; text-transform:uppercase; margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:14.5px; color:#B5CFE8; transition: color .15s ease; }
.footer-col a:hover{ color: var(--amber); }
.footer-col .contact-item{ display:flex; gap:10px; align-items:flex-start; font-size:14.5px; color:#B5CFE8; }
.footer-col .contact-item svg{ width:17px; height:17px; color: var(--amber); flex-shrink:0; margin-top:2px; }
.footer-col .contact-item span, .footer-col .contact-item a{ min-width:0; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.12); padding:22px 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.footer-bottom p{ font-size:13px; color:#8AADCC; }
.footer-bottom .credit{ font-family: var(--f-mono); font-size:12px; color:#7898BC; }

/* ---------- Legal / Privacy Policy content ---------- */
.legal-content{ max-width: 760px; }
.legal-content h2{ font-size: 22px; margin-top: 40px; margin-bottom: 14px; }
.legal-content h2:first-child{ margin-top:0; }
.legal-content p{ color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; }
.legal-content ul{ list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-content li{ color: var(--ink-soft); font-size: 15.5px; margin-bottom: 8px; }
.legal-content .updated{ font-family: var(--f-mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 30px; }
.legal-content a{ color: var(--petrol); text-decoration: underline; text-decoration-color: var(--line-deep); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner{
  position: fixed; left:16px; right:16px; bottom:16px; z-index: 150;
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  display:none;
  align-items:center; justify-content:space-between; gap:20px;
  max-width: 880px; margin: 0 auto;
}
.cookie-banner.show{ display:flex; }
.cookie-banner p{ font-size:13.5px; color: var(--ink-soft); margin:0; }
.cookie-banner a{ color: var(--petrol); font-weight:600; }
.cookie-actions{ display:flex; gap:10px; flex-shrink:0; }
.btn-sm{ padding: 9px 16px; font-size:13.5px; }

/* ---------- Footer social row ---------- */
.social-row{
  display:flex; align-items:center; justify-content:center; gap:12px;
  padding-bottom: 40px;
}
.social-row a{
  width:38px; height:38px; border-radius:50%;
  border:1.5px solid rgba(255,255,255,0.18); color:#B5CFE8;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.social-row a svg{ width:17px; height:17px; }
.social-row a:hover{ border-color: var(--amber); color: var(--amber); background: rgba(240,162,2,0.1); transform: translateY(-2px); }

/* ---------- Floating call button (mobile) ---------- */
.float-call{
  display:none; position:fixed; bottom:18px; right:18px; z-index:90;
  width:56px; height:56px; border-radius:50%;
  background: var(--amber); color:#2B1600;
  align-items:center; justify-content:center;
  box-shadow: 0 8px 20px rgba(13,37,69,0.25);
}
.float-call svg{ width:24px; height:24px; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- Scroll progress bar ---------- */
#scrollProgress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(to right, var(--amber), #F5D070);
  z-index: 9999; transition: width .1s linear;
  pointer-events: none;
}

/* ---------- Back to top ---------- */
#backToTop{
  position: fixed; bottom: 86px; right: 20px; z-index: 88;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--petrol-deep); color: var(--white);
  border: 2px solid var(--amber); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(13,37,69,0.28);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
  pointer-events: none;
}
#backToTop.show{ opacity: 1; transform: translateY(0); pointer-events: auto; }
#backToTop:hover{ background: var(--amber); color: #2B1600; border-color: var(--amber); }

/* ---------- Mobile nav backdrop ---------- */
.nav-backdrop{
  display: none; position: fixed; inset: 0; z-index: 98;
  background: rgba(13,37,69,0.55); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s ease;
}
.nav-backdrop.show{ display: block; opacity: 1; }

/* ---------- Print protection ---------- */
@media print{
  body{ display: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 440px; }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .process{ grid-template-columns: repeat(2,1fr); row-gap: 36px; }
  .process::before{ display:none; }
  .split{ grid-template-columns: 1fr; gap:36px; }
  .contact-wrap{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }

  .main-nav{
    position:fixed; top:78px; left:0; right:0; bottom:0;
    background: var(--petrol-deep); flex-direction:column; align-items:flex-start;
    padding: 28px 24px; gap:4px; overflow-y:auto;
    transform: translateX(100%); transition: transform .25s ease;
    border-top:3px solid var(--amber);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ width:100%; padding: 14px 0; font-size:17px; color: rgba(255,255,255,0.8); border-bottom:1px solid rgba(255,255,255,0.1); }
  .main-nav a:hover{ color: var(--white); }
  .main-nav a.active{ color: var(--white); }
  .main-nav a.active::after{ display:none; }
  .header-actions .call-pill span{ display:none; }
  .header-actions .call-pill{ padding:10px; }
  .nav-toggle{ display:flex; }
  .float-call{ display:flex; }
  /* back-to-top sits above the float call button on mobile */
  #backToTop{ bottom: 86px; right: 18px; }
}

@media (max-width: 760px){
  .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .process{ grid-template-columns: 1fr; }
  .cta-banner{ flex-direction:column; align-items:flex-start; padding:38px 28px; }
  .form-row{ grid-template-columns: 1fr; }
  section{ padding: 60px 0; }
  .footer-grid{ grid-template-columns: 1fr; gap:36px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .social-row{ gap:8px; flex-wrap:wrap; }
  .cookie-banner{ flex-direction:column; align-items:flex-start; left:12px; right:12px; bottom:12px; padding:16px; }
  .cookie-actions{ width:100%; }
  .cookie-actions .btn{ flex:1; justify-content:center; }
  .social-row a{ width:34px; height:34px; }
  .social-row a svg{ width:15px; height:15px; }
}
