/* My New Home in France — static rebuild of the Squarespace site */

@font-face {
  font-family: 'Aboreto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/aboreto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Aboreto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/aboreto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Script headline font: the same file that was uploaded to the Squarespace site */
@font-face {
  font-family: 'ZAPFINO';
  font-display: swap;
  src: url('fonts/ZapfinoExtraLTCYR-One.otf') format('opentype');
}

:root {
  --brown: #341c09;
  --sky: #8cdcf4;
  --sand: #e9e4dd;
  --pad: clamp(23px, 5.56vw, 80px);
  --fs-s: clamp(17.16px, calc(16.82px + 0.087vw), 19.5px);
  --fs-m: clamp(22.56px, calc(21.37px + 0.304vw), 28px);
  --fs-l: clamp(25.8px, calc(24.1px + 0.434vw), 33px);
  --fs-script: clamp(49.56px, calc(44.14px + 1.39vw), 70px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: 'Aboreto', 'Optima', 'Gill Sans', 'Trebuchet MS', sans-serif;
  font-size: var(--fs-s);
  line-height: 1.3;
  letter-spacing: -0.773px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  font-family: 'ZAPFINO', 'Zapfino', 'Snell Roundhand', 'Apple Chancery', cursive;
  font-weight: 400;
  font-size: var(--fs-script);
  line-height: 1.1336;
  letter-spacing: normal;
  margin: 0;
  text-align: center;
}
.skip {
  position: absolute; left: -9999px; top: 17px; padding: 12px 18px;
  background: var(--brown); color: #fff; z-index: 100;
}
.skip:focus { left: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  height: 170px;
  padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header .logo img { width: 454px; height: auto; }
.site-nav { display: flex; gap: 35px; }
.site-nav a {
  color: var(--brown);
  font-size: 18.07px; line-height: 1.3; font-weight: 600; letter-spacing: normal;
  text-decoration: none;
  padding: 2px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.menu-toggle { display: none; }

@media (max-width: 1000px) {
  .site-header { height: 127px; padding: 0 23px; }
  .site-header .logo img { width: 170px; }
  .menu-toggle {
    display: block; width: 47px; height: 37px; border: 0; background: none; padding: 6px; cursor: pointer;
    position: relative; z-index: 60;
  }
  .menu-toggle span { display: block; height: 1px; background: var(--brown); margin: 5px 0; transition: transform .25s, margin .25s; }
  body.menu-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); margin: 0; }
  body.menu-open .menu-toggle span:last-child { transform: translateY(2px) rotate(-45deg); margin: 0; }
  .site-nav {
    position: fixed; inset: 0; z-index: 50; background: #fff;
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .site-nav a { font-size: 30px; }
  body.menu-open .site-nav { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.center { text-align: center; }

.hero { padding-bottom: 38px; }
.hero h1 { max-width: 960px; margin: 0 auto; }
.hero p { margin-top: 14px; }

.video { padding: 48px var(--pad) 49px; }
.video .frame { position: relative; max-width: 1067px; margin: 0 auto; aspect-ratio: 1067 / 603; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.intro { padding-top: 60px; padding-bottom: 60px; }
.lead { font-size: var(--fs-l); line-height: 1.3; }

.facts {
  list-style: none; padding: 0;
  margin: 60px auto 0; width: min(1172px, 100%);
  display: grid; grid-template-columns: 323fr 322fr 269fr 258fr; row-gap: 59px;
}
.facts > li { display: flex; align-items: center; gap: 34px; min-height: 57px; }
.facts img { width: 43px; height: auto; flex: none; }
.facts ul { margin: 0; padding-left: 17px; list-style: disc; }
.facts ul li { font-weight: 700; line-height: 1.3; padding: 4px 0 5px; }
.facts .wine { order: 9; }
.price { margin-top: 36px; font-size: var(--fs-m); line-height: 1.3; }

.btn {
  display: inline-block; background: var(--brown); color: #fff; text-decoration: none;
  font-family: inherit; font-size: 18.84px; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 21.6px 39.9px; border: 0; cursor: pointer; transition: opacity .2s;
}
.btn:hover { opacity: .8; }
.btn-row { margin-top: 67px; display: flex; justify-content: center; gap: 11px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .video { padding: 51px var(--pad) 52px; }
  .intro { padding-top: 13px; padding-bottom: 49px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 37px; row-gap: 46px; }
  .facts .wine { order: 0; }
  .btn { font-size: 17.7px; padding: 8px 18px; }
  .btn-row { margin-top: 41px; }
  .btn-row .btn { width: 122px; text-align: center; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; row-gap: 44px; }
  .facts > li { gap: 35px; min-height: 44px; }
  .inquiry .sub { font-size: 17px; }
  .inquiry .req { font-size: 15px; margin-left: 4px; }
  .facts img { width: 33px; }
}

/* ---------- Photo strip ---------- */
.strip { position: relative; }
.strip .track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  height: 270px;
}
.strip .track::-webkit-scrollbar { display: none; }
.strip .track a { flex: none; scroll-snap-align: start; height: 100%; }
.strip .track img { height: 100%; width: auto; max-width: none; }
.strip button {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; cursor: pointer;
  background: rgba(233, 228, 221, .85); color: #000; font-size: 22px; line-height: 1;
  display: grid; place-items: center;
}
.strip button svg { width: 24px; height: 14px; }
.strip .prev { left: 15px; }
.strip .next { right: 15px; }
@media (max-width: 640px) {
  .strip .track a { width: 100%; }
  .strip .track img { width: 100%; object-fit: cover; }
}

/* ---------- Details / accordion ---------- */
.details { padding-top: 47px; padding-bottom: 48px; }
.accordion { margin-top: 34px; border-bottom: 1px solid #000; }
.accordion details { border-top: 1px solid #000; }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 26px;
  padding: 28px 0; font-size: var(--fs-m); line-height: 1.3;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: ''; flex: none; width: 24px; height: 24px;
  background:
    linear-gradient(#000, #000) center / 100% 3px no-repeat,
    linear-gradient(#000, #000) center / 3px 100% no-repeat;
}
.accordion details[open] summary::before { background: linear-gradient(#000, #000) center / 100% 3px no-repeat; }
.accordion .panel { padding: 4px 0 14px; line-height: 1.3; }
.accordion .panel a { color: #873530; text-decoration: none; }
.accordion .panel a:hover { text-decoration: underline; }
.accordion .panel p { margin: 0 0 .9em; }
.accordion .panel ul { margin: 0 0 1em; padding-left: 1.3em; }
.accordion .panel li { margin: 0 0 .5em; }
.accordion .panel li p { margin: 0; }
.details .btn-row { margin-top: 11px; }
@media (max-width: 1000px) {
  .details { padding-top: 30px; padding-bottom: 30px; }
  .accordion { margin-top: 12px; }
  .details .btn-row { justify-content: flex-start; }
  .details .btn-row .btn { width: 166px; }
}

/* ---------- Map ---------- */
.location { background: var(--sky); color: var(--brown); }
.location p { padding: 38px var(--pad); font-size: var(--fs-l); line-height: 1.3; text-align: center; }
.location iframe { display: block; width: 100%; height: 567px; border: 0; filter: grayscale(1); }
@media (max-width: 1000px) {
  .location p { padding: 35px var(--pad) 11px; }
  .location iframe { height: 269px; }
}

/* ---------- Discover ---------- */
.discover { background: var(--brown); color: #fff; padding-top: 77px; padding-bottom: 91px; }
.discover .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.discover p { margin: 43px auto 0; max-width: 527px; font-size: var(--fs-m); line-height: 1.3; text-align: center; }
@media (max-width: 1000px) {
  .discover { padding-top: 35px; padding-bottom: 36px; }
  .discover .cols { grid-template-columns: 1fr; gap: 46px; }
  .discover p { margin-top: 11px; }
}

/* ---------- Inquiry form ---------- */
.inquiry { padding-top: 48px; padding-bottom: 92px; scroll-margin-top: 10px; }
.inquiry form { max-width: 558px; margin: 45px auto 0; color: var(--brown); letter-spacing: normal; }
.inquiry fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.inquiry legend, .inquiry .title { padding: 0; font-size: 19.6px; line-height: 1.1; margin-bottom: 6px; display: block; }
.inquiry .req { font-size: 17px; opacity: .7; margin-left: 8px; }
.inquiry .sub { display: block; font-size: 19.6px; line-height: 1.3; margin-bottom: 4px; }
.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inquiry .row.phone { grid-template-columns: 221px 1fr; gap: 6px; }
.inquiry .field { margin-bottom: 18px; }
.inquiry input[type=text], .inquiry input[type=email], .inquiry input[type=tel], .inquiry select {
  width: 100%; height: 47px; padding: 0 11px;
  border: 1px solid rgba(52, 28, 9, .6); border-radius: 0; background: #fff; color: var(--brown);
  font-family: inherit; font-size: 16.5px; letter-spacing: -0.5px;
}
.inquiry select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 1l8 8 8-8' fill='none' stroke='%23341c09' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
}
.inquiry input:focus, .inquiry select:focus { outline: 2px solid var(--brown); outline-offset: 1px; }
.inquiry .check { display: flex; align-items: flex-start; gap: 11px; font-size: 18px; line-height: 1.8; margin: 6px 0 16px; cursor: pointer; letter-spacing: -0.54px; }
.inquiry .check input {
  flex: none; width: 15px; height: 15px; margin: 9px 0 0;
  appearance: none; -webkit-appearance: none; border: 1px solid var(--brown); border-radius: 0; background: #fff; cursor: pointer;
}
.inquiry .check input:checked {
  background: var(--brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.inquiry .hp { position: absolute; left: -9999px; }
.inquiry .btn { width: 100%; padding: 15.7px 20px; }
.inquiry .error { color: #a02020; font-size: 16px; margin: -8px 0 16px; min-height: 0; }
@media (max-width: 1000px) {
  .inquiry { padding-top: 240px; padding-bottom: 50px; }
  .inquiry form { padding: 0 21px; }
  .inquiry .row.phone { grid-template-columns: 118px 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #fff; text-align: center; padding: 27px var(--pad) 32px; }
@media (max-width: 1000px) { .site-footer { padding: 0 var(--pad) 26px; } }

/* ---------- Photo gallery page ---------- */
.gallery-page { background: var(--sand); }
.masonry { display: flex; gap: 2px; padding: 0 1px; }
.masonry .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.masonry a { display: block; }
.masonry img { width: 100%; height: auto; }
.masonry.fallback { display: block; columns: 3; column-gap: 2px; }
.masonry.fallback a { margin-bottom: 2px; break-inside: avoid; }
@media (max-width: 640px) { .masonry.fallback { columns: 2; } }

/* ---------- Floor plan page ---------- */
.plan-page { background: var(--sky); padding: 14px var(--pad) 15px; }
.plan-page a { display: block; width: fit-content; margin: 0 auto; }
.plan-page img { width: auto; height: auto; max-width: 100%; max-height: 900px; }
@media (max-width: 1000px) { .plan-page { padding: 25px 50px; } }

/* ---------- Message pages ---------- */
.message { padding: 80px var(--pad) 120px; text-align: center; }
.message p { margin: 40px auto 0; max-width: 640px; font-size: var(--fs-m); }
.message .btn-row { margin-top: 50px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 12, 5, .94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 60px); width: auto; height: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  width: 56px; height: 56px; font-size: 34px; line-height: 1; font-family: Arial, sans-serif;
}
.lightbox .close { top: 10px; right: 10px; }
.lightbox .prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); } }
