/* ==========================================
   CSS Reset and Base Styles
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: #c4922a;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ==========================================
   Utility Classes
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
}

.btn-primary:hover {
    background-color: #162d4a;
    border-color: #162d4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.nav-brand a {
    font-family: 'EB Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 38px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e3a5f;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1e3a5f;
}

.nav-link:hover::after {
    width: 100%;
}

.social-link {
    display: flex;
    align-items: center;
    color: #1e3a5f;
}

.social-link:hover {
    color: #162d4a;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1e3a5f;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4f8 100%);
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #c4922a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    color: #555;
    font-weight: 300;
}

.hero-subtitle strong {
    color: #1e3a5f;
    font-weight: 700;
    font-size: 2.2rem;
}

.hero-scroll-btn {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 2px solid rgba(30, 58, 95, 0.4);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    animation: heroScrollPulse 2.4s ease-in-out infinite;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.hero-scroll-btn:hover {
    background: rgba(30, 58, 95, 0.08);
    border-color: rgba(30, 58, 95, 0.7);
    animation-play-state: paused;
}

@keyframes heroScrollPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
    background-color: #1e3a5f;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.cta-heading {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background-color: #fff;
    color: #1e3a5f;
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

/* ==========================================
   Services Section
   ========================================== */

.services {
    padding: 80px 20px;
    background-color: #fff;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 16px;
    color: #c4922a;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.service-card {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #e8f4f8;
    background-color: #fff;
}

.service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #c4922a;
}

.service-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* ==========================================
   Modal Styles
   ========================================== */

.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #1e3a5f;
}

.modal-title {
    font-size: 2rem;
    color: #c4922a;
    margin: 0;
    padding: 20px 40px 10px;
    clear: both;
}

.modal-body {
    padding: 24px 40px 40px;
    color: #444;
    line-height: 1.8;
}

.modal-body h3 {
    font-size: 1.5rem;
    color: #c4922a;
    margin-top: 24px;
    margin-bottom: 12px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.modal-body li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #1e3a5f;
    font-weight: bold;
}

.modal-body p {
    margin-bottom: 16px;
}

.btn-faq {
    display: inline-block;
    padding: 6px 18px;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a5f;
    background: transparent;
    border: 1.5px solid #1e3a5f;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-faq:hover {
    background: #1e3a5f;
    color: #fff;
}

.vet-badge-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vet-badge-about {
    height: 56px;
    width: auto;
}

.vet-badge-label {
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e3a5f;
}

.modal-faq-content {
    max-width: 660px;
    max-height: 90vh;
    overflow-y: auto;
}

.faq-item {
    border-bottom: 1px solid #e8f4f8;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 1.2rem;
    color: #c4922a;
    margin-bottom: 8px;
    margin-top: 0;
}

.modal-form-content {
    max-width: 700px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.form-iframe-wrapper {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.form-iframe-wrapper iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   How We Engage Section
   ========================================== */

.how-we-engage {
    padding: 80px 20px;
    background-color: #f9f7f4;
    text-align: center;
}

.engage-intro {
    max-width: 680px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.7;
}

.engage-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.engage-step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
}

.engage-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #1e3a5f;
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.engage-step-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.2rem;
    color: #c4922a;
    margin-bottom: 8px;
}

.engage-step-desc {
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.6;
}

/* ==========================================
   About Section
   ========================================== */

.about {
    padding: 80px 8%;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: stretch;
    width: 100%;
}

.about-image {
    flex: 0 0 15%;
    border-radius: 8px;
    overflow: hidden;
}

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

.about-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-text-block .section-title {
    text-align: left;
    margin-bottom: 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0;
    text-align: left;
}

/* ==========================================
   Trusted By Section
   ========================================== */

.trusted-by {
    padding: 80px 20px;
    background-color: #f9f7f4;
    overflow: hidden;
    text-align: center;
}

.trusted-by-heading {
    text-align: center;
    font-family: 'EB Garamond', serif;
    font-size: 2.8rem;
    color: #c4922a;
    margin-bottom: 36px;
}

.trusted-by-logos {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trusted-by-logo-img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
}

.trusted-by-logo {
    width: 180px;
    height: 80px;
    background-color: #f0ede8;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    color: #aaa;
    letter-spacing: 0.05em;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact {
    padding: 80px 20px;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info,
.contact-links {
    text-align: center;
}

.contact-info h3,
.contact-links h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #c4922a;
}

.contact-info p {
    margin-bottom: 24px;
    color: #555;
    line-height: 1.7;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #1e3a5f;
    transition: all 0.3s ease;
}

.social-link-item:hover {
    color: #162d4a;
    transform: translateX(4px);
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-badge {
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-location {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #95a5a6;
}

.section-location {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

/* ==========================================
   Responsive Design - Tablet
   ========================================== */

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 32px;
    }

    .about-image {
        flex: 0 0 auto;
        max-height: 320px;
    }

    .about-text-block .section-title {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 24px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-subtitle strong {
        font-size: 1.7rem;
    }

    .cta-heading {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .modal-title {
        font-size: 1.7rem;
        padding: 16px 30px 8px;
    }

    .modal-body {
        padding: 8px 30px 30px;
    }

    .modal-close {
        padding: 12px 16px;
        font-size: 24px;
    }
}

/* ==========================================
   Responsive Design - Mobile
   ========================================== */

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
        min-height: calc(100vh - 70px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-subtitle strong {
        font-size: 1.5rem;
    }

    .cta-heading {
        font-size: 1.7rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-content {
        width: 95%;
        margin: 30% auto;
    }

    .modal-title {
        font-size: 1.5rem;
        padding: 12px 20px 6px;
    }

    .modal-body {
        padding: 6px 20px 24px;
    }

    .modal-body h3 {
        font-size: 1.3rem;
        margin-top: 16px;
    }

    .modal-body li {
        padding: 6px 0;
        padding-left: 20px;
        font-size: 0.95rem;
    }

    .modal-close {
        padding: 10px 14px;
        font-size: 22px;
    }
}

/* ==========================================
   Scroll Fade Sections
   ========================================== */

.fade-section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Particles Background
   ========================================== */

.hero,
.services,
.contact {
    position: relative;
    overflow: hidden;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero > .container,
.services > .container,
.contact > .container {
    position: relative;
    z-index: 1;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* ==========================================
   Accessibility
   ========================================== */

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

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #1e3a5f;
    outline-offset: 2px;
}
