/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  font-family: sans-serif;
}

body {
  margin: 0;
  font-family: inherit;
  font-size: 100%;
  background: #fff;
  color: #000;
}

h1, h2, h3, h4, h5, h6,
p, blockquote, figure,
dl, dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  margin: 0;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
  outline: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

textarea {
  resize: vertical;
}






/* NAVIGATION */


/* === Navigation Bar === */
.navigation-bar-container {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0.75rem 0;
}

.site-header.scrolled .navigation-bar-container {
  background-color: var(--nav-scrolled);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* === Main Navigation === */
.main-nav ul {
  display: flex;
  gap: var(--nav-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a:not(.cta-button) {
  color: var(--light-text);
  font-weight: var(--nav-font-weight);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  padding: 0.5em 0;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.main-nav a:not(.cta-button)::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--light-accent);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.main-nav a:not(.cta-button):hover,
.main-nav a:not(.cta-button):focus,
.main-nav .current-menu-item > a:not(.cta-button) {
  color: var(--light-accent);
  opacity: 1;
}

.main-nav a:not(.cta-button):hover::after,
.main-nav a:not(.cta-button):focus::after,
.main-nav .current-menu-item > a:not(.cta-button)::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* === Mobile Navigation Toggle === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1005;
  margin-left: 1rem;
}

.nav-toggle .icon-bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--light-text);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
  border-radius: 1px;
}

.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === Mobile Nav Menu === */
@media (max-width: 768px) {
  .main-nav ul {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(29, 29, 37, 0.98);
    padding: 1rem 0;
    z-index: 999;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition:
      max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      opacity 0.3s ease-in-out 0.1s,
      visibility 0s linear 0.4s;
  }

  .main-nav.show {
    display: flex;
    max-height: calc(100vh - 150px);
    opacity: 1;
    visibility: visible;
    transition:
      max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      opacity 0.2s ease-in-out,
      visibility 0s linear 0s;
    overflow-y: auto;
    padding-bottom: 1rem;
  }

  .main-nav.show ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    text-align: center;
  }

  .main-nav.show ul li {
    width: 100%;
    background-color: transparent;
  }

  .main-nav.show ul li a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    color: var(--light-text);
    background: transparent;
    text-shadow: none;
  }

  .main-nav.show ul li:last-child a {
    border-bottom: none;
  }

  .main-nav.show ul li a:hover,
  .main-nav.show ul li a:focus,
  .main-nav.show .current-menu-item > a {
    background-color: var(--primary-accent);
    color: var(--light-text);
  }
}







/* === FOOTER === */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--font-primary);
  padding-top: 0rem;
  margin-top: 3rem;
}

