/* --- WCAG COMPLIANCE: Color Palette, Typography, and Reset --- */
:root {
    --color-bg-dark: #121212;         /* Deep Charcoal */
    --color-text-light: #E0E0E0;      /* Off-White Text (High Contrast) */
    --color-accent-gold: #FFC300;     /* Sand Gold (High Contrast) */
    --color-accent-dark: #8B4513;     /* Muted secondary dark color */
    --font-primary: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6; /* WCAG: Good line height */
    /* --- NEW BACKGROUND IMAGE STYLES --- */
    background-image: url('background.png'); /* ⬅️ Replace path/filename */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps image fixed when scrolling */
    background-size: cover; /* Stretches and covers the entire body */
    /* background-blend-mode: multiply; /* Optional: Blends image with background color */
}

/* --- NEW STYLES TO CONTROL OPACITY --- */
/* We can't use 'opacity' on the body directly, as it affects all children (text, buttons), 
   so we apply the image and then use a pseudo-element for low opacity. */

body::before {
    content: "";
    position: fixed; /* Fixed position ensures it covers the whole viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');/* Same image path */
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    
    /* Low Opacity Setting */
    opacity: 0.35; /* Adjust this value (0.05 to 0.3) for your desired subtlety */
    z-index: -1; /* Puts the background layer behind all content */
    background-color: var(--color-bg-dark); /* Ensures a deep black base */
}

.email-link {
    color: var(--color-accent-neon-green); /* Use your brand color */
    text-decoration: none; /* Remove default underline */
    font-weight: bold;
    transition: color 0.3s;
}

.email-link:hover,
.email-link:focus {
    color: var(--color-accent-gold); /* Change color on hover for feedback */
    text-decoration: underline; /* Add underline on hover/focus for clarity */
    outline: 2px solid var(--color-accent-gold); /* WCAG focus indicator */
    outline-offset: 2px;
}

/* Ensure main content is visible above the background */
main {
    position: relative; 
    z-index: 1;
}

/* Style for the logo anchor link */
.logo-link {
    text-decoration: none; /* Removes the underline */
    color: inherit;       /* Ensures text color is inherited, though the span handles color */
}

/* Ensure the link has a proper focus state for WCAG compliance */
.logo-link:focus {
    outline: 2px solid var(--color-accent-neon-green);
    outline-offset: 4px;
}

/* Adjust the hero section background overlay if needed, 
   or you can remove the existing .background-overlay from the Hero section HTML 
   since the body now has a background. */
.hero-section .background-overlay {
    display: none; /* Hide the redundant hero-specific overlay */
}

/* WCAG: Skip Link Styling */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent-gold);
    color: var(--color-bg-dark);
    padding: 8px;
    z-index: 1000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* --- HEADER and NAVIGATION --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 5%;
    background: rgba(0, 0, 0, 0.9); /* Slight opacity for scroll effect */
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-accent-gold);
}
/* --- LOGO IMAGE STYLES (Dynamic Height) --- */
.header-logo {
    /* The key change: Use max-height to ensure it never exceeds the container's height */
    max-height: 100%; 
    height: auto; 
    width: auto; 
    /* Optional: Limit the width if the original logo is very wide */
    max-width: 200px; 
}
.sub-header {
    max-width: 170px; 
}
.site-header ul {
    list-style: none;
    display: flex;
}
.site-header a {
    color: var(--color-text-light);
    text-decoration: none;
    padding: 0 15px;
    /* WCAG: Focus/Hover styles must be distinct */
    transition: color 0.3s;
}
.site-header a:hover,
.site-header a:focus { /* Mandatory focus styling */
    color: var(--color-accent-gold);
    outline: 2px solid var(--color-accent-gold);
    outline-offset: 2px;
}

/* --- HERO SECTION STYLES --- */
.hero-section {
    min-height: 100vh; /* Single Page View: Full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
    text-align: center;
}

/* Thematic Background (Interconnected glowing lines/nodes) */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Replace with actual high-res digital contract image or pattern */
    background-image: radial-gradient(circle at center, #001f3f 0%, #000000 100%);
    opacity: 0.6; 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures text is above background */
    max-width: 900px;
}

.headline {
    font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem); /* Mobile Responsive Text */
    margin-bottom: 20px;
    color: #98ff4d; /* Key focus text */
}

.sub-headline {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
    margin-bottom: 40px;
}

/* --- CTA BUTTON STYLES (High Contrast) --- */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    background-color: var(--color-accent-gold);
    color: var(--color-bg-dark); /* High contrast text on the button */
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #FFD700; /* Slightly brighter on hover/focus */
    transform: translateY(-2px);
    /* WCAG: Highly visible focus ring */
    outline: 4px solid var(--color-text-light); 
    outline-offset: 2px;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }
    .site-header ul {
        padding-top: 10px;
    }
    .site-header a {
        padding: 5px 10px;
    }
    .hero-content {
        padding-top: 100px; /* Add space if header stacks */
    }
}

/* Styling the wrapper link */
.whatsapp-link-wrapper {
    /* Optional: If you want to position it as a fixed bottom button, use: */
    /* position: fixed; 
       bottom: 20px; 
       right: 20px; 
       z-index: 100; */
    
    display: inline-block; /* Essential for sizing */
    text-decoration: none;
}

/* Styling the div container */
.whatsapp-icon-container {
    width: 250px; /* Set the desired size of the icon container */
    overflow: hidden;
    /* Optional: Add a shadow for better visibility on dark background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); 
    transition: transform 0.2s;
}

/* Styling the image */
.whatsapp-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container without distortion */
}

/* WCAG Compliance: Hover and Focus States */
.whatsapp-link-wrapper:hover .whatsapp-icon-container {
    transform: scale(1.1); /* Zoom effect on hover */
}

.whatsapp-link-wrapper:focus {
    outline: 4px solid var(--color-accent-neon-green); /* High-contrast focus ring */
    outline-offset: 4px;
}

/* --- QR Code Container Styles --- */
.whatsapp-qr-code-box {
    /* Example: Position this in the footer or a dedicated contact section */
    display: inline-block;
    padding: 10px;
    background-color: var(--color-text-light); /* White background for scannability */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Subtle shadow on dark background */
    text-align: center;
    margin-top: 20px; /* Separator */
}

.qr-code-img {
    /* Set a fixed size for optimal scanning, typically 150px - 200px */
    width: 180px; 
    height: 180px;
    display: block;
    margin-bottom: 5px;
}

.qr-code-caption {
    font-size: 0.8rem;
    color: var(--color-bg-dark); /* Dark text on white box */
    font-weight: 500;
}
/* Target the link in all its states */
.white-link,
.white-link:link,
.white-link:visited,
.white-link:hover,
.white-link:active {
  /* Set the text color to white (or use the hex code #FFFFFF) */
  color: white !important;

  /* Optional: Remove the default underline */
  text-decoration: none;
}