/* AssuraHome - Professional Light Brown/Taupe Theme */

/* ===== CSS VARIABLES ===== */
:root {
    /* Light Brown/Taupe Color Palette */
    --primary-color: #D4B8B1;        /* Main light brown from brand image */
    --primary-dark: #C4A298;         /* Darker shade */
    --primary-light: #E4C8C1;       /* Lighter shade */
    --secondary-color: #8D7067;      /* Complementary brown */
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #FEFEFE;
    --light-gray: #F8F8F8;
    --gray: #E5E5E5;
    --dark-gray: #666666;
    --text-color: #333333;
    --text-light: #555555;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --border-radius: 8px;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(212, 184, 177, 0.1);
    --shadow-medium: 0 4px 20px rgba(212, 184, 177, 0.15);
    --shadow-heavy: 0 8px 30px rgba(212, 184, 177, 0.2);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--off-white);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-accept {
    background-color: var(--primary-color);
    color: var(--white);
    margin-right: 10px;
}

.btn-decline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-decline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-preferences {
    background-color: var(--secondary-color);
    color: var(--white);
    margin: 0 10px;
}

.btn-preferences:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--shadow-heavy);
    z-index: 10000;
    padding: 20px 0;
    animation: slideUp 0.5s ease-out;
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.privacy-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: underline;
    margin: 0 5px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.nav-logo .logo-link:hover {
    transform: scale(1.05);
}

.nav-logo .logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Social Links in Navigation */
.nav-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--off-white) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.mission-vision {
    display: grid;
    gap: 2rem;
}

.mission, .vision {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
}

.mission h3, .vision h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--section-padding);
    background: var(--off-white);
}

/* Text overflow prevention */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* ===== TEAM SECTION ===== */
.team {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-items: center;
}

.team-member {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
    max-width: 350px;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 2rem;
}

.member-info h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.member-info h4 {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
    background: var(--off-white);
}

/* Modern Contact Layout */
.contact-modern {
    margin-top: 3rem;
}

/* 2x2 Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-dark);
}

/* Navigation Links (Centered) */
.navigation-center {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.nav-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.nav-button i {
    font-size: 1.2rem;
}

/* Modern Hours Section */
.hours-modern {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hours-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.hours-modern h4 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--light-gray);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.hour-item:hover {
    background: var(--gray);
}

.hour-item .day {
    font-weight: 600;
    color: var(--primary-dark);
}

.hour-item .time {
    color: var(--text-light);
}



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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

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

/* Footer Social Links */
.social-links {
    margin-top: 1.5rem;
}

.social-links h4 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--secondary-color) !important;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin: 0.25rem 0.5rem 0.25rem 0;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.social-link:hover {
    background: var(--white);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.1rem;
}

/* ===== MODAL SYSTEM ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.hidden {
    display: none !important;
}



.modal-content {
    background: var(--white) !important;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    max-height: 90vh;
    min-height: 400px;
    overflow-y: auto;
    position: relative;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--primary-color);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
    display: block !important;
    visibility: visible !important;
}

/* Custom scrollbar for webkit browsers */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.modal-content h2 {
    color: var(--primary-dark) !important;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: block !important;
    visibility: visible !important;
}



.modal-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
}

.modal-content h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
}

/* Close button styling */
.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-content .close:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Modal content styling for all modal types */
.privacy-content,
.terms-content {
    width: 100%;
    display: block;
    visibility: visible;
}

.privacy-content h3,
.terms-content h3 {
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.privacy-content h4,
.terms-content h4 {
    color: var(--secondary-color);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.privacy-content ul,
.terms-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-color);
}

.privacy-content p,
.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1rem;
}

.privacy-content strong,
.terms-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.privacy-content a,
.terms-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.privacy-content a:hover,
.terms-content a:hover {
    color: var(--primary-dark);
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-preferences-content {
    max-width: 900px;
}

.cookie-intro {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.cookie-category {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    box-shadow: var(--shadow-light);
    border-color: var(--primary-color);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-category-title h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.cookie-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-badge.required {
    background: var(--secondary-color);
    color: var(--white);
}

.cookie-badge.optional {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.cookie-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-list li {
    padding: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-gray);
}

.cookie-list li:last-child {
    border-bottom: none;
}

.cookie-list strong {
    color: var(--primary-dark);
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle.disabled .toggle-slider {
    cursor: not-allowed;
    background-color: var(--secondary-color);
}

/* Cookie Modal Actions */
.cookie-actions-modal {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray);
    flex-wrap: wrap;
}

.cookie-legal-info {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 6px;
    text-align: center;
}

.cookie-legal-info p {
    margin: 0.5rem 0;
}

.cookie-legal-info small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.cookie-legal-info a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */

/* iPad Pro and Large Tablets */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .contact-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .hours-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }
    
    .nav-social {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .navigation-center {
        gap: 1rem;
    }
    
    .nav-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member {
        max-width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
}

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

    h1 { font-size: 1.8rem; line-height: 1.2; }
    h2 { font-size: 1.6rem; line-height: 1.3; }
    h3 { font-size: 1.3rem; line-height: 1.3; }
    
    .hero {
        padding: 100px 0 50px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .mission, .vision {
        padding: 1.25rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-content {
        padding: 1.25rem;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member {
        max-width: 100%;
    }
    
    .member-image {
        height: 250px;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .member-info h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .member-info h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .member-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        margin-top: 1rem;
    }
    
    .social-link {
        display: flex;
        justify-content: center;
        margin: 0.25rem auto;
        max-width: 200px;
    }

    .modal-content {
        margin: 0.5rem;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .modal-content .close {
        top: 0.75rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    .privacy-content h3,
    .terms-content h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .privacy-content h4,
    .terms-content h4 {
        font-size: 1rem;
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .navigation-center {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .hours-modern {
        padding: 2rem 1.5rem;
    }
    
    .hour-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    /* Cookie Preferences Responsive */
    .cookie-preferences-content {
        padding: 1.5rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cookie-actions-modal {
        flex-direction: column;
    }
    
    .cookie-actions-modal .btn {
        width: 100%;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #8B4513;
        --text-color: #000000;
        --text-light: #000000;
    }
}

/* Mobile device specific fixes */
@media screen and (max-device-width: 768px) {
    /* Prevent zoom issues that can trigger authentication */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Prevent authentication popup triggers */
    * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection for inputs and content */
    input, textarea, p, h1, h2, h3, h4, h5, h6 {
        -webkit-user-select: text;
        -khtml-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-appearance: none) {
    .header {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}