/* CSS CUSTOM PROPERTIES (VARIABLES) */

:root {
  /* Brand Colors */
  --brand-primary: #0098a6;
  --brand-secondary: #153f5f;
  --brand-dark: #30424a;
  --brand-accent: #007c91;
  
  /* Neutral Colors */
  --color-white: #fff;
  --color-off-white: #eee7e7;
  --color-light-gray: #C9CBCF;
  --color-border: #ddd;
  --color-border-dark: #bbb;
  
  /* Typography */
  --font-primary: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant", Georgia, serif;
  
  /* Font Sizes - Fluid */
  --text-xs: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  --text-sm: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-base: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-lg: clamp(1.3125rem, 1.2rem + 0.5vw, 1.625rem);
  --text-xl: clamp(1.625rem, 1.4rem + 1vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.7rem + 1.5vw, 2.875rem);
  --text-3xl: clamp(2.625rem, 2rem + 2.5vw, 3.375rem);
  --text-4xl: clamp(3.3125rem, 2.5rem + 3vw, 4rem);
  
  /* Spacing System */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;
  
  /* Shadows */
  --shadow-box: 1px 5px 12px 3px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --brand-primary: #00b8c9;
    --brand-dark: #f0f0f0;
    --color-white: #1a1a1a;
    --color-off-white: #2a2a2a;
    --color-border: #404040;
  }
}

/* BASE & LAYOUT OVERRIDES */

.ast-below-header-bar {
  border-bottom-width: 0;
}

.ast-primary-header-bar {
  padding: 0 20px;
}

.ast-container,
.elementor-element {
  padding: 0;
}

.ast-oembed-container {
  min-height: 400px;
}

.site-below-footer-wrap {
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
}

.page .entry-header,
.entry-header {
  margin-bottom: 0;
}

header.entry-header .entry-title {
  font-size: var(--text-3xl);
  line-height: 1.1;
}

.ast-scroll-to-top-right {
  right: 12px;
  bottom: 75px;
}

/* Global Link Styles */
a {
  transition: color var(--transition-base);
}

a:hover,
a:visited {
  color: var(--brand-primary);
}

a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* NAVIGATION */

.menu-item-166 {
  font-family: var(--font-primary);
  text-transform: uppercase;
  min-width: 150px;
  font-weight: 700;
}

.menu-item-1736 a {
  color: var(--brand-secondary);
  font-weight: 700;
}

.menu-item-1737 a {
  color: var(--brand-primary);
  font-weight: 700;
}

.ast-custom-button {
  text-align: center;
}

/* Mega Menu */
.main-header-menu .mega-menu-header > a {
  background-color: var(--color-light-gray);
  padding: 10px 15px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  color: inherit;
  text-decoration: none;
  transition: background-color var(--transition-base);
}

.main-header-menu .mega-menu-header > a:hover,
.main-header-menu .mega-menu-header > a:focus,
.main-header-menu .mega-menu-header > a:active {
  background-color: var(--color-light-gray);
}

/* FOOTER */

.footer-menu {
  list-style: none;
  text-align: center;
  padding: 1rem 0 0;
}

.footer-menu h2,
.footer_column-heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 30pt;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-menu p {
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  margin-bottom: 1.2em;
}

.footer-menu ul {
  margin: 0;
  padding: 0;
}

.footer-menu li {
  color: var(--color-off-white);
  font-size: 18px;
  text-align: center;
  padding: 0.1rem 0;
}

