/* --- Global Resets & Variables --- */
:root {
    /* Dark Mode (Default) */
    --bg-primary-dark: #1A1A1A; /* Very dark grey, almost black */
    --bg-secondary-dark: #1e1e1e; /* Slightly lighter dark grey for cards/sections */
    --text-primary-dark: #e0e0e0; /* Light grey for text */
    --text-secondary-dark: #b0b0b0; /* Dimmer text */
    --accent-color-dark: #beb7d5;
    --accent-hover-dark: #A29CB6;
    --border-color-dark: #333333;
    --container-color-dark: #1A1A1A;

    /* Light Mode */
    --bg-primary-light: #f1ffe0; /* Base light color, also used for top of gradient */
    --bg-secondary-light: #EEEBF9; /* Base for cards, also used for bottom of gradient */
    --bg-tertiacy-light: #e1d9fa;
    --text-primary-light: #1c2834; /* Dark blue/grey for text */
    --text-secondary-light: #555555; /* Medium grey */
    --accent-color-light: #99d67d;
    --accent-hover-light: #a39db9;
    --border-color-light: #e0e0e0;
    --container-color-light: rgba(244, 246, 248, 0.85);

    /* Homepage Gradient Variables */
    --home-gradient-start: #f1ffe0;
    --home-gradient-end: #e7e2f8; /* Corrected from EEEBF9 to #EEEBF9 */
    --home-gradient: linear-gradient(to bottom, var(--home-gradient-start) 0%, var(--home-gradient-end) 60%, var(--home-gradient-end) 100%);

    /* Common */
    --font-primary: 'Fredoka', sans-serif;
    --font-secondary: 'Fredoka', sans-serif; /* Assuming you want Fredoka for both now */
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    transition: background-color var(--transition-speed), color var(--transition-speed), background-image var(--transition-speed);
    min-height: 100vh;
    background-repeat: no-repeat;
}

body.dark-mode {
    background-color: var(--bg-primary-dark);
    background-image: none;
    color: var(--text-primary-dark);
    --current-bg-primary: var(--bg-primary-dark);
    --current-bg-secondary: var(--bg-secondary-dark);
    --current-bg-tertiary: var(--bg-secondary-dark);
    --current-text-primary: var(--text-primary-dark);
    --current-text-secondary: var(--text-secondary-dark);
    --current-accent: var(--accent-color-dark);
    --current-accent-hover: var(--accent-hover-dark);
    --current-border: var(--border-color-dark);
    --current-box-shadow: var(--box-shadow-dark);
    --current-container-primary: var(--container-color-dark);
}

body.light-mode {
    background-color: var(--bg-primary-light); /* Default solid light for non-homepage */
    background-image: none;
    color: var(--text-primary-light);
    --current-bg-primary: var(--bg-primary-light);
    --current-bg-secondary: var(--bg-secondary-light);
    --current-bg-tertiary: var(--bg-tertiacy-light);
    --current-text-primary: var(--text-primary-light);
    --current-text-secondary: var(--text-secondary-light);
    --current-accent: var(--accent-color-light);
    --current-accent-hover: var(--accent-hover-light);
    --current-border: var(--border-color-light);
    --current-box-shadow: var(--box-shadow);
    --current-container-primary: var(--container-color-light);
}

/* --- Homepage Specific Body Styling --- */
body#home-page.light-mode {
    background-image: var(--home-gradient);
    background-color: var(--home-gradient-end); /* Fallback */
    color: var(--text-primary-light); /* Ensure text is readable on light gradient */
    min-height: 100vh; /* Ensure gradient covers full height */
    background-repeat: no-repeat; /* Prevent tiling if content is short */
}

body#home-page.dark-mode {
    /* Ensures homepage in dark mode explicitly uses the standard dark theme */
    background-color: var(--bg-primary-dark);
    background-image: none;
    color: var(--text-primary-dark);
}

