:root {
  color-scheme: light;
  --ink: #112e2e;
  --dark: #102b2c;
  --dark-flat: #173b3b;
  --muted: #48615d;
  --green: #215c4e;
  --light: #eef4f0;
  --line: #d7e2dc;
  --paper: #fff;
  --yellow: #fce365;
  --focus: #846100;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 system-ui, -apple-system, "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.23; }
h1 { font-size: clamp(2.25rem, 5.6vw, 5rem); font-weight: 850; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); font-weight: 800; }
h3 { font-size: 1.34rem; font-weight: 775; }
p + p { margin-top: .9rem; }

.container { width: min(calc(100% - 2.75rem), var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  transform: translateY(-150%);
  background: var(--yellow);
  color: var(--ink);
  padding: .75rem 1rem;
}
.skip-link:focus { transform: translateY(0); }
.header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.7rem;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 850;
  letter-spacing: -.06em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: .4rem;
  background: var(--dark);
}
.brand-mark span {
  width: .68rem;
  height: 1.17rem;
  border: solid var(--yellow);
  border-width: 0 2px;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, var(--yellow) 3px 5px);
  transform: skew(-14deg);
}
.header nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
.header nav a { text-decoration: none; font-weight: 700; font-size: .92rem; }
.header nav a:hover, .header nav [aria-current=page] { text-decoration: underline; }
.header-phone {
  border: 1px solid var(--line);
  border-radius: .45rem;
  padding: .5rem .78rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { background: var(--light); }

.hero {
  background: linear-gradient(115deg, var(--dark), var(--dark-flat));
  color: var(--paper);
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: .25rem;
  background: var(--yellow);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.6rem);
  padding-block: clamp(2.2rem, 5vw, 4.2rem);
}
.hero-location { color: var(--yellow); font-size: .92rem; font-weight: 800; margin-bottom: .75rem; }
.hero h1 { line-height: 1.08; }
.hero h1 span { display: block; }
.hero-copy > p:not(.hero-location) { color: #e0ece7; max-width: 33rem; margin-top: 1.25rem; }
.hero-phone {
  display: inline-block;
  color: var(--paper);
  font-weight: 790;
  font-size: clamp(1.25rem, 2.9vw, 1.75rem);
  margin-top: 1.1rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.hero-media {
  position: relative;
  margin: 0;
  height: clamp(24rem, 37vw, 32rem);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--dark-flat);
  border: 1px solid #ffffff26;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-media figcaption {
  position: absolute;
  inset: auto auto .8rem .8rem;
  border-radius: .35rem;
  background: #112b2ce8;
  color: #fff;
  padding: .3rem .65rem;
  font-size: .8rem;
  line-height: 1.4;
}

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.hero .actions { margin-top: 1.35rem; }
.button {
  min-height: 2.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem .95rem;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  border-radius: .45rem;
  font-size: .94rem;
  font-weight: 780;
  color: var(--ink);
  cursor: pointer;
}
.button-yellow { background: var(--yellow); }
.button-yellow:hover { background: #ffed96; }
.button-border { background: var(--paper); border-color: #9cafa7; }
.button-border:hover { background: var(--light); }
.hero .button-border { color: var(--paper); background: transparent; border-color: #a9c3b7; }
.hero .button-border:hover { background: #ffffff17; }
.button-dark { background: var(--dark); color: var(--paper); }
.button-dark:hover { background: var(--dark-flat); }

.section { padding-block: clamp(2.7rem, 6vw, 5.2rem); }
.section-header { margin-bottom: clamp(1.5rem, 3.5vw, 2.3rem); }
.section-header p { color: var(--muted); margin-top: .7rem; max-width: 42rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .8rem;
  padding: 1.35rem 1.3rem;
  border: 1px solid var(--line);
  border-top: .22rem solid var(--green);
  border-radius: .65rem;
}
.service-card p { color: var(--muted); margin-bottom: .25rem; }
.service-card a { font-size: .92rem; font-weight: 750; color: var(--green); margin-top: auto; }

.areas { background: var(--light); }
.area-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.area-heading .section-header { margin: 0; }
.area-filter { width: min(100%, 17rem); }
.area-filter label, .field label, .message-label {
  display: block;
  color: var(--ink);
  margin-bottom: .28rem;
  font-size: .9rem;
  font-weight: 750;
}
.text-input, select, .message-box {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 1px solid #aabcb4;
  border-radius: .4rem;
  background: var(--paper);
  padding: .52rem .7rem;
}
.text-input, select { min-height: 2.85rem; }
.text-input::placeholder { color: #506960; opacity: 1; }
.area-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .9rem; margin-top: 1.45rem; }
.area-card {
  grid-column: span 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .68rem;
  padding: 1.15rem 1.2rem;
}
.area-card:nth-child(n+4) { grid-column: span 3; }
.area-card p { color: var(--muted); margin-top: .4rem; font-size: .95rem; }
.area-links { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: .9rem; }
.area-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: .27rem .65rem;
  border: 1px solid #bed3c4;
  border-radius: .34rem;
  background: #f5faf6;
  color: #244c42;
  font-weight: 700;
  font-size: .91rem;
  line-height: 1.3;
  text-decoration: none;
}
.area-chip:hover { border-color: var(--green); background: #d6eadc; }
.area-status { color: var(--muted); margin-top: .6rem; font-size: .92rem; }
.area-status:empty { display: none; }
.area-case { display: block; color: var(--green); font-size: .92rem; font-weight: 740; margin-top: .85rem; }

.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4.5rem); }
.quote-intro p { color: var(--muted); margin-top: .7rem; }
.quote-intro h3 { margin-top: 1.7rem; }
.quote-intro ul { padding-left: 1.2rem; margin: .5rem 0 1.4rem; color: var(--muted); }
.quote-intro ul li + li { margin-top: .28rem; }
.quote-intro .cost-link { color: var(--green); font-weight: 720; }
.quote-panel {
  padding: clamp(1rem, 3vw, 1.65rem);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #f6f9f6;
}
.quote-panel h3 { margin-bottom: 1rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem .78rem; }
.field-wide { grid-column: 1 / -1; }
.field { min-width: 0; }
.message-label { margin-top: 1.15rem; }
.message-box { display: block; resize: vertical; min-height: 9.6rem; color: #244740; font-size: .91rem; }
.quote-panel .actions { margin-top: .8rem; }
.status { color: var(--green); font-weight: 700; font-size: .92rem; }
.status:not(:empty) { margin-top: .6rem; }

.secondary-hero { background: var(--light); border-bottom: 1px solid var(--line); }
.secondary-hero .container { padding-block: clamp(2.7rem, 6vw, 4.7rem); }
.secondary-hero h1 { font-size: clamp(2rem, 5vw, 4.1rem); }
.secondary-hero p { margin-top: .7rem; color: var(--muted); max-width: 42rem; }
.secondary-hero .actions { margin-top: 1.15rem; }
.narrow { max-width: 58rem; }
.factors { margin: .9rem 0 0; border-top: 1px solid var(--line); }
.factors > div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: .6rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.factors dt { font-weight: 780; }
.factors dd { margin: 0; color: var(--muted); }
.faq { background: var(--light); }
.faq details { background: white; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: .45rem; margin-top: .65rem; }
.faq summary { font-weight: 760; cursor: pointer; }
.faq details p { color: var(--muted); margin-top: .58rem; }
.work-sections { display: grid; gap: 1.45rem; }
.work-panel { padding: clamp(1.1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: .65rem; }
.work-panel p { margin-top: .45rem; color: var(--muted); }
.work-panel .factors div:last-child { border-bottom: 0; padding-bottom: .25rem; }
.case-photo { width: min(100%, 43rem); max-height: 32rem; border-radius: .7rem; object-fit: contain; object-position: left; }
.case-body { margin-top: 1.5rem; }
.case-body .actions { margin-top: 1.35rem; }

.site-footer { background: var(--dark); color: var(--paper); padding-block: 1.7rem; }
.footer-inner { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer-inner p { color: #ccddd5; font-size: .9rem; }
.footer-inner a { font-weight: 780; text-decoration: none; font-variant-numeric: tabular-nums; }
.mobile-contact { display: none; }

@media (max-width: 55rem) {
  .header-inner { gap: .65rem 1rem; }
  .header nav { gap: .85rem 1.25rem; }
  .hero-inner { gap: 1.35rem; }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-card, .area-card:nth-child(n+4) { grid-column: auto; }
  .area-card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 43rem) {
  body { padding-bottom: calc(4.15rem + env(safe-area-inset-bottom, 0px)); }
  .container { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-block: .62rem .45rem; }
  .header nav { width: 100%; order: 3; gap: 1.1rem; border-top: 1px solid var(--line); padding-top: .38rem; }
  .header nav a { display: inline-flex; align-items: center; min-height: 2.05rem; }
  .header-phone { font-size: .87rem; padding: .38rem .52rem; }
  .hero-inner, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 1.65rem 1.65rem; gap: 1.25rem; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 3.16rem); }
  .hero-location { margin-bottom: .5rem; }
  .hero-copy > p:not(.hero-location) { margin-top: .78rem; }
  .hero-phone { margin-top: .62rem; }
  .hero .actions { margin-top: .85rem; }
  .hero-media { height: clamp(16rem, 65vw, 22rem); }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .area-heading { align-items: stretch; gap: .8rem; }
  .area-filter { width: 100%; }
  .factors > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .mobile-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    position: fixed;
    z-index: 10;
    inset: auto 0 0;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: .48rem max(1rem, env(safe-area-inset-right, 0px))
      calc(.48rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  }
}
@media (max-width: 32rem) {
  .area-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
}
@media (max-width: 23rem) {
  .button { padding-inline: .5rem; font-size: .88rem; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .header nav { gap: .85rem; }
}
