@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;700&family=Montserrat:wght@700&family=Open+Sans:wght@400;700&family=Oswald:wght@700&family=Space+Grotesk:wght@700&display=swap');

/* Basic CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS. */
    -moz-tab-size: 4; /* Fix the short tab size in Firefox. */
    tab-size: 4; /* Fix the short tab size in Firefox. */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif; /* Default body font */
    font-weight: 400; /* Default to regular weight */
    display: flex;
    flex-direction: column;
}

/* Typography Hierarchy */
h1, .hero-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700; /* Oswald Bold */
}

h2, h3 { /* Includes .service-article h2, .about-content h2, #services-overview h2, #about-summary h2, .service-card h3 */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Montserrat Bold */
}

/* Ensure existing specific heading styles for size, color, margin etc. still apply */
/* For example, .hero-title already has font-weight: bold, which is compatible. */
/* Specific h1, h2, h3 rules for color, size, margin will override defaults if needed but inherit family. */

main {
    flex-grow: 1; /* Allows main content to take up available space */
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

#root, #__next {
    isolation: isolate;
}

/* Basic Mobile First Styles */
body {
    font-size: 16px;
    color: #333; /* Default text color */
    background-color: #fff; /* Default background color */
}

/* Add more global styles below as needed */

/* Navigation Bar Styles */
.navbar {
    background-color: #f8f8f8; /* Light grey background for the navbar */
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    max-width: 1100px; /* Max width for content within navbar */
    margin: 0 auto;
    padding: 0 15px; /* Padding on the sides */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    text-decoration: none;
    display: flex;
    align-items: center; /* Vertically aligns logo and text */
    color: #333; /* Default color, can be overridden by children */
}

.site-logo {
    height: 120px; /* Adjust as needed */
    margin-right: 10px; /* Space between logo and text */
}

.site-name-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8em; /* Adjust as needed, relative to parent or root */
    font-weight: 700; /* Bold Space Grotesk */
    text-decoration: none; /* Remove underline if it's part of an <a> tag now */
    color: #333; /* Ensure consistent color */
}

.site-name-link {
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Will be overridden for mobile */
    flex-direction: column; /* Mobile first: stack links */
    position: absolute;
    top: 60px; /* Adjust based on navbar height */
    left: 0;
    width: 100%;
    background-color: #f8f8f8;
    /* border-top: 1px solid #ddd; */ /* MOVED to .nav-menu.active */
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nav-menu.active {
    max-height: 300px; /* Or enough to show all items */
    border-top: 1px solid #ddd; /* ADDED HERE */
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee; /* Separator for mobile links */
}

.nav-link:hover,
.nav-link:focus {
    background-color: #ddd;
    color: #000;
}

.nav-link.active-page {
    color: #00796b; /* REVERTED - Teal color for active link text */
    font-weight: bold; /* Make it bolder */
}

/* Specific active styles for desktop (underline) and mobile (background) */
@media (min-width: 768px) {
    .nav-link.active-page {
        border-bottom: 2px solid #00796b; /* REVERTED - Teal underline for desktop */
        padding-bottom: calc(0.5rem - 2px); /* Adjust padding to keep text aligned if needed */
    }
}

@media (max-width: 767px) {
    .nav-link.active-page {
        background-color: #e0e0e0; /* Slight background highlight for mobile active link */
        border-bottom-color: #d0d0d0; /* Darker border if it exists from general .nav-link */
    }
    /* If .nav-link on mobile has a border that active-page should override or enhance: */
    .nav-menu.active .nav-link.active-page { /* When menu is open */
         /* Example: ensure active background is distinct */
    }
}


/* Hamburger Menu */
.nav-toggle {
    display: block; /* Show hamburger on mobile */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: background-color 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #333;
    left: 0;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger animation for active state (when menu is open) */
.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent; /* Middle bar disappears */
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Desktop Navigation Styles */
@media (min-width: 768px) {
    .nav-menu {
        position: static; /* Reset position for desktop */
        flex-direction: row; /* Align links horizontally */
        width: auto;
        background-color: transparent;
        border-top: none; /* Ensures no top border on desktop */
        max-height: none; /* Always visible */
        overflow: visible;
    }

    .nav-item {
        width: auto;
        margin-left: 1rem; /* Spacing between links */
    }

    .nav-link {
        padding: 0.5rem 1rem;
        border-bottom: none; /* No separator for desktop links */
    }

    .nav-toggle {
        display: none; /* Hide hamburger on desktop */
    }
}

/* Hero Section Styles */
#hero {
    background-color: #e0f7fa; /* A light, calming blue-green, can be changed */
    color: #004d40; /* Darker text for contrast */
    padding: 60px 20px; /* Generous padding */
    text-align: center;
    min-height: 70vh; /* Make it take a good portion of the viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px; /* Limit width of content for readability */
}

.hero-title {
    font-size: 2.5em; /* Large, impactful title */
    margin-bottom: 0.5em;
    font-weight: bold;
}

/* Responsive font size for hero title */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5em;
    }
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

