:root {
  color-scheme: light;
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --ink: #26332b;
  --muted: #576057;
  --green: #354639;
  --line: #dcded4;
  --accent: #daddc1;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #7d985a; outline-offset: 4px; }
.shell { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 12px; transform: translateY(-120%); background: white; padding: 12px; z-index: 5; }
.skip:focus { transform: none; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header-inner { min-height: 76px; }
.brand { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.brand strong { font-size: 18px; letter-spacing: -.065em; }
.brand-tail { font-size: .9em; margin-left: .12em; }
.brand small { display: block; font-size: 8px; letter-spacing: .14em; margin-top: 3px; color: var(--muted); font-weight: 750; }
.tel-top { text-decoration: none; font-size: 15px; font-weight: 750; }
.tel-top span { color: var(--muted); font-size: 12px; margin-right: 5px; }
.hero { position: relative; isolation: isolate; min-height: 530px; background: #27362d; color: white; display: grid; align-items: center; }
.hero-photo, .hero::after { position: absolute; inset: 0 0 0 auto; width: 76%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 50% 49%; z-index: -2; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg,#27362d 0%,rgba(39,54,45,.87) 19%,rgba(39,54,45,.42) 44%,transparent 78%); }
.hero-inner { padding-block: 64px 76px; }
.hero-copy { width: fit-content; }
.eyebrow { margin: 0 0 17px; display: flex; align-items: center; gap: 9px; font-weight: 760; font-size: 12px; letter-spacing: .14em; color: #53614c; }
.eyebrow span { width: 20px; height: 1px; background: currentColor; }
.hero .eyebrow { color: #e2e7cf; }
h1, h2 { margin: 0; font-weight: 760; letter-spacing: -.065em; line-height: 1.22; word-break: keep-all; }
h1 { font-size: clamp(41px, 5.2vw, 72px); }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
.intro, .application-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.8; margin: 20px 0 27px; word-break: keep-all; }
.intro { color: #f1f2e9; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 35px; min-height: 52px; padding: 12px 22px; text-decoration: none; border: 0; border-radius: 7px; font-weight: 750; cursor: pointer; }
.hero-button { color: #26332b; background: var(--accent); }
.hero-button:hover { background: #ebeed7; }
.photo-credit { position: absolute; right: max(24px, calc((100vw - 1140px)/2)); bottom: 20px; color: #fff; background: #26332b; border-radius: 3px; font-size: 11px; padding: 5px 9px; }
.service-strip { background: #e9ecdf; border-bottom: 1px solid #d9decf; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-block: 18px; color: #53614c; font-size: 12px; }
.services span + span { border-left: 1px solid #c9d0be; }
.services b { margin-left: 6px; font-size: 15px; color: var(--ink); }
.application { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 88px); align-items: start; padding-block: 84px; scroll-margin-top: 20px; }
.application-copy { padding-top: 15px; }
.application-copy > p:not(.eyebrow), .call-card small { color: var(--muted); }
.call-card { display: grid; gap: 5px; width: fit-content; border-top: 1px solid #cbd2c4; padding-top: 17px; }
.call-card span { font-size: 13px; }
.call-card a { font-size: 25px; font-weight: 750; text-decoration: none; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: clamp(17px, 3.5vw, 34px); box-shadow: 0 12px 35px #27352a0b; }
.required-note { margin: 0 0 16px; font-size: 12px; text-align: right; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields label { font-size: 14px; font-weight: 730; min-width: 0; }
.fields label > span, .required-note > span { color: #915135; }
.fields small { font-weight: 500; color: var(--muted); }
.fields :is(input,textarea,select) { display: block; width: 100%; border: 1px solid #cdd3c8; border-radius: 7px; background: white; color: var(--ink); padding: 10px 11px; margin-top: 7px; min-height: 46px; font-size: 16px; font-weight: 450; }
.fields textarea { resize: vertical; min-height: 84px; }
.wide { grid-column: 1 / -1; }
.consent { margin: 18px 0; }
.consent label { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.4; }
.consent input { margin: 0; inline-size: 19px; block-size: 19px; accent-color: var(--green); flex: 0 0 auto; }
.consent details { margin: 9px 0 0 27px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.consent summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
.consent ul { padding-left: 19px; }
.submit { width: 100%; color: white; background: var(--green); }
.submit:hover { background: #26362c; }
.submit:disabled { opacity: .63; cursor: default; }
.status { margin: 11px 0 0; line-height: 1.6; font-size: 14px; }
.status:empty { margin: 0; }
.status[data-state="error"] { color: #8b3529; }
.status[data-state="success"] { color: #285b40; }
.portfolio { padding-block: 58px 68px; background: #eeeee4; }
.portfolio h2 { margin-bottom: 24px; font-size: clamp(32px, 4vw, 44px); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
figure { margin: 0; background: var(--paper); border-radius: 9px; overflow: hidden; }
figure img { width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; }
figcaption { padding: 14px; font-weight: 750; font-size: 14px; }
figcaption span { margin-left: 8px; color: var(--muted); font-weight: 450; }
footer { background: #27362d; color: #f6f6ed; padding-block: 28px; }
footer p { color: #e0e4d7; line-height: 1.65; font-size: 12px; margin-bottom: 0; }
footer a { white-space: nowrap; text-decoration: none; font-weight: 750; }
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; }
  .tel-top span { display: none; }
  .tel-top { font-size: 13px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 16px; }
  .brand img { width: 31px; height: 31px; }
  .brand small { font-size: 7px; }
  .hero { min-height: 540px; align-items: end; }
  .hero-photo, .hero::after { width: 100%; }
  .hero-photo { object-position: 50% 30%; }
  .hero::after { background: linear-gradient(0deg,#27362d 2%,rgba(39,54,45,.94) 24%,rgba(39,54,45,.66) 56%,transparent 86%); }
  .hero-inner { padding-block: 135px 54px; }
  h1 { font-size: clamp(35px, 8.7vw, 55px); }
  .intro { margin-block: 14px 19px; font-size: 14px; }
  .photo-credit { bottom: 12px; right: 18px; }
  .services b { display: block; margin: 2px 0 0; font-size: 13px; }
  .application { grid-template-columns: 1fr; padding-block: 46px; }
  .application-copy { padding-top: 0; }
  .application-copy > p:not(.eyebrow) { margin-block: 12px 18px; font-size: 14px; }
  .call-card { display: none; }
  .portfolio { padding-block: 42px; }
}
@media (max-width: 420px) {
  .fields, .gallery { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.online-fallback:not([hidden]) { display: inline-block; margin-top: 9px; color: #354639; font-size: 14px; font-weight: 700; text-underline-offset: 3px; }

/* 추가: 헤더 네비게이션, 시공사진 & 고객후기 링크 스타일 */
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-link { text-decoration: none; font-size: 14px; font-weight: 700; color: var(--ink); padding: 6px 10px; border-radius: 6px; transition: background .15s; }
.nav-link:hover { background: #e9ecdf; }
.hero-actions { display: flex; flex-direction: column; gap: 14px; width: fit-content; }
.hero-sublinks { display: flex; flex-wrap: wrap; gap: 10px; }
.sublink-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; color: #f7f4ed; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(4px); transition: background .15s; }
.sublink-btn:hover { background: rgba(255, 255, 255, 0.24); }
.quick-links-card { margin-top: 22px; display: grid; gap: 10px; max-width: 340px; }
.quick-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s, transform .15s; }
.quick-link:hover { border-color: var(--green); transform: translateY(-1px); }
.quick-link strong { display: block; font-size: 14px; color: var(--ink); }
.quick-link small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.form-bottom-links { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.form-bottom-links a { font-size: 13px; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.portfolio-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.portfolio-head h2 { margin-bottom: 0; }
.portfolio-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.outline-btn { min-height: 44px; padding: 10px 18px; gap: 14px; font-size: 14px; background: var(--paper); color: var(--ink); border: 1px solid #c2c9bc; }
.outline-btn:hover { background: #f7f4ed; border-color: var(--green); }
.solid-btn { min-height: 44px; padding: 10px 18px; gap: 14px; font-size: 14px; background: var(--green); color: white; }
.solid-btn:hover { background: #26362c; }
.gallery-link { text-decoration: none; display: block; color: inherit; }
.gallery-link:hover figcaption { color: var(--green); }
.footer-links { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-links a { color: #daddc1; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .header-actions { gap: 8px; }
  .nav-link { font-size: 12px; padding: 5px 7px; }
  .quick-links-card { max-width: 100%; margin-top: 14px; }
  .portfolio-head { flex-direction: column; align-items: flex-start; }
  .portfolio-cta { width: 100%; }
  .portfolio-cta .button { flex: 1 1 auto; justify-content: center; }
}
