/* Global Styles */
:root {
    --primary-color: #245426;
    --secondary-color: #F4EBE2;
    --text-color: #333333;
    --light-text: #666666;
    --white: #FEFFF0;
    --max-width: 1200px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo img {
    height: 120px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-top: 54px; 
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('assets/PoppyBeachReflection.JPG');
    background-attachment: scroll;   /* anchor image to the viewport (static) */
    background-repeat: no-repeat;
    background-position: center top; /* adjust anchor point as needed */
    background-size: 100% auto;

    min-height: 90vh;                /* fill the viewport but not grow beyond */
    display: flex;
    align-items: flex-start;          /* keep content toward the top */
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-weight: 600;
    padding-top: 90px;                /* space for fixed navbar (adjust to match your navbar height) */
    position: relative;               /* ensure it remains a stacking context */
}

/* mobile fallback: fixed backgrounds are often disabled on mobile, use cover instead */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-size: cover;
    }
}

.hero-content {
    width: 100%;
    padding: 100px 20px 0;   /* control vertical position with padding, not negative margins */
    margin-top: 0;          /* remove the big negative offset */
    position: relative;
    z-index: 2;
}


/* .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
} */

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.business-summary h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* when business-summary sits inside .hero, overlay it */
.hero .business-summary {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0;
    z-index: 5;
    background: rgba(244,235,226,0.6); /* semi-transparent */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.booking-button-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    margin-top: 12rem;
}

.booking-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.booking-button:hover {
    background: #3a6347;
    transform: translateY(-2px);
}

.booking-button:active {
    transform: translateY(0);
}

/* Mobile responsive for booking button */
@media (max-width: 768px) {
    .booking-button-container {
        position: static;
        transform: none;
        margin-top: 25.0rem;
        text-align: center;
    }
}

/* Professional Summary */
.professional-summary {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    z-index: 5;
    background: rgba(254,255,240,0.6); /* semi-transparent */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.professional-summary h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Benefits Section */
.benefits {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    z-index: 5;
    background: rgba(177,174,170,0.6); /* semi-transparent */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    width: 100%;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 0.5rem;
    margin-top: 1rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.benefit-media {
    position: relative;
    height: 260px;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.benefit-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* fade level - adjust to taste */
    transition: background 0.3s ease;
}

.benefit-overlay {
    position: relative; /* sits above the ::before overlay */
    color: var(--secondary-color);
    padding: 1rem 1.5rem;
    text-align: center;
    z-index: 2;
}


.benefit-media:hover::before {
    background: rgba(0,0,0,0.35);
}

/* Testimonials */
.testimonials {
    /* padding: 5rem 0;
    background: var(--secondary-color); */
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    z-index: 5;
    background: rgba(254,255,240,0.6); /* semi-transparent */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial-image img {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
    object-fit: cover;
}


/* ++++++++++++++++++++++++++++++
Profile Page 
+++++++++++++++++++++++++++++++++*/
.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.vet-photo {
    width: 300px;
    height: auto;
    grid-column: 1;
}

.profile-content p {
    grid-column: 2;
    margin-bottom: 0.5rem;
}

.profile-container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
    margin-top: 11rem;
    z-index: 5;
    background: rgba(177,174,170,0.6); /* semi-transparent */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.profile-container h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-align: left;
}

.profile-container img {
    display: block; /* Make the image a block element */
    margin: 0 auto; /* Center the image */
}

/* Mobile responsive for profile */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vet-photo {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        grid-column: 1;
    }
    
    .profile-content p {
        grid-column: 1;
    }
    
    .profile-container {
        margin-top: 7rem;
        padding: 1.5rem;
    }
    
    .profile-container h1 {
        font-size: 1.3rem;
    }
}

/* ++++++++++++++++++++++++++++++
Booking Page 
+++++++++++++++++++++++++++++++++*/
.booking-container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 11rem;
    z-index: 5;
    background: rgba(177,174,170,0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    margin-bottom: 2rem;
}

.booking-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
}

.booking-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--light-text);
    font-size: 1rem;
}

.calendly-widget {
    width: 100%;
    margin-top: 2rem;
}

.calendly-widget iframe {
    border-radius: var(--border-radius);
}


