/* Karaway design system */
:root {
  --bg: #faf6ef; --bg-warm: #f4ecdc; --ink: #1e2a2e; --ink-soft: #4a5558; --muted: #8a8075;
  --line: #e3dcc9; --line-soft: #ebe4d3; --ocean: #1e3a3f; --ocean-deep: #0f2326;
  --sand: #d4b896; --terracotta: #c8704a; --sage: #7a9a8a; --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', Menlo, monospace;
  --radius: 2px; --radius-lg: 4px; --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.55; font-size: 15px; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.display { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; }
.eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.lead { font-family: var(--serif); font-size: 22px; line-height: 1.5; font-weight: 300; color: var(--ink-soft); letter-spacing: -0.005em; }
.body { font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--ink-soft); font-weight: 400; }
.body-serif { font-family: var(--serif); font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.small { font-size: 13px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container, .container-wide, .container-narrow { padding: 0 20px; } }

.btn { font-family: var(--sans); display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; transition: all 0.3s var(--ease); border: 1px solid transparent; }
.btn-primary { background: var(--ocean); color: var(--bg); }
.btn-primary:hover { background: var(--ocean-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { padding: 10px 0; }
.btn-ghost::after { content: '→'; margin-left: 8px; transition: transform 0.3s var(--ease); }
.btn-ghost:hover::after { transform: translateX(6px); }
.btn-light { background: var(--bg); color: var(--ocean); }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(250,246,239,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); transition: background 0.35s var(--ease), border-color 0.35s var(--ease); }
.nav.nav-transparent { background: linear-gradient(180deg, rgba(15,35,38,0.55) 0%, rgba(15,35,38,0.05) 100%); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.nav.nav-transparent .nav-link { color: rgba(250,246,239,0.82); }
.nav.nav-transparent .nav-link:hover, .nav.nav-transparent .nav-link.active { color: var(--bg); }
.nav.nav-transparent .nav-link.active::after { background: var(--bg); }
.nav.nav-transparent .nav-mobile-toggle span { background: var(--bg); }
.nav.nav-transparent .nav-cta { background: rgba(250,246,239,0.14); color: var(--bg); backdrop-filter: blur(8px); border: 1px solid rgba(250,246,239,0.4); }
.nav.nav-transparent .nav-cta:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--bg); }
.nav.nav-transparent .nav-logo { filter: brightness(0) invert(1); }
/* Push content below the fixed nav for pages that DON'T have the cinematic hero. */
body.has-cinematic-hero { padding-top: 0; }
body:not(.has-cinematic-hero) main { padding-top: 72px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.nav-brand-mark { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: -2px; }
.nav-logo-wrap { display: inline-flex; align-items: center; }
.nav-logo { height: 48px; width: auto; display: block; }
@media (max-width: 640px) { .nav-logo { height: 40px; } }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); transition: color 0.2s; position: relative; padding: 6px 0; font-weight: 500; letter-spacing: 0.02em; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--terracotta); }
.nav-cta { font-family: var(--sans); padding: 10px 20px; background: var(--ocean); color: var(--bg); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.nav-cta:hover { background: var(--ocean-deep); }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; background: none; border: none; cursor: pointer; }
.nav-mobile-toggle span { width: 22px; height: 1.5px; background: var(--ink); }
@media (max-width: 960px) { .nav-links { display: none; } .nav-mobile-toggle { display: flex; } }

.mobile-menu { position: fixed; inset: 0; background: var(--bg); z-index: 100; padding: 80px 32px 40px; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s var(--ease); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 24px; right: 20px; padding: 10px; }
.mobile-menu a { font-family: var(--sans); font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-weight: 500; }

