/*
 * Theme Name:  Divi Child Theme
 * Theme URI:   https://yourwebsite.com
 * Description: Child theme for the Divi parent theme. All custom CSS goes here.
 *              This file is safe through Divi parent theme updates.
 * Author:      Your Name
 * Author URI:  https://yourwebsite.com
 * Template:    Divi
 * Version:     1.0.0
 * License:     GNU General Public License v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Tags:        divi, child-theme
 *
 * NOTE: The "Template" field above MUST exactly match the parent theme folder name
 * (case-sensitive). Divi's folder is "Divi" — verify in wp-content/themes/.
 */

/* ==========================================================================
   TABLE OF CONTENTS
   1. CSS Custom Properties (Variables)
   2. Global / Base Resets
   3. Typography
   4. Header & Navigation
   5. Hero / Banner
   6. Sections & Rows
   7. Buttons
   8. Forms
   9. Footer
   10. Utility Classes
   11. Responsive — Tablet (max-width: 980px)
   12. Responsive — Mobile (max-width: 767px)
   ========================================================================== */


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   Define your brand tokens here. Reference them throughout your CSS as
   var(--color-primary) etc. Change values here to update the whole site.
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary:        #1a6b3a;   /* Replace with your primary brand color  */
  --color-primary-dark:   #134f2b;   /* Darker shade for hover states           */
  --color-secondary:      #f5a623;   /* Replace with your secondary/accent color */
  --color-secondary-dark: #d4891a;
  --color-gold-100:       rgb(212, 165, 116); /* Example: gold with 100% opacity */
  --color-gold:           #a98536;
  --color-memory-gold:    #d4a84b;  /* this is the custom gold set in Divi */

  /* Neutral Colors */
  --color-white:          #ffffff;
  --color-off-white:      #f8f8f8;
  --color-light-gray:     #e5e5e5;
  --color-mid-gray:       #999999;
  --color-dark-gray:      #555555;
  --color-black:          #222222;

  /* Typography */
  --font-body: Helvetica, Arial, sans-serif;
  --font-heading: Arial, 'Times New Roman', Times, serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;

  /* Spacing */
  --spacing-xs:   0.5rem;
  --spacing-sm:   1rem;
  --spacing-md:   2rem;
  --spacing-lg:   4rem;
  --spacing-xl:   6rem;

  /* Border Radius */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-pill:  999px;

  /* Box Shadows */
  --shadow-sm:    0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.16);

  /* Card Components */
  --card-border-radius: 10px;
  --card-shadow:        rgba(0, 0, 0, 0.3) 0px 12px 18px -6px;

  /* Transitions */
  --transition-fast:   all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow:   all 0.5s ease;

  /* Max Content Width */
  --max-width: 1200px;
}


/* ==========================================================================
   2. GLOBAL / BASE RESETS
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-black);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem,   5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem);  }
h3 { font-size: clamp(1.3rem, 3vw, 2rem);    }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem);  }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem;    }

p {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

blockquote {
  border-left: 4px solid var(--color-primary);
  margin: var(--spacing-md) 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-off-white);
  font-style: italic;
  color: var(--color-dark-gray);
}


/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

/* --- weird customization needed for exhibits template to prevent utility bar from being full-width --- */
.exhibits-template-default .utility-bar__inner {
    width: var(--content-width);
    max-width: var(--content-max-width);
}

/* --- Utility Bar --- */
.utility-bar {
  background-color: #263238 !important;
  width: 100%;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 0;
}

.utility-bar__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.utility-bar__nav a {
  color: #9aa3ad;
  text-decoration: none;
  transition: color 0.2s ease;
}

.utility-bar__nav a:hover {
  color: #fff;
  text-decoration: none;
}

.utility-bar__donate {
  background-color: var(--color-memory-gold);
  color: #fff;
  text-decoration: none;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.utility-bar__donate:hover {
  background-color: var(--color-gold);
  color: #fff;
  text-decoration: none;
}


/* Example: Force logo max-height */
#main-header .logo_container img {
  max-height: 60px;
  width: auto;
}

/* Example: Sticky header background */
#main-header.et-fixed-header {
  background-color: var(--color-white) !important;
  box-shadow: var(--shadow-sm);
}

/* Example: Nav link color overrides */
#main-header #et-top-navigation nav > ul > li > a {
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

#main-header #et-top-navigation nav > ul > li > a:hover {
  color: var(--color-primary);
}


/* ==========================================================================
   5. HERO / BANNER
   ========================================================================== */

/* Add your hero/banner custom styles here */


/* ==========================================================================
   6. SECTIONS & ROWS
   ========================================================================== */

/* Divi sections — custom padding/margin overrides go here */
.et_pb_section {
  /* Example: ensure sections don't get too wide on ultra-wide screens */
}

.et_pb_row {
  /* Example: max-width override */
}


/* ==========================================================================
   7. BUTTONS
   ========================================================================== */



/* ==========================================================================
   8. FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.9em;
  width: 100%;
  transition: var(--transition-fast);
  background-color: var(--color-white);
  color: var(--color-black);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 58, 0.15); /* Adjust RGBA to match --color-primary */
}

