/* File: css/style.css */
/* Version: v0.2.1 */

/* Global Styles & Variables */
:root {
    --primary-color: #FFD700; /* Gold - Theme Color, Header/Menu Background */
    --secondary-color: #4a4a4a; /* Charcoal - Used less now, maybe accents/text */
    --text-color-dark: #222222; /* Near Black for light/gold backgrounds */
    --text-color-light: #fafafa; /* Off-white for dark backgrounds */
    --bg-color-light: #ffffff; /* White */
    --bg-color-medium: #f4f4f4; /* Light Gray for alternating sections */
    --hover-color: #e6c300; /* Darker Gold */
    --hover-color-dark: #333333; /* Darker charcoal for hover on gold */
    --overlay-color: rgba(0, 0, 0, 0.6); /* Darker overlay for hero */

    /* Header & Logo */
    --header-height: 70px;
    --logo-display-size: 120px;
    --calculated-overhang: max(0px, calc((var(--logo-display-size) - var(--header-height)) / 2));

    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-family-headings: var(--font-family-base);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-menu: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother menu transition */
}

/* Reset & Base */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-size: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--bg-color-light);
    margin: 0;
    /* Remove body padding-top; sticky header positioning handles it */
    /* padding-top: var(--header-height); REMOVED */
}

/* Add class to body when mobile menu is open to prevent scrolling */
body.menu-open {
    overflow: hidden;
}

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

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

/* Accessibility Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--secondary-color); /* Use charcoal for focus ring */
    outline-offset: 2px;
}
*:focus:not(:focus-visible) {
    outline: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--secondary-color); /* Charcoal background */
    color: var(--text-color-light); /* Light text */
    padding: 10px 15px;
    z-index: 1200; /* Above everything */
    transition: top var(--transition-base);
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 5px 0;
}
.skip-link:focus {
    top: 0;
    outline-color: var(--primary-color); /* Gold outline */
}

/* Header */
.site-header {
    background-color: var(--primary-color); /* Gold background */
    color: var(--text-color-dark); /* Dark text on gold */
    /* remove border-bottom: 4px solid var(--primary-color); */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    overflow: visible;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Add subtle shadow */
}

.header-container {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Logo */
.site-logo {
    position: absolute;
    left: 20px;
    top: calc(var(--header-height) / 2 - var(--logo-display-size) / 2);
    z-index: 1001; /* Above header, below menu toggle when open */
    display: block;
    background: none;
    border: none;
    padding: 0;
    /* border-radius: 50%; */
    overflow: hidden;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.2); */
    /* Optional: Add subtle border if logo blends too much */
    /* border: 2px solid rgba(0,0,0,0.1); */
}
.site-logo img {
    display: block;
    height: var(--logo-display-size);
    width: var(--logo-display-size);
    max-width: none;
    object-fit: cover;
}
.site-logo:focus {
}

/* Navigation & Toggle Button Group */
.header-right-group {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Main Navigation (Desktop) */
.main-navigation {
    display: flex; /* Keep for desktop structure */
    align-items: center;
}
/* Mobile & Desktop Base */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* Desktop Only List Styles */
@media (min-width: 769px) {
    .main-navigation ul {
        display: flex;
        align-items: center;
    }
    .main-navigation li {
        margin-left: 25px;
    }
    .main-navigation a {
        color: var(--text-color-dark); /* Dark text on gold */
        text-decoration: none;
        font-weight: 600; /* Slightly bolder */
        padding: 8px 0;
        position: relative;
        transition: color var(--transition-fast);
    }
    /* Underline effect */
    .main-navigation a::after {
        content: '';
        position: absolute;
        bottom: -2px; /* Slightly below text */
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--text-color-dark); /* Dark underline */
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--transition-base);
    }
    .main-navigation a:hover,
    .main-navigation a:focus {
        color: var(--secondary-color); /* Charcoal on hover */
    }
    .main-navigation a:hover::after,
    .main-navigation a:focus::after {
        transform: scaleX(1);
        background-color: var(--secondary-color); /* Charcoal underline */
    }

    /* Login Link Specific Styles */
    .main-navigation li:has(.login-link) {
         margin-left: 40px;
    }
    .main-navigation .login-link {
        color: var(--text-color-dark);
        border: 2px solid var(--text-color-dark);
        background-color: transparent;
        padding: 6px 15px;
        border-radius: 5px;
        font-weight: 600;
        transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
    }
    .main-navigation .login-link::after {
        display: none; /* No underline effect */
    }
    .main-navigation .login-link:hover,
    .main-navigation .login-link:focus {
        background-color: var(--text-color-dark);
        color: var(--primary-color); /* Gold text on dark hover */
        border-color: var(--text-color-dark);
    }
} /* End Desktop Only Nav Styles */


