/* ==========================================
   BASE STYLES - Clean & Fixed
   ========================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Gothic A1', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4A5568;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.page {
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.2;
    color: #1e306e;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
    font-size: 1.25rem;
}

h6,
.h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: #298cd3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1F6060;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

.container-wide {
    max-width: 1400px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    width: 100%;
}

.row>* {
    padding: 0 15px;
}

.row-20 {
    margin: 0 -10px;
}

.row-20>* {
    padding: 0 10px;
}

.row-30 {
    margin: 0 -15px;
}

.row-30>* {
    padding: 0 15px;
    margin-bottom: 30px;
}

.row-40 {
    margin: 0 -20px;
}

.row-40>* {
    padding: 0 20px;
    margin-bottom: 40px;
}

/* Grid Columns */
[class*="col-"] {
    padding: 0 15px;
    width: 100%;
}

.col-12 {
    width: 100%;
}

.col-6 {
    width: 50%;
}

.col-4 {
    width: 33.333%;
}

.col-3 {
    width: 25%;
}

@media (min-width: 576px) {
    .col-sm-6 {
        width: 50%;
    }

    .col-sm-4 {
        width: 33.333%;
    }

    .col-sm-3 {
        width: 25%;
    }
}

@media (min-width: 768px) {
    .col-md-10 {
        width: 83.333%;
    }

    .col-md-8 {
        width: 66.666%;
    }

    .col-md-7 {
        width: 58.333%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-5 {
        width: 41.666%;
    }

    .col-md-4 {
        width: 33.333%;
    }

    .col-md-3 {
        width: 25%;
    }
}

@media (min-width: 992px) {
    .col-lg-8 {
        width: 66.666%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-5 {
        width: 41.666%;
    }

    .col-lg-4 {
        width: 33.333%;
    }

    .col-lg-3 {
        width: 25%;
    }
}

@media (min-width: 1200px) {
    .col-xl-4 {
        width: 33.333%;
    }

    .col-xl-3 {
        width: 25%;
    }
}

/* Sections */
.section {
    padding: 60px 0;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.section-md {
    padding: 80px 0;
}

.section-offset-3 {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.pb-0 {
    padding-bottom: 0 !important;
}

/* Backgrounds */
.bg-transparent {
    background-color: transparent;
}

.bg-200 {
    background-color: #f8fcf9;
}

.bg-primary-lightest {
    background-color: #e8f5f1;
}

.bg-secondary-pale {
    background-color: #f5f0fa;
}

.bg-800 {
    background-color: #1e306e;
}

.bg-900 {
    background-color: #121f4b;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-start {
    text-align: left;
}

.text-end {
    text-align: right;
}

.small {
    font-size: 0.875rem;
}

.title-1 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color, #2D8B8B);
    margin-bottom: 1rem;
}

.title-2 {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 400;
}

.text-block {
    margin-bottom: 2rem;
}

.text-block-2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.text-block-6 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.row-content {
    margin-top: 2.5rem;
}

/* Flexbox Utilities */
.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.d-flex {
    display: flex;
}

.d-inline-block {
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color, #2D8B8B);
    color: white;
}

.btn-primary:hover {
    background: #1F6060;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 139, 139, 0.3);
}

.btn-secondary {
    background: var(--secondary-color, #E8954A);
    color: white;
}

.btn-secondary:hover {
    background: #d17f35;
}

.btn-dark {
    background: #1e306e;
    color: white;
}

.btn-dark:hover {
    background: #152447;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-group-1 {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    justify-content: center;
    padding-bottom: 13px;
}

.btn-icon {
    font-size: 1.25rem;
}

/* Lists */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    margin-bottom: 0.75rem;
}

.list-icons .list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--primary-color, #2D8B8B);
}

.list-marked li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4A5568;
}

.list-marked li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color, #2D8B8B);
    font-weight: bold;
}

/* Icons */
.icon {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}

.icon-svg {
    display: inline-block;
    vertical-align: middle;
}

.icon-svg-sm {
    width: 48px;
    height: 48px;
}

/* Blurb */
.blurb {
    margin-bottom: 0.625rem;
}

/* About Checklist */
.about-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.5rem;
}

