/*
Theme Name: Port Aransas Medical
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A custom theme for Port Aransas Medical based on provided design.
Version: 1.0
License: GNU General Public License v2 or laterpage-id-10847
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: port-aransas-medical
*/


/* Contact Form 7 Styles */
/* Form wrapper with soft background */
.wpcf7 form {
  max-width: 700px;
  line-height: 1.8em;
}

/* Labels */

.wpcf7 textarea, .wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="phone"] {
    margin-top: 10px;
    
}
.wpcf7 label {
  display: block;
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #0a507c;
  margin-bottom: 6px;
}

/* Text fields, email, tel, and textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'Lora', serif;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 1.5em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* Focus styles */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #0a507c;
  box-shadow: 0 0 6px rgba(10, 80, 124, 0.3);
  outline: none;
}

/* Select box styling */
.wpcf7 select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230a507c' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* Radio and checkbox styling */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  accent-color: #0a507c;
  margin-right: 8px;
}

.wpcf7 .wpcf7-list-item {
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  font-family: 'Lora', serif;
  font-size: 15px;
  color: #333;
}

/* Submit button */
.wpcf7 input[type="submit"] {
  background-color: #0a507c;
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 16px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #ca9761;
  transform: scale(1.05);
}

/* Success & error messages */
.wpcf7-response-output {
  font-size: 15px;
  font-family: 'Lora', serif;
  border-radius: 5px;
  padding: 1em;
  margin-top: 1em;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wpcf7-validation-errors {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.wpcf7-not-valid-tip {
  color: #d9534f;
  font-size: 14px;
  margin-top: 4px;
}

.wpcf7 form {
	width: 100%;
    max-width: 100%
}

/* Main Styles */

body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

p {
    font-size: 18px;
    line-height: 1.6em;
}

/*Stylized hr image for section breaks */
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.section-divider img {
  max-width: 90px;
  height: auto;
  display: block;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px; /* space between lines and icon */
  margin: 30px 0; /* adjust spacing above/below */
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  max-width: 120px; /* keeps the lines short */
  height: 1px;
  background-color: #d9d9d9; /* light grey */
  opacity: 0.7; /* soften the look */
}

.section-divider img {
  height: 48px; /* or whatever your logo icon needs */
  width: auto;
}


blockquote {
  margin: 1em 0;
  font-style: italic;
  color: #444;
  font-size: 1em;
  line-height: 1.6;
  border-radius: 6px;
}


a:hover {
  text-decoration: none;
}

body {
    font-family: 'Lora', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    color: #063954;
}

body, p, li, span, div {
  color: #5a5a5a;
}

a {
  color: #063954; /* your blue */
  text-decoration: none;
}

a:hover {
  color: #ca9761; /* your gold/yellow color */
}


/* Styling for info bar above header on home */

.top-bar {
  background-color: #ffffff;
  font-size: 14px; /* Base font size */
  padding: 40px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-right: 5px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.top-bar-icon {
  width: 9px;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

.top-bar-item a,
.top-bar-item span {
  color: #0a507c;
  text-decoration: none;
}

.top-bar-item a:hover {
  color: #777;
  text-decoration: none;
}

.top-bar-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.top-bar-right a {
  margin-left: 16px;
}

.top-bar-right a i {
  font-size: 18px;
  color: #bbb;
  transition: color 0.3s ease;
}

.top-bar-right a:last-child i {
  color: #003d6a;
}

.top-bar-right a:hover i {
  color: #0b74b8;
}

.top-bar-link:hover {
  transition: background-color 0.3s ease;
}

.social-icon {
  width: 18px;        /* Matches visual size to left icons */
  height: auto;
  display: inline-block;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.top-bar-right a:hover .social-icon {
  transform: scale(1.1); /* Optional: slight zoom on hover */
}

/* Logo and Navigation */

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.site-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin:0 0 30px 0;
}

.site-branding {
  flex-shrink: 0;
  margin-bottom: 20px;
}

.site-logo {
  max-height: 95px;
  width: auto;
  display: block;
}

.main-nav {
  flex-grow: 1;
  text-align: right;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: inline-block;
  margin-left: 40px; /* Replaces gap between items */
}

.nav-menu li:first-child {
  margin-left: 0;
}

.nav-menu a {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #0a2954;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #c58f53;
  text-decoration: none !important;
}

.nav-menu .current-menu-item a {
  color: #c58f53;
  font-weight: bold;
}

/* Home page hero section */

.hero-banner {
  position: relative;
  height: 340px;
  background: url('../port-aransas-medical/images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
  border-radius: 6px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 45, 76, 0.85);
    z-index: 1;
    border-radius: 6px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left {
  flex: 1;
  text-align: center;
}

.hero-tagline {
  font-size: 24px;
  color: #c58f53;
  text-transform: uppercase;
  margin-bottom:0;
  margin-top:0;
}

.hero-title {
  font-size: 30px;
  line-height: 1.6;
  font-family: 'Lora', serif;
  font-weight: bold;
  color:#fff;
  margin: 10px 0;
}


.hero-text {
  font-size: 18px;
  line-height: 1.6;
  color:#fff;
  width: 62%;
    margin: 0 auto 25px;
}

.hero-button {
  display: inline-block;
  background-color: #c58f53;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 1.5px;
}

a.hero-button:hover {
    background-color: #ffffff;
    color: #c58f53;
    transition: all 0.3s ease;
}

.hero-divider {
  width: 2px;
  height: 250px;
  background-color: #c58f53; /* Gold color from design */
  flex-shrink: 0;
}

/* Section Headings */
.section-heading {
    text-align: center;
    font-family: 'Lora', serif;
    color: #0a2954;
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-subheading {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 18px;
  line-height: 1.6;
  color: #5a5a5a;  
  text-align: center;
}

/* Services Layout */
/* Services Section */

 .service-boxes {
    flex: 1 1 calc(33.333% - 24px);
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: stretch;
}

.service-boxes { 
display: flex;
}


.service-box {
    flex: 1 1 calc(33.333% - 24px);
    margin: 0 12px 24px;
    background: #fff;
    border: 2px solid #e6c79d;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  padding: 10px 5px;
}

.service-icon img {
  width: 100%;
  height: auto;
}

.service-title {
  font-family: 'Lora', serif;
  font-size: 18px;
  color: #0a2954;
  margin: 25px 0 0 0;
}

.service-text {
  font-size: 18px;
  color: #555;
  line-height: 1.6em;
}

/* Button Styles */
.service-button {
  display: inline-block;
  background-color: #0a507c;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  letter-spacing: 1.5px;
}

.service-button:hover {
  background-color: #c58f53;
  color: #fff;
}

/* Statistics Section */
.stat-section .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.stat-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 30px 0 0 0;
}

.stat-card {
  width: calc(25% - 24px); /* 4 cards per row */
  margin: 0 12px 24px;
  border-radius: 6px;
  padding: 0px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-title {
  font-size: 18px;
  color: #333;
  line-height: 1.6em;
  font-weight: normal;
}

.stat-highlight {
  color: #0a2954;
  font-weight: 700;
  font-size: 20px;
}

.stat-text {
  font-size: 16px;
  color: #555;
  line-height: 1.6em;
  margin-top:0;
}

.stat-footer {
  font-size: 12px;
  color: #7a7a7a;
  text-align: center;
  margin: 0 auto 20px;
}

.footer-widget-area p {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-widget-area h3.widget-title {
    margin-bottom: 20px;
}

.site-info p {
    font-size: 12px;
    margin-bottom: 0px;
}

.stat-footer a:hover {
    color: #ca9761;
}
.stat-footer a {
    font-size: 14px;
    color: #0a2954;
    text-decoration: none;
    transition: color 0.1s ease-in;
}

.mission-section {
  background-color: #fff;
  margin: 40px 0;
}

.mission-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.mission-left {
  position: relative;
  flex: 1 1 50%;
}

.mission-photo {
  width: 100%;
  border-radius: 0px 0px 6px 6px;
  display: block;
}

/* CSS Badge */
.experience-badge-css {
    background-color: #003d6a;
    color: white;
    border-radius: 6px 6px 0 0;
    text-align: center;
}

.badge-icon {
    padding: 10px 10px 0 10px;
}

img.shield-icon {
    width: 8%;
}

.badge-number {
    font-size: 60px;
    font-weight: bold;
    position: relative;
    top: -10px;
    color: #fff;
}

.badge-text {
    font-size: 18px;
    line-height: 1.6em;
    color: #fff;
    position: relative;
    top: -15px;
}

span.badge-highlight {
    color: #c58f53;
}

/* RIGHT SIDE */
.mission-right {
  flex: 1 1 50%;
}

.mission-divider {
  width: 60px;
  height: auto;
  margin-bottom: 0px;
}

.mission-title {
  font-family: 'Lora', serif;
  font-size: 28px;
  color: #0a2954;
  line-height: 1.3;
  margin: 0 0 24px 0;
}

.mission-tabs {
  display: flex;
  gap: 24px;
  font-family: 'Lora', serif;
  font-size: 18px;
  margin-bottom: 24px;
}

.mission-tabs .tab {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  font-size: 18px;
  line-height: 1.4;
}

.mission-tabs .tab img {
  width: 26px;
  height: auto;
  margin-right: 10px;
  transition: opacity 0.3s ease;
}

.mission-tabs .tab.active {
  color: #0a2954;
  font-weight: bold;
}

.tab-content {
  display: none;
  margin-bottom: 24px;
}

.tab-content.active {
  display: block;
}


.mission-paragraph {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.highlighted {
  color: #0a507c;
  font-weight: bold;
}

.mission-quote {
  font-size: 18px;
  color: #c58f53;
  font-style: italic;
  margin-bottom: 32px;
}

/* Button styling match */
.btn-primary {
  background-color: #0a507c;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  letter-spacing: 1.5px;
}

.btn-primary:hover {
  background-color: #c58f53;
  color: #fff;
}

.site-footer {
  font-family: 'Open Sans', sans-serif;
  background-color: #0a507c;
  color: white;
}

.footer-widget-area {
  font-size: 14px;
  line-height: 1.2;
}

.site-footer .container p, .site-footer .container li, .site-footer .container span, .site-footer .container div, .site-footer .container .widget-title, .site-info p {
    color: #fff;
} 

.footer-widget-area h4,
.footer-widget-area h2 {
  font-family: 'Lora', serif;
  font-size: 16px;
  margin-bottom: 0.5em;
  color: white;
}

.footer-widget-area ul {
  list-style: none;
  padding-left: 0;
}

.footer-widget-area ul li {
  margin-bottom: 0.5em;
}

.footer-widget-area a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 12px;
}

.footer-widget-area a:hover {
  color: #ca9761; /* Gold accent color */
}

/* Social Icons inside widgets */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.75em; /* replace with em or px if needed */
  margin-top: 0.5em;
}

.footer-social-icons .social-icon {
  width: 24px;
  height: auto;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.footer-social-icons a:hover .social-icon {
  transform: scale(1.1);
}

.site-info {
  font-size: 13px;
  color: #ccc;
}

/* About Us Styling */

.staff-bio p {
    font-size: 14px;
    line-height: 1.2em;
    margin-bottom: 30px;
}

.staff-card {
  background: #ffffff;
  padding: 0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(10, 45, 76, 0.85);
  text-align: center;
  transition: transform 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
}

.circle-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 5px solid #ca9761;
}

body.page-template-page-about .su-row .su-column {
    display: block;
    float: left;
    box-sizing: border-box;
    margin: 0px 0 2% 2%;
    min-height: 640px;
}

body.page-template-page-about .hero-left, body.page-id-10847 .hero-left {
	flex: unset;
}

body.page-template-page-about .hero-banner, body.page-id-10847 .hero-banner {
	height: 250px
}

body.page-id-10847 .top-bar {
    margin:40px 0 0;
    padding-bottom:0;
}

/* Services Page Icons */

.wp-block-columns h4 {
    margin-bottom: 20px;
}

.wp-block-column p {
    margin-bottom: 20px;
    line-height: 1.6em;
    font-size: 16px;
}

figure.wp-block-image.aligncenter.size-thumbnail {
    display: unset;
}

.wp-block-image img.services-icon {
    width: 79px;
    max-width: 79px;   /* override WP's max-width:100% */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.page-id-10847 .section-divider {
    padding: 0;
    margin-top: 0 !important;
}

body.page-id-10847 p.has-text-align-center {
    min-height: 85px;
    width: 75%;
    margin:0 auto;
}

fieldset.hidden-fields-container {
    display: none;
}

/* Media Queries start here */

@media (max-width: 767px) {
    
.site-header-content {
    display: unset;
}

.site-branding a img {
    margin: 0 auto;
}
    
.top-bar-right {
    display: block !important;
    width: 100%;
    margin: 20px 0 0 0;
}

.nav-menu {
    margin: 30px 0;
}

.nav-menu li {
    margin-left: 8px;
}

.service-box {
    flex: auto;
}

.stat-cards {
    display: unset;
}

.stat-card {
    width:100%;
}

.staff-card {
    width:100%;
}

.mission-grid {
    display: unset;
}

.hero-banner {
    display: unset;
}

.hero-content {
    padding: 0 10px;
}

p.hero-tagline {
    margin-top: 20px;
    font-size: 22px;
}

.hero-title {
    font-size: 24px;
}

a.hero-button {
    margin-bottom: 20px;
}

.staff-grid {
    display: block !important;
    width:100%;
}

.staff-card {
    width: 100% !important;
}

}


/* ---------------------------------------------------------
   Cleanup Pass: Shared Block + Staff Styles
   Added during Phase 1 theme cleanup.
--------------------------------------------------------- */

/* Keep centered service image helper in the theme instead of Additional CSS */
.wp-block-group.centered-last-service figure.wp-block-image {
  margin: 0 auto 1em !important;
  text-align: center;
}

.wp-block-group.centered-last-service figure.wp-block-image img {
  display: block;
  margin: 0 auto !important;
}

/* Staff grid moved from functions.php into stylesheet */
.staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.staff-card {
  position: relative;
  width: 31%;
  text-align: center;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
}

.staff-image-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.staff-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(6, 57, 84, 0.9);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: left;
}

.staff-card:hover .staff-overlay,
.staff-card:focus-within .staff-overlay {
  opacity: 1;
}

.staff-bio {
  font-size: 14px;
  line-height: 1.5;
}

.staff-bio p {
  color: #ffffff;
}

.staff-info {
  padding: 1rem;
}

.staff-name {
  margin: 0.5rem 0 0;
  font-family: "Lora", serif;
  font-size: 20px;
  color: #0a2954;
}

.staff-title {
  font-size: 14px;
  color: #777;
  margin: 0;
}

@media (max-width: 900px) {
  .staff-card {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 767px) {
  .staff-grid {
    display: block;
    width: 100%;
  }

  .staff-card {
    width: 100% !important;
    margin-bottom: 2rem;
  }

  .staff-image-wrapper {
    height: auto;
  }

  .staff-image {
    height: auto;
  }

  .staff-overlay {
    position: static;
    opacity: 1;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Header / Top Bar Alignment
--------------------------------------------------------- */

.top-bar {
  padding: 18px 0 16px;
  border-bottom: 1px solid #eeeeee;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.top-bar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-right: 0;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 0;
  line-height: 1.3;
}

.top-bar-icon {
  width: 16px;
  height: auto;
  margin-right: 0;
  flex: 0 0 auto;
}

.top-bar-item a,
.top-bar-item span {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #0a507c;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.top-bar-right a {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
}

.social-icon {
  width: 18px;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar-left {
    justify-content: center;
  }

  .top-bar-right {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .top-bar {
    padding: 16px 0;
  }

  .top-bar-left {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .top-bar-item {
    justify-content: center;
  }

  .top-bar-item--location {
    align-items: flex-start;
  }

  .top-bar-item--location .top-bar-icon {
    margin-top: 2px;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Main Header Alignment
--------------------------------------------------------- */

.site-header {
  padding: 22px 0 26px;
}

.site-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-branding {
  flex: 0 0 auto;
}

.site-logo {
  display: block;
  width: 100%;
  max-width: 265px;
  height: auto;
}

.main-nav {
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 52px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: inline-block;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .site-header {
    padding: 20px 0 24px;
  }

  .site-header-content {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .main-nav {
    margin-left: 0;
  }

  .nav-menu {
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
  }

  .site-logo {
    max-width: 245px;
  }
}

@media (max-width: 767px) {
  .site-logo {
    max-width: 220px;
  }

  .nav-menu {
    gap: 16px 24px;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Top Bar Baseline Refinement
--------------------------------------------------------- */

.top-bar-content {
  align-items: flex-start;
}

.top-bar-left {
  align-items: flex-start;
}

.top-bar-item {
  align-items: flex-start;
}

.top-bar-icon {
  margin-top: 2px;
}

.top-bar-item--location {
  max-width: 320px;
}

.top-bar-item--hours,
.top-bar-item--email,
.top-bar-item--phone {
  padding-top: 8px;
}

.top-bar-right {
  padding-top: 8px;
}

@media (max-width: 900px) {
  .top-bar-content,
  .top-bar-left,
  .top-bar-item {
    align-items: center;
  }

  .top-bar-item--hours,
  .top-bar-item--email,
  .top-bar-item--phone,
  .top-bar-right {
    padding-top: 0;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Top Bar One-Line Desktop Layout
--------------------------------------------------------- */

@media (min-width: 1101px) {
  .top-bar {
    padding: 14px 0;
  }

  .top-bar-content {
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
  }

  .top-bar-left {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
    min-width: 0;
  }

  .top-bar-item {
    align-items: center;
    gap: 8px;
    line-height: 1.2;
    white-space: nowrap;
    padding-top: 0;
  }

  .top-bar-item--location {
    max-width: none;
  }

  .top-bar-item--location br {
    display: none;
  }

  .top-bar-icon {
    width: 18px;
    margin-top: 0;
  }

  .top-bar-item a,
  .top-bar-item span {
    font-size: 13px;
    line-height: 1.2;
  }

  .top-bar-right {
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
    padding-top: 0;
  }
}

@media (max-width: 1100px) {
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar-left {
    justify-content: center;
    flex-wrap: wrap;
  }

  .top-bar-item {
    justify-content: center;
    padding-top: 0;
  }

  .top-bar-right {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .top-bar-left {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .top-bar-item--location br {
    display: block;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Footer Layout
--------------------------------------------------------- */

.site-footer {
  background: #0a507c url("images/Footer-Banner.jpg") no-repeat center center / cover;
  padding: 3rem 1rem;
  color: #ffffff;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-widget-area {
  font-size: 14px;
  line-height: 1.4;
}

.footer-widget-area .wp-block-image {
  margin: 0 0 1rem;
}

.footer-widget-area img {
  max-width: 100%;
  height: auto;
}

.footer-widget-area p {
  margin: 0 0 0.55rem;
}

.footer-widget-area h3.widget-title,
.footer-widget-area h4,
.footer-widget-area h2 {
  margin: 0 0 0.75rem;
}

.site-info {
  text-align: center;
  margin-top: 2rem;
}

.site-info p {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 2.5rem 1rem;
    text-align: center;
  }

  .footer-social-icons {
    justify-content: center;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Homepage Service Card Equal Heights
--------------------------------------------------------- */

.homepage-services .service-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.homepage-services .service-box {
  margin: 0;
  height: auto;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.homepage-services .service-icon {
  flex: 0 0 auto;
}

.homepage-services .service-title {
  flex: 0 0 auto;
}

.homepage-services .service-text {
  flex: 1 1 auto;
}

.homepage-services .service-button {
  margin-top: auto;
}

@media (max-width: 900px) {
  .homepage-services .service-boxes {
    grid-template-columns: 1fr;
  }

  .homepage-services .service-box {
    min-height: 0;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Services Page Grid
--------------------------------------------------------- */

.pam-services-page {
  max-width: 1180px;
  margin: 0 auto;
}

.pam-services-intro {
  max-width: 980px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.pam-services-heading {
  margin: 0 0 2.5rem;
  text-align: center;
}

.pam-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pam-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 280px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid #ead0ad;
  border-radius: 8px;
}

.pam-service-card figure {
  margin: 0 0 1rem;
}

.pam-service-card .services-icon {
  width: 79px;
  max-width: 79px;
  height: auto;
  display: block;
}

.pam-service-card h3 {
  margin: 0 0 0.85rem;
  color: #0a2954;
}

.pam-service-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Center the 10th card on desktop when there are 3 columns */
@media (min-width: 901px) {
  .pam-services-grid .pam-service-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .pam-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pam-services-grid {
    grid-template-columns: 1fr;
  }

  .pam-service-card {
    min-height: 0;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Services Grid Override for WP Group Blocks
--------------------------------------------------------- */

body .pam-services-page .pam-services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body .pam-services-page .pam-services-grid > .pam-service-card {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (min-width: 901px) {
  body .pam-services-page .pam-services-grid > .pam-service-card:last-child:nth-child(3n + 1) {
    grid-column: 2 !important;
  }
}

@media (max-width: 900px) {
  body .pam-services-page .pam-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body .pam-services-page .pam-services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Services Grid Inner Wrapper Fix
--------------------------------------------------------- */

body .pam-services-page,
body .pam-services-page > .wp-block-group__inner-container {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body .pam-services-grid,
body .pam-services-grid > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body .pam-services-grid .pam-service-card {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (min-width: 901px) {
  body .pam-services-grid > .pam-service-card:last-child:nth-child(3n + 1),
  body .pam-services-grid > .wp-block-group__inner-container > .pam-service-card:last-child:nth-child(3n + 1) {
    grid-column: 2 !important;
  }
}

@media (max-width: 900px) {
  body .pam-services-grid,
  body .pam-services-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body .pam-services-grid,
  body .pam-services-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr !important;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Services Grid Final Wrapper Fix
--------------------------------------------------------- */

body .pam-services-page {
  width: min(1180px, calc(100vw - 48px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body .pam-services-page .pam-services-grid {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body .pam-services-page .pam-services-grid > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(250px, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body .pam-services-page .pam-services-grid > .wp-block-group__inner-container > .pam-service-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

@media (min-width: 901px) {
  body .pam-services-page .pam-services-grid > .wp-block-group__inner-container > .pam-service-card:last-child:nth-child(3n + 1) {
    grid-column: 2 !important;
  }
}

@media (max-width: 900px) {
  body .pam-services-page .pam-services-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(250px, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body .pam-services-page {
    width: min(100%, calc(100vw - 32px)) !important;
  }

  body .pam-services-page .pam-services-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr !important;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Staff Grid Test Layout
--------------------------------------------------------- */

.staff-grid-test {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto 4rem;
}

.staff-test-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ead0ad;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.staff-test-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f7f7f7;
}

.staff-test-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-test-content {
  padding: 1.35rem 1.25rem 1.5rem;
  text-align: center;
}

.staff-test-name {
  margin: 0 0 0.35rem;
  color: #0a2954;
}

.staff-test-title {
  margin: 0 0 1rem;
  color: #777777;
  font-size: 15px;
}

.staff-test-bio {
  text-align: left;
}

.staff-test-bio summary {
  cursor: pointer;
  display: inline-block;
  color: #0a507c;
  font-weight: 700;
  text-align: center;
}

.staff-test-bio summary:hover,
.staff-test-bio summary:focus {
  text-decoration: underline;
}

.staff-test-bio-content {
  margin-top: 1rem;
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

.staff-test-bio-content p {
  margin: 0 0 1rem;
}

.staff-test-bio-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .staff-grid-test {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .staff-grid-test {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------------------------------------------------------
   Cleanup Pass: Contact Page Layout
--------------------------------------------------------- */

.pam-contact-page {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  margin: 0 auto 4rem;
}

.pam-contact-layout {
  display: block;
  margin-top: 2rem;
}

/* Handles WordPress Group inner wrapper */
.pam-contact-layout > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
  gap: 32px;
  align-items: start;
}

.pam-contact-card {
  background: #ffffff;
  border: 1px solid #ead0ad;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.pam-contact-card h3,
.pam-contact-card h4 {
  margin-top: 0;
}

.pam-contact-map {
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.pam-contact-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.pam-contact-info p {
  margin-bottom: 1.15rem;
}

.pam-contact-info a {
  color: #0a507c;
  font-weight: 600;
  text-decoration: none;
}

.pam-contact-info a:hover,
.pam-contact-info a:focus {
  text-decoration: underline;
}

.pam-contact-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666666;
}

.pam-contact-emergency {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.5;
  background: #fbf8f3;
  border-left: 4px solid #d39a5b;
  border-radius: 8px;
}

/* Contact Form 7 polish */
.pam-contact-main .wpcf7 input:not([type="submit"]),
.pam-contact-main .wpcf7 textarea,
.pam-contact-main .wpcf7 select {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font: inherit;
}

.pam-contact-main .wpcf7 textarea {
  min-height: 150px;
}

.pam-contact-main .wpcf7 input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  color: #ffffff;
  background: #0a507c;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.pam-contact-main .wpcf7 input[type="submit"]:hover,
.pam-contact-main .wpcf7 input[type="submit"]:focus {
  background: #0a2954;
}

@media (max-width: 900px) {
  .pam-contact-layout > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pam-contact-page {
    width: min(100%, calc(100vw - 32px));
  }

  .pam-contact-card {
    padding: 1.5rem;
  }
}

/* ---------------------------------------------------------
   Final Polish: Global Responsive Spacing
--------------------------------------------------------- */

:root {
  --pam-blue: #0a507c;
  --pam-navy: #0a2954;
  --pam-gold: #d39a5b;
  --pam-cream: #fbf8f3;
  --pam-border: #ead0ad;
  --pam-text: #555555;
  --pam-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body {
  overflow-x: hidden;
}

main,
.site-main,
.content-area {
  width: 100%;
}

.wp-block-group.alignwide,
.alignwide {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  text-align: center;
  margin: 2.5rem auto;
}

.section-divider img {
  max-width: 160px;
  height: auto;
}

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

@media (max-width: 900px) {
  .wp-block-group.alignwide,
  .alignwide {
    width: min(100%, calc(100vw - 40px));
  }
}

@media (max-width: 767px) {
  .wp-block-group.alignwide,
  .alignwide {
    width: min(100%, calc(100vw - 28px));
  }

  h1 {
    font-size: clamp(32px, 9vw, 48px);
  }

  h2 {
    font-size: clamp(28px, 7vw, 40px);
  }

  h3 {
    font-size: clamp(22px, 6vw, 30px);
  }

  p {
    font-size: 16px;
    line-height: 1.65;
  }

  .section-divider {
    margin: 2rem auto;
  }
}

/* ---------------------------------------------------------
   Final Polish: Header + Footer
--------------------------------------------------------- */

/* Header layout */
.site-header {
  position: relative;
  z-index: 10;
  background: #ffffff;
}

.main-header,
.header-main {
  background: #ffffff;
}

.header-content,
.site-header .container {
  box-sizing: border-box;
}

/* Logo */
.site-branding img,
.custom-logo,
.site-logo img {
  max-width: 320px;
  height: auto;
}

@media (max-width: 900px) {
  .site-branding {
    text-align: center;
  }

  .site-branding img,
  .custom-logo,
  .site-logo img {
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .site-branding img,
  .custom-logo,
  .site-logo img {
    max-width: 240px;
  }
}

/* Main navigation polish */
.main-navigation ul,
.primary-menu,
.menu {
  align-items: center;
}

.main-navigation a {
  color: var(--pam-navy);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
  color: var(--pam-blue);
}

/* If nav wraps on tablet, let it do so neatly */
@media (max-width: 1100px) {
  .main-navigation ul,
  .primary-menu,
  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
}

/* Top bar responsive refinement */
@media (max-width: 767px) {
  .top-bar {
    padding: 12px 0;
  }

  .top-bar-item a,
  .top-bar-item span {
    font-size: 13px;
  }

  .top-bar-icon {
    width: 17px;
  }
}

/* Footer polish */
.site-footer {
  margin-top: 0;
}

.site-footer-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-widget-area {
  color: #ffffff;
}

.footer-widget-area a {
  color: #ffffff;
  text-decoration: none;
}

.footer-widget-area a:hover,
.footer-widget-area a:focus {
  text-decoration: underline;
}

.footer-widget-area h2,
.footer-widget-area h3,
.footer-widget-area h4,
.footer-widget-area .widget-title {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
}

.footer-widget-area p {
  color: #ffffff;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-icons img {
  width: 28px;
  height: auto;
}

.site-info {
  color: #ffffff;
  font-size: 13px;
  opacity: 0.9;
}

/* Footer tablet/mobile */
@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-widget-area {
    text-align: center;
  }

  .footer-widget-area .wp-block-image img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .site-info {
    margin-top: 1.5rem;
  }
}

/* ---------------------------------------------------------
   Final Polish: Hide Top Contact Bar on Mobile
--------------------------------------------------------- */

@media (max-width: 767px) {
  .top-bar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  [class*="hero"] {
    background-attachment: scroll !important;
  }
}

/* ---------------------------------------------------------
   Final Polish: Mobile Hero Clean Fallback
--------------------------------------------------------- */

@media (max-width: 767px) {
  .hero-banner {
    display: block !important;
    position: relative !important;
    width: calc(100% - 32px) !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 2rem auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0a2954 0%, #0a507c 65%, #d39a5b 100%) !important;
  }

  .hero-banner::before,
  .hero-banner::after {
    display: none !important;
    content: none !important;
  }

  .hero-banner .hero-background {
    display: none !important;
  }

  .hero-banner .container,
  .hero-banner .hero-content {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 85% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 3.25rem 1.25rem !important;
    text-align: center !important;
    transform: none !important;
    z-index: 2 !important;
  }

  .hero-banner .hero-left {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    transform: none !important;
  }

  .hero-banner .hero-tagline,
  .hero-banner .hero-title,
  .hero-banner .hero-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .hero-banner .hero-tagline {
    margin-bottom: 0.75rem !important;
    color: #f3c48c !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.08em !important;
  }

  .hero-banner .hero-title {
    margin-bottom: 1rem !important;
    color: #ffffff !important;
    font-size: clamp(30px, 8vw, 44px) !important;
    line-height: 1.15 !important;
  }

  .hero-banner .hero-text {
    margin-bottom: 1.5rem !important;
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .hero-banner .hero-button {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0.9rem 1.35rem !important;
    text-align: center !important;
  }
}

/* ---------------------------------------------------------
   Final Polish: Mobile Hero Type Refinement
--------------------------------------------------------- */

@media (max-width: 767px) {
  .hero-banner .hero-tagline {
    font-size: 13px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 0.65rem !important;
  }

  .hero-banner .hero-title {
    font-size: clamp(26px, 7vw, 36px) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.85rem !important;
  }

  .hero-banner .hero-text {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-banner .hero-button {
    font-size: 15px !important;
    padding: 0.8rem 1.15rem !important;
    letter-spacing: 0.06em !important;
  }
}

@media (max-width: 420px) {
  .hero-banner .hero-title {
    font-size: clamp(24px, 7vw, 32px) !important;
  }

  .hero-banner .hero-text {
    font-size: 14px !important;
  }

  .hero-banner .hero-button {
    font-size: 14px !important;
  }
}

/* ---------------------------------------------------------
   Final Polish: Services Bottom Spacing
--------------------------------------------------------- */

.pam-services-page {
  margin-bottom: 4rem !important;
}

.pam-services-grid {
  margin-bottom: 4rem !important;
}

.pam-services-grid > .wp-block-group__inner-container {
  margin-bottom: 4rem !important;
}

@media (max-width: 767px) {
  .pam-services-page,
  .pam-services-grid,
  .pam-services-grid > .wp-block-group__inner-container {
    margin-bottom: 3rem !important;
  }
}

 /* ---------------------------------------------------------
   Final Polish: Shared Mobile Hero Clean Fallback
--------------------------------------------------------- */

@media (max-width: 767px) {
  .hero-banner {
    display: block !important;
    position: relative !important;
    width: calc(100% - 32px) !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 2rem auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0a2954 0%, #0a507c 65%, #d39a5b 100%) !important;
  }

  .hero-banner::before,
  .hero-banner::after {
    display: none !important;
    content: none !important;
  }

  .hero-banner .hero-background {
    display: none !important;
  }

  .hero-banner .container,
  .hero-banner .hero-content {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 85% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 3.25rem 1.25rem !important;
    text-align: center !important;
    transform: none !important;
    z-index: 2 !important;
  }

  .hero-banner .hero-left,
  .hero-banner .hero-right {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    transform: none !important;
  }

  .hero-banner .hero-tagline,
  .hero-banner .hero-title,
  .hero-banner .hero-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .hero-banner .hero-tagline {
    margin-bottom: 0.65rem !important;
    color: #f3c48c !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.06em !important;
  }

  .hero-banner .hero-title {
    margin-bottom: 0.85rem !important;
    color: #ffffff !important;
    font-size: clamp(26px, 7vw, 36px) !important;
    line-height: 1.15 !important;
  }

  .hero-banner .hero-text {
    margin-bottom: 1.25rem !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .hero-banner .hero-button {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0.8rem 1.15rem !important;
    text-align: center !important;
    font-size: 15px !important;
    letter-spacing: 0.06em !important;
  }
}

@media (max-width: 420px) {
  .hero-banner .hero-title {
    font-size: clamp(24px, 7vw, 32px) !important;
  }

  .hero-banner .hero-text,
  .hero-banner .hero-button {
    font-size: 14px !important;
  }
}