/* 
   -----------------------------------------------------------------------------
   NEW RULES TO MAKE HOMEPAGE SECTIONS TRANSPARENT IN LIGHT MODE
   TO SHOW THE BODY GRADIENT
   -----------------------------------------------------------------------------
*/
body#home-page.light-mode #about-us-preview,
body#home-page.light-mode #services-preview,
body#home-page.light-mode #brand-vision-preview,
body#home-page.light-mode #community,
body#home-page.light-mode #contact-preview {
    background-color: transparent; /* Make the section itself transparent */
}





/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600; /* Fredoka might be naturally bold, adjust if needed */
    font-family: var(--font-primary);
    transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--current-accent);
    color: var(--bg-primary-dark);
    text-decoration: none;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--current-accent-hover);
    color: var(--bg-primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color:  transparent;
    color: var(--current-accent);
    border: 2px solid var(--current-accent);
}
.btn-secondary:hover {
    background-color: var(--current-accent);
    color: var(--bg-primary-dark);
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: var(--current-bg-secondary); /* Updated to use variable */
    color: var(--current-text-primary);
    border: 1px solid var(--current-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-tertiary:hover {
    background-color: var(--current-accent);
    color: var(--bg-primary-dark);
    border-color: var(--current-accent);
    transform: translateY(-2px);
}
/* --- NEW DEDICATED STYLE FOR THE MAILTO BUTTON --- */
.btn-mailto-style {
    background-color: var(--current-accent);
    color: var(--bg-primary-dark); /* Or your chosen text color for primary actions, e.g., #1A1A1A */
    text-decoration: none; /* Important for <a> tags styled as buttons */
    /* Sizing (you had these in .contact-mailto-btn before) */
    padding: 10px 25px;
    font-size: 0.95rem;
    min-width: 180px;
    /* Add any other specific styles you want for this button */
    /* e.g., border: 1px solid transparent; */
}
.btn-mailto-style:hover,
.btn-mailto-style:focus { /* Added :focus for accessibility */
    background-color: var(--current-accent-hover);
    color: var(--bg-primary-dark); /* Ensure text color remains consistent on hover */
    text-decoration: none;
    transform: translateY(-2px); /* Optional hover effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Optional hover shadow */
}




.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    transition: background-color var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
body.light-mode header {
    background-color: rgba(244, 246, 248, 0.85); /* Slightly more opaque */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Example: Adjusted logo height */
    transition: opacity var(--transition-speed);
}
.logo-dark-mode-img { display: none; }

body.dark-mode .logo-light-mode-img { display: block; }
body.dark-mode .logo-dark-mode-img { display: none; }
body.light-mode .logo-light-mode-img { display: none; }
body.light-mode .logo-dark-mode-img { display: block; }


header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--current-text-primary);
    font-weight: 400; /* Fredoka regular */
    font-family: var(--font-primary);
    position: relative;
    padding-bottom: 5px;
}
header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--current-accent);
    transition: width var(--transition-speed);
}
header nav ul li a:hover::after {
    width: 100%;
}
header nav ul li a:hover {
    color: var(--current-accent);
}

.header-actions {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--current-text-primary);
    font-size: 1.4em;
    cursor: pointer;
    margin-left: 20px;
    padding: 5px;
}
#theme-toggle .fa-sun { display: none; }
body.dark-mode #theme-toggle .fa-moon { display: block; }
body.dark-mode #theme-toggle .fa-sun { display: none; }
body.light-mode #theme-toggle .fa-moon { display: none; }
body.light-mode #theme-toggle .fa-sun { display: block; }

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--current-text-primary);
    font-size: 1.5em;
    cursor: pointer;
}
#mobile-menu-toggle .fa-times { display: none; }


/* --- Hero Section --- */
#hero {
    min-height: 100vh; /* Using min-height for flexibility with content */
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Image and dark overlay set via background-image on the #hero element */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.6)), url('../images/homemexicannight_1462.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

/* Removed .hero-overlay div specific styling as gradient is now part of #hero background-image */
/* .hero-VIDEO { ... } */

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Clips the video within this wrapper */
    z-index: 0;       /* Video is at the very back */
}

