/* Mobile-First Responsive Design */

/* Base Mobile Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f7f5;
    background-image: url('images/stone-arch-bg.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: repeat;
    background-size: auto;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(71, 138, 201, 0.02) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(212, 165, 116, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Mobile Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.header-top {
    background: linear-gradient(135deg, #d4a574 0%, #c9945f 100%);
    color: white;
    padding: 8px 0;
    font-size: 12px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.location {
    display: none;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: white;
    font-size: 14px;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 10px 0;
    border-bottom: 2px solid #e8f4f8;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

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

.nav-menu li {
    border-bottom: 1px solid #eee;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: linear-gradient(90deg, #f5f5f5 0%, #e8f4f8 100%);
    color: #d4a574;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dropdown-menu {
    display: none;
    background: #f9f9f9;
    flex-direction: column;
    list-style: none;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-menu li a {
    padding-left: 40px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    padding-left: 45px;
    color: #d4a574;
    font-weight: 500;
}

/* Page Title */
.page-title {
    background: linear-gradient(135deg, #d4a574 0%, #c9945f 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
}

.page-title::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-title h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-title p {
    font-size: 14px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sections */
section {
    padding: 30px 0;
}

section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-family: 'Oswald', sans-serif;
}

section p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

/* Forms */
.contact-form-section,
.page-content {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 5px rgba(212, 165, 116, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #c9945f 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c9945f 0%, #b8844d 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

/* Grid Layouts */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

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

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

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

/* Cards */
.card,
.benefit-card,
.amenity-card,
.unit-card,
.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.card:hover,
.benefit-card:hover,
.amenity-card:hover,
.unit-card:hover,
.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.3);
    border-color: #d4a574;
}

.card img,
.amenity-card img,
.unit-card img,
.listing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content,
.card-body {
    padding: 20px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.card p {
    font-size: 13px;
    color: #666;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 30px 20px 20px;
    margin-top: 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #478ac9 0%, #d4a574 50%, #478ac9 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #d4a574;
    font-family: 'Oswald', sans-serif;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #d4a574 0%, transparent 100%);
}

.footer-section p {
    font-size: 13px;
    line-height: 1.8;
    color: #ccc;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #d4a574;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
}

.social-icons-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #d4a574 0%, #c9945f 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.social-icons-footer a:hover {
    background: linear-gradient(135deg, #c9945f 0%, #b8844d 100%);
    transform: scale(1.15) rotateZ(10deg);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #999;
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
        padding: 0 20px;
    }

    .location {
        display: inline;
    }

    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .nav-menu li {
        border-bottom: none;
        position: relative;
    }

    .nav-menu a {
        padding: 15px 15px;
        font-size: 14px;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        min-width: 200px;
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li a {
        padding: 12px 20px;
        padding-left: 20px;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .page-title h1 {
        font-size: 36px;
    }

    .page-title p {
        font-size: 16px;
    }

    section h2 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        width: auto;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1000px;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    section {
        padding: 50px 0;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .card,
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .menu-toggle,
    .btn {
        display: none;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }
}


/* Communication Popup Mobile Styles */
.communication-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #478ac9;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.communication-btn:hover {
    background: #3a6fa8;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.communication-btn.active {
    background: #d4a574;
}

.communication-popup {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: calc(100% - 30px);
    max-width: 350px;
    height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 998;
    overflow: hidden;
}

.communication-popup.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.communication-header {
    background: linear-gradient(135deg, #478ac9 0%, #3a6fa8 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.communication-header h3 {
    margin: 0;
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
}

.communication-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.communication-close:active {
    transform: scale(1.2);
}

.communication-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
    -webkit-overflow-scrolling: touch;
}

.message {
    display: flex;
    margin-bottom: 6px;
    animation: slideIn 0.3s ease;
}

.message p {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 85%;
    word-wrap: break-word;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message p {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    background: #478ac9;
    color: white;
}

.communication-input {
    display: flex;
    gap: 6px;
    padding: 12px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.communication-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.communication-input input:focus {
    outline: none;
    border-color: #478ac9;
    box-shadow: 0 0 0 2px rgba(71, 138, 201, 0.1);
}

.send-btn {
    background: #478ac9;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.send-btn:active {
    background: #3a6fa8;
    transform: scale(0.95);
}

/* Tablet Styles */
@media (min-width: 768px) {
    .communication-btn {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .communication-popup {
        bottom: 100px;
        right: 30px;
        width: 350px;
        height: 500px;
    }

    .communication-header {
        padding: 20px;
    }

    .communication-header h3 {
        font-size: 18px;
    }

    .communication-close {
        font-size: 28px;
        width: 30px;
        height: 30px;
    }

    .chat-messages {
        padding: 20px;
        gap: 12px;
    }

    .message p {
        max-width: 80%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .communication-input {
        padding: 15px;
        gap: 8px;
    }

    .communication-input input {
        padding: 10px 16px;
        font-size: 14px;
    }

    .send-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}


/* Lifestyle Carousel Mobile */
.carousel-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 0 15px;
}

.carousel-item {
    height: 200px;
    border-radius: 8px;
}

.carousel-label {
    font-size: 24px;
}

@media (min-width: 480px) {
    .carousel-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-item {
        height: 220px;
    }
}

@media (min-width: 768px) {
    .carousel-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .carousel-label {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .carousel-container {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .carousel-item {
        height: 300px;
    }
}

/* Promotions Carousel Mobile */
.promotions-carousel {
    height: 300px;
}

.promo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-content {
    text-align: center;
    padding: 20px;
    max-width: 100%;
}

.promo-content h4 {
    font-size: 14px;
}

.promo-content h2 {
    font-size: 24px;
}

.promo-content p {
    font-size: 13px;
}

@media (min-width: 480px) {
    .promotions-carousel {
        height: 350px;
    }
    
    .promo-content h2 {
        font-size: 28px;
    }
    
    .promo-content p {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .promotions-carousel {
        height: 400px;
    }
    
    .promo-content {
        text-align: right;
        max-width: 600px;
    }
    
    .promo-content h2 {
        font-size: 36px;
    }
    
    .promo-content h4 {
        font-size: 16px;
    }
}

/* Hero Section Mobile */
.hero {
    padding: 40px 20px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 16px;
    margin-bottom: 20px;
}

.cta-buttons {
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
}

/* About Section Mobile */
.about-content {
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-images {
    flex-direction: column;
    gap: 15px;
}

.about-img {
    height: 250px;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .about-images {
        flex-direction: row;
        gap: 20px;
    }
    
    .about-img {
        height: 300px;
    }
}

/* Statistics Section Mobile */
.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item h3 {
    font-size: 32px;
}

.stat-item p {
    font-size: 12px;
}

@media (min-width: 480px) {
    .stat-item h3 {
        font-size: 36px;
    }
    
    .stat-item p {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .stat-item h3 {
        font-size: 42px;
    }
}

/* Service Providers Mobile */
.providers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.provider-logo {
    min-height: 100px;
}

@media (min-width: 480px) {
    .providers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .provider-logo {
        min-height: 110px;
    }
}

@media (min-width: 768px) {
    .providers-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 25px;
    }
    
    .provider-logo {
        min-height: 120px;
    }
}

/* Villages Grid Mobile */
.villages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.village-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.village-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.village-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.village-card h4 a {
    color: #478ac9;
    text-decoration: none;
    transition: color 0.3s;
}

.village-card h4 a:hover {
    color: #d4a574;
}

.village-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

@media (min-width: 480px) {
    .villages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .villages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .village-card {
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .villages-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* CTA Section Mobile */
.cta-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 14px;
    margin-bottom: 15px;
}

.cta-section .btn {
    display: block;
    margin: 10px 0;
}

@media (min-width: 480px) {
    .cta-section .btn {
        display: inline-block;
        margin: 0 10px;
    }
}

/* Features List Mobile */
.features-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.features-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #478ac9;
    font-weight: bold;
}

/* Footer Mobile Enhancements */
.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section ul li a {
    font-size: 12px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Disabled Links */
.disabled-link {
    color: #999 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.disabled-link:hover {
    color: #999 !important;
    background: transparent !important;
}

/* Stone Arch shared contact layer — Quiet Architectural Utility: calm prominence, material clarity, and one consistent WhatsApp action across every route. */
.communication-btn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 18px;
    background: #1f8f62;
    color: #fffdf8;
    box-shadow: 0 12px 28px rgba(22, 38, 30, 0.22), 0 3px 8px rgba(22, 38, 30, 0.14);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1), background-color 180ms ease;
}

.communication-btn:hover {
    background: #197650;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(22, 38, 30, 0.25), 0 4px 10px rgba(22, 38, 30, 0.16);
}

.communication-btn:active {
    transform: translateY(0) scale(0.97);
}

.communication-btn:focus-visible,
.communication-close:focus-visible,
.send-btn:focus-visible,
.whatsapp-direct-link:focus-visible,
.communication-input input:focus-visible {
    outline: 3px solid rgba(31, 143, 98, 0.38);
    outline-offset: 3px;
}

.communication-btn.active {
    background: #173d2d;
    transform: rotate(8deg);
}

.communication-popup {
    position: fixed;
    right: 28px;
    bottom: 100px;
    z-index: 1099;
    display: flex;
    flex-direction: column;
    width: min(368px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 120px));
    overflow: hidden;
    border: 1px solid rgba(37, 54, 45, 0.14);
    border-radius: 22px 22px 14px 22px;
    background: #fffdf8;
    box-shadow: 0 24px 70px rgba(22, 38, 30, 0.23), 0 5px 16px rgba(22, 38, 30, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1), transform 220ms cubic-bezier(0.23, 1, 0.32, 1), visibility 220ms;
}

.communication-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.communication-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 20px;
    background: #1d2a24;
    color: #fffdf8;
}

.communication-heading {
    min-width: 0;
}

.communication-kicker {
    display: block;
    margin-bottom: 8px;
    color: #9fd6b9;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.2;
}

.communication-header h3 {
    margin: 0;
    max-width: 260px;
    color: #fffdf8;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.14;
}

.communication-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -3px -3px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: transparent;
    color: #fffdf8;
    cursor: pointer;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.communication-close:hover {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(6deg);
}

.communication-body {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    background: #f4f1eb;
}

.chat-messages {
    display: flex;
    min-height: 152px;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 20px;
    background: #f4f1eb;
    -webkit-overflow-scrolling: touch;
}

.message {
    display: flex;
    margin: 0;
    animation: stoneArchMessageIn 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes stoneArchMessageIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.message p {
    max-width: 86%;
    margin: 0;
    padding: 12px 14px;
    border-radius: 4px 16px 16px 16px;
    color: #334138;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.48;
    word-wrap: break-word;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message p {
    border: 1px solid rgba(37, 54, 45, 0.10);
    background: #fffdf8;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    border-radius: 16px 4px 16px 16px;
    background: #1f8f62;
    color: #fffdf8;
}

.communication-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 12px;
    border-top: 1px solid rgba(37, 54, 45, 0.10);
    background: #fffdf8;
}

.communication-input input {
    min-width: 0;
    flex: 1;
    height: 42px;
    border: 1px solid rgba(37, 54, 45, 0.18);
    border-radius: 8px;
    padding: 0 13px;
    background: #fffdf8;
    color: #24342b;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.communication-input input::placeholder {
    color: #7c887f;
}

.communication-input input:focus {
    border-color: #1f8f62;
    box-shadow: 0 0 0 3px rgba(31, 143, 98, 0.12);
    outline: none;
}

.send-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 13px;
    background: #1f8f62;
    color: #fffdf8;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 160ms ease, transform 160ms ease;
}

.send-btn:hover {
    background: #197650;
}

.send-btn:active {
    transform: scale(0.97);
}

.send-btn i,
.whatsapp-direct-link i {
    font-size: 17px;
}

.whatsapp-direct-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 16px;
    border: 1px solid rgba(31, 143, 98, 0.28);
    border-radius: 8px;
    padding: 11px 12px;
    background: rgba(31, 143, 98, 0.07);
    color: #176746;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.whatsapp-direct-link:hover {
    border-color: rgba(31, 143, 98, 0.50);
    background: rgba(31, 143, 98, 0.13);
    transform: translateY(-1px);
}

.whatsapp-link-arrow {
    margin-left: auto;
    font-size: 17px;
    line-height: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 640px) {
    .communication-btn {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 26px;
    }

    .communication-popup {
        right: 16px;
        bottom: 84px;
        width: calc(100vw - 32px);
        max-height: calc(100vh - 104px);
        border-radius: 18px 18px 12px 18px;
    }

    .communication-header {
        padding: 18px 18px 17px;
    }

    .communication-header h3 {
        max-width: 230px;
        font-size: 20px;
    }

    .chat-messages {
        min-height: 132px;
        padding: 16px;
    }

    .communication-input {
        padding: 12px;
    }

    .communication-input input {
        height: 40px;
        font-size: 13px;
    }

    .send-btn {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .send-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .whatsapp-direct-link {
        margin: 0 12px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .communication-btn,
    .communication-popup,
    .communication-close,
    .send-btn,
    .whatsapp-direct-link {
        transition: none;
    }

    .message {
        animation: none;
    }
}



/* Dance with Katlego responsive treatment */
@media (max-width: 768px) {
    .dance-katlego-ad { padding: 52px 0; }
    .dance-katlego-grid { grid-template-columns: 1fr; gap: 30px; }
    .dance-katlego-copy { max-width: none; }
    .dance-katlego-copy h2 { font-size: clamp(44px, 14vw, 64px); }
    .dance-katlego-lead { font-size: 25px; }
    .dance-katlego-body { font-size: 16px; }
    .dance-katlego-visual { min-height: 270px; border-width: 6px; transform: rotate(0.5deg); }
    .dance-katlego-visual img { min-height: 270px; }
    .dance-katlego-stamp { right: 16px; bottom: 16px; width: 86px; height: 86px; }
}

@media (max-width: 420px) {
    .dance-katlego-highlights { gap: 7px; }
    .dance-katlego-highlights span { font-size: 12px; padding: 8px 10px; }
    .dance-katlego-cta { width: 100%; justify-content: center; }
}

/* Refined mobile navigation */
@media (max-width: 768px) {
    body.menu-open { overflow: hidden; }
    body.menu-open::after { content: ''; position: fixed; inset: 0; z-index: 998; background: rgba(31, 26, 20, .38); pointer-events: none; }
    .header { z-index: 1100; }
    .navbar { position: relative; padding: 8px 0; }
    .navbar .container { min-height: 58px; }
    .logo img { height: 48px; }
    .menu-toggle { position: relative; z-index: 1102; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 9px; border: 1px solid #dfc7a5; border-radius: 9px; background: #fffaf3; }
    .menu-toggle:focus-visible { outline: 3px solid rgba(183, 137, 74, .3); outline-offset: 2px; }
    .menu-toggle span { width: 25px; height: 3px; margin: 3px 0; background: #8e682f; }
    .nav-menu { top: 100%; z-index: 1101; display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; width: 100%; max-height: calc(100vh - 76px); padding: 8px 12px 24px; border-top: 3px solid #b7894a; border-radius: 0 0 14px 14px; box-shadow: 0 18px 35px rgba(31, 26, 20, .22); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
    .nav-menu.active { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-menu > li { border-bottom: 1px solid #eee7de; }
    .nav-menu > li:last-child { border-bottom: 0; }
    .nav-menu a { display: flex; align-items: center; min-height: 52px; padding: 14px 12px; border-radius: 7px; color: #30271d; font-size: 15px; font-weight: 600; }
    .nav-menu a:focus-visible, .nav-menu a:hover { outline: none; background: #fffaf3; color: #8e682f; }
    .dropdown > a { justify-content: space-between; }
    .dropdown > a::after { content: '+'; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #d7bd98; border-radius: 50%; color: #8e682f; font-size: 19px; font-weight: 400; line-height: 1; }
    .dropdown.open > a::after { content: '−'; background: #8e682f; color: #fff; }
    .dropdown-menu { position: static; display: none; visibility: visible; opacity: 1; transform: none; max-height: none; overflow: visible; margin: 0 0 8px 8px; padding: 4px 0; border-left: 3px solid #d4a574; border-radius: 0; background: #fffaf3; box-shadow: none; }
    .dropdown-menu.active { display: flex; }
    .dropdown-menu li { border-bottom: 1px solid #f0e9df; }
    .dropdown-menu li:last-child { border-bottom: 0; }
    .dropdown-menu li a { min-height: 44px; padding: 10px 14px 10px 18px; color: #6d5b43; font-size: 14px; font-weight: 500; }
}


/* Afro-Bae product promotion */
.afro-bae-promo { padding: 42px 0; }
.afro-bae-promo-grid { grid-template-columns: 1fr; gap: 30px; }
.afro-bae-promo h2 { font-size: 42px; }
.afro-bae-lead { font-size: 16px; }
.afro-bae-offer strong { font-size: 54px; }
.afro-bae-actions { align-items: stretch; }
.afro-bae-actions .btn { width: 100%; text-align: center; }
.afro-bae-promo-media video { max-width: 340px; }


/* Bottom reference-style hair-care banner */
.bottom-hair-banner-inner { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.bottom-hair-banner-copy { text-align: center; }
.bottom-hair-banner h2 { font-size: 36px; }
.bottom-hair-tagline { font-size: 17px; }
.bottom-hair-availability { font-size: 11px; line-height: 1.5; }
.bottom-hair-price { margin-right: 12px; font-size: 42px; }
.bottom-hair-banner-product { height: 230px; width: min(100%, 360px); margin: 0 auto; }


/* Separate product lineup in the bottom banner */
.bottom-hair-banner-products { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bottom-hair-product-card img { height: 150px; }
.bottom-hair-product-card figcaption { font-size: 9px; letter-spacing: .04em; }


/* Transparent cutout product display */
.bottom-hair-product-card img { height: 170px; padding: 8px 4px 0; }
