/*
Theme Name: Elk Family Reflections Child
Theme URI: https://elk-family-reflections.example
Description: Child theme for Elk Family Reflections based on Astra.
Author: Nicky Hornstein
Template: astra
Version: 1.0.0
*/

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* Color tokens */
:root {
  --elk-forest: #2E4438;   /* Deep forest green - accents, primary buttons */
  --elk-bark: #4E3B2F;     /* Dark bark brown - headings, strong text */
  --elk-parchment: #F4F0E9;/* Main page background */
  --elk-cream: #FFF9F2;    /* Light cream for cards/sections */
  --elk-gold: #C7A17A;     /* Soft gold accent for hovers and small details */
  --elk-olive: #3A4A3F;    /* Muted olive for borders and subtle backgrounds */
  --elk-text: #2B2622;     /* Primary body text color */
}

/* Global typography and base layout */
body {
  font-family: "Assistant", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--elk-text);
  background-color: var(--elk-parchment);
  font-size: 16px;
  line-height: 1.7;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  color: var(--elk-bark);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
}

h2 {
  font-size: 1.9rem;
  letter-spacing: 0.03em;
}

h3 {
  font-size: 1.5rem;
}

/* Paragraphs */
p {
  margin-bottom: 1.2em;
}

/* Links */
a {
  color: var(--elk-bark);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--elk-gold);
}

/* Lists */
ul,
ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

/* Buttons and basic button-like elements */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.ast-button,
.button {
  font-family: "Assistant", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--elk-forest);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.6em 1.4em;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
.ast-button:hover,
.ast-button:focus,
.button:hover,
.button:focus {
  background-color: var(--elk-bark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

/* Inputs and textareas */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  font-family: "Assistant", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border: 1px solid var(--elk-olive);
  background-color: #ffffff;
  color: var(--elk-text);
  border-radius: 4px;
  padding: 0.5em 0.75em;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--elk-forest);
  box-shadow: 0 0 0 2px rgba(46, 68, 56, 0.18);
}

/* Basic section/card style for inner pages */
.elk-section,
.elk-card {
  background-color: var(--elk-cream);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(58, 74, 63, 0.12);
}

/* Optional small text utility */
.elk-small {
  font-size: 0.85rem;
  color: rgba(43, 38, 34, 0.8);
}

/* ===================================================================== */
/* HOMEPAGE: TRANSPARENT HEADER + FOOTER OVER HERO                       */
/* ===================================================================== */

.home header.site-header,
.home #masthead {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home .ast-primary-header-bar,
.home .main-header-bar,
.home .ast-desktop-header,
.home .ast-mobile-header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home header.site-header * {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home .site-content {
  margin-top: 0 !important;
}

.home footer.site-footer,
.home #colophon {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 80 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home footer.site-footer * {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ===================================================================== */
/* HOMEPAGE: HERO OVERLAY + POSITIONING                                  */
/* ===================================================================== */

.home .elk-home-hero {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.home .elk-home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 30, 22, 0.45);
  z-index: 1;
}

.home .elk-home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

@media (min-width: 769px) {
  .home .elk-home-hero {
    margin-top: -80px;
  }

  .home .elk-home-hero-inner {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  .home .elk-home-hero {
    margin-top: -60px;
  }

  .home .elk-home-hero-inner {
    padding-top: 100px;
  }
}

/* ===================================================================== */
/* HOMEPAGE: HEADER & FOOTER TEXT COLORS                                 */
/* ===================================================================== */

.home header.site-header,
.home header.site-header a,
.home .ast-primary-header-bar,
.home .ast-primary-header-bar a,
.home .main-header-menu .menu-link {
  color: var(--elk-cream) !important;
}

.home .main-header-menu .menu-link:hover,
.home .main-header-menu .menu-link:focus,
.home .main-header-menu .current-menu-item > .menu-link {
  color: var(--elk-gold) !important;
}

.home .site-footer,
.home .site-footer * {
  color: var(--elk-cream) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.home .site-footer a:hover,
.home .site-footer a:focus {
  color: var(--elk-gold) !important;
}

/* ===================================================================== */
/* MOBILE: HEADER + FOOTER TWEAKS                                        */
/* ===================================================================== */

.home .ast-mobile-header-wrap,
.home .ast-mobile-header-content,
.home .ast-header-break-point .main-header-bar {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .home footer.site-footer,
  .home #colophon {
    bottom: 12px !important;
  }
}

/* ===================================================================== */
/* MOBILE MENU: OPEN FROM RIGHT + RIGHT ALIGNMENT                        */
/* ===================================================================== */

@media (max-width: 921px) {
  /* Drawer anchored to the right */
  .ast-header-break-point .ast-mobile-popup-drawer {
    left: auto !important;
    right: 0 !important;
  }

  .ast-header-break-point .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    left: auto !important;
    right: 0 !important;
    transform: translateX(100%) !important; /* closed: off screen to the right */
  }

  .ast-header-break-point .ast-mobile-popup-drawer.ast-active .ast-mobile-popup-inner,
  .ast-header-break-point .ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
    transform: translateX(0) !important; /* open: slide in from the right */
  }

  /* Menu text aligned to the right inside the drawer */
  .ast-header-break-point .ast-mobile-popup-drawer .main-header-menu,
  .ast-header-break-point .ast-mobile-popup-drawer .main-header-menu li,
  .ast-header-break-point .ast-mobile-popup-drawer .main-header-menu li a {
    text-align: right !important;
  }

  .ast-header-break-point .ast-mobile-popup-drawer .main-header-menu li a {
    display: block;
    padding-right: 24px !important;
    padding-left: 12px !important;
  }
}
/* Disable Astra built-in navigation completely */
.ast-desktop .main-header-bar-navigation,
.main-header-bar-navigation,
.ast-header-break-point .ast-mobile-menu-trigger,
.ast-header-break-point .ast-mobile-popup-drawer,
.ast-header-break-point .ast-mobile-popup-inner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Extra kill switch for Astra mobile hamburger icon */
@media (max-width: 921px) {
  .ast-header-break-point .ast-mobile-menu-trigger,
  .ast-header-break-point .ast-menu-toggle,
  .ast-header-break-point .ast-mobile-menu-trigger-minimal,
  .ast-header-break-point .ast-mobile-header-wrap .menu-toggle,
  .ast-header-break-point .ast-mobile-header-wrap .ast-button-wrap {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
