/* ------------------------------------------------------------------- */
/* WEconomics Recruitment - Site Styles (Updated with Form Styling)     */
/* ------------------------------------------------------------------- */

/* ============================
   VARIABLES & GLOBAL RESET
============================ */
:root {
    --color-primary: #00a896;      /* Teal for links/accents/Secondary Button */
    --color-secondary: #054a59;    /* Charcoal/Navy - Main branding/Footer/Headers */
    --color-highlight: #ffb300;    /* Gold/Yellow - Primary CTA */
    --color-text: #333;
    --color-light-bg: #f5fcfc;    /* Very light teal - Hero/Hover BG */
    --color-dark-bg: #054a59;     /* Secondary/Navy - Footer BG */
    --padding-sides: 30px;

    /* Consistent typography sizing */
    --font-body: Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Consistent field sizing */
    --field-height: 44px;
}

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

/* ============================
   BASE STYLES
============================ */
body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: var(--line-height-base);
    background: #fff;
}

section {
    padding: 60px var(--padding-sides);
}

/* ============================
   HEADER & NAV (STICKY)
============================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--padding-sides);
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav a.active,
.nav a:hover {
    color: var(--color-primary);
}

/* ============================
   BUTTONS
============================ */
/* General button styling */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
}

/* Primary CTA (Gold/Yellow) */
.btn-primary {
    background: var(--color-highlight);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background: #e6a200;
}

/* Secondary CTA (Teal) */
.btn-secondary {
    background: var(--color-primary);
    color: #fff;
}

.btn-secondary:hover {
    background: #008f80;
}

/* Icon spacing inside buttons */
.btn-primary i,
.btn-secondary i {
    margin-right: 5px;
}

/* ============================
   HERO
============================ */
.hero {
    text-align: center;
    background: var(--color-light-bg);
    padding: 80px var(--padding-sides);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-size: 3.2rem;
    white-space: normal;
    overflow: visible;
}

.hero p {
    margin: 5px 0 30px 0;
    font-size: 1.1rem;
}

/* Hero Dual Button Styling (Equal width for Hiring/Seeking) */
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-hero-dual {
    flex-basis: 250px;
}

/* ============================
   VALUE PROPOSITION (Why It Works)
============================ */
.value-prop {
    text-align: center;
}

.value-prop h2 {
    color: var(--color-secondary);
    margin-bottom: 40px;
    font-size: 2rem;
}

.value-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    width: 30%;
    min-width: 260px;
    padding: 20px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Content visible by default */
.value-item .visible-content {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-item .visible-content i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 50%;
    background: #f0f0f0;
}

/* Content hidden by default, shown on hover */
.value-item .hidden-content {
    display: none;
    text-align: center;
    padding: 0 10px;
}

.value-item .hidden-content h4 {
    color: var(--color-secondary);
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.value-item .hidden-content p {
    margin: 0;
    font-size: 1rem;
}

/* HOVER STATES */
.value-item:hover {
    background: var(--color-light-bg);
    border-color: var(--color-secondary);
}

.value-item:hover .visible-content {
    display: none;
}

.value-item:hover .hidden-content {
    display: block;
}

/* ============================
   HOW IT WORKS (PROCESS)
============================ */
.how-it-works {
    text-align: center;
    background: #f1f1f1;
}

.how-it-works h2 {
    color: var(--color-secondary);
    margin-bottom: 40px;
    font-size: 2rem;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    width: 30%;
    min-width: 280px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.step h3 {
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-size: 1.15rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
}

/* ============================
   SPLIT CTA
============================ */
.split-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    background: var(--color-light-bg);
    text-align: center;
}

.split {
    width: 45%;
    min-width: 280px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.split h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.split p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

/* ============================
   FINAL CTA
============================ */
.final-cta {
    text-align: center;
    padding: 60px var(--padding-sides);
    background: var(--color-dark-bg);
    color: #fff;
}

.final-cta h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.final-cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================
   FORMS (Job Seekers / Employers)
   NOTE: Remove inline <style> from your HTML head.
============================ */
.form-section {
    background-color: var(--color-light-bg);
    padding: 80px var(--padding-sides);
    text-align: center;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.form-container h2 {
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.form-container p {
    margin-bottom: 25px;
    color: #555;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--color-text);
    font-family: var(--font-body);
}

/* Consistent single-line field sizing */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    height: var(--field-height);
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    line-height: 1.2;
    box-sizing: border-box;
    background: #fff;
    color: var(--color-text);
}

/* Textareas stay full width but taller */
.form-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    line-height: 1.4;
    box-sizing: border-box;
    resize: vertical;
    background: #fff;
    color: var(--color-text);
}

/* Make selects look consistent across browsers */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M5.5 7.5L10 12l4.5-4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Checkbox alignment */
.form-group input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 8px;
}

/* Submit button matches field height */
.form-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    height: var(--field-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1rem;
}

/* ✅ Small optional improvement (focus state) */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,168,150,0.15);
}

/* ============================
   FOOTER
============================ */
.footer {
    text-align: center;
    padding: 20px;
    background: var(--color-secondary);
    color: #fff;
}

.footer a {
    color: var(--color-primary);
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

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

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 992px) {
    /* Tablet adjustments */
    .steps {
        gap: 20px;
    }
    .step {
        width: 45%;
    }
    .split-section {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile adjustments */
    .header {
        flex-direction: column;
        gap: 10px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0;
        flex-grow: 0;
    }

    .hero h1 {
        font-size: 2rem;
        white-space: normal;
    }

    /* Stack Hero buttons on mobile */
    .hero-ctas {
        flex-direction: column;
        gap: 10px;
    }

    .btn-hero-dual {
        flex-basis: auto;
        width: 100%;
    }

    /* Stack elements in columns */
    .value-grid,
    .steps,
    .split-section {
        flex-direction: column;
        gap: 30px;
    }

    .value-item,
    .step,
    .split {
        width: 100%;
        min-width: unset;
    }

    /* Slightly reduce padding for small screens */
    section {
        padding: 50px 20px;
    }

    .form-section {
        padding: 60px 20px;
    }

    .form-container {
        padding: 28px;
    }
}