#heroBgVideo {
    /* This ensures the video covers the area, maintaining aspect ratio and centering */
    min-width: 100%;
    min-height: 100%;
    width: auto;   /* Let browser determine width based on height to maintain aspect ratio */
    height: auto;  /* Let browser determine height based on width to maintain aspect ratio */
    position: absolute; /* If not using object-fit reliably */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* For modern browsers, object-fit is cleaner: */
    /* object-fit: cover; */ /* Uncomment this and comment out the positioning above if you prefer */
}

/* Modern way using object-fit - preferred if browser support is sufficient for your needs */
@supports (object-fit: cover) {
    #heroBgVideo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: static; /* Reset absolute positioning if object-fit is used */
        transform: none;
    }
}

/* Gradient Overlay - Sits on top of the video, below the text content */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Choose your gradient. Example: Darken the video for text readability */
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.6));
    /* Example 2: Subtle color tint */
    /* background: linear-gradient(45deg, rgba(168, 255, 62, 0.1), rgba(100, 50, 150, 0.3)); */
    /* If you don't want an overlay, remove this CSS block and the div from HTML */
    z-index: 1;
}

.hero-content {
    position: relative; /* Make sure content is above the overlay (if used) and video */
    z-index: 2;         /* Content on top */
    max-width: 800px;
    padding: 20px; /* Optional padding for the content block itself */
}

/* Hero H1 and P styles (ensure they are readable against the video/overlay) */
.hero-content h1 {
    /* font-family, font-size, font-weight are inherited from global h1 or set here */
    color: #ffffff; /* Explicitly white for hero */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6); /* Stronger shadow might be needed */
    /* line-height, margin-bottom from global h1 or specific */
}

.hero-content p {
    /* font-size, font-weight inherited or set here */
    color: #f0f0f0; /* Slightly off-white */
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5); /* Stronger shadow might be needed */
    /* margin-bottom from global p or specific */
}

/*.hero-content .btn-tertiary {
    /* Ensure button stands out. You might need to override default .btn-tertiary colors if they blend in. */
    /* Example: Brighter border or background for hero context */
    /* border-color: #fff; */
    /* background-color: rgba(255,255,255,0.1); 
}*/


/* Responsive styles for hero text (should already be in your media queries) */
@media (max-width: 768px) {
    #hero {
        min-height: 80vh; /* Adjust height for mobile */
        padding: 80px 0;
    }
    /* .hero-content h1, .hero-content p sizes are handled by your existing global h1/p responsive rules
       or specific .hero-content h1/p rules in media queries. */
}

/* .hero-VIDEO { ... } */
/* video end  */


.hero-content {
    position: relative; /* Ensure content is interactable, z-index might not be needed if overlay div is removed */
    z-index: 2; /* Kept for safety if any other pseudo-elements are added to #hero */
    max-width: 800px;
    padding: 20px;
}

/* General h1 styles for all pages */
h1 {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 400; /* Fredoka regular */
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--current-text-primary); /* Default h1 color */
}

.hero-content h1 {
    /* font-size: 3.5rem; /* This can be overridden by the global h1 or kept for hero specifically */
    color: #ffffff; /* Hero H1 is always white */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300; /* Lighter weight for hero paragraph */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    color: #f0f0f0; /* Slightly off-white for hero paragraph */
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
/* General h2 styles */
h2 {
    font-family: var(--font-primary);
    font-size: 2.8rem; /* Example size, adjust based on global h1 */
    font-weight: 400; /* Fredoka regular */
    margin-bottom: 10px;
    color: var(--current-text-primary);
    line-height: 1.25;
}
/* .section-header h2 uses the general h2 styles now */

.accent-line {
    width: 80px;
    height: 4px;
    background-color: var(transparent);
    margin: 0 auto 20px auto; /* Added bottom margin (--current-accent */
    border-radius: 2px;
}
.accent-line.left {
    margin: 0 0 15px 0;
}

/* --- About Us Preview Section (Homepage) --- */
#about-us-preview { /* ID from your HTML */
    background-color: var(--current-bg-secondary); /* Or transparent if body gradient shows through */
}
.about-content { /* This class is used in your about-us-preview */
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-text {
    flex: 1;
    font-size: 1.1rem; /* Adjusted from 1.55rem for better balance */
    color: var(--current-text-secondary);
    line-height: 1.8;
}
.about-text p {
    margin-bottom: 15px;
}
.about-text strong {
    color: var(--current-text-primary);
    font-weight: 600; /* Make strong stand out if Fredoka 400 is default */
}
.about-image {
    flex-basis: 40%;
    text-align: center;
}
.about-image img {
    max-width: 100%; /* Changed from 150% */
    height: auto;
    border-radius: var(--border-radius); /* Optional: Add back if desired */
    /* box-shadow: var(--current-box-shadow); /* Optional */
}

/* --- Services Section (Homepage Preview - New Layout) --- */
#services-preview {
    background-color: var(--current-bg-primary);
}