.about-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4A5568;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.about-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(45, 139, 139, 0.12);
    border-radius: 50%;
    color: #2D8B8B;
    margin-top: 1px;
}

.blurb-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blurb-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color, #2D8B8B);
}

.blurb-title {
    font-weight: 500;
    color: #1e306e;
    line-height: 1.4;
}

/* Quote/Testimonial */
.quote {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    height: 100%;
}

.quote-clouded {
    box-shadow: 0 4px 16px rgba(45, 139, 139, 0.1);
}

.quote-body {
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--primary-color, #2D8B8B);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quote-text {
    font-style: italic;
    color: #4A5568;
    line-height: 1.6;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quote-author-name {
    font-weight: 600;
    color: #1e306e;
    margin-bottom: 0.25rem;
}

.quote-author-meta {
    font-size: 0.875rem;
    color: #718096;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1e306e;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #DDE0E9;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #2D8B8B);
    box-shadow: 0 0 0 3px rgba(45, 139, 139, 0.1);
}

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

/* Box */
.box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(45, 139, 139, 0.1);
}

.box-form-1 {
    padding: 0;
    overflow: hidden;
}

.box-header {
    background: linear-gradient(135deg, #2D8B8B, #3FA5A5);
    padding: 2rem 2.5rem;
    color: white;
}

.box-header .box-title {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.box-header p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 1rem;
}

.box-body {
    padding: 2.5rem;
}

/* ==========================================
   Contact Form 7 Styles
   ========================================== */

.wpcf7-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: #1e306e;
    font-size: 0.9375rem;
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #DDE0E9;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: #4A5568;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.15rem;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #2D8B8B;
    box-shadow: 0 0 0 3px rgba(45, 139, 139, 0.1);
}

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

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: block;
    width: 100%;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2D8B8B, #3FA5A5);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 139, 139, 0.25);
    letter-spacing: 0.02em;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: linear-gradient(135deg, #1F6060, #2D8B8B);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45, 139, 139, 0.35);
}

/* CF7 Two-column row */
.cf7-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* CF7 field row spacing */
.cf7-form-row {
    margin-bottom: 1.5rem;
}

.cf7-form-row label {
    margin-bottom: 0;
}

.cf7-submit-row {
    margin-top: 0.5rem;
}

/* Validation */
.wpcf7-not-valid-tip {
    display: block;
    color: #e53e3e;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

/* Response messages */
.wpcf7-response-output {
    padding: 12px 16px !important;
    border-radius: 6px !important;
    margin-top: 1rem !important;
    font-size: 0.9375rem;
    border: none !important;
}

.wpcf7-form.sent .wpcf7-response-output {
    background: #e8f5f1 !important;
    color: #1F6060 !important;
    border-left: 4px solid #2D8B8B !important;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
    background: #fff5f5 !important;
    color: #c53030 !important;
    border-left: 4px solid #e53e3e !important;
}

/* Responsive */
@media (max-width: 767px) {
    .cf7-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .box-header {
        padding: 1.5rem;
    }

    .box-body {
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    padding: 3rem 0 1.5rem;
    color: white;
}

.footer-dark {
    background: #1e306e;
}

.footer-brand {
    max-width: 350px;
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links .list-item {
    margin-bottom: 0.75rem;
}

.footer .list a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer .list a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact .list-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
}

.footer-icon {
    flex-shrink: 0;
    font-size: 1.125rem;
    color: var(--primary-light, #3FA5A5);
    margin-top: 2px;
}

.clinic-hours .list-item {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.65rem;
    font-size: 0.9375rem;
}

.clinic-hours strong {
    color: white;
    font-weight: 600;
}

.footer-minimal {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-minimal-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-minimal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

.rights {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color, #2D8B8B);
    transform: translateY(-2px);
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline !important;
}

.mt-2 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mb-2 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

/* Responsive Utilities */
@media (max-width: 991px) {

    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-8 {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 40px 0;
    }

    .section-md {
        padding: 50px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn-group-1 {
        flex-direction: column;
    }

    .btn-group-1 .btn {
        width: 100%;
        justify-content: center;
    }

    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-10 {
        width: 100%;
    }
}

@media (max-width: 575px) {

    .col-sm-3,
    .col-sm-4,
    .col-sm-6 {
        width: 100%;
    }
}