:root {
    /* Refined professional palette */
    --brand-orange: #ff6a1a; 
    --brand-gold: #ffb24c;
    --brand-deep: #07263a;
    --brand-cyan: #17a3c1;
    --pastel-nav: rgba(255, 246, 240, 0.90); 

    --pastel-orange-light: #fff2e6; /* Noticeable pastel orange */
    --pastel-orange-border: rgba(255,106,26,0.15);
    --card-bg: var(--pastel-orange-light); 
    
    --text-color: #1a2b3c;
    --text-muted: #5a6b7c;
    --bg-color: #fafafa; /* Off-white background */
    
    --shadow-sm: 0 2px 4px rgba(7,38,58,0.04);
    --shadow-md: 0 10px 25px -5px rgba(7,38,58,0.1);
    --shadow-lg: 0 20px 40px -10px rgba(7,38,58,0.12);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

html {
    background-color: var(--bg-color);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

/* Watermark Background - Restoration */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw; /* Blown up large */
    height: 90vh;
    background-image: url('EMEF_logo_plain_1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07; /* Reduced to 10% opacity */
    z-index: -1; /* Sit between html background and body content */
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Centered content wrapper */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 90%;
}

/* Navigation - Glassmorphism */
nav {
    position: sticky;
    top: 0;
    background-color: var(--pastel-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 0; /* Slightly more padding */
    box-shadow: 0 1px 1px rgba(0,0,0,0.02);
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav .nav-inner {
    width: var(--max-width);
    max-width: 92%; /* Slightly wider container for nav */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--brand-deep);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px; /* Increased gap to prevent crowding */
}

.brand img.logo {
    width: 44px; /* Slightly smaller logo */
    height: auto;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px; /* Increased gap between links */
}

nav a {
    text-decoration: none;
    color: var(--brand-deep);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
    white-space: nowrap; /* Prevent wrapping */
}

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

/* Hamburger toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 10px;
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
    /* overflow: visible; removed hidden to prevent background clipping */
}

.hero {
    text-align: center;
    padding: 120px 0 80px;
    background: transparent; /* Ensure watermark shows through */
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: var(--brand-deep);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1; /* Bring text above watermark */
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 600; /* Darker weight */
    color: var(--brand-deep); /* Specific darker brand blue */
    margin-bottom: 40px;
    display: block;
}

/* About Page Vibrance */
.about-hero {
    background: transparent; /* Changed from linear-gradient to allow watermark through */
    border-bottom: 1px solid var(--pastel-orange-border);
}

.intro-box {
    max-width: 800px; 
    margin: 40px auto; 
    text-align: center;
    background: rgba(255, 242, 230, 0.7); /* Reduced opacity for watermark visibility */
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border-top: 4px solid var(--brand-orange);
    backdrop-filter: blur(5px);
}

.intro-box p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--brand-deep);
}

.intro-box strong {
    color: var(--brand-orange);
}

.hero p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--brand-deep); /* Specific darker brand blue */
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.cta-button {
    background-color: var(--brand-orange);
    color: white;
    padding: 18px 36px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 106, 26, 0.3);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-6px) scale(1.02); /* More obvious pop */
    box-shadow: 0 15px 30px rgba(255, 106, 26, 0.4);
    background-color: #ff7b34; /* Slightly lighter orange on hover */
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-deep);
    border: 1px solid rgba(7,38,58,0.1);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.cta-button.secondary:hover {
    background: #ffffff;
    border-color: var(--brand-orange);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 30px rgba(7,38,58,0.15);
}

.hero-image {
    margin-top: 80px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    outline: 2px solid var(--brand-gold);
    max-width: 90%;
    height: auto;
    width: 560px;
}

/* responsive grid helpers */
@media (max-width: 768px) {
    .hero-image {
        width: 100%;
        border-width: 4px;
        margin-top: 40px;
    }
}

/* Grid & Cards */
.services, .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.card {
    background: rgba(255, 242, 230, 0.7); /* Reduced opacity to see watermark through cards */
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--pastel-orange-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px); /* Slight blur for readability */
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-orange);
    background: #ffffff;
}

.card h3 {
    font-size: 1.5rem;
    margin-top: 24px;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.card .icon {
    width: 48px;
    height: 48px;
    background: var(--pastel-orange-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
}

.features .wide {
    grid-column: span 2;
}

/* Steps / Process */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: left;
    position: relative;
}

.step h4 {
    font-size: 1.4rem; /* Slightly larger */
    margin-bottom: 12px;
    color: var(--brand-deep);
    font-weight: 700;
}

.step p {
    color: var(--brand-deep); /* Darker text for readability */
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Steps Grid inside about page box */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

/* Footer */
footer {
    background: var(--brand-deep);
    color: white;
    padding: 80px 0 40px;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

footer h4 {
    color: white;
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
}

footer p {
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    max-width: 320px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer ul a:hover {
    color: var(--brand-gold);
}

footer .copyright {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h2 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .services, .features, .steps { grid-template-columns: 1fr; }
    .features .wide { grid-column: span 1; }
    .hero h2 { font-size: 2.5rem; }
    nav ul { display: none; }
    .nav-toggle { display: block; }
}