@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-soft.woff2') format('woff2-variations'), url('fonts/fraunces-soft.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat.woff2') format('woff2-variations'), url('fonts/montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans.woff2') format('woff2-variations'), url('fonts/public-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #234E95;
  --blue-dark: #1A3B72;
  --orange: #EF7C23;
  --orange-dark: #D96812;
  --ink: #141414;
  --ink-soft: #3B3B3B;
  --muted: #7A7A7A;
  --line: #E1E1E1;
  --paper: #FFFFFF;
  --radius-xl: 34px;
  --radius-pill: 999px;
  --max: 1240px;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-ui: 'Montserrat', 'Segoe UI', sans-serif;
  --font-form: 'Public Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.topbar {
  background: var(--blue);
  color: #fff;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.95;
  transition: opacity .15s ease;
}

.topbar a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.topbar svg { width: 18px; height: 18px; flex-shrink: 0; }

.topbar .tel { font-weight: 500; }

@media (max-width: 560px) {
  .topbar .tel span { display: none; }
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand img {
  width: clamp(200px, 26vw, 330px);
  height: auto;
}

.tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  min-height: 52px;
  border: 3px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #1C2340;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.tab img { width: 30px; height: 30px; object-fit: contain; }

.tab:hover { background: #FFF5EC; }

.tab[aria-current="page"] {
  border-color: var(--orange);
}

@media (max-width: 900px) {
  .header-inner { flex-direction: column; gap: 0.6rem; padding: 0.6rem 1rem 0.75rem; }
  .brand img { width: 230px; }
  .tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }
  .tab {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.4rem 0.2rem;
    font-size: 0.68rem;
    min-height: 0;
    border-width: 2px;
  }
  .tab img { width: 26px; height: 26px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 1rem 2rem;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(239, 124, 35, 0.28);
}
.btn-orange:hover { background: var(--orange-dark); }

.btn-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  padding: 0.95rem 2.2rem;
}
.btn-white:hover { background: #FFF5EC; }

.btn:focus-visible,
.tab:focus-visible,
.topbar a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.home {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  width: 100%;
}

.home-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}

.home-logo {
  grid-column: 1 / 6;
  grid-row: 1;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  margin-bottom: 18%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.home-logo img { width: 100%; height: auto; }

.home-photo {
  grid-column: 4 / 13;
  grid-row: 1;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1244 / 810;
  margin-top: 7%;
}

.home-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-photo .btn-white {
  position: absolute;
  right: 9%;
  bottom: 8%;
}

.home-tagline {
  text-align: center;
  margin: 2.5rem auto 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 48ch;
}

.home-tagline strong { color: var(--orange); font-weight: 700; }

@media (max-width: 760px) {
  .home { padding-top: 1.25rem; }
  .home-stage { display: flex; flex-direction: column; }
  .home-logo {
    width: 82%;
    margin: 0 auto -2.5rem;
    padding: 1rem 1.25rem;
  }
  .home-photo { width: 100%; margin-top: 0; aspect-ratio: 4 / 3.4; }
  .home-photo .btn-white { right: 50%; transform: translateX(50%); bottom: 1.25rem; }
  .home-photo .btn-white:hover { transform: translateX(50%) translateY(-1px); }
}

.service {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
  width: 100%;
  scroll-margin-top: 140px;
}

.service-stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  column-gap: 0;
}

.service-media {
  grid-column: 1 / 9;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 45%, rgba(255,255,255,0.55) 72%, rgba(255,255,255,0.8) 100%);
}

.service-media .btn { margin-top: 1.25rem; }

.service-copy {
  grid-column: 7 / 13;
  grid-row: 1;
  z-index: 2;
  padding: 1rem 0 1rem 1.5rem;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-weight: 300;
  color: var(--ink);
}

.service-copy p {
  margin: 0 0 1.1em;
  text-align: justify;
  hyphens: auto;
}

.service-copy p:last-child { margin-bottom: 0; }

.service-copy .lead {
  font-weight: 300;
  hyphens: manual;
}

.service-copy .lead b {
  font-weight: 800;
}

.service-copy .hl {
  color: var(--orange);
  font-weight: 800;
}

.service-copy h1 {
  font-family: var(--font-serif);
  font-size: 1.25em;
  font-weight: 800;
  color: var(--orange);
  margin: 0 0 1em;
}

@media (max-width: 860px) {
  .service-stage { display: flex; flex-direction: column; }
  .service-media { width: 100%; order: 2; }
  .service-photo { aspect-ratio: 16 / 9; }
  .service-photo img { opacity: 0.85; }
  .service-photo::after { display: none; }
  .service-copy { order: 1; padding: 0.5rem 0 1.5rem; }
  .service-copy p { text-align: left; }
}

.js .view { display: none; }
.js .view.is-active { display: block; animation: fade-in .3s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .view.is-active { animation: none; }
  .btn, .tab { transition: none; }
}

.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3.5rem;
  width: 100%;
}

.contact h1 {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 800;
  color: var(--orange);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 1.75rem;
  line-height: 1.15;
}

.contact-stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}

.contact-side {
  grid-column: 6 / 13;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-photo {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 612 / 408;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.contact form {
  grid-column: 1 / 8;
  grid-row: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  font-family: var(--font-form);
  padding-right: 1rem;
}

.contact .actions {
  margin-top: 1.5rem;
  padding-left: 30%;
  display: flex;
  justify-content: center;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.contact label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.contact label .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact input,
.contact select,
.contact textarea {
  font-family: var(--font-form);
  font-size: 0.98rem;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  border: 1px solid #D4D4D4;
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact input[type="file"] {
  padding: 0.5rem 0.6rem;
  background: #F1F1F1;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239, 124, 35, 0.2);
}

.contact textarea { resize: vertical; min-height: 110px; }

.field-hint { font-size: 0.8rem; color: var(--muted); }

.honeypot { position: absolute; left: -9999px; }

.actions-mobile { display: none; }

@media (max-width: 860px) {
  .contact-stage { display: flex; flex-direction: column; }
  .contact-side { order: -1; width: 100%; }
  .contact-photo { aspect-ratio: 16 / 7; margin-bottom: 1.5rem; }
  .contact-photo img { opacity: 0.8; }
  .contact form { padding-right: 0; }
  .contact .actions { display: none; }
  .actions-mobile { display: flex; justify-content: center; margin-top: 0.5rem; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.result {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  width: 100%;
}

.result h1 {
  font-weight: 800;
  color: var(--orange);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.result p { font-size: 1.15rem; font-weight: 300; }

.result ul {
  text-align: left;
  max-width: 40ch;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

.result .btn { margin-top: 2rem; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  row-gap: 0.4rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer .f-item,
.site-footer .f-address span {
  white-space: nowrap;
}

.site-footer .f-item + .f-item::before {
  content: "•";
  margin: 0 0.6rem;
  color: var(--muted);
  opacity: 0.5;
  display: inline-block;
  text-decoration: none;
}

.site-footer .f-name { color: var(--ink-soft); font-weight: 600; }

.site-footer a { color: var(--blue); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    row-gap: 0.55rem;
    padding: 1.75rem 1rem 2rem;
    font-size: 0.9rem;
  }
  .site-footer .f-item + .f-item::before { content: none; }
  .site-footer .f-address span { display: block; }
}