.services-layout {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.service-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background-color: var(transparent);
    padding: 5px;
    /*border-radius: var(--border-radius);*/
    /*box-shadow: var(--current-box-shadow);*/
    overflow: hidden;
}

.service-item-row.reverse-layout .service-item-image {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.service-item-row.reverse-layout .service-item-content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}


.service-item-image {
    width: 100%; /* Container takes full width of its grid column */
    aspect-ratio: 1.29 / 1; /* Example: Force a 16:9 aspect ratio for the image area */
    overflow: hidden; /* Important */
    border-radius: var(--border-radius);
    background-color: var(transparent); /* Fallback or bg for letter/pillar boxing */
}

.service-item-image img {
    width: 100%;
    height: 100%;
    /*height: auto;
    max-height: 350px; */
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
}

.service-item-content {
    text-align: left;
}
/* General h3 styles */
h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem; /* Example */
    font-weight: 400; /* Fredoka regular */
    margin-bottom: 15px;
    color: var(--current-text-primary);
    line-height: 1.3;
}
/* .service-item-content h3 uses the general h3 styles */

.service-item-content p {
    color: var(--current-text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}


/* --- Brand Vision Section (Homepage) --- */
#brand-vision-preview { /* ID from your HTML */
    background-color: var(--current-bg-secondary); /* Or transparent */
}
.brand-vision-content { /* Class from your HTML */
    display: flex;
    align-items: center;
    gap: 50px;
}
.brand-vision-image {
    flex: 1;
}
.brand-vision-image img {
    width: 100%;
    height: auto;
    /* border-radius: var(--border-radius); */
    /* box-shadow: var(--current-box-shadow); */
}
.brand-vision-text {
    flex: 1;
}
/* .brand-vision-text h2 uses general h2 styles */
.brand-vision-text p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: var(--current-text-secondary);
    line-height: 1.8;
}

/* --- Community Section --- */
#community {
    background-color: var(--current-bg-primary); /* Or transparent */
}
/* .section-header h2 for community uses general h2 styles */
.social-icons {
    text-align: center;
    margin-bottom: 40px;
}
.social-icons a {
    color: var(--current-text-secondary);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color var(--transition-speed), transform var(--transition-speed);
}
.social-icons a:hover {
    color: var(--current-accent);
    transform: scale(1.1);
}
.community-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.community-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--current-box-shadow);
    transition: transform var(--transition-speed), filter var(--transition-speed);
}
.community-gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- Contact Preview Section (Homepage) --- 
#contact-preview { /* ID from your HTML 
     background-color is inherited or can be set 
}*/
/* .section-header h2 for contact preview uses general h2 styles */
.contact-wrapper {
    display: flex;
    /* gap: 40px; */
    background-color: var(--current-bg-tertiary);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--current-box-shadow);
}
/* New styles for the simplified layout */
.contact-wrapper.simplified-contact {
    justify-content: center; /* Center the .contact-info div if it doesn't take full width */
}
.contact-wrapper.simplified-contact .contact-info {
    flex-basis: auto; /* Allow it to take its natural width */
    max-width: 600px; /* Optional: Set a max-width for better readability if it's centered */
    text-align: center; /* Center the text and icons within .contact-info */
}
.contact-info-button-wrapper {
    margin-top: 25px; /* Space above the button */
    text-align: center; /* Center the inline-block button within this div */
}
.contact-mailto-btn {
    /* --- Fully Customisable Size --- */
    padding: 10px 25px;    /* Example: Adjust top/bottom and left/right padding */
    font-size: 1.55rem;    /* Example: Adjust font size */
    min-width: 220px;      /* Example: Set a minimum width if desired */
    /* width: 400px; height: 70px;  */
    display: inline-block; /* Already part of .btn, but good to be aware */
    line-height: normal;   
    vertical-align: middle;
    /* --- Other Customisations (Optional) --- */
    /* It inherits from .btn and .btn-primary (or whichever btn class you used) */
    /* You can override specific properties here if needed: */
    /* background-color: #yourColor; */
    /* color: #1A1A1A; */
    /* border: 2px solid #yourBorderColor; */
    /* border-radius: 5px; /* Override default border-radius */
    /* letter-spacing: 1px; */
}

