/* Villa Karla — villakarla.eu */
:root {
  --bg: #f4efe4; --tint: #ece3d0; --card: #fdfbf4;
  --deep: #16404f; --deep-h: #1f5468; --ink: #223540;
  --peach: #ecc59b; --terra: #c4602f; --terra-h: #d4703c; --terra-deep: #a34a20;
  --link: #2e6b7a; --line: #ded2ba; --line2: #cfc0a4;
  --dim: #756e60; --dim2: #a3998a; --body: #4f4b42; --cream: #f7efe1;
  --sage: #e7ecdf; --sage-line: #d3dcc5; --sage-ink: #5c6b4e;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Karla', sans-serif; text-wrap: pretty; }
a { color: var(--link); } a:hover { color: var(--terra-deep); }
::selection { background: #f0d9c4; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.serif { font-family: 'Cormorant Garamond', serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.kicker { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 16px; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(12px, 1.8vw, 28px); padding: 10px clamp(20px, 4vw, 48px); background: var(--bg); border-bottom: 1px solid var(--line); transition: background 0.35s ease, border-color 0.35s ease; }
.nav .links { display: flex; flex-wrap: wrap; gap: 10px clamp(12px, 1.8vw, 28px); }
.nav .links a { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; transition: color 0.35s; }
.nav .links a:hover { color: var(--terra-deep); }
.nav .links a.active { color: var(--terra-deep); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: #174050; transition: color 0.35s; cursor: pointer; }
.brand:hover { color: #174050; }
.mark { width: 46px; height: 46px; flex-shrink: 0; background: currentColor; -webkit-mask: url(logo-mark.svg) center / contain no-repeat; mask: url(logo-mark.svg) center / contain no-repeat; }
.brand-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 25px; line-height: 1; }
.brand-sub { font-style: italic; font-size: 12.5px; line-height: 1; margin-top: 4px; opacity: 0.85; }
.langs { display: flex; gap: 2px; border-left: 1px solid var(--line); padding-left: clamp(10px, 1.5vw, 20px); transition: border-color 0.35s; }
.langs button { border: 0; background: transparent; font-family: 'Karla', sans-serif; font-size: 12px; letter-spacing: 0.1em; cursor: pointer; padding: 4px 6px; color: var(--dim2); transition: color 0.35s; }
.langs button.active { color: var(--terra-deep); font-weight: 700; }
/* transparent nav over hero */
.nav.overlay { background: linear-gradient(180deg, rgba(13, 38, 50, 0.5), rgba(13, 38, 50, 0)); border-color: transparent; }
.nav.overlay .links a, .nav.overlay .brand { color: var(--cream); }
.nav.overlay .links a.active, .nav.overlay .langs button.active { color: var(--peach); }
.nav.overlay .langs { border-color: transparent; }
.nav.overlay .langs button { color: rgba(247, 239, 225, 0.75); }
main.pad { padding-top: 92px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; font-family: 'Karla', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background 0.3s ease; }
.btn-deep { background: var(--deep); color: var(--peach); border-color: var(--deep); } .btn-deep:hover { background: var(--deep-h); color: var(--peach); }
.btn-terra { background: var(--terra); color: var(--cream); border-color: var(--terra); } .btn-terra:hover { background: var(--terra-h); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247, 239, 225, 0.7); } .btn-ghost:hover { background: rgba(247, 239, 225, 0.14); color: var(--cream); }
.nav .btn { padding: 13px 24px; font-weight: 600; }

/* reveal animations */
@keyframes rvUp { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes rvImg { from { opacity: 0; transform: scale(1.12) translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rvRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.14) translateY(-1.5%); } }
@keyframes heroline { from { opacity: 0; transform: translateY(110%); } to { opacity: 1; transform: none; } }
@keyframes track { from { letter-spacing: 0.55em; opacity: 0; } to { letter-spacing: 0.24em; opacity: 1; } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.9; } 50% { transform: translateY(10px); opacity: 0.4; } }
.rv { animation: rvUp 1s cubic-bezier(0.22, 1, 0.36, 1) both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
.rv-img { animation: rvImg 1s cubic-bezier(0.22, 1, 0.36, 1) both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
.rv-rule { animation: rvRule 1s ease both; animation-timeline: view(); animation-range: entry 20% entry 60%; }
.rv-load { animation: rvUp 1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* hero */
.hero { position: relative; height: min(78vh, 720px); overflow: hidden; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 30%; animation: kenburns 24s ease-in-out infinite alternate; }
.hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 38, 50, 0.12) 30%, rgba(13, 38, 50, 0.68) 100%); }
.hero .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(20px, 5vw, 64px) clamp(36px, 5vw, 64px); max-width: 1180px; margin: 0 auto; }
.hero .loc { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--peach); margin: 0 0 16px; display: flex; align-items: center; gap: 14px; animation: track 1.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .loc::before { content: ""; width: 40px; height: 1px; background: var(--terra); }
.hero .mask { overflow: hidden; padding-bottom: 0.08em; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(48px, 7vw, 96px); line-height: 1.06; color: var(--cream); margin: 0; max-width: 14ch; animation: heroline 1.2s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; animation: rvUp 1.2s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .cue { position: absolute; bottom: 26px; right: clamp(20px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--cream); animation: rvUp 1.2s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .cue span:first-child { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero .cue span:last-child { width: 1px; height: 46px; background: linear-gradient(var(--cream), transparent); animation: cue 2.2s ease-in-out infinite; }

/* sections */
.intro { max-width: 860px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px) 0; text-align: center; }
.intro .over { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 20px; }
.intro p.lead { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; margin: 0; }
.intro .rule { width: 48px; height: 2px; background: var(--terra); margin: 36px auto 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; padding: clamp(48px, 6vw, 80px) 0; }
.stats .n { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--terra-deep); margin: 0; }
.stats .l { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin: 12px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 4vw, 56px) 0; }
.split.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; margin: 0; }
.split p.copy { font-size: 16px; line-height: 1.75; color: var(--body); margin: 18px 0 0; max-width: 46ch; }
.split .num { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 14px; }
.ph-wrap { overflow: hidden; border-radius: 28px; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease; }
.ph-wrap:hover { transform: scale(1.025) translateY(-4px); box-shadow: 0 18px 44px rgba(22, 64, 79, 0.2); }
.ph-wrap img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph { border-radius: 28px; display: block; width: 100%; object-fit: cover; }
.quotebox { background: var(--tint); }
.quotebox .in { max-width: 860px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px); text-align: center; }
.quotebox .qm { font-family: 'Cormorant Garamond', serif; font-size: 84px; line-height: 0.4; color: var(--terra); margin: 0 0 8px; }
.quotebox blockquote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; margin: 0; }
.quotebox .who { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin: 28px 0 0; }
.quotebox .score { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin: 12px 0 0; }
.poster { background: var(--deep); color: var(--cream); }
.poster .in { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 64px); text-align: center; }
.poster .over { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--terra); margin: 0 0 18px; }
.poster h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.1; margin: 0; }
.poster .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* page headers */
.pagehead { padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); text-align: center; max-width: 780px; margin: 0 auto; }
.pagehead h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; margin: 0; }
.pagehead p.lead { font-size: 16.5px; line-height: 1.75; color: var(--body); margin: 24px 0 0; }
.pagehead .over { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 16px; }