/* ++++++++++++++++++++++++++++++
Referral Form
++++++++++++++++++++++++++++++++*/
.referral-section {
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 0 auto;
    margin-top: 10rem;
    z-index: 5;
    background: rgba(177,174,170,0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    margin-bottom: 2rem;
}

.referral-section h1 {
    text-align: left;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.referral-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr)); /* each column min 220px, grows equally */
    gap: 1rem;
    align-items: start;
}

/* Make inputs/textarea fill their grid cell but not exceed a set width */
.referral-form .form-group input,
.referral-form .form-group textarea,
.referral-form .form-group select {
    width: 100%;
    max-width: 420px; /* <-- reduce this to narrow fields further */
    box-sizing: border-box;
}

/* If you want the whole form narrower inside its container, set a max-width */
.referral-section .referral-form {
    max-width: 900px; /* reduce to make form block narrower on large screens */
}
/* Keep section headings spanning both columns */
.referral-form .form-section-heading {
    grid-column: 1 / -1;
}

.form-section-heading {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Ensure section headings span both columns in the referral form grid */
.referral-form .form-section-heading {
    grid-column: 1 / -1;
}

.referral-form .form-group {
    margin-bottom: 1rem;
}

.referral-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.referral-form input[type="text"],
.referral-form input[type="email"],
.referral-form input[type="tel"],
.referral-form textarea,
.referral-form input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.referral-form textarea {
    resize: vertical;
}

.referral-form .submit-button {
    margin-top: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.referral-form .submit-button:hover {
    background: #3a6347;
    transform: translateY(-2px);
}

.referral-form .submit-button:active {
    transform: translateY(0);
}

/* Two-column layout for referral form */
.referral-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
}

.referral-form .form-group.full-width {
    grid-column: 1 / -1;
}

/* For form actions (submit) align right on wide screens */
.referral-form .form-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .referral-form {
        grid-template-columns: 1fr;
    }
    .referral-form .form-actions {
        justify-content: stretch;
    }
}

/* Success message for form submissions */
.form-success {
    background: rgba(58,99,71,0.12);
    border: 1px solid rgba(36,84,38,0.12);
    padding: 0.9rem 1rem;
    border-radius: 8px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.field-error {
    color: #b00020;
    margin-top: 0.4rem;
    font-size: 0.90rem;
}


/* ++++++++++++++++++++++++++++++
FAQ Page 
+++++++++++++++++++++++++++++++++*/
.faq-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 8rem;
    padding: 0 20px;
    margin-bottom: 2rem;
}

.faq-photo1 {
    width: 512px;
    height: auto;
    flex-shrink: 0;
    border-radius: 12px;
}

.faq-photo2 {
    margin-top: 18rem;
    width: 512px;
    height: auto;
    flex-shrink: 0;
    border-radius: 12px;
}

.faq-photo3 {
    margin-top: 18rem;
    width: 512px;
    height: auto;
    flex-shrink: 0;
    border-radius: 12px;
}

.faq-photo1-container {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.faq-photo-caption {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
    max-width: 512px;
}

.faq-container {
    width: calc(100% - 40px);
    max-width: 900px;
    z-index: 5;
    background: rgba(177,174,170,0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.faq-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
}

.faq-item {
    margin-bottom: 1rem;
    padding-bottom: 0rem;
    /* border-bottom: 1px solid rgba(0,0,0,0.1); */
}

.faq-item ul {
    margin: 0.5rem 0 1rem 1.25rem;
    padding: 0;
    list-style: disc;
}

.faq-item li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.8;
}

/* Mobile responsive for FAQ */
@media (max-width: 768px) {
    .faq-wrapper {
        flex-direction: column;
        gap: 1rem;
        margin-top: 10rem;
        padding: 0 10px;
    }
    
    .faq-container {
        order: 1;
    }
    
    .faq-photo1-container {
        order: 2;
        margin-top: 0;
    }
    
    .faq-photo1,
    .faq-photo2,
    .faq-photo3 {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .faq-photo2,
    .faq-photo3 {
        margin-top: 1rem;
    }
    
    .faq-photo-caption {
        max-width: 100%;
    }
    
    .faq-container {
        width: calc(100% - 20px);
        padding: 1.5rem;
    }
    
    .faq-container h1 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-item h2 {
        font-size: 1.1rem;
    }
}

/* Footer */
footer {
    background: #333;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile navbar adjustments */
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .logo img {
        height: 70px;
    }
    
    .nav-links {
        gap: 1rem;
        margin-top: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .hero {
        padding-top: 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .referral-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}