/* style search field in Divi's header */
input[type="search"].et_pb_menu__search-input {
    width: 400px;
    border: 1px solid #797777;
    background: linear-gradient(160deg, #2e3d45 0%, #263238 100%);
    color: white;
}



/* ==========================================================================
   9. FOOTER
   ========================================================================== */

#main-footer {
  background-color: var(--color-black);
  color: var(--color-light-gray);
}

.site-footer-section {
  background-color: #1f252b;
  color: #d5dde3;
  padding: 3.5rem 0 0;
}

.site-footer-section__inner {
  display: flex;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 1rem;
}

.site-footer-section__about {
  width: 25%;
}

.site-footer-section__heading {
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.8rem;
}

.site-footer-section__about p {
  margin: 0;
  color: #aeb9c2;
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer-section__menus {
  width: 75%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  padding-left: 2rem;
}

.site-footer-section__menu-list {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 1.1rem;
}

.site-footer-section__menu-group {
  flex: 1;
  min-width: 0;
}

.site-footer-section__menu-group h3 {
  color: var(--color-memory-gold);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer-section__menu-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-section__menu-group li + li {
  margin-top: 0.45rem;
}

.site-footer-section__menu-group a {
  color: #aeb9c2;
  text-decoration: none;
}

.site-footer-section__menu-group a:hover {
  color: #ffffff;
  text-decoration: none;
}

.site-footer-section__social {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.site-footer-section__social-link {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.04);
  color: #d5dde3;
  text-decoration: none;
  transition: var(--transition-fast);
}

.site-footer-section__social-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.site-footer-section__social-link:hover {
  background-color: var(--color-memory-gold);
  border-color: var(--color-memory-gold);
  color: #1f252b;
  text-decoration: none;
}

.site-footer-section__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-gold-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.site-footer-section__bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #8f9ca7;
}

.site-footer-section__privacy a {
  color: #aeb9c2;
  text-decoration: none;
  margin-left: 15px;
}

.site-footer-section__privacy a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Collapse empty Divi Theme Builder footer sections to avoid blank whitespace. */
footer.et-l--footer .et_pb_section:empty {
  display: none;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

#main-footer a {
  color: var(--color-light-gray);
}

#main-footer a:hover {
  color: var(--color-white);
}

#footer-bottom {
  background-color: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* ==========================================================================
   10. UTILITY CLASSES
   Add these as CSS classes in Divi module "CSS Class" field
   ========================================================================== */

/* Visually hidden (accessible off-screen) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Text alignment helpers */
.text-left   { text-align: left !important;   }
.text-center { text-align: center !important; }
.text-right  { text-align: right !important;  }

/* Spacing helpers */
.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }
.pt-0  { padding-top: 0 !important; }
.pb-0  { padding-bottom: 0 !important; }

/* Box shadow helpers */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

/* Rounded corners */
.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.pill       { border-radius: var(--radius-pill); }

/* Background color utilities */
.bg-primary   { background-color: var(--color-primary) !important;   }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-off-white { background-color: var(--color-off-white) !important; }

/* Text color utilities */
.text-primary   { color: var(--color-primary) !important;   }
.text-secondary { color: var(--color-secondary) !important; }
.text-white     { color: var(--color-white) !important;     }
.text-muted     { color: var(--color-mid-gray) !important;  }


/* ==========================================================================
   11. RESPONSIVE — TABLET  (max-width: 980px)
   ========================================================================== */

@media screen and (max-width: 980px) {

  /* Navigation adjustments */
  #main-header .logo_container img {
    max-height: 48px;
  }

  /* Typography scale-down */
  body {
    font-size: 15px;
  }

  .site-footer-section__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .site-footer-section__about,
  .site-footer-section__menus {
    width: 100%;
  }

  .site-footer-section__menus {
    gap: 1rem;
  }

  .site-footer-section__menu-list {
    gap: 1rem;
  }

  .js-mobile-nav .mobile_nav .et_mobile_menu .menu-item-has-children > a {
    position: relative;
    padding-right: 2.5rem !important;
  }

  .js-mobile-nav .mobile_nav .et_mobile_menu .menu-item-has-children > a::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
  }

  .js-mobile-nav .mobile_nav .et_mobile_menu .menu-item-has-children > .sub-menu {
    display: none !important;
    margin-top: 0.35rem;
    padding-left: 0;
  }

  .js-mobile-nav .mobile_nav .et_mobile_menu .menu-item-has-children.is-open > .sub-menu {
    display: block !important;
  }

  .js-mobile-nav .mobile_nav .et_mobile_menu .menu-item-has-children.is-open > a::after {
    content: '−';
  }

  .js-mobile-nav .mobile_nav .et_mobile_menu .sub-menu li + li {
    margin-top: 0.5rem;
  }

}


/* ==========================================================================
   12. RESPONSIVE — MEGA MENU
   ========================================================================== */