/* Menu Toggle Button (Hamburger) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    /* Position fixed to stay visible when menu open, adjust positioning */
    position: fixed;
    top: calc(var(--header-height) / 2 - 20px); /* Vertically center approx */
    right: 20px;
    z-index: 1101; /* Above open menu */
    margin-left: 15px;
    width: 40px; /* Ensure sufficient tap area */
    height: 40px;
    transition: transform var(--transition-menu); /* Smooth transition if needed */
}
.hamburger-icon {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-color-dark); /* Dark lines on gold header */
    position: relative;
    transition: background-color 0s 0.3s ease; /* Delay disappearance */
    /* Center icon within button */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-color-dark); /* Dark lines */
    position: absolute;
    left: 0;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}
.hamburger-icon::before { top: -9px; }
.hamburger-icon::after { top: 9px; }

/* Animate to 'X' - lines stay dark against gold background */
.menu-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Main Content */
main {
    /* Adjust first section padding dynamically */
}
#hero {
     /* Add padding to clear the overhanging logo */
     padding-top: calc(3rem + var(--calculated-overhang));
}

main section {
    padding: 5rem 0;
}

/* Alternating Section Backgrounds */
#services, #contact { background-color: var(--bg-color-medium); }
#about { background-color: var(--bg-color-light); }