.footer-menu li a,
.footer-menu a {
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.footer-menu a:hover {
  opacity: 0.8;
}

.footer-office p {
  margin-bottom: 5px;
}

/* UTILITY CLASSES */

.dot-green,
.dot-blue {
  margin-right: 15px;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green {
  background-color: var(--brand-primary);
}

.dot-blue {
  background-color: var(--brand-dark);
}

.PE_divider {
  max-width: 1400px;
  height: 1px;
  background-color: var(--color-border);
}

.referral_spacer {
  border-right: 1px dashed var(--color-border);
}

/* Layout Utilities - Original Class Names Preserved */
.PE-layout-flex {
  gap: 0;
}

.PE-layout-flex0 {
  gap: 10px;
}

.PE-layout-flex1 {
  gap: 15px;
}

.PE-layout-flex2 {
  gap: 30px;
}

.is-layout-flex {
  gap: 40px;
}

/* LISTS & BOXES */

.PE_list {
  padding: 0;
  margin: 0;
}

.PE_list li {
  font-size: 21px;
  list-style: none;
}

.PE_list li a {
  text-decoration: none;
  color: var(--brand-dark);
  transition: color var(--transition-base);
}

.PE_list li a:hover {
  color: var(--brand-primary);
}

.PE_box {
  border-radius: 5px;
  box-shadow: var(--shadow-box);
  contain: layout style paint;
}

.PE_box_npf {
  /* No padding fallback - applied in mobile */
}

/* FORMS */

.contact-form label,
.PE_form label {
  font-family: var(--font-primary);
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.25em;
}

.PE_form label {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 0.5em;
}

.wpforms-field-label {
  font-family: var(--font-primary);
  font-size: 18px;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.5em;
}

.wpforms-field-required {
  padding: 10px 0;
}

div.wpforms-container-full .wpforms-field.wpforms-field-checkbox ul li input + label {
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 16px;
}

.wpforms-submit-container {
  text-align: center;
  margin-top: var(--space-lg);
}

.grunion-checkbox-multiple-options {
  font-family: var(--font-primary);
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.25em;
}

.grunion-field-text {
  font-size: 18px;
  text-transform: capitalize;
  letter-spacing: 0;
}

.contact-form .grunion-checkbox-multiple-options legend,
.contact-form .grunion-radio-options legend {
  font-weight: 600;
}

.PE_checkbox input[type="checkbox"] {
  padding: 5px;
}

/* Form Inputs */
input {
  font-size: 21px;
  font-style: normal;
  border: 1px solid var(--color-border-dark);
  border-radius: 0;
  box-shadow: none;
  transition: border-color var(--transition-base);
}

input:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-color: var(--brand-primary);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="reset"],
input[type="tel"],
input[type="date"] {
  height: 50px;
}

textarea {
  max-height: 200px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  transition: border-color var(--transition-base);
  resize: vertical;
}

textarea:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-color: var(--brand-primary);
}

/* BUTTONS */

.PE_button {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  padding: 1.4rem 2.5rem 2.4rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.PE_button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-box);
}

.CTbutton a:hover {
  background-color: var(--brand-primary);
}

/* CONTENT & TYPOGRAPHY */

.type-post h2 {
  font-size: 40px;
  line-height: 1.2;
  margin: var(--space-lg) 0;
}

.type-post p {
  font-size: 21px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.wp-block-post-excerpt__more-text {
  font-family: var(--font-primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 21px;
  margin-top: -20px;
}

/* Typography Utility Classes */
.service_h2 {
  font-size: var(--text-3xl);
  line-height: 1.1;
}

.PE_subtitle {
  font-size: var(--text-4xl);
  line-height: 1.2;
}

.PE_titletext {
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.PE_text {
  font-size: var(--text-base);
  line-height: 1.6;
}

.PE_subtext {
  font-size: var(--text-lg);
  line-height: 1.5;
}

/* SLIDESHOW / MEDIA */

.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets,
.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-custom {
  display: none;
  padding: 0;
}

.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide figure {
  align-items: inherit;
}

#gspb_iconsList-id-gsbp-c4fe808.gspb_iconsList .gspb_iconsList__item svg path {
    fill: #0098a6 !important;
}

/* MOBILE NAVIGATION ICONS */

.mobile-icons {
  display: none;
}

/* ACCESSIBILITY ENHANCEMENTS */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
  .ast-plain-container.ast-no-sidebar #primary {
    margin-top: 0;
    margin-bottom: 0;
  }

  .site-footer-section-2 {
    min-width: 435px;
  }

  .site-footer-section-3 {
    min-width: 280px;
  }

  header.entry-header .entry-title {
    font-size: 54px;
  }
}