/* villa */
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.room { background: var(--card); border: 1px solid var(--line); padding: 32px; box-shadow: 0 10px 34px rgba(22, 64, 79, 0.07); }
.room h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 27px; line-height: 1.2; margin: 0; }
.room .bar { width: 32px; height: 2px; background: var(--terra); margin: 14px 0; }
.room p { font-size: 15.5px; line-height: 1.7; margin: 0; color: var(--body); }
.rnote { font-size: 14.5px; line-height: 1.7; margin: 20px 0 0; color: var(--dim); text-align: center; }
.band { background: var(--tint); padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 64px); }
.ams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1052px; margin: 0 auto; }
.am { background: var(--card); border: 1px solid var(--line2); padding: 20px 18px; font-size: 14.5px; line-height: 1.4; display: flex; align-items: center; gap: 10px; }
.am::before { content: ""; width: 8px; height: 8px; background: var(--terra); border-radius: 50%; flex-shrink: 0; }
.rules { padding: clamp(48px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); max-width: 720px; margin: 0 auto; }
.rules p { font-size: 15.5px; line-height: 1.7; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: clamp(56px, 7vw, 88px); }
.gal figure { margin: 0; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.gal figure:hover { transform: scale(1.02) translateY(-4px); }
.gal figure.wide { grid-column: 1 / -1; }
.gal img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.gal .wide img { aspect-ratio: 21 / 9; }
.gal figcaption { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); padding-top: 12px; }