/* Basic Button Styles (can be expanded) */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.btn-primary {
    background-color: #00796b; /* A teal color, can be adjusted */
    color: #ffffff;
    border: 2px solid #00796b;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #004d40; /* Darker teal on hover */
    border-color: #004d40;
    color: #ffffff;
}

/* Contact Page Specific Styles */
#contact-form-section .container { /* Styles specific to the container within #contact-form-section */
    padding-top: 30px;
    padding-bottom: 30px;
    max-width: 800px; /* Narrower container for forms is often good */
}

#contact-form-section h1 { /* Style for the main H1 on the contact page */
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px; /* Reduced margin from 40px to 20px */
    color: #333;
}

@media (min-width: 768px) {
    #contact-form-section h1 {
        font-size: 3em;
    }
}

.contact-intro {
    font-size: 1.1em;
    line-height: 1.7;
    color: #333; /* Darker for better readability */
    text-align: center;
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333; /* Darker label text */
    font-size: 1em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
    background-color: #fdfdfd; /* Slightly off-white background for inputs */
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #00796b; /* Teal border on focus */
    outline: none; /* Remove default outline */
    box-shadow: 0 0 8px rgba(0, 121, 107, 0.2); /* Softer, larger shadow on focus */
    background-color: #fff; /* White background on focus */
}

.contact-form select {
    appearance: none; /* Remove default select styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300796B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.9z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px; /* Make space for arrow */
}


.contact-form textarea {
    resize: vertical; /* Allow vertical resize, not horizontal */
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px; /* Larger padding for submit button */
    font-size: 1.1em;
    /* Uses .btn and .btn-primary styles by default */
}

    @media (min-width: 768px) {
        .contact-form button[type="submit"] {
            width: auto; /* Auto width on larger screens */
            padding: 12px 30px; /* Adjust padding if needed, or rely on .btn */
        }
        .contact-form .form-group:last-of-type { /* For button alignment, use last-of-type for robustness */
            text-align: center; /* Or center/right as preferred */
        }
    }

.form-note {
    text-align: center;
    font-size: 0.9em;
    color: #777;
    margin-top: 30px;
    line-height: 1.5;
}

/* Services Page Specific Styles */
#services-detailed .container { /* Styles specific to the container within #services-detailed */
    padding-top: 30px;
    padding-bottom: 30px;
}

#services-detailed h1 { /* Style for the main H1 on the services page */
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px; /* More space before first service */
    color: #333;
}

@media (min-width: 768px) {
    #services-detailed h1 {
        font-size: 3em;
    }
}

.service-article {
    background-color: #ffffff; /* White background for each article */
    margin-bottom: 40px; /* Space between service articles */
    padding: 25px; /* Slightly reduced padding */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07); /* Subtle shadow */
    /* text-align: center; Removed to allow text to be left-aligned by default */
}

@media (min-width: 768px) {
    .service-article {
        padding: 30px; /* Restore padding for larger screens */
    }
}

.service-article:last-child {
    margin-bottom: 0;
}

.service-article h2 {
    font-size: 2em;
    color: #004d40; /* Darker teal */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f7fa; /* Light teal underline */
    text-align: center;
}

@media (min-width: 768px) {
    .service-article h2 {
        font-size: 2.4em;
    }
}

.service-detail-image {
    width: 100%;
    max-width: 400px; /* Limit image width */
    height: auto;
    border-radius: 8px;
    margin: 0 auto 25px auto; /* Center image, increased bottom margin */
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add a subtle shadow to images */
}

.service-article p,
.service-article ul {
    font-size: 1.1em;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px; /* Consistent bottom margin */
}

.service-article ul {
    list-style-position: outside;
    padding-left: 25px; /* Standard indent for lists */
}

.service-article ul li {
    margin-bottom: 10px;
}

.service-cta {
    display: inline-block;
    /* margin-top: 15px; /* Space above CTA button - moved to button-container */
}

.service-article .button-container {
    text-align: center;
    margin-top: 15px; /* Space above CTA button container */
}

/* About Page Specific Styles */
#about-detailed .container { /* Styles specific to the container within #about-detailed */
    padding-top: 30px;
    padding-bottom: 30px;
}

#about-detailed h1 { /* Style for the main H1 on the about page */
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

@media (min-width: 768px) {
    #about-detailed h1 {
        font-size: 3em;
    }
}

