/*
 * Main stylesheet for ICON CONSULTING. This file defines the base colours,
 * typography and layout across desktop and mobile devices. The look and feel
 * draws inspiration from luxury brands like Louis Vuitton and Ritz‑Carlton:
 * dark backgrounds, generous white/black spacing, refined gold accents and
 * elegant typography. Responsive breakpoints ensure an exceptional
 * experience on phones, tablets and desktops.
 */

/* CSS custom properties */
:root {
    --color-background: #0a0a0a;        /* deep charcoal background for body */
    --color-surface: #121212;           /* slightly lighter surface for alternating sections */
    --color-white: #ffffff;
    --color-gold: #C9A14A;              /* primary accent colour */
    --color-muted: #888888;             /* muted text colour for secondary information */
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition-time: 0.3s;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container to constrain content width */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-gold);
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--color-white);
}

ul {
    list-style: none;
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
    color: var(--color-white);
}

ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-time) ease;
}

a:hover {
    color: var(--color-white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-gold);
    letter-spacing: 1px;
}

/* Desktop navigation */
.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Ensure each language container inside the desktop nav displays its links inline */
.desktop-nav > div {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Provide spacing between individual navigation links inside a language group */
.desktop-nav > div > a {
    margin-right: 1.5rem;
    white-space: nowrap;
}
.desktop-nav > div > a:last-child {
    margin-right: 0;
}

/* In RTL language groups the spacing should be applied to the left instead */
.desktop-nav > .lang-ar > a {
    margin-right: 0;
    margin-left: 1.5rem;
}
.desktop-nav > .lang-ar > a:last-child {
    margin-left: 0;
}

/* Stack mobile navigation links vertically for each language */
.mobile-nav > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desktop-nav a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.25rem 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition-time) ease;
}

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

/* Language switcher */
.language-switcher {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
}

.language-switcher a {
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 600;
    transition: color var(--transition-time) ease;
}

.language-switcher a:hover {
    color: var(--color-white);
}

/* Hamburger icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    margin-left: 1rem;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-gold);
    border-radius: 2px;
    transition: transform var(--transition-time) ease, opacity var(--transition-time) ease;
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-content {
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.close-menu {
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
}

.mobile-nav a {
    display: block;
    margin: 1rem 0;
    font-size: 1.5rem;
    color: var(--color-gold);
    font-family: var(--font-heading);
    transition: color var(--transition-time) ease;
}

.mobile-nav a:hover {
    color: var(--color-white);
}

.mobile-language-switcher {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mobile-language-switcher a {
    font-size: 1rem;
    color: var(--color-gold);
    font-weight: 600;
}

/* Hero section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--color-gold);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    transition: background-color var(--transition-time) ease,
                color var(--transition-time) ease,
                border-color var(--transition-time) ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
}

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

.btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
}

/* Service sections */
.service-section {
    background-color: var(--color-background);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.service-section:nth-of-type(odd) {
    background-color: var(--color-surface);
}

.service-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.service-container.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1 1 50%;
}

.service-content {
    flex: 1 1 50%;
}

.service-content h2 {
    font-size: 2rem;
}

.service-content p {
    margin-bottom: 1.25rem;
}

.service-content ul {
    margin-bottom: 1.25rem;
}

/* Contact form styles */
.contact-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    color: var(--color-white);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-muted);
}

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

/* Form status messages */
.form-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status.success {
    color: #5cb85c;
}

.form-status.error {
    color: #d9534f;
}

/* About section */
.about-section {
    background-color: var(--color-background);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-image img {
    border-radius: 4px;
    object-fit: cover;
}

blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--color-gold);
    font-style: italic;
    color: var(--color-muted);
}

/* Footer */
.footer {
    background-color: var(--color-surface);
    color: var(--color-muted);
    padding: 2rem 0;
    font-size: 0.85rem;
    text-align: center;
}

.footer a {
    color: var(--color-gold);
}

.footer-container {
    padding-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .service-container {
        flex-direction: column;
    }
    .service-container.reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .btn-primary,
    .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .mobile-nav a {
        font-size: 1.25rem;
    }
}

/* Language visibility. Hidden by default except for selected language via JS. */
.lang-de,
.lang-ar {
    display: none;
}

.lang-ar {
    direction: rtl;
    text-align: justify;
}