body.dark-mode a.btn.btn-primary.contact-mailto-btn { /* More specific selector */
    background-color: #e7e2f8; /* Example: Dark grey button background 383838 */
    color: #0a0a0a;           /* Example: Light text color */
    border: 1px solid #505050;
}
body.dark-mode a.btn.btn-primary.contact-mailto-btn:hover,
body.dark-mode a.btn.btn-primary.contact-mailto-btn:focus {
    background-color: #A29CB6; /* Darker grey on hover 4A4A4A */
    color: #0a0a0a;           /* Brighter white text on hover */
    border-color: #666666;
}

.contact-wrapper.simplified-contact .contact-info {
    flex-basis: auto;
    max-width: 600px;
    text-align: center; /* This will center the text blocks and the .contact-info-button-wrapper */
}

/* .contact-info h3 uses general h3 styles */
.contact-info p {
    margin-bottom: 15px;
    color: var(--current-text-secondary);
}
.contact-info i {
    color: var(--current-accent);
    margin-right: 10px;
    width: 20px;
}
.contact-info a {
    color: var(--current-text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}
.contact-info a:hover {
    color: var(--current-accent);
}

#contact-form-preview { /* ID from your HTML */
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; /* For name/email side-by-side in preview */
    gap: 20px;
}
/* Styles for form elements are general .form-group from main contact page if applicable,
   or can be defined here if preview form is simpler/different.
   Assuming general .form-group styles apply. */


/* --- Styles for actual sub-pages (services.html, about.html, contact.html) --- */
/* --- Page Hero (for subpages) --- */
.page-hero {
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero h1 { /* Uses global h1, but color is overridden for contrast */
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.page-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* --- --- */
/* --- Service Detail Item (for services.html) --- */

/* --- Services Page Specific Styling --- */
body#services-page.light-mode {
    background-color: #e8e2f8;  /* <<< YOUR DESIRED LIGHT MODE BG FOR SERVICES PAGE */
    background-image: none;     /* Ensure no other body background image applies */
    color: var(--text-primary-light); /* Standard dark text for light backgrounds */
}

body#services-page.dark-mode {
    background-color: #1C2833;  /* <<< YOUR DESIRED DARK MODE BG FOR SERVICES PAGE */
    background-image: none;     /* Ensure no other body background image applies */
    color: var(--text-primary-dark);  /* Standard light text for dark backgrounds */
}
body#services-page #services-detailed {
    background-color: transparent;
    padding-top: 200px;
}
body#services-page .page-hero {
    display: none !important; /* This will hide the entire hero section on services.html */
}

#services-detailed .service-detail-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px; /* Increased padding rgba(244, 246, 248, 0.85)   */
    background-color: var(--current-container-primary) ;
    border-radius: var(--border-radius);
    box-shadow: var(--current-box-shadow);
}
#services-detailed .service-detail-item:nth-child(even) {
    flex-direction: row-reverse;
}
#services-detailed .service-detail-item img {
    width: 45%; /* Slightly increased width */
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
}
#services-detailed .service-detail-item div { /* Content div */
    flex: 1;
    padding-left: 20px; /* Add some padding to text if image is on left */
}
#services-detailed .service-detail-item:nth-child(even) div {
    padding-left: 0;
    padding-right: 20px; /* Add padding if image is on right */
}
#services-detailed .service-detail-item h3 { /* Uses global h3 */
    color: var(--current-accent); /* Accent color for service titles */
}
#services-detailed .service-detail-item p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--current-text-secondary);
}
#services-detailed .service-detail-item ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--current-text-secondary);
}
#services-detailed .service-detail-item ul li {
    margin-bottom: 8px;
}

