/*
 Theme Name:   Oak Hill
 Theme URI:    https://oakhillpreservems.com
 Description:  Genesis child theme for Oak Hill Preserve — a Southern estate preserve in Oxford, Mississippi.
 Author:       Cracked Creative
 Author URI:   https://crackedcreative.com
 Template:     genesis
 Version:      1.0.0
 License:      GPL-2.0-or-later
 Text Domain:  oakhill
*/

:root {
  --magnolia-green: #2C3424;
  --wimborne-white: #EFEAE0;
  --estate-cream: #F4EFE5;
  --magnolia-cream: #F8F1DF;
  --mississippi-stone: #B8B0A0;
  --bourbon-leather: #6E4A2E;
  --acorn-brown: #4A3A28;
  --cypress-shadow: #1A2218;
  --antique-brass: #A88C55;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--acorn-brown);
  background-color: var(--estate-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ============ ACCESSIBILITY / SKIP LINKS ============ */
.screen-reader-text,
.screen-reader-shortcut {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.genesis-skip-link { list-style: none; }

.genesis-skip-link .screen-reader-shortcut:focus {
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1.25rem;
  background: var(--magnolia-green);
  color: var(--wimborne-white);
  text-decoration: none;
}

/* ============ GENESIS WRAPPER RESETS ============ */
.site-inner,
.content-sidebar-wrap,
.content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
}

/* ============ HERO (front-page header) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(
      to bottom,
      rgba(26, 34, 24, 0.62) 0%,
      rgba(44, 52, 36, 0.55) 40%,
      rgba(26, 34, 24, 0.78) 100%
    ),
    url("assets/media/hero-image.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--wimborne-white);
  padding: 4rem 1.5rem 6rem;
  max-width: 52rem;
  opacity: 0;
  transform: translateY(14px);
  animation: heroRise 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s forwards;
}

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: clamp(150px, 22vw, 220px);
  height: auto;
  display: block;
  margin: 0 auto 2.75rem;
}

.eyebrow {
  font-family: 'Cormorant SC', serif;
  font-weight: 500;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.2em;
  color: var(--wimborne-white);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(2.75rem, 7.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
  color: var(--wimborne-white);
}

.hero-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  max-width: 34em;
  margin: 0 auto;
}

/* ============ SUBPAGE HEADER (non-front pages) ============ */
.subpage-header {
  background-color: var(--magnolia-green);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.subpage-logo {
  width: clamp(110px, 14vw, 150px);
  height: auto;
  display: inline-block;
}

/* ============ TEASER ============ */
.teaser {
  background-color: var(--estate-cream);
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
}

.teaser-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.teaser-copy { max-width: 40rem; }

.teaser-figure {
  margin: 0;
}

.teaser-frame {
  position: relative;
  border: 1px solid var(--mississippi-stone);
  border-radius: 10px;
  padding: clamp(0.75rem, 1.5vw, 1.1rem);
  background: var(--wimborne-white);
}

.teaser-frame::after {
  content: "";
  position: absolute;
  inset: clamp(0.35rem, 0.8vw, 0.55rem);
  border: 1px solid var(--antique-brass);
  border-radius: 7px;
  pointer-events: none;
}

.teaser-frame img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

.teaser-caption {
  font-family: 'Cormorant SC', serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--bourbon-leather);
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 56rem) {
  .teaser-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .teaser-figure {
    max-width: 30rem;
    margin-inline: auto;
  }
  .teaser-frame img { aspect-ratio: 4 / 3.4; }
}

.section-label {
  font-family: 'Cormorant SC', serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--bourbon-leather);
  margin-bottom: 1.25rem;
}

.teaser h2 {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--magnolia-green);
  margin-bottom: 1.75rem;
}

.teaser p {
  margin-bottom: 1.4rem;
  max-width: 36em;
}

.teaser p:last-of-type { margin-bottom: 0; }

.teaser .lead {
  font-style: italic;
  font-size: 1.35rem;
  color: var(--magnolia-green);
}

.brass-rule {
  border: none;
  width: 4.5rem;
  height: 1px;
  background: var(--antique-brass);
  margin: 2.5rem 0 0;
}

/* ============ INQUIRY ============ */
.inquiry {
  background-color: var(--magnolia-cream);
  border-top: 1px solid var(--mississippi-stone);
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
}

.inquiry-inner {
  max-width: 58rem;
  margin: 0 auto;
}

.inquiry-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.inquiry-header h2 {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--magnolia-green);
  margin-bottom: 1rem;
}

.inquiry-header p {
  font-style: italic;
  font-size: 1.25rem;
  margin: 0 auto;
}

/* ============ FORM (Gravity Forms, gravity-theme) ============ */
.inquiry .gravity-theme .gform_fields {
  grid-row-gap: 1.5rem;
  grid-column-gap: 1.5rem;
}

.inquiry .gravity-theme .gfield_label,
.inquiry .gravity-theme legend.gfield_label {
  font-family: 'Cormorant SC', serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--magnolia-green);
  margin-bottom: 0.5rem;
  text-transform: none;
}

.inquiry .gform_wrapper.gravity-theme .gfield_required {
  color: var(--magnolia-green);
  padding-left: 0.15em;
}

.inquiry .gform_wrapper.gravity-theme input.datepicker,
.inquiry .gform_wrapper.gravity-theme .ginput_container_date input {
  width: 100%;
}

.inquiry .gravity-theme input[type="text"],
.inquiry .gravity-theme input[type="email"],
.inquiry .gravity-theme input[type="tel"],
.inquiry .gravity-theme input[type="date"],
.inquiry .gravity-theme textarea {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--acorn-brown);
  background-color: transparent;
  border: 1px solid var(--mississippi-stone);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.25s ease;
}

