@font-face {
  font-family: 'DM Sans';
  src: url('/assets/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/playfair.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/playfair-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --sand: #efe7da;
  --ink: #251d17;
  --muted: #615347;
  --deep: #1e1814;
  --deep-border: #4f3f30;
  --ivory: #fff9eb;
  --gold: #e2bc81;
  --gold-dark: #87582b;
  --rule: #d6c7b4;
  --body: 'DM Sans', Arial, sans-serif;
  --display: 'Playfair Display', Georgia, serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --content: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 3px solid #bf8648; outline-offset: 4px; }

.container { width: min(var(--content), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.35em; height: 1.35em; flex: none; }
.skip-link { position: absolute; z-index: 5; top: .8rem; left: .8rem; padding: .65rem .9rem; background: var(--ivory); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; background: var(--deep); color: var(--ivory); border-bottom: 1px solid var(--deep-border); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 5.3rem; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; color: var(--gold); text-decoration: none; }
.brand-symbol { position: relative; width: 2.7rem; height: 2.7rem; overflow: hidden; mix-blend-mode: screen; flex: none; }
.brand-symbol img { position: absolute; top: -.12rem; left: -1.39rem; width: 5.45rem; max-width: none; height: auto; }
.brand-name { display: grid; gap: .04rem; line-height: 1; }
.brand-name span { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; }
.brand-name strong { font: 500 1.55rem/1 var(--display); letter-spacing: .015em; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2.7rem); }
.main-nav a { color: #eee1d0; text-decoration: none; font-size: .92rem; font-weight: 500; }
.main-nav a:hover { color: var(--gold); }
.header-quote { justify-self: end; }
.menu-button { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .68rem 1.45rem; border: 1px solid transparent; border-radius: .22rem; text-decoration: none; text-align: center; font-weight: 700; font-size: .94rem; line-height: 1.3; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.button-gold { background: var(--gold); color: var(--deep); }
.button-gold:hover { background: #f3d49f; }
.button-outline { min-height: 2.65rem; padding-inline: 1.05rem; border-color: #947247; color: var(--gold); font-size: .86rem; }
.button-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }

.hero { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); min-height: clamp(32rem, 44vw, 42rem); background: var(--deep); color: var(--ivory); }
.hero-copy { align-self: center; padding: clamp(3rem, 6.3vw, 7rem) clamp(1.5rem, 4.2vw, 4.75rem) clamp(3.4rem, 6.3vw, 7rem) max(var(--gutter), calc((100vw - var(--content)) / 2)); }
.eyebrow { display: flex; gap: .65rem; align-items: center; margin-bottom: 1rem; color: var(--gold-dark); font-size: .825rem; font-weight: 700; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: 1.6rem; height: 1px; background: currentColor; flex: none; }
.hero .eyebrow, .section-contact .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }
h1 { font-size: clamp(3.25rem, 5.55vw, 6rem); line-height: .99; letter-spacing: -.04em; }
h2 { font-size: clamp(2.55rem, 4.2vw, 4.05rem); line-height: 1.08; letter-spacing: -.04em; }
h1 em, h2 em { color: var(--gold-dark); font-weight: 500; }
.hero h1 em, .section-contact h2 em { display: block; color: var(--gold); }
.hero-description { margin: 1.65rem 0 1.9rem; max-width: 25rem; color: #eee0ce; font-size: clamp(1rem, 1.35vw, 1.16rem); }
.hero-visual { position: relative; min-width: 0; min-height: 100%; background: #83674e; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 55%; }
.hero-visual figcaption { position: absolute; right: 1.1rem; bottom: 1rem; background: #211912dc; color: var(--ivory); padding: .32rem .62rem; font-size: .78rem; }

.section { padding-block: clamp(4rem, 7.4vw, 7rem); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 24rem); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-intro > p { max-width: 27rem; margin-bottom: .25rem; color: var(--muted); font-size: 1.06rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 2.7vw, 2.35rem); row-gap: 2.1rem; }
.gallery-link { display: block; position: relative; overflow: hidden; aspect-ratio: 1.69; isolation: isolate; color: var(--ivory); text-decoration: none; background: #6f5038; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; transition: transform 320ms ease; }
.gallery-link-closet img { object-position: center 52%; }
.gallery-link-living img { object-position: center 49%; }
.gallery-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #1b110de8 0%, transparent 56%); pointer-events: none; }
.gallery-link:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; z-index: 1; inset: auto clamp(.9rem, 2vw, 1.45rem) clamp(.8rem, 2vw, 1.25rem); display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.gallery-caption h3 { font-size: clamp(1.48rem, 2.8vw, 2.25rem); line-height: 1.1; }
.gallery-plus { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; flex: none; border: 1px solid #fff9ebb3; border-radius: 50%; background: #2b1f16a6; color: white; font-size: 1.45rem; line-height: 1; transition: background-color 160ms ease, color 160ms ease; }
.gallery-link:hover .gallery-plus { background: var(--gold); color: var(--ink); }
.gallery-item > p { margin-top: .72rem; color: var(--muted); }
.photo-note { margin-top: 1.45rem; color: var(--muted); font-size: .875rem; }

.section-process { background: var(--sand); }
.process-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); align-items: center; gap: clamp(2.25rem, 7vw, 7rem); }
.process-photo { aspect-ratio: .97; background: #98836e; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.process-copy h2 { max-width: 36rem; }
.process-copy h2 em { display: block; }
.steps { margin-top: 1.6rem; }
.steps > div { padding-block: .9rem; border-top: 1px solid var(--rule); }
.steps dt { color: var(--ink); font-size: 1.02rem; font-weight: 700; }
.steps dd { margin-top: .18rem; color: var(--muted); }

.section-contact { background: var(--deep); color: var(--ivory); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 23rem; margin-top: 1rem; color: #e6d6c2; }
.contact-copy address { display: grid; justify-items: start; gap: .75rem; margin-top: 1.75rem; font-style: normal; }
.contact-copy address a { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); align-items: start; gap: .62rem; color: #f2e2ce; overflow-wrap: anywhere; text-decoration-color: transparent; text-underline-offset: .2rem; }
.contact-copy address a:hover { text-decoration-color: currentColor; }
.contact-copy address .icon { margin-top: .1rem; color: var(--gold); }
.mail-icon { position: relative; width: 1.03rem; height: .74rem; margin: .38rem 0 0 .15rem; border: 1px solid var(--gold); border-radius: .12rem; }
.mail-icon::after { position: absolute; content: ''; width: .47rem; height: .47rem; left: .22rem; top: -.13rem; border: solid var(--gold); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.quote-form { display: grid; gap: .52rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #594838; background: #292019; }
.quote-form h3 { font-size: clamp(1.65rem, 2.7vw, 2.2rem); line-height: 1.15; margin-bottom: .4rem; }
.quote-form label { margin-top: .35rem; color: #f4e5d2; font-size: .94rem; font-weight: 600; }
.quote-form label small { font-size: .84rem; font-weight: 400; }
.quote-form select, .quote-form textarea { display: block; width: 100%; min-width: 0; padding: .65rem .8rem; border: 1px solid #7c6651; border-radius: .16rem; background: #201913; color: var(--ivory); }
.quote-form select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-size: 5px 5px; background-position: right 17px center, right 12px center; background-repeat: no-repeat; }
.quote-form textarea { resize: vertical; min-height: 5.25rem; }
.quote-form textarea::placeholder { color: #bfad98; }
.quote-form .button { margin-top: .4rem; }
.form-note { color: #d6c5ae; font-size: .82rem; }

.site-footer { border-top: 1px solid var(--deep-border); padding-block: 1.6rem; background: var(--deep); color: #e2d0b8; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.8rem; min-height: 3rem; padding-right: 3rem; }
.footer-inner > p { font-size: .88rem; }
.photo-credits { margin-left: auto; font-size: .88rem; }
.photo-credits summary { color: var(--gold); }
.photo-credits ul { padding-left: 1.25rem; margin-block: .55rem 0; }
.photo-credits a { text-underline-offset: .16rem; }

.whatsapp-float { position: fixed; z-index: 3; right: max(1.15rem, env(safe-area-inset-right)); bottom: max(1.15rem, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 3.7rem; height: 3.7rem; border: 2px solid #fff8ed; border-radius: 50%; background: #087a45; color: white; box-shadow: 0 .35rem 1.2rem #24170e4d; transition: background-color 160ms ease, transform 160ms ease; }
.whatsapp-float .icon { width: 1.95rem; height: 1.95rem; }
.whatsapp-float:hover { background: #065e35; transform: translateY(-2px); }

.gallery-dialog { width: min(54rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 0; background: var(--deep); color: var(--ivory); }
.gallery-dialog::backdrop { background: #18120cce; }
.dialog-panel { position: relative; }
.dialog-panel img { width: 100%; height: min(55dvh, 34rem); background: #19130f; object-fit: contain; }
.dialog-close { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; padding: 0; border: 1px solid #fff9ebb3; border-radius: 50%; background: var(--deep); color: white; font-size: 1.65rem; line-height: 1; }
.dialog-copy { padding: 1.1rem clamp(1rem, 4vw, 1.8rem) 1.6rem; }
.dialog-copy h2 { color: var(--gold); font-size: clamp(1.9rem, 5vw, 2.8rem); }
.dialog-copy p { margin: .45rem 0 1rem; }

@media (max-width: 900px) {
  .header-inner { gap: .9rem; }
  .main-nav { gap: 1rem; }
  .hero { min-height: 29rem; }
  .hero-copy { padding-right: 1.2rem; }
}
@media (max-width: 780px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 4.45rem; gap: 0; }
  .header-quote { display: none; }
  .menu-button { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.7rem; padding: .35rem .65rem; border: 1px solid #947247; border-radius: .2rem; background: transparent; color: var(--gold); line-height: 1; }
  .menu-icon, .menu-icon::after { display: block; width: .9rem; height: 1px; background: currentColor; }
  .menu-icon { margin-bottom: .28rem; }
  .menu-icon::after { content: ''; transform: translateY(.28rem); }
  .main-nav { grid-column: 1 / -1; gap: .1rem .9rem; padding: .4rem 0 .75rem; }
  .main-nav a { display: block; padding: .45rem 0; }
  .menu-ready .main-nav { display: none; }
  .menu-ready .menu-button[aria-expanded='true'] + .main-nav { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 3.15rem var(--gutter) 2.75rem; }
  .hero h1 { max-width: 33rem; font-size: clamp(2.9rem, 9vw, 4.7rem); }
  .hero-description { margin: 1.2rem 0 1.5rem; }
  .hero-visual { min-height: clamp(15.5rem, 62vw, 25rem); }
  .section-intro { grid-template-columns: 1fr; gap: .9rem; margin-bottom: 1.45rem; }
  .process-layout { gap: 1.5rem; }
  .contact-layout { gap: 2rem; }
}
@media (max-width: 590px) {
  .gallery, .process-layout, .contact-layout { grid-template-columns: 1fr; }
  .gallery { row-gap: 1.55rem; }
  .process-photo { aspect-ratio: 1.3; }
  .process-copy { grid-row: 1; }
  .photo-credits { width: 100%; margin-left: 0; }
  .whatsapp-float { width: 3.45rem; height: 3.45rem; right: max(.9rem, env(safe-area-inset-right)); bottom: max(.9rem, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