/* Section Headlines & Intro Text */
main h2 {
    font-family: var(--font-family-headings);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color); /* Gold underline */
    border-radius: 2px;
}
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
    font-size: 1.15rem;
    color: var(--secondary-color);
    opacity: 0.9;
}
.section-intro a{
    color: #FFD700;
    text-decoration-thickness: 2px;
    font-weight: bold;
}
main h3 {
    font-family: var(--font-family-headings);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Hero Section */
#hero {
    position: relative;
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-align: center;
    min-height: calc(70vh - var(--header-height)); /* Adjust height based on header */
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding-top handled dynamically */
    padding-bottom: 3rem;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--overlay-color);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 20px;
}
.hero-section h1 {
    font-family: var(--font-family-headings);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* CTA Button (General Style) */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color); /* Gold */
    color: var(--text-color-dark); /* Dark text */
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color var(--transition-base), transform var(--transition-fast), color var(--transition-base), box-shadow var(--transition-base);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.cta-button:hover,
.cta-button:focus {
    background-color: var(--hover-color); /* Darker gold */
    color: var(--text-color-dark);
    transform: translateY(-3px);
    outline: none;
    border-color: var(--hover-color);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Services Section */
.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.service-item {
    background-color: var(--bg-color-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid #eee;
}
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.service-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1.5rem;
    order: -1;
}
.service-item h3 {
    margin-top: 0;
    color: var(--secondary-color);
    text-align: center;
}
.service-item p {
    flex-grow: 1;
    margin-bottom: 0;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}
.service-item a {
    color: #FFD700;
    text-decoration-thickness: 2px;
    font-weight: bold;    
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text { text-align: left; }
.about-text h2 { text-align: left; margin-bottom: 1.5rem; }
.about-text h2::after { display: none; }
.about-text p { margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.7; }
.about-text p:last-of-type { margin-bottom: 0; }
.about-image img { border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* Contact Section */
#contact { text-align: center; }
.contact-section p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.contact-section p strong { color: var(--secondary-color); }
.contact-section a {
    color: var(--primary-color); /* Gold links */
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-base);
}
.contact-section a:hover,
.contact-section a:focus {
    color: var(--hover-color-dark); /* Use dark hover for contrast */
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color); /* Charcoal background */
    color: var(--text-color-light);
    padding: 3rem 0; /* More padding */
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-container {
    /* Keep container constraints */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Two columns */
    gap: 2.5rem 3rem; /* Row gap, Column gap */
}

.footer-column h4 {
    color: var(--primary-color); /* Gold headings */
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
/* Underline for footer headings */
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: var(--text-color-light);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-column a:hover,
.footer-column a:focus {
    opacity: 1;
    color: var(--primary-color); /* Highlight link on hover */
    text-decoration: underline; /* Add underline on hover/focus */
}

/* Specific column alignment if needed (example: align copyright bottom-right conceptually) */
.footer-sitemap { grid-row: 1; grid-column: 1; }
.footer-social { grid-row: 1; grid-column: 2; }
.footer-legal { grid-row: 1; grid-column: 3; }
.footer-copyright { grid-row: 1; grid-column: 4; }

/* Social Links */
.footer-social .social-links {
    display: flex;
    gap: 1rem; /* Space between icons */
    align-items: center;
}
.footer-social .social-links a {
    opacity: 0.8;
    transition: opacity var(--transition-base);
    display: inline-block; /* Ensure links behave well */
}
.footer-social .social-links a:hover,
.footer-social .social-links a:focus {
    opacity: 1;
    text-decoration: none; /* No underline for icons */
}
.footer-social .social-links img,
.footer-social .social-links svg { /* Style SVG icons similarly */
    width: 24px;
    height: 24px;
    display: block; /* Remove extra space below */
    filter: invert(95%) sepia(6%) saturate(90%) hue-rotate(319deg) brightness(117%) contrast(95%); /* Start with light color */
    transition: filter var(--transition-base);
}
.footer-social .social-links a:hover img,
.footer-social .social-links a:focus img,
.footer-social .social-links a:hover svg,
.footer-social .social-links a:focus svg {
     filter: invert(85%) sepia(60%) saturate(1000%) hue-rotate(350deg) brightness(105%) contrast(101%); /* Change to gold on hover */
}

/* Copyright */
.footer-copyright p {
    margin: 0 0 0.3rem 0;
    opacity: 0.8;
}
.footer-copyright .footer-author {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Form Styles --- */
.content-section form {
    margin-top: 2rem;
    max-width: 700px; /* Constrain form width */
    margin-left: auto;
    margin-right: auto;
}

.content-section fieldset {
    border: 1px solid #ccc;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.content-section legend {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0 0.5rem;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff; /* Ensure background */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 80px;
}

.form-group select {
     /* Appearance for cross-browser consistency */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234a4a4a' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem; /* Make space for arrow */
}

.form-group .required {
    color: #d9534f; /* Red asterisk */
    font-weight: bold;
    margin-left: 0.2rem;
}

/* Honeypot field - hide visually and from screen readers */
.hidden-field {
    position: absolute;
    left: -5000px; /* Move off-screen */
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.form-submit {
    text-align: center; /* Center button */
    margin-top: 2rem;
}
.form-submit .cta-button {
    /* Use existing CTA button styles */
}

/* Feedback Message Styles */
.feedback-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border: 1px solid transparent;
    text-align: center;
}

.feedback-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

.feedback-error {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

/* Style required fields on validation failure */
input:invalid,
textarea:invalid,
select:invalid {
  /* You might add subtle visual cues here if desired,
     but rely on server validation primarily */
  /* Example: border-color: #d9534f; */
}

/* --- Services Page Specific Styles --- */

.page-intro-section {
    /* Styles for the intro text section if needed */
    background-color: var(--bg-color-medium); /* Match alternating pattern */
    padding-top: 4rem;
    padding-bottom: 1rem; /* Less padding below intro */
    text-align: center;
}

.page-intro-section h1 {
    margin-bottom: 1rem;
}
.page-intro-section h1::after { /* Center underline */
    left: 50%;
    transform: translateX(-50%);
}

.service-detail-section {
    padding: 4rem 0; /* Standard vertical padding */
    border-bottom: 1px solid #eee; /* Separator line */
}
.service-detail-section:last-of-type {
    border-bottom: none; /* No border on the last one */
}

.service-detail-section:nth-of-type(even) {
     /* Alternating background (adjust based on .page-intro-section) */
     /* If intro is light-gray, start with white */
     background-color: var(--bg-color-light);
}
.service-detail-section:nth-of-type(odd) {
     /* If intro is light-gray, second service is light-gray */
     background-color: var(--bg-color-medium);
}
/* If intro is white, swap the above two */

.service-detail-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 3rem; /* Space between image and text */
    align-items: center; /* Vertically align items */
}

.service-image {
    flex: 1 1 40%; /* Flex grow, shrink, basis (adjust ratio as needed) */
    min-width: 280px; /* Prevent image becoming too small */
}

.service-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%; /* Ensure image fills container */
    height: auto;
}

.service-text {
    flex: 1 1 55%; /* Take slightly more space */
    text-align: left;
}

/* Alternate layout: Image on the right */
.service-detail-section.alt-layout .service-detail-container {
    flex-direction: row-reverse; /* Reverse the order */
}

.service-text h2 {
    text-align: left; /* Override centered h2 default */
    margin-top: 0;
    margin-bottom: 1rem;
}
.service-text h2::after {
    display: none; /* Hide centered underline */
}

.service-text h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.3rem;
    display: inline-block; /* Keep underline contained */
}

.service-text ul {
    list-style: disc; /* Use standard bullets */
    margin-left: 1.5rem; /* Indent list */
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.service-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.service-cta {
    margin-top: 1.5rem;
    display: inline-block; /* Ensure button behaves correctly */
}

/* --- About Page Specific Styles --- */
/* Reusing .page-intro-section from services.css */

.about-detail-section {
    padding: 4rem 0; /* Standard vertical padding */
    border-bottom: 1px solid #eee; /* Separator line */
}
.about-detail-section:last-of-type {
     /* Remove border if the CTA section follows */
     /* border-bottom: none; */
}

/* Alternating Backgrounds (Assuming Intro is light-gray) */
.about-detail-section:nth-of-type(odd) { /* First section (Mission) */
     background-color: var(--bg-color-light); /* White */
}
.about-detail-section:nth-of-type(even) { /* Second section (Values) */
     background-color: var(--bg-color-medium); /* Light Gray */
}
/* Adjust if intro section color changes */


/* Reuse service detail layout, potentially rename classes if needed */
.about-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex: 1 1 40%;
    min-width: 280px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}

.about-text {
    flex: 1 1 55%;
    text-align: left;
}

/* Alternate layout: Image on the right */
.about-detail-section.alt-layout .about-detail-container {
    flex-direction: row-reverse;
}

/* Reuse text styling from services.php (h2, h3, ul, li) */
.about-text h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 1rem;
}
.about-text h2::after {
    display: none;
}

.about-text h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.about-text ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Style for the final text-center CTA section */
.text-center-section {
    text-align: center;
}
.text-center-section h2 {
    /* Use default h2 styling (centered with underline) */
    text-align: center;
}
.text-center-section h2::after {
    display: block; /* Ensure underline shows */
    left: 50%;
    transform: translateX(-50%);
}
.text-center-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}