.inquiry .gravity-theme input::placeholder,
.inquiry .gravity-theme textarea::placeholder {
  color: var(--mississippi-stone);
  font-style: italic;
  opacity: 1;
}

.inquiry .gravity-theme input:focus-visible,
.inquiry .gravity-theme textarea:focus-visible {
  outline: 2px solid var(--magnolia-green);
  outline-offset: 1px;
  border-color: var(--magnolia-green);
}

.inquiry .gravity-theme textarea {
  min-height: 6rem;
  resize: vertical;
}

.inquiry .gravity-theme input[type="checkbox"] {
  accent-color: var(--magnolia-green);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.inquiry .gravity-theme input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--magnolia-green);
  outline-offset: 2px;
}

/* Event-type checkbox field: bordered box + 4-column grid */
.inquiry .gravity-theme .event-type-field {
  border: 1px solid var(--mississippi-stone);
  border-radius: 10px;
  padding: 1.25rem 1.5rem 1.35rem;
}

.inquiry .gravity-theme .event-type-field legend.gfield_label {
  padding: 0 0.65rem;
  margin-bottom: 0;
  float: none;
}

.inquiry .gravity-theme .event-type-field .gfield_checkbox {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem 1.5rem;
  margin-top: 0.35rem;
}

.inquiry .gravity-theme .event-type-field .gchoice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.inquiry .gravity-theme .event-type-field .gchoice label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--acorn-brown);
  margin-bottom: 0;
  cursor: pointer;
}

/* Acknowledgment checkbox field */
.inquiry .gravity-theme .acknowledge-field {
  border: none;
  padding: 0;
  margin-bottom: 0.75rem;
}

.inquiry .gravity-theme .acknowledge-field .gchoice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.inquiry .gravity-theme .acknowledge-field input[type="checkbox"] {
  margin-top: 0.45rem;
}

.inquiry .gravity-theme .acknowledge-field .gchoice label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--acorn-brown);
  margin-bottom: 0;
  cursor: pointer;
}

/* Submit button */
.inquiry .gravity-theme .gform_footer {
  margin-top: 1rem;
  padding: 0;
}

.inquiry .gravity-theme .gform_footer input[type="submit"],
.inquiry .gravity-theme .gform_footer button {
  display: block;
  width: 100%;
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--wimborne-white);
  background-color: var(--magnolia-green);
  border: 1px solid var(--magnolia-green);
  border-radius: 10px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.inquiry .gravity-theme .gform_footer input[type="submit"]:hover,
.inquiry .gravity-theme .gform_footer button:hover {
  background-color: var(--cypress-shadow);
}

.inquiry .gravity-theme .gform_footer input[type="submit"]:focus-visible,
.inquiry .gravity-theme .gform_footer button:focus-visible {
  outline: 2px solid var(--bourbon-leather);
  outline-offset: 3px;
}

/* Validation messages — keep them on-brand */
.inquiry .gravity-theme .gfield_validation_message,
.inquiry .gravity-theme .gform_validation_errors {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--bourbon-leather);
  background: transparent;
  border: 1px solid var(--bourbon-leather);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
}

.inquiry .gravity-theme .gform_validation_errors h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--bourbon-leather);
}

/* Confirmation */
.inquiry .gform_confirmation_message {
  display: block;
  text-align: center;
  padding: 3rem 1rem;
  border: 1px solid var(--mississippi-stone);
  border-radius: 10px;
}

.inquiry .gform_confirmation_message .conf-label {
  font-family: 'Cormorant SC', serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--bourbon-leather);
  margin-bottom: 1rem;
}

.inquiry .gform_confirmation_message p:not(.conf-label) {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--magnolia-green);
  max-width: 26em;
  margin: 0 auto;
}

/* ============ 404 ============ */
.error-page {
  background-color: var(--estate-cream);
  text-align: center;
  padding: clamp(4rem, 12vw, 8rem) 1.5rem;
}

.error-page .section-label { margin-bottom: 1rem; }

.error-page h1 {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  color: var(--magnolia-green);
  margin-bottom: 1.25rem;
}

.error-page p {
  font-style: italic;
  font-size: 1.3rem;
  max-width: 32em;
  margin: 0 auto 2rem;
}

.error-page a {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--wimborne-white);
  background-color: var(--magnolia-green);
  border-radius: 10px;
  padding: 0.9rem 2.25rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.error-page a:hover { background-color: var(--cypress-shadow); }

/* ============ FOOTER ============ */
.site-footer {
  background-color: var(--magnolia-green);
  color: var(--wimborne-white);
  text-align: center;
  padding: 3.25rem 1.5rem 3rem;
}

.footer-logo {
  width: 56px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

.site-footer p {
  font-family: 'Cormorant SC', serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  line-height: 2;
}

.site-footer a {
  color: var(--wimborne-white);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.site-footer a:hover { color: var(--mississippi-stone); }

.site-footer a:focus-visible {
  outline: 2px solid var(--antique-brass);
  outline-offset: 3px;
}

.footer-rule {
  border: none;
  width: 3.5rem;
  height: 1px;
  background: var(--antique-brass);
  margin: 1.5rem auto;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin-top: 0.35rem;
}

.footer-socials a {
  display: inline-flex;
  color: var(--wimborne-white);
  transition: color 0.25s ease;
}

.footer-socials a:hover { color: var(--antique-brass); }

.footer-socials svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  body { font-size: 1.15rem; }
  .footer-sep { display: none; }
  .site-footer p a { display: inline-block; }
  .inquiry .gravity-theme .event-type-field .gfield_checkbox { grid-template-columns: 1fr; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }
  * { transition: none !important; }
}