/* Cinematic full-bleed hero. Photo fills the viewport, dark bottom gradient carries the copy. */
.hero-cinematic { position: relative; height: 100vh; min-height: 620px; max-height: 1000px; overflow: hidden; color: var(--bg); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-cinematic .hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--ocean-deep); }
.hero-cinematic .hero-bg img,
.hero-cinematic .hero-video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.hero-cinematic .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,35,38,0.35) 0%, rgba(15,35,38,0.05) 30%, rgba(15,35,38,0.55) 75%, rgba(15,35,38,0.88) 100%); }
.hero-cinematic .hero-inner { position: relative; z-index: 1; padding: 0 64px 96px; max-width: 1440px; margin: 0 auto; width: 100%; }
.hero-cinematic .hero-eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(250,246,239,0.75); font-weight: 500; margin-bottom: 28px; display: flex; align-items: center; gap: 16px; }
.hero-cinematic .hero-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--terracotta); }
.hero-cinematic .hero-title { font-family: var(--serif); font-size: clamp(56px, 9vw, 128px); font-weight: 300; letter-spacing: -0.025em; line-height: 0.95; margin: 0 0 28px; color: var(--bg); }
.hero-cinematic .hero-lead { font-family: var(--serif); font-size: clamp(18px, 1.5vw, 24px); line-height: 1.5; font-weight: 300; max-width: 580px; color: rgba(250,246,239,0.92); margin: 0 0 44px; }
.hero-cinematic .hero-ctas { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero-cinematic .hero-ctas .btn-primary { background: var(--terracotta); color: var(--bg); border: none; padding: 18px 36px; font-size: 12px; letter-spacing: 0.18em; }
.hero-cinematic .hero-ctas .btn-primary:hover { background: #b6623f; transform: translateY(-1px); }
.hero-cinematic .hero-ctas .btn-ghost-light { color: var(--bg); background: transparent; border: none; padding: 14px 0; cursor: pointer; font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.hero-cinematic .hero-ctas .btn-ghost-light::after { content: ' →'; transition: transform 0.3s var(--ease); display: inline-block; }
.hero-cinematic .hero-ctas .btn-ghost-light:hover::after { transform: translateX(6px); }
.hero-cinematic .hero-stats { display: flex; gap: 56px; margin-top: 72px; padding-top: 32px; border-top: 1px solid rgba(250,246,239,0.2); max-width: 640px; }
.hero-cinematic .hero-stats > div .stat-num { font-family: var(--serif); font-size: 40px; font-weight: 300; line-height: 1; color: var(--bg); letter-spacing: -0.01em; }
.hero-cinematic .hero-stats > div .stat-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: rgba(250,246,239,0.65); margin-top: 10px; }
.hero-scroll-indicator { position: absolute; bottom: 28px; right: 40px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(250,246,239,0.7); writing-mode: vertical-rl; transform: rotate(180deg); }
.hero-scroll-indicator::after { content: ''; display: block; width: 1px; height: 36px; background: rgba(250,246,239,0.5); animation: kwScrollLine 2s ease-in-out infinite; }
@keyframes kwScrollLine { 0%,100% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
@media (max-width: 768px) {
  .hero-cinematic { min-height: 560px; height: 92vh; }
  .hero-cinematic .hero-inner { padding: 0 24px 56px; }
  .hero-cinematic .hero-title { font-size: clamp(46px, 13vw, 72px); }
  .hero-cinematic .hero-stats { gap: 32px; margin-top: 48px; padding-top: 24px; }
  .hero-cinematic .hero-stats > div .stat-num { font-size: 28px; }
  .hero-scroll-indicator { display: none; }
}

.section-pullquote { padding: 140px 0 120px; background: var(--bg); }
.pullquote-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 80px; align-items: center; }
.pullquote-img { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.pullquote-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pullquote-img:hover img { transform: scale(1.03); }
.pullquote-text { padding-right: 24px; }
@media (max-width: 960px) {
  .section-pullquote { padding: 80px 0 80px; }
  .pullquote-grid { grid-template-columns: 1fr; gap: 40px; }
  .pullquote-img { aspect-ratio: 16/10; }
  .pullquote-text { padding-right: 0; }
}
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-dark { background: var(--ocean); color: var(--bg); }
.section-dark .body, .section-dark .lead { color: rgba(250,246,239,0.75); }
.section-dark .eyebrow { color: rgba(250,246,239,0.6); }
.section-warm { background: var(--bg-warm); }
@media (max-width: 768px) { .section { padding: 72px 0; } .section-sm { padding: 48px 0; } }

/* Villa quick-facts panel on Rooms page */
.villa-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 48px; padding: 48px 0 16px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 48px 0 16px; }
.villa-fact .eyebrow { margin-bottom: 8px; color: var(--muted); }
.villa-fact-val { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ink); letter-spacing: -0.005em; line-height: 1.25; }
@media (max-width: 960px) { .villa-facts { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; padding: 32px 0 8px; } }

/* Suite cards — cinematic, tactile, subtle lift on hover */
.suite-grid { gap: 32px !important; }
.suite-card { cursor: pointer; display: flex; flex-direction: column; }
.suite-photo { aspect-ratio: 3/4; overflow: hidden; position: relative; background: var(--sand); }
.suite-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.suite-card:hover .suite-photo img { transform: scale(1.04); }
.suite-meta { padding: 20px 2px 4px; }
.suite-meta .eyebrow { margin-bottom: 8px; color: var(--terracotta); }
.suite-meta h3 { font-size: 28px; font-weight: 400; letter-spacing: -0.01em; transition: color 0.25s var(--ease); }
.suite-card:hover .suite-meta h3 { color: var(--terracotta); }

.card { background: var(--white); border: 1px solid var(--line-soft); transition: all 0.4s var(--ease); overflow: hidden; }
.card:hover { transform: translateY(-3px); border-color: var(--line); }

.photo { position: relative; overflow: hidden; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.photo:hover img { transform: scale(1.03); }

.room-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line-soft); }
.room-card:last-child { border-bottom: 1px solid var(--line-soft); }
.room-card.reverse { grid-template-columns: 1fr 1.2fr; }
.room-card.reverse .room-card-img { order: 2; }
.room-card-img { aspect-ratio: 4/3; overflow: hidden; }
.room-card-content .eyebrow { margin-bottom: 16px; }
.room-card-content h3 { font-family: var(--serif); font-size: 48px; font-weight: 300; letter-spacing: -0.01em; margin-bottom: 20px; line-height: 1.05; }
.room-card-content p { margin-bottom: 20px; }
.room-card-meta { display: flex; gap: 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.room-card-meta span { display: flex; align-items: center; gap: 8px; }
@media (max-width: 960px) { .room-card, .room-card.reverse { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; } .room-card.reverse .room-card-img { order: -1; } .room-card-content h3 { font-size: 36px; } }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; grid-auto-rows: 140px; }
.gallery-item { overflow: hidden; cursor: pointer; grid-column: span 3; grid-row: span 2; }
.gallery-item.wide { grid-column: span 6; }
.gallery-item.tall { grid-row: span 3; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-item, .gallery-item.wide { grid-column: span 1; grid-row: span 2; } }

