:root {
  --ink: #17201d;
  --muted: #65706c;
  --paper: #f7f5f0;
  --white: #ffffff;
  --green: #123f35;
  --green-2: #1b5749;
  --gold: #b68a45;
  --line: #dcd8cd;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(20, 35, 30, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; }
.section--compact { padding: 70px 0; }
.section--white { background: var(--white); }
.section--dark { color: var(--white); background: var(--green); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { max-width: 900px; margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6.6rem); letter-spacing: -.045em; }
h2 { margin-bottom: 22px; font-size: clamp(2.25rem, 4.5vw, 4.2rem); letter-spacing: -.035em; }
h3 { margin-bottom: 12px; font-size: 1.5rem; }
.lead { max-width: 690px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.section--dark .lead { color: rgba(255,255,255,.72); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 50px; }
.section-head h2, .section-head p { margin-bottom: 0; }
.section-head p { max-width: 490px; color: var(--muted); }

.header {
  position: absolute;
  z-index: 50;
  top: 0;
  width: 100%;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.header--solid { position: relative; color: var(--ink); background: var(--white); border-color: var(--line); }
.nav { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-name { display: grid; font-family: var(--serif); font-size: 1.12rem; line-height: 1; letter-spacing: .03em; }
.brand-name small { margin-top: 7px; font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .84rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #d7b16f; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; color: inherit; background: none; border: 1px solid currentColor; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; content: "";
}

.hero {
  min-height: 760px;
  position: relative;
  display: flex;
  align-items: end;
  color: var(--white);
  background: #0d241e;
  overflow: hidden;
}
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media { background: url("assets/royal-palace-hero.webp") center/cover no-repeat; }
.hero-media::after {
  content: "";
  background: linear-gradient(90deg, rgba(4,17,14,.88) 0%, rgba(4,17,14,.52) 58%, rgba(4,17,14,.18) 100%),
              linear-gradient(0deg, rgba(4,17,14,.78), transparent 55%);
}
.hero-content { position: relative; z-index: 1; padding: 190px 0 96px; }
.hero p { max-width: 630px; margin-bottom: 34px; color: rgba(255,255,255,.82); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); transform: translateY(-2px); }
.btn--gold { color: #17201d; background: #d4ad68; border-color: #d4ad68; }
.btn--gold:hover { background: #e0bd7e; border-color: #e0bd7e; }
.btn--ghost { color: inherit; background: transparent; border-color: currentColor; }
.btn--ghost:hover { color: var(--ink); background: var(--white); border-color: var(--white); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: var(--shadow); transform: translateY(-36px); }
.fact { min-height: 122px; padding: 26px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; margin-bottom: 5px; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.fact span { color: var(--muted); font-size: .84rem; }

.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 130px); align-items: start; }
.ornament { width: 110px; height: 110px; display: grid; place-items: center; margin-top: 18px; color: var(--gold); border: 1px solid var(--gold); transform: rotate(45deg); }
.ornament span { font: 2rem var(--serif); transform: rotate(-45deg); }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 42px; background: var(--line); border: 1px solid var(--line); }
.feature { padding: 28px; background: var(--paper); }
.feature b { display: block; margin-bottom: 7px; font-family: var(--serif); font-size: 1.24rem; font-weight: 500; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; background: var(--white); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .55s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { padding: 22px 22px 24px; }
.gallery b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.gallery span { color: var(--muted); font-size: .84rem; }

.experience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: cards; }
.experience-card { position: relative; padding: 38px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); counter-increment: cards; }
.experience-card::before { content: "0" counter(cards); color: var(--gold); font: .75rem var(--sans); letter-spacing: .15em; }
.experience-card h3 { margin-top: 36px; }
.experience-card p { margin: 0; color: rgba(255,255,255,.68); font-size: .92rem; }

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-list { display: grid; gap: 0; margin: 35px 0; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 125px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-row b { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-row a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hours { padding: 34px; color: var(--white); background: var(--green); }
.hours h3 { margin-bottom: 24px; }
.hours dl { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.hours dt, .hours dd { margin: 0; }
.hours dd { color: #d7b16f; }
.notice { margin-top: 18px; color: var(--muted); font-size: .78rem; }

.cta { padding: 72px; display: flex; align-items: center; justify-content: space-between; gap: 50px; color: var(--white); background: var(--green); }
.cta h2 { max-width: 690px; margin: 0; }

.page-hero { padding: 110px 0 80px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; margin-bottom: 18px; color: var(--green); font-size: clamp(2.8rem, 6vw, 5.4rem); }
.page-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.12rem; }
.content-wrap { max-width: 800px; }
.content-wrap h2 { margin-top: 54px; font-size: 2rem; }
.content-wrap h3 { margin-top: 36px; font: 700 1rem var(--sans); }
.content-wrap p, .content-wrap li { color: #4d5854; }
.content-wrap a { color: var(--green); }
.content-wrap ul { padding-left: 20px; }
.updated { margin-bottom: 40px; color: var(--muted); font-size: .82rem; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { padding: 36px; background: var(--white); border: 1px solid var(--line); }
.card .tag { display: inline-block; margin-bottom: 28px; padding: 6px 10px; color: var(--green); background: #e8f0ed; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card p { color: var(--muted); }
.card ul { padding-left: 18px; color: var(--muted); }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer; }
.accordion-button b { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.accordion-button span { font-size: 1.5rem; transition: transform .2s; }
.accordion-button[aria-expanded="true"] span { transform: rotate(45deg); }
.accordion-panel { display: none; padding: 0 40px 24px 0; color: var(--muted); }
.accordion-panel.is-open { display: block; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-status { grid-column: 1 / -1; min-height: 24px; color: var(--green); font-weight: 700; }

.footer { padding: 70px 0 28px; color: rgba(255,255,255,.76); background: #0d2822; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 70px; padding-bottom: 55px; }
.footer .brand { color: var(--white); margin-bottom: 24px; }
.footer-about { max-width: 400px; font-size: .9rem; }
.footer h3 { color: var(--white); font: 800 .72rem var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: .87rem; text-decoration: none; }
.footer-links a:hover { color: #d7b16f; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); font-size: .74rem; }

.modal, .cookie-banner { position: fixed; z-index: 100; }
.modal { inset: 0; display: none; place-items: center; padding: 20px; background: rgba(8,22,18,.86); backdrop-filter: blur(8px); }
.modal.is-open { display: grid; }
.modal-card { width: min(560px, 100%); padding: clamp(34px, 7vw, 60px); background: var(--paper); box-shadow: 0 25px 90px rgba(0,0,0,.32); text-align: center; }
.age-symbol { width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto 28px; color: var(--green); border: 1px solid var(--gold); border-radius: 50%; font: 2rem var(--serif); }
.modal-card h2 { font-size: 2.4rem; }
.modal-card p { color: var(--muted); }
.modal-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cookie-banner { right: 20px; bottom: 20px; width: min(440px, calc(100% - 40px)); display: none; padding: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cookie-banner.is-open { display: block; }
.cookie-banner p { margin-bottom: 18px; color: var(--muted); font-size: .85rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.cookie-actions .btn { min-height: 42px; padding: 9px 14px; font-size: .68rem; }

@media (max-width: 1080px) {
  .section { padding: 78px 0; }
  .nav { min-height: 78px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    align-items: stretch;
    padding: 18px 20px 26px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: grid; }
  .nav-links a { padding: 8px 0; }
  .hero { min-height: 700px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-grid, .visit-grid { grid-template-columns: 1fr; gap: 50px; }
  .ornament { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .experience { grid-template-columns: 1fr; }
  .cta { padding: 50px; align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 64px 0; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.35rem; }
  .hero { min-height: 680px; }
  .hero-content { padding: 150px 0 72px; }
  .hero p { font-size: 1rem; }
  .btn { width: 100%; }
  .facts { width: calc(100% - 28px); }
  .fact { min-height: 105px; padding: 18px; }
  .feature-list, .gallery, .cards { grid-template-columns: 1fr; }
  .gallery figure:last-child { grid-column: auto; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .cta { padding: 34px 24px; }
  .page-hero { padding: 76px 0 58px; }
  .form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .modal-card { padding: 34px 22px; }
  .cookie-banner { right: 14px; bottom: 14px; width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