/* --- About Page Content (about.html) --- */

/* --- About Page Specific Styling --- */
body#about-page.light-mode {
    background-color: #e8e2f8;  /* <<< YOUR DESIRED LIGHT MODE BG FOR SERVICES PAGE */
    background-image: none;     /* Ensure no other body background image applies */
    color: var(--text-primary-light); /* Standard dark text for light backgrounds */
}

body#about-page.dark-mode {
    background-color: #1C2833;  /* <<< YOUR DESIRED DARK MODE BG FOR SERVICES PAGE */
    background-image: none;     /* Ensure no other body background image applies */
    color: var(--text-primary-dark);  /* Standard light text for dark backgrounds */
}
body#about-page #about-detailed {
    background-color: transparent;
    padding-top: 200px;
}
body#about-page .page-hero {
    display: none !important; /* This will hide the entire hero section on services.html */
}


.about-page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--current-text-secondary);
}
.about-page-content p,
.about-page-content h3 { /* h3 uses global style */
    margin-bottom: 20px;
}
.about-page-content h3 { /* Specific overrides for about page h3 if needed */
    margin-top: 30px;
}
.about-page-content strong {
    color: var(--current-text-primary);
    font-weight: 600;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px; /* Increased gap */
    margin-bottom: 30px;
}
.team-member {
    text-align: center;
    background-color: transparent; /* Use tertiary for slight difference */
    padding: 20px; /* Increased padding */
    border-radius: var(--border-radius);
    box-shadow: transparent;
}
.team-member img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px; /* Increased margin */
    /*border: 3px solid var(--current-accent);*/
}
.team-member h4 { /* Assuming h4 is used for team member names */
    font-family: var(--font-primary);
    color: var(--current-text-primary);
    font-size: 1.25rem; /* Adjusted size */
    margin-bottom: 5px;
    font-weight: 400;
}
.team-member p { /* Team member title */
    font-size: 0.9rem;
    color: var(--current-text-secondary);
    margin-bottom: 0;
}

/* --- Main Contact Form (contact.html) --- */
/* Assuming #contact-form is the ID for the main form on contact.html */
/* and #contact-preview form uses #contact-form-preview */

/* --- Contact Page Specific Styling --- */
body#contact-page.light-mode {
    background-color: #e8e2f8;  /* <<< YOUR DESIRED LIGHT MODE BG FOR SERVICES PAGE */
    background-image: none;     /* Ensure no other body background image applies */
    color: var(--text-primary-light); /* Standard dark text for light backgrounds */
}

body#contact-page.dark-mode {
    background-color: #1C2833;  /* <<< YOUR DESIRED DARK MODE BG FOR SERVICES PAGE */
    background-image: none;     /* Ensure no other body background image applies */
    color: var(--text-primary-dark);  /* Standard light text for dark backgrounds */
}
body#contact-page #contact-full {
    background-color: transparent;
    padding-top: 200px;
}
body#contact-page .page-hero {
    display: none !important; /* This will hide the entire hero section on services.html */
}

#contact-form {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group { /* General for all forms */
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    margin-bottom: 8px;
    font-weight: 400; /* Fredoka regular */
    color: var(--current-text-secondary);
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select { /* Added select */
    padding: 12px 15px;
    border: 1px solid var(--current-border);
    border-radius: var(--border-radius);
    background-color: var(--current-bg-secondary);
    color: var(--current-text-primary);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--current-accent);
    box-shadow: 0 0 0 3px rgba(var(--current-accent-rgb, 153 214 125), 0.3); /* Dynamic shadow with RGB var */
}
/* Define --current-accent-rgb in :root if you use this ^ */
/* Example: --current-accent-rgb-light: 153, 214, 125; */
/* Then in body.light-mode: --current-accent-rgb: var(--current-accent-rgb-light); */

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background-color: var(--bg-primary-dark);
}
#contact-form .btn-primary,
#contact-form-preview .btn-primary { /* Apply to preview button too */
    grid-column: 1 / -1;
    margin-top: 10px;
}


