/*
 * American Horizon Global Services – Primary Stylesheet
 *
 * This stylesheet defines the visual language for the American Horizon Global
 * Services website. The design uses a refined palette of black, gold and
 * ivory to convey prestige and sophistication. Typography pairs an elegant
 * serif for headlines with a modern sans‑serif body font to balance
 * tradition and readability. Responsive layouts ensure a polished
 * experience across devices.
 */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Brand palette (dark metal and gold inspired by the AHOGS identity) */
    --primary-color: #0e0f11;       /* Deep metal grey for strength and depth */
    --secondary-color: #c7a349;     /* Soft gold for prestige and highlights */
    --background-color: #f7f5ee;    /* Ivory backdrop for warmth and clarity */
    --text-color: #262626;          /* Charcoal tone for comfortable reading */
    /* Typography */
    --heading-font: 'Merriweather', serif;
    --body-font: 'Open Sans', sans-serif;
}

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

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

header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo sizing */
header .logo img {
    /* Increase the height of the logo for greater brand prominence */
    height: 120px;
}

header .logo {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--background-color);
}

.hero {
    position: relative;
    height: 70vh;
    /* Updated hero to use the stylised gold world map on a dark marble background */
    background-image: url('assets/gold_world_map.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Dark overlay to improve contrast on the hero image */
/* Adjusted overlay on the hero image to improve legibility */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Increase the darkness of the hero overlay to improve contrast for text.
       A higher opacity here helps the light and gold text stand out against busy backgrounds. */
    /* Use a darker overlay to ensure white or light‑coloured text remains visible.
       An opacity of 0.7 provides a strong tint, balancing the rich background with readability. */
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    /* Add a semi‑transparent dark background behind the hero text to ensure legibility on bright backgrounds */
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--background-color);
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #bfa124;
}

.section {
    padding: 4rem 2rem;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    /* Use our signature gold for section headings to ensure visibility on dark backgrounds */
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
}

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

.card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-color);
}

.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Decorative background sections */
/* Decorative backgrounds use a lighter overlay to enhance readability */
.marble-bg {
    /* Reduce overlay opacity on decorative backgrounds to improve content legibility */
    /* Darken the decorative overlay further to ensure content remains legible on textured backgrounds */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/marble_texture.png');
    background-size: cover;
    background-attachment: fixed;
    color: var(--background-color);
}

.metal-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/metal_texture.png');
    background-size: cover;
    background-attachment: fixed;
    color: var(--background-color);
}

.office-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/office_abstract.png');
    background-size: cover;
    background-attachment: fixed;
    color: var(--background-color);
}

/* Fade-in animation for content elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-in-out both;
}

/* WhatsApp floating button */
.whatsapp-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #25d366; /* WhatsApp green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-floating:hover {
    transform: scale(1.05);
}

/* Language switcher */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.lang-switch a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.lang-switch a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-switch .active {
    text-decoration: underline;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--body-font);
}

.contact-form button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #bfa124;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    nav ul {
        /* Collapse the navigation into a vertical list on small screens */
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        display: none; /* Hide by default; toggled via the nav toggle button */
    }
}

/*
 * Responsive navigation toggle
 *
 * On smaller screens the horizontal navigation is collapsed and replaced by
 * a hamburger icon. Clicking the icon toggles the visibility of the menu.
 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 1rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: var(--secondary-color);
    transition: background-color 0.3s;
}

/* Show the nav toggle on small screens and adjust layout */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    nav ul.open {
        display: flex;
    }
    /* Make the header wrap so that the logo, toggle and language switch can stack */
    header {
        flex-wrap: wrap;
    }
    .lang-switch {
        margin-left: auto;
        margin-top: 0.5rem;
    }
    /* Adjust hero height on smaller devices */
    .hero {
        height: 50vh;
    }
    .hero-content {
        padding: 1rem;
        /* Maintain the dark background on small screens as well */
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 6px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    /* Make cards adjust to smaller screens */
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Newsletter form styling */
.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}