/* Desktop (922px+) */
@media (min-width: 922px) {
  .ast-no-sidebar .site-content .ast-article-image-container--wide {
    margin-left: -80px;
    margin-right: -80px;
  }

  /* Scrollable Mega Menu */
  .astra-megamenu.sub-menu {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .astra-megamenu.sub-menu::-webkit-scrollbar {
    width: 6px;
  }

  .astra-megamenu.sub-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
  }

  .astra-megamenu.sub-menu::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
  }
}

/* Tablet (max-width: 1199px) */
@media (max-width: 1199px) {
  .ast-builder-menu-2 {
    display: none;
  }

  .main-header-menu .menu-link,
  .main-header-menu > a {
    padding: 0 0.5em;
  }

  .ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 60px;
  }

  .ast-header-button-1[data-section*="section-hb-button-"] .ast-builder-button-wrap .ast-custom-button {
    padding: 15px 20px;
    min-width: 120px;
  }

  .ast-builder-footer-grid-columns {
    grid-column-gap: 20px;
  }

  .footer-menu h1 {
    font-size: 32px;
  }

  .footer-menu li a,
  .footer-menu p {
    font-size: 15px;
  }

  .PE-layout-flex2 {
    gap: 10px;
  }

  .is-layout-flex {
    gap: 20px;
  }

  .PE_subtitle {
    font-size: 64px;
    line-height: 1.2;
  }
}

/* Mobile Landscape & Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
  .mobile-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
  }

  .mobile-icons .icon-btn {
    font-size: 24px;
    color: var(--brand-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    transition: color var(--transition-base);
  }

  .mobile-icons .icon-btn:hover {
    color: #005e6b;
  }
}

@media (min-width: 769px) {
  .mobile-icons {
    display: none;
  }
}

/* Mobile (max-width: 756px) */
@media (max-width: 756px) {
  header .custom-logo-link img {
    max-width: 250px;
  }

  button {
    box-shadow: none;
  }

  .is-layout-flex {
    gap: 10px;
  }

  .service_h2 {
    font-size: 53px;
    line-height: 1.1;
  }

  .PE_subtitle {
    font-size: 53px;
    line-height: 1.2;
    letter-spacing: -1px;
  }

  .PE_titletext {
    font-size: 45px;
    letter-spacing: -1px;
    line-height: 1.1;
  }

  .PE_text {
    font-size: 21px;
  }

  .PE_list li {
    font-size: 18px;
  }

  .PE_subtext {
    font-size: 23px;
  }

  .PE_box_npf {
    padding: 25px;
  }

  .wp-block-columns .wp-block-column:not(:last-child) {
    margin-bottom: 0;
  }

  .footer-menu {
    padding: 1rem 0 1.5rem;
  }

  .footer-menu li {
    padding: 0;
  }

  .footer-menu h1 {
    margin-bottom: 1rem;
  }

  .ast-footer-copyright {
    padding-top: 5px;
  }

  #block-18 {
    margin-bottom: -20px;
  }

  #block-30 {
    margin-bottom: -15px;
  }

  .footer-office p {
    margin-bottom: 0;
  }

  .main-banner {
    min-height: 680px;
  }

  .exp-banner {
    min-height: 580px;
  }

  .ast-single-entry-banner[data-post-type="post"] .entry-title {
    font-size: 42px;
  }

  .type-post h2 {
    font-size: 32px;
  }
}

/* PRINT STYLES */

@media print {
  .ast-header-break-point,
  .site-footer,
  .mobile-icons,
  .ast-scroll-to-top-right,
  .wpforms-submit-container {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}

.main-header-bar .main-header-bar-navigation .sub-menu {
    line-height: 1;
}

.sub-menu .menu-text {
	  font-size: 13px;
	  padding: 0;
}

.main-header-menu .sub-menu .menu-link {
    padding: .3em .4em;
    display: block;
    word-wrap: break-word;
}