/* Target only the Visit mega menu submenu */
.menu-item-visit-featured .sub-menu,
.mega-menu .sub-menu {
  display: flex;
  gap: 16px;
  padding: 1.5rem 2rem;
  list-style: none;
  margin: 0;
  background: #1a1f2e; /* match your nav bg */
}

.mega-menu .sub-menu li {
  flex: 1;
}

.mega-menu .sub-menu li a {
    display: block;
    position: relative;
    height: 180px;
    border: none !important;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background-image:
        linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 62%, rgba(0, 0, 0, 0.08) 100%),
        var(--mega-card-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s ease; 
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}


.mega-menu .sub-menu li a {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 14px;
    line-height: 1.3;
}

/* Push link text to bottom of card */
.mega-menu .sub-menu li a::after {
    content: attr(data-label);
}

/* Hover lift */
.mega-menu .sub-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* ── Swap these URLs for your actual images ── */
.mega-menu .sub-menu li.menu-item-176 a {
    --mega-card-image: url('/wp-content/uploads/2026/03/White-Pine-Village-42-scaled.jpg');
}
.mega-menu .sub-menu li.menu-item-178 a {
    --mega-card-image: url('/wp-content/uploads/2026/03/283A8128.jpg');
}
.mega-menu .sub-menu li.menu-item-181 a {
    --mega-card-image: url('/wp-content/uploads/2026/03/283A7136.jpg');
}









/* ==========================================================================
   13. RESPONSIVE — MOBILE  (max-width: 767px)
   ========================================================================== */

@media screen and (max-width: 767px) {

  /* Typography scale-down */
  body {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Logo */
  #main-header .logo_container img {
    max-height: 40px;
  }

  /* Stack utility */
  .mobile-center {
    text-align: center !important;
  }

  .site-footer-section {
    padding-top: 2.75rem;
  }

  .site-footer-section__menus {
    align-items: stretch;
    padding-left: 0;
  }

  .site-footer-section__menu-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .site-footer-section__social {
    justify-content: flex-start;
  }

  .site-footer-section__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-item-visit-featured .sub-menu,
  .mega-menu .sub-menu {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .mega-menu .sub-menu li a {
    height: auto;
    min-height: 0;
    padding: 0.9rem 1rem;
    background-image: none !important;
    background-color: #1f252b;
    text-shadow: none;
  }

}



/* ==========================================================================
   14. Custom Carousel
   ========================================================================== */

.portrait-crop-carousel {
    max-width: 350px;
}

.portrait-crop-carousel img {
    width: 356px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center bottom; 
}

.portrait-crop-carousel .et_pb_group_carousel_arrow {
    top: 200px !important;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 37, 43, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.portrait-crop-carousel .et_pb_group_carousel_arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}




/* ==========================================================================
   15. Search Results Page
   ========================================================================== */

body.search-results .et_pb_section_0_tb_body {
    background-image: none;
    background-color: white;
}

body.search-results .et_pb_section_0_tb_body .et_pb_column:not(.et_pb_column_inner):nth-child(1) {
	/* background-image: url(https://images.unsplash.com/photo-1666689465000-9cd6033e80cf?ixid=M3w1ODkyNzF8MHwxfHNlYXJjaHwyfHx2aW50YWdlJTIwbXVzZXVtJTIwaW50ZXJpb3J8ZW58MHwxfHx8MTc3MjY1NTA5NXww&amp;ixlib=rb-4.1.0&amp;fm=webp&amp;fit=crop&amp;crop=entropy&amp;w=800&amp;h=1080&amp;q=20&amp;dpr=2); */
	background-image: none !important;
    background-color: white;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 30px;
}

body.search-results .et_pb_section_0_tb_body .et_pb_search_0_tb_body {
    width: 660px;
    margin: 0 auto 2rem;
    padding: 0.75rem;
    background-color: #eee;
}

body.search-results .et_pb_section_0_tb_body .et_pb_search_0_tb_body .et_pb_searchform,
body.search-results .et_pb_section_0_tb_body .et_pb_search_0_tb_body .et_pb_searchform > div {
    width: 100%;
}

body.search-results .et_pb_section_0_tb_body .et_pb_search_0_tb_body .et_pb_searchform > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

body.search-results .et_pb_section_0_tb_body .et_pb_search_0_tb_body .et_pb_s {
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    color: var(--color-black);
}

body.search-results .et_pb_section_0_tb_body .et_pb_search_0_tb_body .et_pb_searchsubmit {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border: none !important;
    border-radius: var(--radius-sm);
    background-color: var(--color-memory-gold);
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.search-results .et_pb_section_0_tb_body .et_pb_search_0_tb_body .et_pb_searchsubmit:hover {
    background-color: var(--color-gold);
}

@media screen and (max-width: 767px) {
    body.search-results .et_pb_section_0_tb_body .et_pb_search_0_tb_body .et_pb_searchform > div {
        flex-direction: column;
        align-items: stretch;
    }
}

body.search-results .et_pb_section_0_tb_header {
    background-color: var(--gcid-1b4a3854-7b44-49f6-922e-e1ac36476373);
}