/* ============================================
   COLOR SYSTEM - Define all colors here
   ============================================ */

:root {
    /* 1. Top Logo (Header) */
    --toplogo-fg: #ffffff;
    --toplogo-bg: #2d3748;

    /* 2. Menu (Navigation Bar) */
    --menu-bg: #2d3748;
    --menu-fg: #d4a017;
    --menu-hover-fg: #f4c430;
    --menu-hover-bg: #f8f8f8;
    --menu-active-fg: #f4c430;
    --menu-border: #fa5568;

    /* 3. Banner (Intro Section - replaces hero) */
    --banner-fg: #333333;
    --banner-bg: #ffffff;
    --banner-subtext: #666666;
    --banner-border: #e0e0e0;

    /* 4. Main Content */
    --main-fg: #333333;
    --main-bg: #ffffff;
    --main-heading: #333333;
    --main-subheading: #444444;
    --main-link: #667eea;
    --main-link-hover: #5568d3;

    /* 5. Footer */
    --footer-fg: #e0e0e0;
    --footer-bg: #2d3748;
    --footer-heading: #ffffff;
    --footer-link: #a0aec0;
    --footer-link-hover: #d4a017;
    --footer-border: #4a5568;

    /* 6. Background (Page background) */
    --background: #f9f9f9;

    /* Form Colors */
    --form-border: #e0e0e0;
    --form-border-focus: #667eea;
    --form-border-valid: #48bb78;
    --form-border-invalid: #e53e3e;
    --form-button-bg: #667eea;
    --form-button-hover: #5568d3;
    --form-button-disabled: #cccccc;

    /* form button colors */
    --form-button-bg: #667eea;
    --form-button-fg: #ffffff;        /* Add explicit white */
    --form-button-hover: #5568d3;
    --form-button-disabled: #cccccc;
    --form-button-disabled-fg: #666666;  /* Add for disabled state */

    /* Message Colors */
    --message-success-bg: #c6f6d5;
    --message-success-fg: #22543d;
    --message-success-border: #9ae6b4;
    --message-error-bg: #fed7d7;
    --message-error-fg: #742a2a;
    --message-error-border: #fc8181;

    /* Utility Colors */
    --text-muted: #666666;
    --text-lighter: #999999;
    --border-light: #f0f0f0;
    --shadow: rgba(0, 0, 0, 0.08);
}


/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    /* System font stack - matches device defaults */
    font-family:
        -apple-system,           /* iOS/macOS */
        BlinkMacSystemFont,      /* macOS Chrome */
        "Segoe UI",              /* Windows */
        Roboto,                  /* Android */
        "Noto Sans",             /* Linux */
        "Liberation Sans",       /* Linux fallback */
        Arial,                   /* Universal fallback */
        sans-serif;

        /* Gmail-style compact sizing */
        font-size: 14px;             /* Smaller base (was 16px) */
        line-height: 1.5;            /* Tighter line height (was 1.6) */
        color: var(--main-fg);              /* Gmail's text color */
        background: var(--background);            /* Pure var(--main-bg) (was #f5f5f5) */
    
        /* Improve rendering */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
}


/* Responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 13px;  /* Even smaller on mobile */
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Reduce hero text on mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;  /* Was 2rem in existing media query */
    }

    .hero-tagline {
        font-size: 1rem;     /* Was 1.1rem */
    }
    .container {
	    padding: 0 15px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;           /* Add this */
    box-sizing: border-box; /* Add this - ensures padding included in width */
}

/* Header - minimal header for now */

/* Header */
.site-header {
    background: var(--toplogo-bg);
    border-bottom: none;
    padding: 15px 0;
}

.site-header .logo {
    text-decoration: none;
    color: var(--toplogo-fg);
    font-size: 1.5rem;
    font-weight: 600;
}

.site-header .logo:hover {
    color: var(--footer-link-hover);  /* White on hover */
}

.site-header .container {
    display: flex;
    align-items: center;
}

/* Navigation */
.main-nav {
    background: var(--menu-bg);
    border-bottom: 1px solid var(--menu-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    position: relative;
    padding: 0;
}

.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 15px;           /* Adjusted */
    right: 15px;         /* Moved slightly inward */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;        /* Reduced padding */
    z-index: 101;
    width: 40px;         /* Add explicit width */
    height: 40px;        /* Add explicit height */
}


.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--main-fg);
    margin: 5px 0;
    transition: 0.3s;
}

