/* Aireborough Family Services - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

/* ============================================
   BASE STYLES & RESET
   ============================================ */

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

body {
    font-family: 'Lexend', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

div > :first-child:is(h1, h2, h3, h4, h5, h6) {
    margin-top: 0;
}

div > p:last-child {
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.8rem;
}
h4 {
    font-size: 1.5rem;
}
h5 {
    font-size: 1.3rem;
}
h6 {
    font-size: 1.1rem;
}

img {
    max-width: 100%;
}

/* ============================================
   CONTAINER SYSTEM
   ============================================ */

/* Standard container - 1200px max width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Narrow container for content-focused sections - 900px max width */
.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Fluid container - full width with padding */
.container-fluid {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Section spacing - consistent vertical padding */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-lg {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-md {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section-sm {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-xs {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Section with background needs internal padding */
.section-padded {
    padding: 4rem 2rem;
}

.section-padded-lg {
    padding: 5rem 2rem;
}

.section-padded-md {
    padding: 3rem 2rem;
}

.section-padded-sm {
    padding: 2rem;
}

/* Responsive container padding */
@media (max-width: 768px) {
    .container,
    .container-narrow,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-padded {
        padding: 3rem 1rem;
    }

    .section-padded-lg {
        padding: 4rem 1rem;
    }

    .section-padded-md {
        padding: 2rem 1rem;
    }
}

/* ============================================
   IMAGES
   ============================================ */

figure.image {
    margin: 1rem 0;
}

figure.image:first-child {
    margin-top: 0;
}

figure.image > img {
    max-width: 100%;
}

figure.image.image-left {
    float: left;
    margin-right: 1rem;
}

figure.image.image-right {
    float: right;
    margin-left: 1rem;
}

figure.image.image-25 {
    width: 25%;
}

figure.image.image-50 {
    width: 50%;
}

figure.image.image-75 {
    width: 75%;
}

figure.image.image-100 {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

figure.image > .image-caption {
    background: linear-gradient(135deg, #98A991 0%, #A8B99D 100%);
    color: white;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    figure.image {
        float: none !important;
        width: 100% !important;
        margin: 1rem 0 !important;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: linear-gradient(135deg, #E89A3C 0%, #D88A2C 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    background-color: white;
    color: #E89A3C;
    font-weight: 600;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 5px;
    z-index: 1;
    top: 100%;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: #333;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    white-space: normal;
}

.dropdown-content a:hover {
    background-color: #F5E6D3;
    color: #E89A3C;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    background-color: #F5E6D3;
}

.breadcrumb a {
    color: #2C5F6F;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #E89A3C;
}

.breadcrumb a:last-of-type {
    color: #E89A3C;
    font-weight: 600;
}

.breadcrumb span {
    color: #999;
    margin: 0 0.5rem;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

.section-white {
    background-color: white;
}

.section-white :is(h1, h2, h3, h4, h5, h6) {
    text-align: center;
    color: #2C5F6F;
}

.section-green {
    background: linear-gradient(135deg, #98A991 0%, #A8B99D 100%);
    color: white;
}

.section-green :is(h1, h2, h3, h4, h5, h6) {
    text-align: center;
    color: white;
}

.section-orange-light {
    background-color: #F5E6D3;
}

.section-orange-light :is(h1, h2, h3, h4, h5, h6) {
    text-align: center;
    color: #2C5F6F;
}

.section-teal {
    background: linear-gradient(135deg, #2C5F6F 0%, #3A7080 100%);
    color: white;
}

.section-teal :is(h1, h2, h3, h4, h5, h6) {
    text-align: center;
    color: #F4C542;
}

.section-orange {
    background: linear-gradient(135deg, #E89A3C 0%, #D88A2C 100%);
    color: white;
}

.section-orange :is(h1, h2, h3, h4, h5, h6) {
    text-align: center;
    color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #F5E6D3 0%, #F4E0C8 100%);
    text-align: center;
}

.hero h2 {
    color: #2C5F6F;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .tagline {
    color: #E89A3C;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero p {
    color: #444; /* Improved contrast from #555 */
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ============================================
   CALL TO ACTION BUTTONS
   ============================================ */

/* Primary CTA - Orange background (for light backgrounds) */
.cta-button {
    background-color: #E89A3C;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #D88A2C;
    transform: translateY(-2px);
}

/* Secondary CTA - White background (for orange backgrounds) */
.cta-button-light {
    background-color: white;
    color: #E89A3C;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.3s;
    font-weight: 600;
}

.cta-button-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   CAROUSEL SECTION
   ============================================ */

.carousel-container {
    position: relative;
    padding: 0 3rem;
}

.container > .carousel-container {
    margin: 0 -3rem;
}

.carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 250px;
    background: #F5E6D3;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.carousel-card:hover {
    transform: translateY(-5px);
}

.carousel-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    overflow: hidden;
}

.carousel-icon .fa-icon {
    height: 2rem;
}

.carousel-icon img {
    object-fit: cover;
    max-width: 100%;
}

.carousel-card h4 {
    color: #2C5F6F;
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #E89A3C;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background-color: #D88A2C;
}

.carousel-nav .fa-icon {
    height: 1.2rem;
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

/* ============================================
   CARD GRID SECTION
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    color: #333;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F4C542 0%, #E89A3C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    overflow: hidden;
}

.card-icon .fa-icon {
    height: 2.5rem;
}

.card-icon img {
    object-fit: cover;
    max-width: 100%;
}

.large-icons .card-icon {
    width: 160px;
    height: 160px;
    font-size: 5rem;
    color: white;
    overflow: hidden;
}

.large-icons .card-icon .fa-icon {
    height: 5rem;
}

.card h4 {
    color: #2C5F6F;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    color: #444; /* Improved contrast from #555 */
    margin-bottom: 1.5rem;
}

.card-link {
    color: #E89A3C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.card-link:hover {
    color: #D88A2C;
}

/* ============================================
   QUOTE SECTION
   ============================================ */

.quote-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #E89A3C;
}

.quote-text {
    color: #444; /* Improved contrast from #555 */
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
}

.quote-author {
    color: #2C5F6F;
    font-weight: 600;
    margin-top: 1.5rem;
    text-align: right;
}

/* ============================================
   MAIN CONTAINER (Content Pages)
   ============================================ */

.main-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.main-container:has(aside) {
    grid-template-columns: 250px 1fr;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

.sidebar {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar h3 {
    color: #2C5F6F;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #E89A3C;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.75rem;
}

.sidebar a {
    color: #444; /* Improved contrast from #555 */
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar a:hover {
    background-color: #F5E6D3;
    color: #E89A3C;
    padding-left: 1rem;
}

.sidebar a.active {
    background-color: #E89A3C;
    color: white;
    font-weight: 600;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.content h1 {
    color: #2C5F6F;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 4px solid #E89A3C;
}

.content h2 {
    color: #2C5F6F;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.content h3 {
    color: #2C5F6F;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.content p {
    color: #444; /* Improved contrast from #555 */
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    line-height: 1.8;
}

.content ul {
    margin: 1rem 0 1.5rem 2rem;
    color: #444; /* Improved contrast from #555 */
}

.content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ============================================
   INFO BOX COMPONENT
   ============================================ */

.info-box {
    background: linear-gradient(135deg, #F5E6D3 0%, #F4E0C8 100%);
    border-left: 5px solid #E89A3C;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    text-align: left;
    color: #2C5F6F;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-box p {
    color: #444; /* Improved contrast from #555 */
    margin-bottom: 0.5rem;
}

/* ============================================
   HIGHLIGHT BOX COMPONENT
   ============================================ */

.highlight-box {
    background: linear-gradient(135deg, #7A8A71 0%, #8A9A81 100%); /* Darkened for better contrast */
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.highlight-box h4 {
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
}

.highlight-box p {
    color: white;
    margin-bottom: 1rem;
}

/* ============================================
   CTA SECTION COMPONENT
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, #E89A3C 0%, #D88A2C 100%);
    color: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.cta-section h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 100%;
}

/* ============================================
   RELATED CONTENT
   ============================================ */

.related-content {
    background-color: #F5E6D3;
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
}

.related-content h3 {
    color: #2C5F6F;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card .icon {
    font-size: 2.5rem;
    color: #E89A3C;
    margin-bottom: 0.5rem;
}

.related-card h4 {
    color: #2C5F6F;
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.related-card a {
    color: #E89A3C;
    text-decoration: none;
    font-weight: 600;
}

.related-card a:hover {
    color: #D88A2C;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, #2C5F6F 0%, #3A7080 100%);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-section h4 {
    color: #F4C542;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #F4C542;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

/* ============================================
   FORM STYLES
   ============================================ */

/* Main form container and sections */
fieldset {
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}

/* Label and Input group wrapper (from HTML: .clearfix) */
.clearfix {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2C5F6F; /* Dark Teal for high contrast */
    font-size: 0.95rem;
}

.required {
    color: #E89A3C; /* Primary Orange for required indicator */
    margin-left: 0.25rem;
}

/* Input/Textarea containers (from HTML: .input) */
.input {
    width: 100%;
}

/* Base styles for all text-based inputs, textarea, and select */
:is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="color"], textarea, select) {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px; /* Slightly rounded corners */
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    appearance: none; /* Reset default OS styles for select/inputs */
}

/* Focus state for inputs */
:is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="color"], textarea, select):focus {
    border-color: #E89A3C; /* Orange border on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 154, 60, 0.3); /* Subtle orange ring */
    background-color: white;
}

/* --- VALIDATION/ERROR STYLES --- */

/* Input error state */
.input input.error, 
.input textarea.error, 
.input select.error {
    border-color: #D64545; /* Red border */
    box-shadow: 0 0 0 1px #D64545; /* Red outline to highlight error */
    background-color: #fffafa; /* Very light red/pink background */
}

/* Inline help/validation error message */
.help-inline {
    display: block;
    margin-top: 0.5rem;
    color: #D64545; /* Red text for error message */
    font-size: 0.875rem;
    font-weight: 500;
    padding-left: 0.2rem;
}

/* Textarea specific styles */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select element specific styling */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232C5F6F'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

/* ============================================
   BUTTONS (Revisiting the .btn.btn-primary from HTML)
   ============================================ */

/* The button and navigation classes */
.form-navigation {
    padding: 0;
}

.form-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.form-navigation li {
    display: inline-block;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px; /* Highly rounded pill shape */
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-weight: 700;
}

.btn-primary {
    /* Uses the same style as the .cta-button for consistency */
    background: linear-gradient(135deg, #E89A3C 0%, #D88A2C 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 154, 60, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D88A2C 0%, #C87A2C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 154, 60, 0.3);
}

.btn:active {
    transform: translateY(0);
}


/* ============================================
   ADVANCED INPUT TYPES (For future use)
   ============================================ */

/* Radio and Checkbox wrappers (if using a custom structure) */
.checkbox-group, .radio-group {
    margin-bottom: 1rem;
}

/* Hidden inputs are not styled, only the visible labels/spans */
input[type="checkbox"], input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom Checkbox/Radio design */
.checkbox-label, .radio-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    color: #444;
    user-select: none;
}

.custom-control {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #2C5F6F;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}

/* Custom Radio */
input[type="radio"] + .radio-label .custom-control {
    border-radius: 50%;
}

/* Checked state - Checkbox */
input[type="checkbox"]:checked + .checkbox-label .custom-control {
    background-color: #E89A3C;
    border-color: #E89A3C;
}
.custom-control::after {
    content: '';
    position: absolute;
    display: none;
}
input[type="checkbox"]:checked + .checkbox-label .custom-control::after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Checked state - Radio */
input[type="radio"]:checked + .radio-label .custom-control {
    border-color: #E89A3C;
}
input[type="radio"]:checked + .radio-label .custom-control::after {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E89A3C;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* File input styling */
input[type="file"] {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.5rem;
    background-color: #f9f9f9;
}

/* Range input styling (for modern appearance) */
input[type="range"] {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #f0f0f0;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E89A3C;
    cursor: pointer;
    margin-top: -6px; /* Center thumb on track */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E89A3C;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESPONSIVE / MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        flex: 1;
        order: 1;
    }

    .menu-toggle {
        display: block;
        padding: 1rem 0 1rem 1.5rem;
        order: 2;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding: 0;
        gap: 0;
        margin-top: 1rem;
        border-top: solid 1px #b1762d;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        min-height: 44px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .nav-links a.active {
        background-color: rgba(255, 255, 255, 0.3);
        color: white;
    }

    /* Mobile Dropdown Styles */
    .dropdown {
        position: static;
    }

    .dropdown-content {
        display: block !important;
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        min-width: 100%;
        margin-top: 0;
        border-radius: 0;
    }

    .dropdown-content a {
        color: white;
        padding: 0.875rem 2rem;
        min-height: 44px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
    }

    .dropdown > a {
        pointer-events: none;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        padding: 0 3rem;
    }

    .container > .carousel-container {
        margin: 0 -1rem;
    }

    .main-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .main-container > main {
        order: -1;
    }

    .sidebar {
        position: static;
    }

    .content {
        padding: 2rem;
    }

    .content h1 {
        font-size: 2rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .info-grid-section {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* ============================================
   GRID UTILITIES
   ============================================ */

/* Default grid - 2 columns */
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

/* Explicit column counts */
.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Medium breakpoint - for grids with wide content */
@media (max-width: 1024px) {
    .grid-md-1 {
        grid-template-columns: 1fr;
    }
}

/* Mobile - all grids reduce to 1 column */
@media (max-width: 768px) {
    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}