/* --- Footer --- */
footer {
    background-color: var(--bg-primary-dark);
    color: var(--text-secondary-dark);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}
body.light-mode footer {
    background-color: var(--text-primary-light);
    color: var(--bg-primary-light);
}
footer p {
    margin-bottom: 5px;
}
footer .fa-heart {
    color: var(--accent-color-dark);
}
body.light-mode footer .fa-heart {
    color: var(--accent-color-light);
}
footer nav a {
    color: inherit; /* Inherit color from footer text */
    margin: 0 8px;
    text-decoration: none;
}
footer nav a:hover {
    text-decoration: underline;
}


/* --- Responsive Design --- */
@media (max-width: 992px) { /* Large tablets and small desktops */
    h1 { font-size: 40px; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 1.6rem; }

    .hero-content h1 { font-size: 2.8rem; } /* Specific hero adjustments */
    .hero-content p { font-size: 1.1rem; }

    .about-content, .brand-vision-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image, .brand-vision-image { margin-bottom: 30px; }
    .accent-line.left { margin: 0 auto 15px auto; }
    .brand-vision-text { text-align: center; }

    #contact-form, #contact-form-preview { grid-template-columns: 1fr; } /* Stack form fields */
    .contact-wrapper { flex-direction: column; }
    .contact-info { margin-bottom: 30px; text-align: center; }
}

@media (max-width: 768px) { /* Small tablets and mobile */
    h1 { font-size: 32px; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }

    header .container {
        position: relative;
    }
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--current-bg-secondary);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 999;
    }
    header nav.active {
        display: block;
    }
    header nav ul {
        flex-direction: column;
        align-items: center;
    }
    header nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    header nav ul li a {
        display: block;
        padding: 10px 0;
    }
    .header-actions .btn-primary { display: none; }

    #mobile-menu-toggle { display: block; }
    #mobile-menu-toggle.active .fa-bars { display: none; }
    #mobile-menu-toggle.active .fa-times { display: block; }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .section-padding { padding: 80px 0; }

    /* Services Preview on Homepage - Mobile */
    .services-layout { gap: 30px; }
    .service-item-row,
    .service-item-row.reverse-layout {
        grid-template-columns: 1fr;
        padding: 20px;
        text-align: center;
    }
    .service-item-row.reverse-layout .service-item-image,
    .service-item-row.reverse-layout .service-item-content {
        grid-column: auto;
        grid-row: auto;
    }
    .service-item-image { margin-bottom: 20px; }
    .service-item-image img { max-height: 250px; }
    .service-item-content { text-align: center; }
    .service-item-content h3 { font-size: 1.5rem; } /* Uses general h3 mobile size or this */
    .service-item-content p { font-size: 0.9rem; }

    .community-gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

    /* Sub-pages mobile */
    .page-hero { padding: 60px 0; min-height: 200px; }
    .page-hero h1 { font-size: 2.2rem; } /* Uses general h1 mobile size or this */
    .page-hero p { font-size: 1rem; }

    #services-detailed .service-detail-item,
    #services-detailed .service-detail-item:nth-child(even) {
        flex-direction: column;
        padding: 20px; /* Adjust padding */
    }
    #services-detailed .service-detail-item img {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    #services-detailed .service-detail-item div { padding-left: 0; padding-right: 0; }
}

@media (max-width: 576px) { /* Small mobile phones */
    h1 { font-size: 28px; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .btn { padding: 10px 20px; font-size: 0.9rem; }
    /* .section-header h2 uses general h2 mobile size */
    .contact-wrapper { padding: 20px; } /* This was .service-card before, which is old */

    .hero-content h1 { font-size: 1.8rem; } /* Further refine hero h1 */

    .service-item-image img { max-height: 200px; } /* Services preview images */
    /* .service-item-content h3, p font sizes inherit from 768px or can be further refined */
}