/* Desktop navigation */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 12px 20px;     /* Reduced from 15px 25px */
    text-decoration: none;
    color: var(--menu-fg);
    font-weight: 500;
    font-size: 0.95rem;     /* Slightly smaller */
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--menu-hover-fg);
    background: var(--menu-hover-bg);
}

/* Mobile styles */
/* Mobile styles */
@media (max-width: 768px) {
    /* Navigation adjustments */
    .main-nav .container {
        padding: 0;
        position: relative;
        min-height: 50px; /* Ensure space for hamburger */
    }
    
    /* Show hamburger button */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide menu by default on mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 50px;         /* Below the hamburger button */
        left: 0;
        background: var(--toplogo-bg);
        border-bottom: 1px solid var(--form-border);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin: 0;
        padding: 0;
    }
    
    /* Show menu when active */
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
        margin: 0;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        padding: 15px 20px;
        text-align: left;
        display: block;
    }
    
    /* Animate hamburger to X when open */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}


/* Hero section 
.hero {
    background: linear-gradient(135deg, var(--main-link) 0%, #764ba2 100%);
    color: var(--main-bg);
    padding: 50px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.hero-tagline {
    font-size: 0.9rem;
    opacity: 0.95;
}
*/


/* Simple Intro section (replaces hero) */
.intro-section {
    background: var(--banner-bg);
    padding: 60px 20px 40px;
    text-align: center;
    border-bottom: 1px solid var(--banner-border);
}

.intro-section h1 {
    font-size: 2rem;
    color: var(--banner-fg);
    margin-bottom: 1rem;
    font-weight: 600;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--banner-subtext);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .intro-section {
        padding: 40px 20px 30px;
    }

    .intro-section h1 {
        font-size: 1.5rem;
    }

    .intro-section p {
        font-size: 1rem;
    }
}

/* Contact section */
.contact-section {
    padding: 60px 20px; /* revert to original */
    background: #f9f9ff; /* add subtle background */
}

/* Contact wrapper (replaces form-wrapper) */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--main-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}

.contact-wrapper h2 {
    margin-bottom: 1rem;
    color: var(--main-heading);
}

.contact-wrapper > p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Email button */
.contact-button {
    display: inline-block;
    padding: 15px 40px;
    margin: 30px 0;
    background: var(--form-button-bg);
    color: var(--form-button-fg);
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.contact-button:hover {
    background: var(--form-button-hover);
}

/* Contact details */
.contact-details {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-details a {
    color: var(--main-link);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--main-link-hover);
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 30px 20px;
    }

    .contact-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;	/* pull up more, add side margins */
    padding: 25px 15px; /* Tighter than 30px 20px */
    background: var(--main-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2 8px var(--shadow);
}

.form-wrapper h2 {
    margin-bottom: 1rem;
    color: var(--main-fg);
}

.form-wrapper > p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--main-fg);
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--form-border);
    color: var(--main-fg);
    background: var(--main-bg);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

input:invalid:not(:placeholder-shown) {
    border-color: var(--form-border-invalid);
}

input:valid:not(:placeholder-shown) {
    border-color: var(--form-border-valid);
}

button {
    width: 100%;
    padding: 12px;
    background: var(--form-button-bg);
    color: var(--form-button-fg);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover:not(:disabled) {
    background: var(--form-button-hover);
}

button:disabled {
    background: var(--form-button-disabled);
    color: var(--form-button-disabled-fg);
    cursor: not-allowed;
}

.optional {
    color: var(--text-lighter);
    font-size: 0.9rem;
    font-weight: normal;
}

/* Messages */
.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}


.message.success {
    background: var(--message-success-bg);
    color: var(--message-success-fg);
    border: 1px solid var(--message-success-border);
}

.message.error {
    background: var(--message-error-bg);
    color: var(--message-error-fg);
    border: 1px solid var(--message-error-border);
}


/* Honeypot - invisible */
.hp {
    position: absolute;
    left: -5000px;
    opacity: 0;
    pointer-events: none;
}

/* Content pages */
.content-page {
    background: var(--main-bg);
    min-height: 60vh;
}

.page-header {
    background: var(--banner-bg);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--menu-border);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--main-heading);
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--main-heading);
}

.page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--main-subheading);
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--main-fg);
}

.page-content ul, .page-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--main-link);
}

.page-content a:hover {
    color: var(--main-link-hover);
}


/* Footer subsection that has no color spec */
.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-fg);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--footer-heading);
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: var(--footer-fg);
}

.footer-section a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-fg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-links a {
        text-align: center;
    }
}