/* Responsive adjustments for about details (similar to services) */
@media (max-width: 768px) {
    .about-detail-container {
        flex-direction: column; /* Stack image and text */
        gap: 2rem;
    }
    .about-detail-section.alt-layout .about-detail-container {
       flex-direction: column; /* Keep stacked */
    }
    .about-image,
    .about-text {
        flex-basis: 100%; /* Take full width when stacked */
        text-align: center; /* Center text content on mobile */
    }
     .about-text h2 {
        text-align: center; /* Center heading */
    }
     .about-text h2::after { /* Show underline again when centered */
        display: block;
        left: 50%;
        transform: translateX(-50%);
     }
     .about-text h3 { /* Center h3 and style underline */
         display: block;
         text-align: center;
         border-bottom: none;
         margin-bottom: 1rem;
     }
     .about-text h3::after {
        content: ''; display: block; width: 50px; height: 2px;
        background-color: var(--primary-color); margin: 0.5rem auto 0 auto;
     }
     .about-text ul { /* Center the list block */
         text-align: left;
         display: inline-block;
         margin-left: 0;
         padding-left: 1.5rem;
     }
}

/* Responsive adjustments for service details */
@media (max-width: 768px) {
    .service-detail-container {
        flex-direction: column; /* Stack image and text */
        gap: 2rem;
    }
    /* Ensure text aligns left when stacked */
    .service-detail-section.alt-layout .service-detail-container {
       flex-direction: column; /* Keep stacked */
    }
    .service-image,
    .service-text {
        flex-basis: 100%; /* Take full width when stacked */
        text-align: center; /* Center text content on mobile */
    }
     .service-text h2 {
        text-align: center; /* Center heading */
    }
     .service-text h2::after { /* Show underline again when centered */
        display: block;
        left: 50%;
        transform: translateX(-50%);
     }
     .service-text h3 {
         display: block; /* Make heading block for centering */
         text-align: center;
         border-bottom: none; /* Remove underline */
         margin-bottom: 1rem;
     }
     .service-text h3::after { /* Add underline below centered h3 */
        content: '';
        display: block;
        width: 50px;
        height: 2px;
        background-color: var(--primary-color);
        margin: 0.5rem auto 0 auto;
     }
     .service-text ul {
         text-align: left; /* Keep list items left-aligned for readability */
         display: inline-block; /* Center the block */
         margin-left: 0;
         padding-left: 1.5rem; /* Add padding for bullets */
     }
}

