/* Layout and color follow the studio's original green and neutral palette. */
:root {
  color-scheme: light;
  --text: #172722;
  --muted: #495c55;
  --accent: #086653;
  --accent-dark: #064e41;
  --paper: #fafbf8;
  --line: #d9e2dc;
  --white: #fff;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p, figure, blockquote, dl { margin: 0; }
p + p { margin-top: .8rem; }
h1, h2, h3 { margin: 0; line-height: 1.22; letter-spacing: -.045em; }
h1 { font-size: clamp(2.8rem, 5.2vw, 5.3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 3px solid #087761; outline-offset: 4px; }
[id] { scroll-margin-top: 9rem; }

.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.narrow { max-width: 52rem; }
.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.lead { font-size: clamp(1.04rem, 1.7vw, 1.24rem); color: var(--muted); }
.skip-link { position: fixed; z-index: 3; top: 1rem; left: 1rem; transform: translateY(-180%); }
.skip-link:focus { transform: none; background: var(--white); padding: .65rem 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { text-decoration: none; font-weight: 800; font-size: 1.13rem; letter-spacing: -.045em; white-space: nowrap; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem clamp(.45rem, 2vw, 1.6rem); }
.site-header nav a { padding: .45rem .15rem; text-decoration: none; font-weight: 650; font-size: .94rem; white-space: nowrap; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: .5rem 1.15rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary { color: var(--accent-dark); background: transparent; }
.button.secondary:hover { background: #e2ede7; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }

.hero { padding-block: clamp(1.6rem, 6vw, 5.9rem); background: #eff3ee; }
.hero-layout, .about-layout, .contact-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.8rem, 6vw, 5.25rem); }
.hero-copy .lead { max-width: 28rem; margin-top: 1.35rem; }
.location { color: var(--accent-dark); font-weight: 750; margin-bottom: .7rem; }
.hero picture { display: block; }
.hero picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; border-radius: 1.25rem; }
.about-layout > img { width: 100%; max-height: 28rem; object-fit: cover; border-radius: 1rem; }
.about-layout .lead { margin-block: .85rem; }
.credentials { margin: 1rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 3rem; }
.benefits article { padding-top: 1rem; border-top: 1px solid var(--line); }
.benefits p { margin-top: .5rem; color: var(--muted); }

.service-section { background: var(--white); }
.section-heading { max-width: 46rem; margin-bottom: 2rem; }
.section-heading :is(h2, h3) + p { margin-top: .75rem; }
.section-heading-spaced { margin-top: 3rem; margin-bottom: 1rem; }
.section-heading h3, .subheading { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.process { margin: 0; padding: 0; list-style-position: inside; }
.process li, .hygiene article, .case { background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; }
.process li::marker { content: ""; }
.cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hygiene img { object-fit: contain; background: #eff3ee; }
.card-copy { padding: 1rem 1.15rem 1.25rem; }
.card-copy > p { margin-top: .55rem; color: var(--muted); }
.aftercare { margin-top: 1rem; border-radius: .65rem; padding: .8rem 1rem; background: #eff3ee; color: var(--accent-dark); font-weight: 700; }

.portfolio-section { background: #eaf0ef; }
.review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.review { display: flex; flex-direction: column; gap: .75rem; border-radius: .9rem; background: var(--white); padding: 1rem; }
.review-credit { color: var(--muted); font-size: .9rem; }
.review .photo-link { margin-top: auto; border: 1px solid var(--line); }
.review img { width: 100%; height: 9rem; object-fit: contain; background: #f7f7f7; }
.subheading { margin-top: 3rem; margin-bottom: 1rem; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.case > .photo-link { border-radius: 0; }
.case img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.case details { margin-top: .65rem; }
.case dt { margin-top: .75rem; font-weight: 750; }
.case dd { margin: .15rem 0 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-link { display: block; overflow: hidden; border-radius: .55rem; background: #dde7e0; cursor: zoom-in; }
.photo-link:hover { box-shadow: 0 0 0 2px var(--accent); }
.more-photos { margin-top: 1rem; }
.more-photos > summary { margin-bottom: .8rem; }

.faq-section { background: var(--paper); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
summary { color: var(--accent-dark); font-weight: 750; cursor: pointer; }
.faq-list summary { padding: 1rem .25rem; }
.faq-list details > p { padding: 0 .25rem 1rem; color: var(--muted); }

.contact { background: #eff3ee; }
.contact .lead { margin-top: .75rem; }
.contact address { font-style: normal; margin-top: 1.15rem; }
.contact-layout > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1rem; }
.site-footer { background: #142923; color: #e9f1ed; }
.footer-inner { display: flex; align-items: baseline; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: 1.6rem; }
.footer-inner a { text-underline-offset: .2em; }
.footer-inner :focus-visible { outline-color: #8ce2c9; }

.image-viewer { width: min(100% - 2rem, 66rem); max-height: calc(100% - 2rem); padding: .8rem; border: 0; border-radius: .8rem; color: var(--text); background: var(--white); }
.image-viewer::backdrop { background: rgb(13 20 18 / .86); }
.image-viewer img { width: 100%; height: min(72vh, 48rem); object-fit: contain; background: #edf1ee; }
.image-viewer figcaption { min-height: 1.7rem; margin-top: .45rem; text-align: center; }
.viewer-toolbar { display: flex; gap: .5rem; margin-bottom: .65rem; }
.viewer-toolbar form { margin-left: auto; }
.viewer-toolbar button { min-height: 2.6rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); color: var(--text); font: inherit; cursor: pointer; }
.viewer-toolbar button:hover { background: #e2ede7; }
.viewer-toolbar button:disabled { opacity: .5; cursor: default; }
body:has(.image-viewer[open]) { overflow: hidden; }

@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; padding-block: .5rem; gap: .15rem .65rem; }
  .site-header nav { order: 3; width: 100%; justify-content: flex-start; }
  .site-header nav a { font-size: .85rem; }
  .header-book { min-height: 2.35rem; font-size: .86rem; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero picture img, .contact-layout > img { aspect-ratio: 16 / 10; }
  .about-layout > img { aspect-ratio: 4 / 3; }
  .benefits, .cards { grid-template-columns: 1fr; }
  .benefits { margin-top: 1.75rem; }
  .cards img { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case .card-copy { padding: .8rem; }
  .case h3 { font-size: 1.04rem; }
}
