/* Hotel Gleneagles Heritage Archive — Riviera Heritage Postcard theme */

:root {
  --ink: #13283f;
  --ink-deep: #0c1b2c;
  --azure: #2e7da6;
  --azure-light: #7cbdd1;
  --sand: #f6efe3;
  --sand-deep: #ece1cd;
  --cream: #fffdf8;
  --terracotta: #c45d4e;
  --terracotta-dark: #a84738;
  --text: #2a3440;
  --text-soft: #5b6772;
  --rule: #d9cdb8;
  --shadow-soft: 0 10px 30px rgba(19, 40, 63, 0.12);
  --shadow-card: 0 4px 18px rgba(19, 40, 63, 0.10);
}

/* ---------- Base ---------- */

body {
  font-family: "Mulish", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--sand);
}

img { max-width: 100%; height: auto; }

::selection { background: var(--azure-light); color: var(--ink-deep); }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-top: 2.6rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.35rem; margin-top: 1.8rem; }

h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--terracotta), var(--azure-light));
  border-radius: 2px;
}

a { color: var(--azure); text-decoration-color: rgba(46, 125, 166, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }

p.lead {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

strong { color: var(--ink); }

ul { padding-left: 1.3rem; }
main li { margin-bottom: 0.45rem; }

blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.6rem 1.8rem 1.4rem 2.6rem;
  background: var(--cream);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow-card);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
  font-style: italic;
  color: var(--ink);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.7rem;
  top: 0.4rem;
  font-size: 2.6rem;
  color: var(--terracotta);
  font-style: normal;
  line-height: 1;
}

blockquote p:last-child { margin-bottom: 0; }

/* ---------- Navbar ---------- */

.navbar-heritage {
  background: var(--ink-deep);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  transition: box-shadow 0.25s ease;
}

.navbar-heritage.scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); }

.navbar-heritage .navbar-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
}

.navbar-heritage .navbar-brand .brand-sub {
  display: block;
  font-family: "Mulish", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--azure-light);
}

.navbar-heritage .nav-link {
  color: rgba(255, 253, 248, 0.85);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.navbar-heritage .nav-link:hover,
.navbar-heritage .nav-link:focus { color: var(--azure-light); }

.navbar-heritage .nav-link.active { color: #fff; }

.navbar-heritage .nav-link.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  background: var(--terracotta);
}

.navbar-heritage .dropdown-menu {
  background: var(--ink);
  border: 1px solid rgba(124, 189, 209, 0.25);
  border-radius: 8px;
}

.navbar-heritage .dropdown-item {
  color: rgba(255, 253, 248, 0.88);
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.1rem;
}

.navbar-heritage .dropdown-item:hover {
  background: var(--azure);
  color: #fff;
}

.navbar-heritage .navbar-toggler { border-color: rgba(124, 189, 209, 0.5); }

.navbar-heritage .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28124, 189, 209, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero (homepage) ---------- */

.hero {
  position: relative;
  height: min(72vh, 620px);
  min-height: 380px;
  overflow: hidden;
  background: var(--ink-deep);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 27, 44, 0.25) 0%, rgba(12, 27, 44, 0.05) 45%, rgba(12, 27, 44, 0.72) 100%);
}

.hero .hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.4rem;
  text-align: center;
  color: var(--cream);
  padding: 0 1rem;
}

.hero .hero-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--azure-light);
  border-top: 1px solid rgba(124, 189, 209, 0.6);
  border-bottom: 1px solid rgba(124, 189, 209, 0.6);
  padding: 0.45rem 1.2rem;
  margin-bottom: 0.9rem;
}

.hero .hero-line {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-style: italic;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* ---------- Page band (inner pages) ---------- */

.page-band {
  background: var(--ink);
  background-image: radial-gradient(ellipse at top right, rgba(46, 125, 166, 0.35), transparent 60%);
  color: var(--cream);
  padding: 2.2rem 0 2rem;
  border-bottom: 4px solid var(--terracotta);
}

.page-band .band-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--azure-light);
  margin-bottom: 0.2rem;
}

.page-band .band-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255, 253, 248, 0.85);
  margin: 0;
}

/* ---------- Main content ---------- */

main { padding: 3rem 0 4rem; }

.prose { max-width: 50rem; }

/* Postcard figure */

.figure-postcard {
  display: block;
  margin: 2.2rem auto;
  max-width: 56rem;
  background: #fff;
  padding: 14px 14px 18px;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-0.6deg);
  transition: transform 0.3s ease;
}

.figure-postcard:hover { transform: rotate(0deg) scale(1.005); }

.figure-postcard img {
  width: 100%;
  display: block;
  border-radius: 2px;
}

.figure-postcard figcaption {
  font-size: 0.84rem;
  color: var(--text-soft);
  font-style: italic;
  text-align: center;
  padding-top: 0.7rem;
}

/* Archive note callout */

.archive-note {
  background: var(--sand-deep);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 2.4rem 0 0;
}

.archive-note strong { color: var(--ink); }

/* Home quick cards */

.quick-cards { margin-top: 1.2rem; }

.quick-card {
  display: block;
  height: 100%;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.3rem;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(19, 40, 63, 0.16);
}

.quick-card .qc-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.quick-card h3 {
  font-size: 1.3rem;
  margin: 0.3rem 0 0.4rem;
}

.quick-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
}

/* Contact form */

.heritage-form {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.8rem;
  max-width: 40rem;
  box-shadow: var(--shadow-card);
}

.heritage-form label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.heritage-form .form-control {
  border-color: var(--rule);
  background: #fff;
}

.heritage-form .form-control:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 166, 0.18);
}

.btn-heritage {
  background: var(--terracotta);
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
}

.btn-heritage:hover { background: var(--terracotta-dark); color: #fff; }

.form-confirm { display: none; color: var(--azure); font-weight: 700; margin-top: 0.8rem; }

/* ---------- Footer ---------- */

.footer-heritage {
  background: var(--ink-deep);
  color: rgba(255, 253, 248, 0.78);
  padding: 3.2rem 0 1.6rem;
  margin-top: 2rem;
  border-top: 4px solid var(--azure);
  font-size: 0.93rem;
}

.footer-heritage h4 {
  color: var(--azure-light);
  font-family: "Mulish", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-heritage a {
  color: rgba(255, 253, 248, 0.82);
  text-decoration: none;
}

.footer-heritage a:hover { color: var(--azure-light); text-decoration: underline; }

.footer-heritage ul { list-style: none; padding: 0; margin: 0; }
.footer-heritage li { margin-bottom: 0.45rem; }

.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
}

.footer-legal {
  border-top: 1px solid rgba(124, 189, 209, 0.25);
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  font-size: 0.82rem;
  color: rgba(255, 253, 248, 0.55);
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: 5rem 1rem;
}

.notfound .nf-code {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .figure-postcard, .quick-card { transition: none; }
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 767px) {
  body { font-size: 1rem; }
  p.lead { font-size: 1.25rem; }
  .hero { height: 52vh; min-height: 300px; }
  .figure-postcard { transform: none; }
  main { padding: 2.2rem 0 3rem; }
}