/* Mobile Menu - Full Screen */
@media (max-width: 768px) {
    /* Show Menu Toggle Button */
    .menu-toggle {
        display: block;
    }
    /* Hide Desktop UL */
    .main-navigation ul {
        display: none;
    }

    /* Mobile Menu Container - Full Screen Overlay */
    .main-navigation {
        position: fixed; /* Fixed position for full screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Full height */
        background-color: var(--primary-color); /* Gold background */
        z-index: 1100; /* Above content and header, below toggle */
        display: flex; /* Use flex to center content */
        align-items: center;
        justify-content: center;
        overflow-y: auto; /* Allow scrolling if content overflows */

        /* Transition setup: slide from left */
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-menu), opacity var(--transition-menu), visibility 0s linear var(--transition-menu);
    }

    /* Reveal mobile menu */
    .main-navigation.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition: transform var(--transition-menu), opacity var(--transition-menu), visibility 0s linear 0s;
    }

    /* Display nav list inside open mobile menu */
    .main-navigation.is-open ul {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center links horizontally */
        width: 100%;
        padding: 2rem 0; /* Padding inside the menu */
        text-align: center; /* Center text */
    }

    /* Style mobile menu items and links */
    .main-navigation.is-open li {
        margin: 0;
        width: 100%;
        padding: 0 1.5rem; /* Padding for link touch area */
    }
    .main-navigation.is-open li:has(.login-link) {
        margin-top: 1.5rem; /* More space before login */
    }

    .main-navigation.is-open a {
        display: block;
        padding: 1rem 0; /* Vertical padding */
        font-size: 1.8rem; /* Larger font size */
        font-weight: 600;
        color: var(--text-color-dark); /* Dark text on gold */
        text-decoration: none;
        transition: color var(--transition-fast);
        /* remove border-bottom */
    }
    .main-navigation.is-open a:hover,
    .main-navigation.is-open a:focus {
        color: var(--secondary-color); /* Charcoal on hover */
        /* remove background-color highlight */
    }

    /* Style login link within the opened mobile menu */
    .main-navigation.is-open .login-link {
        display: inline-block; /* Inline block for centering */
        margin-top: 1rem; /* Space above */
        padding: 0.8rem 2rem; /* Adjust padding */
        border: 2px solid var(--text-color-dark);
        color: var(--text-color-dark);
        background-color: transparent;
        font-size: 1.5rem; /* Slightly smaller than nav links */
        border-radius: 8px;
        transition: background-color var(--transition-base), color var(--transition-base);
    }
    .main-navigation.is-open .login-link:hover,
    .main-navigation.is-open .login-link:focus {
        background-color: var(--text-color-dark);
        color: var(--primary-color); /* Gold text */
        border-color: var(--text-color-dark);
    }
} /* End Mobile Menu Styles */


