/* Misty Hills Estate - site styles */

:root {
  --cream: #faf6ef;
  --cream-dark: #f0e9da;
  --charcoal: #2b2a28;
  --forest: #445c43;
  --forest-dark: #34482f;
  --terracotta: #c1652f;
  --terracotta-dark: #a5511f;
  --line: #e0d8c8;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, .brand-name {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(4px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-name {
  font-size: 1.25rem;
  margin: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a:not(.btn) {
  color: var(--charcoal);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.main-nav a:not(.btn):hover { color: var(--forest); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--charcoal);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-book {
  background: var(--terracotta);
  color: #fff;
}

.btn-book:hover { background: var(--terracotta-dark); }

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}

.btn-outline:hover { background: var(--forest); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 16, 0.35) 0%, rgba(20, 24, 16, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 3rem 1.5rem;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.6em;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: #fff;
  border-color: #fff;
}

.hero .btn-outline:hover { background: #fff; color: var(--charcoal); }

/* ---------- Sections ---------- */

section { padding: 4.5rem 0; }

.section-alt { background: var(--cream-dark); }

.section-head {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head .kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.6em;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col img {
  border-radius: 6px;
}

.two-col.reverse .col-image { order: 2; }
.two-col.reverse .col-text { order: 1; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
}

.card h3 { margin-bottom: 0.5rem; }

.card ul, .plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li, .card ul li { margin-bottom: 0.5em; }

.perfect-for-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.perfect-for-grid li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
}

.perfect-for-grid li::before {
  content: "\2022";
  color: var(--terracotta);
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.75rem;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  height: 100%;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery a:hover img { transform: scale(1.06); }

.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--forest);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}

.cta-banner h2 { color: #fff; }
.cta-banner p { opacity: 0.9; max-width: 560px; margin-inline: auto; }
.cta-banner .btn-book { margin-top: 0.5rem; }

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

.site-footer {
  background: var(--charcoal);
  color: #cfc9bd;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.site-footer a { color: #cfc9bd; }
.site-footer a:hover { color: #fff; }

.footer-logo { height: 40px; margin-bottom: 0.75rem; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ---------- Contact page ---------- */

.page-header {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background: var(--cream-dark);
  border-bottom: 1px solid var(--line);
}

.page-header p { max-width: 560px; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.contact-form .field { margin-bottom: 1.25rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--forest);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.field-error {
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: block;
}

.form-success,
.form-error {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.form-success {
  background: #eaf2e8;
  color: var(--forest-dark);
  border: 1px solid #c7dcc2;
}

.form-error {
  background: #fbeceb;
  color: #b3261e;
  border: 1px solid #f3cac7;
}

.form-success.is-visible,
.form-error.is-visible { display: block; }

.contact-details .detail-item {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.contact-details .detail-item .label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2em;
}

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

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

@media (max-width: 900px) {
  .two-col,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse .col-image,
  .two-col.reverse .col-text { order: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.is-open { max-height: 260px; padding-bottom: 1rem; }

  .main-nav a { padding: 0.75rem 0; width: 100%; }
  .main-nav .btn { margin-top: 0.5rem; }

  .perfect-for-grid { grid-template-columns: 1fr; }
}
