/*
 Theme Name:   Madison Bosler Design
 Theme URI:    https://madisonboslerdesign.com
 Description:  Custom child theme for Madison Bosler's portfolio website
 Author:       Madison Bosler
 Author URI:   https://madisonboslerdesign.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  madison-bosler-design
*/

/* ================================
   MADISON BOSLER PORTFOLIO - CUSTOM CSS
   ================================ */

/* ----- Color Variables ----- */
:root {
  --green-primary: #5A8F4F;
  --copper-accent: #B87333;
  --beige-light: #E5DDD0;
  --white: #FFFFFF;
  --dark-gray: #333333;
}

/* ----- Global Styles ----- */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark-gray);
  background-color: var(--white);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  color: var(--green-primary);
  font-weight: 300;
  letter-spacing: 1px;
}

a {
  color: var(--copper-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--green-primary);
}

/* ----- Header/Navigation ----- */
.site-header,
.ast-primary-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--beige-light);
}

.main-navigation a,
.ast-header-break-point .ast-mobile-menu-buttons .menu-toggle,
.ast-nav-menu a {
  color: var(--dark-gray);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.ast-nav-menu a:hover,
.ast-nav-menu .current-menu-item > a {
  color: var(--green-primary);
}

/* Astra specific header styles */
.ast-primary-header-bar {
  border-bottom: 1px solid var(--beige-light);
}

.ast-site-identity .site-title a {
  color: var(--green-primary);
  font-weight: 300;
  letter-spacing: 2px;
}

.ast-site-identity .site-description {
  color: var(--copper-accent);
  font-style: italic;
}

/* ----- Buttons ----- */
.wp-block-button__link,
button,
input[type="submit"],
.ast-button,
.button,
a.button {
  background-color: var(--green-primary) !important;
  color: var(--white) !important;
  border: none;
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
  border-radius: 2px;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
.ast-button:hover,
.button:hover,
a.button:hover {
  background-color: var(--copper-accent) !important;
}

/* ----- Footer ----- */
.site-footer,
.ast-footer-overlay {
  background-color: var(--beige-light);
  padding: 40px 0;
}

.ast-small-footer {
  background-color: var(--beige-light);
  border-top: none;
}

.ast-small-footer .ast-footer-copyright {
  color: var(--dark-gray);
}

.footer-green-bar {
  background-color: var(--green-primary);
  height: 8px;
  width: 100%;
}

.footer-copper-bar {
  background-color: var(--copper-accent);
  height: 8px;
  width: 100%;
}

/* ----- About Page ----- */
.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.headshot-section {
  text-align: center;
  margin-bottom: 40px;
}

.headshot {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green-primary);
}

.about-content h1 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 5px;
}

.tagline {
  text-align: center;
  color: var(--copper-accent);
  font-size: 18px;
  font-style: italic;
  margin-bottom: 40px;
}

.about-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--beige-light);
  padding-bottom: 10px;
}

.about-content ul {
  list-style: none;
  padding: 0;
}

.about-content li {
  padding: 8px 0;
  border-left: 3px solid var(--green-primary);
  padding-left: 15px;
  margin-bottom: 10px;
}

/* ----- Contact Page ----- */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.contact-container h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.contact-info {
  margin-top: 40px;
  padding: 40px;
  background-color: var(--beige-light);
  border-radius: 4px;
}

.contact-info p {
  font-size: 18px;
  margin: 15px 0;
}

/* ----- Portfolio Page ----- */
.portfolio-page {
  padding: 40px 20px;
}

/* Portfolio gallery enhancements */
.portfolio-gallery,
.gallery,
.wp-block-gallery {
  gap: 20px;
}

.portfolio-gallery img,
.gallery img,
.wp-block-gallery img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-gallery img:hover,
.gallery img:hover,
.wp-block-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ----- Splash Screen ----- */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 1s ease-out;
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash-screen img {
  max-width: 300px;
  max-height: 300px;
}

/* Hide splash on subsequent page loads (session storage controlled) */
body.splash-hidden #splash-screen {
  display: none;
}

/* ----- Page Titles ----- */
.ast-archive-description .ast-archive-title,
.entry-title {
  color: var(--green-primary);
  font-weight: 300;
  letter-spacing: 2px;
}

/* Hide page title on portfolio/home page for cleaner gallery view */
.home .entry-title,
.page-template-template-portfolio .entry-title {
  display: none;
}

/* ----- Content Area ----- */
.entry-content {
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: 1.5em;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .about-content h1 {
    font-size: 32px;
  }

  .headshot {
    width: 200px;
    height: 200px;
  }

  .contact-container h1 {
    font-size: 32px;
  }

  .contact-info {
    padding: 25px;
  }

  .about-container,
  .contact-container {
    padding: 40px 15px;
  }

  /* Mobile navigation */
  .ast-mobile-menu-buttons .menu-toggle {
    color: var(--green-primary);
  }
}

@media (max-width: 480px) {
  .about-content h1,
  .contact-container h1 {
    font-size: 28px;
  }

  .headshot {
    width: 150px;
    height: 150px;
  }

  .tagline {
    font-size: 16px;
  }
}