/* Responsive Adjustments - Tablet and Smaller */
@media (max-width: 992px) {
    /* Adjust logo size and header height */
    :root {
        --header-height: 65px;
        --logo-display-size: 100px;
    }
    /* Recalculate logo position */
    .site-logo {
        left: 15px;
        top: calc(var(--header-height) / 2 - var(--logo-display-size) / 2);
    }
    /* Adjust hero padding */
    #hero {
         padding-top: calc(3rem + var(--calculated-overhang));
    }

    /* Stack About section */
    .about-content { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .about-text { order: 2; text-align: center; }
    .about-text h2 { text-align: center; }
    .about-text h2::after { display: block; left: 50%; transform: translateX(-50%); }
    .about-image { order: 1; max-width: 500px; margin: 0 auto 2rem auto; }

    /* Adjust typography and spacing */
    main section { padding: 4rem 0; }
    main h2 { font-size: 2.5rem; }
    .hero-section h1 { font-size: 3rem; }
    .hero-section p { font-size: 1.2rem; }
    .service-items { gap: 2rem; }
}

/* Responsive Adjustments - Mobile Specific */
@media (max-width: 768px) {
    /* Adjust logo size and header height */
    :root {
        --header-height: 60px;
        --logo-display-size: 90px;
    }
    .site-logo {
        left: 10px;
        top: calc(var(--header-height) / 2 - var(--logo-display-size) / 2);
    }
     /* Adjust hero padding */
    #hero {
         padding-top: calc(2.5rem + var(--calculated-overhang));
    }

    /* General mobile adjustments */
    main section { padding: 3rem 0; }
    main h2 { font-size: 2rem; }
    main h2::after { width: 60px; height: 3px; }
    .section-intro { font-size: 1.05rem; margin-bottom: 2.5rem; }
    main h3 { font-size: 1.4rem; }

    .hero-section { min-height: calc(60vh - var(--header-height)); }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1.1rem; }
    .cta-button { padding: 12px 25px; font-size: 1.05rem; }

    .service-items { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-item { padding: 1.5rem; }
    .service-item img { height: 200px; }

    /* Footer Grid - Stack columns */
    .footer-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 2rem 0; /* Only row gap */
        text-align: center; /* Center text in columns */
    }
    .footer-column h4 {
        text-align: center;
    }
     .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%); /* Center underline */
    }
    .footer-social .social-links {
        justify-content: center; /* Center icons */
    }
    
    .footer-sitemap { grid-row: 1; grid-column: 1; }
    .footer-social { grid-row: 2; grid-column: 1; }
    .footer-legal { grid-row: 3; grid-column: 1; }
    .footer-copyright { grid-row: 4; grid-column: 1; }
    
}

/* Small Mobile */
@media (max-width: 480px) {
    .container { padding: 0 15px; }

    main section { padding: 2.5rem 0; }
    main h2 { font-size: 1.8rem; }
    .section-intro { font-size: 1rem; }
    main h3 { font-size: 1.3rem; }

    .hero-section { min-height: calc(55vh - var(--header-height)); }
    .hero-section h1 { font-size: 1.9rem; }
    .hero-section p { font-size: 1rem; }
    .cta-button { padding: 10px 20px; font-size: 1rem; }

    .site-footer { padding: 2rem 0; font-size: 0.9rem; }
    .footer-grid { gap: 1.5rem 0; }

    /* Adjust full-screen menu text size */
    .main-navigation.is-open a { font-size: 1.5rem; }
    .main-navigation.is-open .login-link { font-size: 1.3rem; padding: 0.7rem 1.5rem; }

    /* Ensure menu toggle is easily accessible */
    .menu-toggle {
        top: calc(var(--header-height) / 2 - 22px); /* Re-center */
        right: 15px;
    }
    
    .footer-sitemap { grid-row: 1; grid-column: 1; }
    .footer-social { grid-row: 2; grid-column: 1; }
    .footer-legal { grid-row: 3; grid-column: 1; }
    .footer-copyright { grid-row: 4; grid-column: 1; }
    
}