.about-intro {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image-large {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover; /* Ensures the image covers the area, might crop */
    margin: 0 auto 20px auto;
    border: 5px solid #551069; /* MODIFIED BORDER COLOR HERE */
    display: block; /* Ensure margin auto works for centering */
}

.inspirational-quote {
    font-size: 1.3em;
    font-style: italic;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 15px; /* Add some padding if quote is long on small screens */
}

.about-content h2 {
    font-size: 1.8em;
    color: #004d40; /* Darker teal for headings */
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0f7fa; /* Light teal underline */
    padding-bottom: 5px;
    text-align: center;
}

@media (min-width: 768px) {
    .about-content h2 {
        font-size: 2.2em;
    }
}

.about-content p,
.about-content ul {
    font-size: 1.1em;
    line-height: 1.7;
    color: #333; /* Slightly darker than default #555 for better readability */
    margin-bottom: 20px; /* Increased spacing */
}

.about-content ul {
    list-style-position: outside;
    padding-left: 25px; /* Standard indent for lists */
}

.about-content ul li {
    margin-bottom: 10px;
}

.about-content ul li strong {
    color: #00796b; /* Teal for emphasis */
    font-weight: 600; /* Slightly bolder */
}

/* Footer Styles */
footer {
    background-color: #333; /* Dark background for footer */
    color: #f8f8f8; /* Light text color */
    padding: 20px 0; /* Relies on .container for side padding */
    text-align: center;
    font-size: 0.9em;
    /* margin-top: auto; /* This is handled by main flex-grow:1 and body flex display */
}

footer p {
    margin: 0; /* Remove default paragraph margin */
}

/* Optional: Styling for links if added to footer later */
/*
footer a {
    color: #e0f7fa;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
*/

/* Services Overview Section */
#services-overview {
    padding: 40px 0; /* Adjusted padding to rely on container's side padding */
    background-color: #f9f9f9; /* Slightly off-white background */
}

#services-overview h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px; /* Increased margin for better spacing */
    color: #333;
}

@media (min-width: 768px) {
    #services-overview h2 {
        font-size: 2.5em;
        margin-bottom: 40px; /* Increased margin for better spacing */
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px; /* Space between cards */
}

@media (min-width: 768px) { /* Medium screens - 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) { /* Large screens - 3 columns */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Softer shadow */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover effect */
}

.service-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1); /* Enhanced shadow on hover */
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    /* Placeholder styling for icons if actual images are not used */
    /* background-color: #00796b; */
    /* border-radius: 50%; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* color: white; */
    /* font-size: 2em; */ /* If using font icons */
}

.service-card h3 {
    font-size: 1.4em; /* Slightly adjusted size */
    margin-bottom: 15px; /* Increased margin */
    color: #00796b; /* REVERTED - Teal color for service titles */
}

.service-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows paragraph to take available space, pushing button down */
}

/* Tertiary Button Style */
.btn-tertiary {
    background-color: transparent;
    color: #00796b; /* REVERTED - Teal text */
    border: 2px solid #00796b; /* REVERTED - Teal border */
    padding: 10px 20px; /* Consistent padding with other buttons */
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    background-color: #00796b; /* REVERTED - Teal */
    color: #ffffff;
    border-color: #00796b; /* REVERTED - Teal */
}

/* General Container */
.container {
    width: 90%;
    max-width: 1100px; /* Standard max-width */
    margin: 0 auto; /* Center it */
    padding: 0 15px; /* Consistent padding with nav-container */
}


/* About Me Summary Section */
#about-summary {
    padding: 40px 0; /* Adjusted padding to rely on container's side padding */
    text-align: center;
    background-color: #ffffff; /* White background */
}

/* #about-summary .container is already handled by global .container */

#about-summary h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

@media (min-width: 768px) {
    #about-summary h2 {
        font-size: 2.5em;
    }
}

#about-summary p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
    text-align: center; /* Changed to center to match overall section text-align */
}

.profile-image-summary {
    width: 200px; /* Adjust as needed */
    height: 200px;
    border-radius: 50%; /* Circular image */
    object-fit: cover; /* Ensure image covers the area well */
    /* object-position: 70% 50%; /* This line is removed to revert */
    margin: 0 auto 20px auto; /* Center the image */
    display: block; /* To allow margin auto to work for centering */
    border: 3px solid #551069; /* MODIFIED BORDER COLOR HERE */
}

/* Secondary Button Style */
.btn-secondary {
    background-color: #666; /* Dark grey */
    color: #ffffff;
    border: 2px solid #666;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #444; /* Darker grey on hover */
    border-color: #444;
    color: #ffffff;
}