.footer { background: var(--ocean-deep); color: rgba(250,246,239,0.8); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(250,246,239,0.55); margin-bottom: 20px; font-weight: 500; }
.footer a { display: block; padding: 6px 0; font-size: 14px; color: rgba(250,246,239,0.8); font-family: var(--sans); }
.footer a:hover { color: var(--sand); }
.footer-brand { font-family: var(--serif); font-size: 32px; color: var(--bg); margin-bottom: 16px; font-weight: 300; }
.footer-bottom { border-top: 1px solid rgba(250,246,239,0.12); padding-top: 28px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(250,246,239,0.55); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } .footer-bottom { flex-direction: column; gap: 12px; } }

.input, .textarea, .select { width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; border-radius: var(--radius); font-family: var(--sans); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ocean); }
.label { font-family: var(--sans); display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.form-row { margin-bottom: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Admin */
.admin-body { background: #f5f4f0; min-height: 100vh; font-family: var(--sans); font-size: 14px; }
.admin-sidebar { width: 240px; height: 100vh; position: fixed; left: 0; top: 0; background: var(--ocean-deep); color: var(--bg); padding: 24px 0; display: flex; flex-direction: column; }
.admin-sidebar-brand { padding: 0 24px 28px; border-bottom: 1px solid rgba(250,246,239,0.08); margin-bottom: 16px; }
.admin-sidebar-brand .brand { font-family: var(--serif); font-size: 22px; }
.admin-sidebar-brand .mark { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(250,246,239,0.5); }
.admin-nav-section { padding: 0 12px; margin-bottom: 16px; }
.admin-nav-heading { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(250,246,239,0.4); padding: 8px 12px; font-weight: 500; }
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 13.5px; color: rgba(250,246,239,0.75); border-radius: var(--radius); width: 100%; text-align: left; transition: all 0.15s; }
.admin-nav-item:hover { background: rgba(250,246,239,0.06); color: var(--bg); }
.admin-nav-item.active { background: rgba(250,246,239,0.1); color: var(--bg); }
.admin-main { margin-left: 240px; min-height: 100vh; }
.admin-header { padding: 20px 32px; background: var(--white); border-bottom: 1px solid #e8e4d9; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.admin-header h1 { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.admin-header-actions { display: flex; gap: 12px; align-items: center; }
.admin-content { padding: 32px; }
.admin-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--sand), var(--terracotta)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 13px; }
.admin-card { background: var(--white); border: 1px solid #e8e4d9; border-radius: var(--radius-lg); padding: 24px; }
.admin-btn { padding: 10px 18px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.admin-btn-primary { background: var(--ocean); color: var(--bg); }
.admin-btn-primary:hover { background: var(--ocean-deep); }
.admin-btn-outline { background: transparent; color: var(--ink); border: 1px solid #d9d2c0; }
.admin-btn-outline:hover { border-color: var(--ocean); }
.admin-btn-ghost { background: transparent; color: var(--ink-soft); }
.admin-btn-ghost:hover { color: var(--ink); }
.badge { display: inline-block; padding: 4px 10px; font-size: 11px; border-radius: 100px; font-weight: 500; }
.badge-green { background: rgba(122,154,138,0.15); color: #4a6b5a; }
.badge-amber { background: rgba(200,112,74,0.15); color: var(--terracotta); }
.editor-toolbar { display: flex; gap: 4px; padding: 8px; border: 1px solid #e8e4d9; border-bottom: none; background: #faf8f2; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.editor-tool { padding: 6px 12px; font-size: 13px; border-radius: var(--radius); font-weight: 500; }
.editor-tool:hover { background: #ede7d6; }
.editor-tool.active { background: var(--ocean); color: var(--bg); }
.editor-content { border: 1px solid #e8e4d9; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 20px; min-height: 260px; font-size: 15px; line-height: 1.7; background: var(--white); }
.editor-content:focus { outline: none; }
.editor-content h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 16px 0 8px; }
@media (max-width: 960px) { .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; z-index: 200; } .admin-sidebar.open { transform: translateX(0); } .admin-main { margin-left: 0; } }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-visual { background: var(--ocean); position: relative; overflow: hidden; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form { width: 100%; max-width: 380px; }
@media (max-width: 960px) { .login-wrap { grid-template-columns: 1fr; } .login-visual { display: none; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 1100px) and (min-width: 961px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.text-center { text-align: center; }

.menu-section { padding: 48px 0; border-top: 1px solid var(--line-soft); }
.menu-section:first-of-type { border-top: none; padding-top: 0; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 18px 0; border-bottom: 1px dotted var(--line); align-items: baseline; }
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 4px; }
.menu-item-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.menu-item-price { font-family: var(--serif); font-size: 18px; color: var(--terracotta); white-space: nowrap; }
