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

/* CSS Variables for Light/Dark Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #000000;
    --text-secondary: #333333;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --top-bar-bg: #000000;
    --top-bar-text: #ffffff;
    --transition: all 0.3s ease;
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #111111;
        --bg-secondary: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --accent-red: #ef4444;
        --accent-red-hover: #f87171;
        --border-color: #374151;
        --card-bg: #1f1f1f;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --top-bar-bg: #000000;
        --top-bar-text: #ffffff;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* TOP BAR */
.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--top-bar-text);
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    z-index: 1001;
}

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

.top-bar-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.top-bar-social a:hover {
    color: var(--accent-red);
}

/* MAIN HEADER & NAVIGATION */
.main-header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-red);
    line-height: 1.2;
}

.logo-text span {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: normal;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 16px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-red);
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--accent-red);
}

/* HERO SECTION */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--accent-red);
}

.hero p {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.hero-location {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-red);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--accent-red);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-red);
}

.btn-outline:hover {
    background-color: var(--accent-red);
    color: white;
}

/* ABOUT SECTION */
.about-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 40px;
    color: var(--accent-red);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-red);
}

.section-title p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 18px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--accent-red);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 17px;
}

.about-highlight {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-red);
    margin-top: 30px;
}

.about-highlight p {
    margin-bottom: 0;
    font-weight: 500;
}

.about-image {
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* SERVICES SECTION */
.services-section {
    background-color: var(--bg-secondary);
    padding: 80px 0;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.15);
    border-color: var(--accent-red);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-red);
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--accent-red);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.service-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    border-top: 1px solid transparent;
}

.service-card.active {
    border-color: var(--accent-red);
}

.service-card.active .service-expand {
    max-height: 400px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    padding-top: 20px;
}

.service-detail {
    color: var(--text-secondary);
}

.service-detail h4 {
    color: var(--accent-red);
    margin-bottom: 10px;
    font-size: 16px;
}

.service-detail ul {
    margin-top: 10px;
    margin-left: 20px;
}

.service-detail li {
    margin-bottom: 8px;
    font-size: 14px;
}

.service-badge {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 10px;
}

/* CONTACT SECTION */
.contact-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--accent-red);
}

.contact-details {
    margin: 35px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text {
    color: var(--text-secondary);
}

.contact-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s;
}

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

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

/* FOOTER */
.footer {
    background-color: var(--top-bar-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-section h3 {
    color: var(--accent-red);
    margin-bottom: 25px;
    font-size: 22px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-red);
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.8;
}

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

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

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.8;
}

.cape-town-badge {
    background-color: var(--accent-red);
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        box-shadow: var(--shadow);
    }

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

    .nav-menu a::after {
        display: none;
    }

    .hero {
        padding: 80px 20px;
    }

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

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 350px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-contact {
        flex-direction: column;
        gap: 8px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-text span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .hero h1 {
        font-size: 28px;
    }

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

    .contact-container {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ==================== NEW STYLES FOR CAPE TOWN IMAGES AND THEME TOGGLE ==================== */

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 0;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
}

.theme-toggle i {
    color: white;
    font-size: 14px;
}

.theme-toggle .fa-sun {
    display: none;
}

/* Dark mode styles for toggle */
@media (prefers-color-scheme: dark) {
    .theme-toggle .fa-moon {
        display: none;
    }
    .theme-toggle .fa-sun {
        display: block;
    }
}

/* Manual dark mode class */
body.dark-mode {
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent-red: #ef4444;
    --accent-red-hover: #f87171;
    --border-color: #374151;
    --card-bg: #1f1f1f;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

body.dark-mode .theme-toggle .fa-sun {
    display: block;
}

/* Cape Town Header Image */
.cape-town-header-image {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.cape-town-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cape-town-header-image:hover img {
    transform: scale(1.05);
}

.image-overlay-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, var(--accent-red), transparent);
    padding: 10px 30px;
    border-radius: 0 30px 30px 0;
}

/* Cape Town Footer Image */
.cape-town-footer-image {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 50px;
    box-shadow: var(--shadow);
}

.cape-town-footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
}

.cape-town-footer-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background-color: rgba(220, 38, 38, 0.8);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* Style for clickable contact links */
.contact-text a {
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--accent-red) !important;
    text-decoration: underline !important;
}

/* Top bar link styles */
.top-bar-contact a {
    transition: color 0.3s ease;
}

.top-bar-contact a:hover {
    color: var(--accent-red) !important;
}

/* Footer link styles */
.footer-section a {
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-red) !important;
    padding-left: 5px;
}

/* Social media icon styles */
.top-bar-social {
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-bar-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    transition: all 0.3s ease;
}

.top-bar-social a:hover {
    background-color: var(--accent-red);
    transform: translateY(-3px);
}

.top-bar-social i {
    font-size: 14px;
    color: white;
}

/* Responsive adjustments for new images */
@media (max-width: 768px) {
    .cape-town-header-image {
        height: 200px;
        margin: 30px 0;
    }
    
    .image-overlay-text {
        font-size: 24px;
        bottom: 20px;
        left: 20px;
        padding: 8px 20px;
    }
    
    .cape-town-footer-image {
        height: 180px;
        margin-top: 40px;
    }
    
    .image-caption {
        font-size: 16px;
        bottom: 15px;
        right: 20px;
        padding: 6px 15px;
    }
    
    .top-bar-social {
        gap: 5px;
    }
    
    .top-bar-social a {
        width: 28px;
        height: 28px;
        line-height: 28px;
    }
    
    .theme-toggle {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .cape-town-header-image {
        height: 150px;
    }
    
    .image-overlay-text {
        font-size: 18px;
        bottom: 15px;
        left: 15px;
        padding: 5px 15px;
    }
    
    .image-caption {
        font-size: 14px;
        padding: 4px 12px;
        bottom: 10px;
        right: 15px;
    }
}