/* === Footer CTA Section with Parallax Background === */
.footer-cta-section {
  background-image: url('/images/footer-back.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 1.5rem;
  color: var(--light-text);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Overlay to improve text contrast */
.footer-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* semi-transparent overlay */
  z-index: -1;
}

.footer-cta-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.footer-cta-heading {
  font-size: 2.6rem;
  font-family: var(--font-secondary);
  color: var(--light-text);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.footer-cta-hours {
  font-size: 1rem;
  font-weight: 500;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.footer-contact-info p {
  font-size: 1.15rem;
  margin: 0.3rem 0;
}

p.footer-cta-phone {
  font-size: 2.25rem;
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.footer-contact-info a {
  color: var(--light-accent);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact-info a:hover {
  text-decoration: underline;
}

/* Mobile Improvements */
@media (max-width: 600px) {
  .footer-cta-heading {
    font-size: 1.5rem;
  }

  .footer-cta-hours,
  .footer-contact-info p {
    font-size: 0.9rem;
  }
}




/* Social Media Bar */
.footer-social-media-bar {
  background-color: var(--footer-social-bg);
  padding: 1.2rem 0;
  text-align: center;
}

.social-icons-wrapper a {
  color: var(--footer-social-icon-color);
  font-size: var(--social-icon-font-size);
  margin: 0 0.6rem;
  transition: color 0.3s ease;
}

.social-icons-wrapper a:hover {
  color: var(--footer-social-icon-hover-color);
}

/* Copyright / Site Info */
.site-info {
  background-color: var(--footer-bg);
  font-size: 0.85rem; /* Material Caption */
  line-height: 1.4;
  text-align: center;
  padding: 1rem 1rem 1.5rem;
  color: var(--footer-text);
}

.site-info a {
  color: var(--light-accent);
  text-decoration: none;
  font-weight: 500;
}

.site-info a:hover {
  text-decoration: underline;
}









/* PLUGIN STYLING */

/* === Ninja Forms === */
.nf-form-cont {
    text-align: left;
}
.nf-form-cont .nf-form-title {
    display: none;
}
.signup-section .nf-form-cont { 
    max-width: 500px; 
    margin: 2rem auto;
    text-align: center;
}

.entry-content .nf-form-cont {
    margin-top: 2em;
    margin-bottom: 2em;
}
.entry-content .nf-form-cont .nf-form-title {
    display: block; 
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    color: var(--dark-text);
    margin-bottom: 1.0rem;
    text-align: left;
}

.nf-form-cont .nf-field-label label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    display: block;
}
.nf-form-cont .nf-form-fields-required { 
    font-style: italic;
    font-size: 0.8em; 
    color: #555;       
    margin-bottom: 1.5rem; 
    display: block; 
    text-align: left;
}
.signup-section .nf-form-fields-required {
    text-align: center;
}
.nf-form-cont .nf-field-container { 
    margin-bottom: 1.25rem;
}
/* Base styles for TEXT and TEXTAREA fields */
.nf-form-cont .nf-field-element input[type="text"],
.nf-form-cont .nf-field-element input[type="email"],
.nf-form-cont .nf-field-element input[type="tel"],
.nf-form-cont .nf-field-element textarea {
    width: 100%;
    padding: 0.9rem 1.1rem; 
    border: 1px solid var(--input-border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    font-family: var(--font-primary);
}
.nf-form-cont .nf-field-element textarea {
    min-height: 120px;
    resize: vertical;
}

/* Specific styles for the SELECT dropdown wrapper */
.nf-form-cont .list-select-wrap .ninja-forms-field {
    width: 100%;
    padding: 0; /* Wrapper itself has no padding */
    border: 1px solid var(--input-border-color);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    font-family: var(--font-primary);
    /* Add the dropdown arrow ONLY to this wrapper */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
}

/* Styles for the actual <select> element inside the styled wrapper */
.nf-form-cont .list-select-wrap .ninja-forms-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important; /* Ensures native arrow is hidden */
  border: none !important;
  padding: 0.9rem 2.5rem 0.9rem 1.1rem; /* More space on the right for arrow */
  width: 100%;
  background-color: transparent;
  font-size: 1rem;
  color: var(--dark-text);
  font-family: var(--font-primary);
  line-height: 1.4;
  box-sizing: border-box;
}
.nf-form-cont .list-select-wrap select {
  padding: 10px !important;
}

/* Focus states */
.nf-form-cont .nf-field-element input[type="text"]:focus,
.nf-form-cont .nf-field-element input[type="email"]:focus,
.nf-form-cont .nf-field-element input[type="tel"]:focus,
.nf-form-cont .nf-field-element textarea:focus,
.nf-form-cont .list-select-wrap .ninja-forms-field:focus-within { /* Focus on the wrapper */
    border-color: var(--input-focus-border-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-accent-rgb), 0.25); 
    outline: none;
}

.nf-form-cont .submit-container input[type="submit"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Use the existing .cta-button styles as a base */
    background-color: var(--primary-accent);
    color: var(--light-text);
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    width: 100%; 
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.entry-content .submit-container input[type="submit"] {
    width: auto; 
}

.nf-form-cont .submit-container input[type="submit"]:hover {
    background-color: var(--strong-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--primary-accent-rgb), 0.25);
}

.nf-response-msg {
  background-color: #f0f9f4;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nf-response-msg p {
  margin: 0;
}


/* === Ninja Forms Styled Container === */
.entry-content .nf-form-cont {
  background-color: #fff;
  padding: .5rem 2rem 1rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-top: 2rem;
  margin-bottom: 3rem;
}
