/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans Pro", sans-serif;
    line-height: 1.6;
    color: #333333; /* Improved contrast from #5a5a5a */
    background: linear-gradient(135deg, #f9f7f4 0%, #f0ede8 100%);
    min-height: 100vh;
    font-size: 16px; /* Explicit base font size */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Botanical background images */
.botanical-left,
.botanical-right {
    position: fixed;
    width: 150px;
    height: 150vh;
    top: -40vh;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.3; /* Slightly reduced for better text readability */
    z-index: -1;
    pointer-events: none;
}

.botanical-left {
    left: 8rem;
    background-image: url("left-flowers.webp");
}

.botanical-right {
    right: 8rem;
    background-image: url("right-flowers.webp");
}

/* Header styling */
.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.main-title {
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #654321; /* Improved contrast from #8b7355 */
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.3rem; /* Increased from 1.2rem */
    color: #555555; /* Improved contrast from #9b8c7a */
    font-weight: 400; /* Increased from 300 */
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem; /* Increased from 1rem */
    color: #555555; /* Improved contrast from #a99485 */
    font-weight: 400; /* Increased from 300 */
    letter-spacing: 0.05em;
}

.location {
    font-size: 1rem; /* Increased from 0.9rem */
    color: #666666; /* Improved contrast from #b5a394 */
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Main content container */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.decorative-border {
    background: white;
    border: 3px solid #d4c4b0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    position: relative;
}

.decorative-border::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid #e8dcc6;
    border-radius: 20px;
    z-index: -1;
}

.content-inner {
    padding: 3rem;
}

/* Welcome section */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    color: #654321; /* Improved contrast from #8b7355 */
    margin-bottom: 1.5rem;
    position: relative;
}

.welcome-section h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #d4c4b0;
    margin: 0.5rem auto 0;
    opacity: 0.6;
}

.welcome-text {
    font-size: 1.1rem; /* Increased from 1.1rem to be more explicit */
    color: #333333; /* Improved contrast from #6b6b6b */
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Local area section */
.local-area-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #e8dcc6;
    border-bottom: 1px solid #e8dcc6;
}

.local-area-section h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    color: #654321; /* Improved contrast from #8b7355 */
    margin-bottom: 1.5rem;
}

.local-area-section p {
    font-size: 1rem;
    color: #333333; /* Improved contrast from #666 */
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Services preview */
.services-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-item {
    text-align: center;
    padding: 1.5rem;
    background: #fafaf8;
    border-radius: 10px;
    border: 1px solid #e8dcc6;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-item h3,
.service-item h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: #654321; /* Improved contrast from #8b7355 */
    margin-bottom: 0.8rem;
}

.service-item p {
    font-size: 1rem; /* Increased from 0.95rem */
    color: #333333; /* Improved contrast from #777 */
    line-height: 1.6;
}

/* Contact section */
.contact-section {
    text-align: center;
    border-top: 2px solid #e8dcc6;
    padding-top: 2rem;
}

.contact-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    color: #654321; /* Improved contrast from #8b7355 */
    margin-bottom: 2rem;
    position: relative;
}

.contact-section h2::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -2rem;
    width: 30px;
    height: 2px;
    background: #d4c4b0;
    opacity: 0.6;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #fafaf8;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    border: 1px solid #e8dcc6;
    min-width: 280px;
    flex: 0 1 auto;
    text-decoration: none;
    color: inherit;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: #f0ede8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-item:hover .contact-details strong {
    color: #4a3521; /* Darker hover state for better contrast */
}

.contact-item:hover .contact-details p {
    color: #222222; /* Darker hover state */
}

.contact-item:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-details strong {
    display: block;
    font-size: 1.1rem;
    color: #654321; /* Improved contrast from #8b7355 */
    margin-bottom: 0.3rem;
}

.contact-details p {
    font-size: 1rem;
    color: #333333; /* Improved contrast from #666 */
    font-weight: 400;
}

.contact-note {
    font-style: italic;
    color: #555555; /* Improved contrast from #888 */
    font-size: 1rem; /* Increased from 0.95rem */
    max-width: 600px;
    margin: 0 auto;
}

.service-areas {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8dcc6;
}

.service-areas h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    color: #654321; /* Improved contrast from #8b7355 */
    margin-bottom: 1rem;
}

.service-areas p {
    font-size: 1rem; /* Increased from 0.95rem */
    color: #333333; /* Improved contrast from #777 */
    line-height: 1.6;
    font-weight: 400;
}

/* About section */
.about-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e8dcc6;
}

.about-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    color: #654321; /* Improved contrast from #8b7355 */
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.about-image-placeholder {
    flex: 0 0 250px;
}

.about-image {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #e8dcc6;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1rem;
    color: #333333; /* Improved contrast from #666 */
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0 1rem;
    position: relative;
    color: #666666; /* Improved contrast from #999 */
    font-size: 1rem; /* Increased from 0.9rem */
}

.botanical-footer-left,
.botanical-footer-right {
    display: none;
}

/* Visually hidden utility class for screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles for better accessibility */
.contact-item:focus,
a:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header,
.main-content,
.footer {
    animation: fadeIn 0.8s ease-out;
}

.main-content {
    animation-delay: 0.2s;
}

.footer {
    animation-delay: 0.4s;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .botanical-left,
    .botanical-right {
        width: 80px;
        opacity: 0.2;
    }

    .main-title {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .content-inner {
        padding: 2rem;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }

    .contact-section h2 {
        font-size: 1.8rem;
    }

    .local-area-section h3 {
        font-size: 1.5rem;
    }

    .local-area-section {
        padding: 1.5rem 0;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .contact-item {
        min-width: auto;
        max-width: 350px;
        width: 100%;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-image-placeholder {
        flex: 0 0 auto;
    }

    .about-image {
        width: 200px;
        height: 240px;
    }

    .services-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .botanical-left,
    .botanical-right {
        width: 60px;
        opacity: 0.15;
    }

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

    .subtitle {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .location {
        font-size: 0.9rem;
    }

    .content-inner {
        padding: 1.5rem;
    }

    .welcome-section h2 {
        font-size: 1.8rem;
    }

    .contact-section h2 {
        font-size: 1.6rem;
    }

    .about-section h2 {
        font-size: 1.8rem;
    }

    .about-image {
        width: 180px;
        height: 220px;
    }

    .about-text p {
        font-size: 1rem; /* Maintain readable size on mobile */
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .welcome-text,
    .contact-note {
        font-size: 1rem; /* Maintain readable size on mobile */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        color: #000000;
    }

    .main-title,
    .welcome-section h2,
    .contact-section h2,
    .about-section h2,
    .service-areas h3,
    .service-item h3 {
        color: #000000;
    }

    .contact-item {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .header,
    .main-content,
    .footer {
        animation: none;
    }

    .contact-item,
    .service-item {
        transition: none;
    }
}