/* location */
.map { display: block; width: 100%; height: clamp(320px, 44vw, 480px); border: 0; border-radius: 28px; margin-bottom: clamp(28px, 4vw, 56px); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(56px, 7vw, 88px); align-items: start; }
.distbox { background: var(--sage); padding: clamp(28px, 3.5vw, 44px); }
.distbox .kicker { color: var(--sage-ink); margin-bottom: 18px; }
.dist { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sage-line); font-size: 15px; }
.dist b { white-space: nowrap; }
.nb { font-size: 15.5px; line-height: 1.7; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.coords { font-size: 13px; letter-spacing: 0.04em; color: var(--dim); margin: 24px 0 0; }

/* rates & booking */
.rates-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rates-table th { text-align: left; padding: 12px 10px; border-bottom: 2px solid var(--terra); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra-deep); font-weight: 400; }
.rates-table td { padding: 15px 10px; border-bottom: 1px solid var(--line); }
.rates-table .r { text-align: right; }
.rates-table .price { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 21px; }
.rates-note { font-size: 14.5px; line-height: 1.7; color: var(--dim); margin: 18px 0 0; text-align: center; }
.divider { width: 48px; height: 2px; background: var(--terra); margin: clamp(40px, 5vw, 56px) auto; }
.bookhead { text-align: center; margin-bottom: 32px; }
.bookhead h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(28px, 3.2vw, 38px); margin: 0; }
.bookhead p { font-size: 15px; line-height: 1.7; color: var(--dim); margin: 10px 0 0; }
.booking { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: clamp(56px, 7vw, 88px); }
.cals { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cal h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 21px; margin: 0 0 12px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-week { margin-bottom: 4px; }
.cal-week span { text-align: center; font-size: 11px; letter-spacing: 0.1em; color: var(--dim2); padding: 4px 0; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; font-family: 'Karla', sans-serif; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.cal-day:hover { background: #f0d9c4; }
.cal-day.blank { visibility: hidden; }
.cal-day.booked { background: #e9dfc9; color: #ab9f88; text-decoration: line-through; cursor: default; }
.cal-day.booked:hover { background: #e9dfc9; }
.cal-day.range { background: #f0d9c4; }
.cal-day.edge { background: var(--deep); color: #f4e8d3; }
.legend { grid-column: 1 / -1; display: flex; gap: 24px; font-size: 13px; color: var(--dim); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; display: inline-block; }
.card { background: var(--card); border: 1px solid var(--line); padding: 32px; box-shadow: 0 10px 34px rgba(22, 64, 79, 0.09); }
.card .kicker { margin-bottom: 18px; }
.fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.flabel { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim2); margin: 0 0 4px; }
.fval { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 22px; margin: 0; }
.input { width: 100%; padding: 12px 14px; border: 1px solid var(--line2); background: var(--bg); font-family: 'Karla', sans-serif; font-size: 15px; color: var(--ink); }
.totalrow { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.totalrow .nights { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim2); }
.totalrow .total { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 32px; }
.incl { font-size: 13px; color: var(--dim2); margin: 2px 0 0; text-align: right; }
.warn { font-size: 13.5px; line-height: 1.5; color: var(--terra-deep); margin: 14px 0 0; }
.stack { display: grid; gap: 12px; margin-top: 20px; }
.success { text-align: center; max-width: 560px; margin: 0 auto clamp(56px, 7vw, 88px); }
.success h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 32px; margin: 0; }
.success .rule { width: 40px; height: 2px; background: var(--terra); margin: 18px auto; }
.hidden { display: none !important; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: clamp(56px, 7vw, 88px); }
.contact form { display: grid; gap: 14px; }
.contact .input { background: var(--card); padding: 13px 14px; }
.contact textarea.input { resize: vertical; }
.details { background: var(--tint); padding: clamp(28px, 3.5vw, 40px); }
.details .big { font-size: 17px; line-height: 1.7; margin: 0; }
.details .big + .big { margin-top: 8px; }
.details .muted { font-size: 14.5px; line-height: 1.7; margin: 20px 0 0; color: var(--dim); }

/* footer */
footer { background: var(--deep); color: #c6d0d2; }
footer .in { max-width: 1180px; margin: 0 auto; padding: 48px clamp(20px, 5vw, 64px) 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
footer .brandf { display: flex; align-items: center; gap: 16px; color: #fff; }
footer .mark { width: 72px; height: 72px; }
footer .brand-name { font-size: 34px; }
footer .brand-sub { font-size: 15px; margin-top: 5px; }
footer .meta { font-size: 13.5px; line-height: 1.8; }
footer .meta p { margin: 0; }
footer .meta a { color: var(--peach); }
footer .meta .fine { color: #8fa1a8; }

/* hamburger */
.burger { display: none; border: 0; background: transparent; cursor: pointer; padding: 10px; margin-left: 4px; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav .burger { color: var(--ink); }
.nav.overlay .burger { color: var(--cream); }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev, .two, .booking, .contact, .rooms, .gal, .cals { grid-template-columns: 1fr; }
  .ams { grid-template-columns: repeat(2, 1fr); }
  .burger { display: flex; }
  .nav .links { display: none; }
  .nav .btn { display: none; }
  .nav .langs { margin-left: auto; }
  .nav.open { background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open .brand, .nav.open .burger { color: var(--ink); }
  .nav.open .langs button { color: var(--dim2); }
  .nav.open .langs button.active { color: var(--terra-deep); }
  .nav.open .links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; order: 4; width: 100%; padding: 8px 0 6px; border-top: 1px solid var(--line); margin-top: 8px; }
  .nav.open .links a { display: block; width: 100%; padding: 13px 0; font-size: 14px; color: var(--ink) !important; }
  .nav.open .btn { display: inline-flex; order: 5; width: 100%; margin-bottom: 12px; }
}
