/* Base Styles */
:root {
    --primary-color: #a94c3c; /* Reddish brown from the image */
    --secondary-color: #f8d3a7; /* Light peach from the image */
    --accent-color: #e79c7a; /* Salmon color from the image */
    --dark-accent: #7a5544; /* Brown from the image */
    --text-color: #f8f9fa;
    --light-color: #f8f9fa;
    --dark-color: #000000; /* Changed back to black */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif; /* Changed back to original font */
}

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

/* Hide scrollbar but keep functionality */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    height: 100%;
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
    position: relative;
    font-size: 112.5%; /* Match reference site font size */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--dark-color);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto; /* Allow body to scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    font-weight: normal; /* Matching the reference site */
    color: white; /* Matching reference site */
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
    word-wrap: break-word;
    font-size: 1.05rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

strong {
    color: var(--primary-color);
    font-weight: bold;
}

em {
    color: var(--accent-color);
    font-style: italic;
}

/* Navigation */
.main-nav {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Add subtle border */
    width: 100%;
    flex-shrink: 0;
    background: transparent; /* Changed from red to transparent */
    margin: 20px auto;
    z-index: 30;
    text-align: center;
    font-size: 1rem; /* Changed from 1.4em to match body text */
    display: block;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.logo-nav .logo-image {
    height: 30px;
    width: auto;
    margin-right: 1rem;
}

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0.5rem;
}

.main-nav a {
    display: inline-block;
    margin: 5px 15px; /* Reduced horizontal margin */
    padding: 0.5rem 0.8rem; /* Slightly reduced padding */
    color: var(--accent-color); /* Changed to use accent color */
    text-decoration: none;
    font-weight: normal;
    font-family: var(--font-body); /* Explicitly set font family */
    font-size: 1.05rem; /* Match paragraph font size */
    text-transform: none;
    text-shadow: none; /* Removed text shadow */
    transition: color 0.3s;
    border: none;
    letter-spacing: 0.02em; /* Add slight letter spacing for readability */
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color); /* Changed to use secondary color */
}

.main-nav a.active {
    color: var(--light-color); /* Changed to use light color */
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0; /* Allow content to determine height */
}

main::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 0.5rem 0;
    width: 100%;
    flex: 1;
    position: relative;
    min-height: auto; /* Changed from fixed height to auto */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tab-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto; /* Changed from fixed height to auto */
}

/* Training specific styles */
#training.tab-content {
    overflow-y: auto;
    padding-bottom: 2rem;
}


/* Hero Section */
.hero {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    flex: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hero::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hero-image-container {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    flex: 1;
    min-width: 100px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.hero-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

/* Manifesto Preview */
.manifesto-preview {
    margin-bottom: 1.5rem;
}

.manifesto-preview p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

/* Full Manifesto */
.full-manifesto {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 100%;
    flex: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.full-manifesto::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.full-manifesto p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.full-manifesto p:nth-of-type(1),
.full-manifesto p:nth-of-type(2) {
    font-size: 1.15rem;
}

.full-manifesto p:nth-of-type(6) {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Manifesto Values */
.full-manifesto p:nth-of-type(3) {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    font-weight: bold;
}

.full-manifesto p:nth-of-type(4) {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
    padding: 1.5rem;
    background-color: rgba(169, 76, 60, 0.1);
    border-radius: 8px;
    margin: 1.5rem 0;
}

.full-manifesto p:nth-of-type(4) strong {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.full-manifesto p:nth-of-type(5) {
    text-align: center;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Manifesto Header */
.manifesto-header {
    text-align: center;
    margin-bottom: 1rem;
}

/* Training Content */
.training-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.training-intro {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.training-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.training-offerings {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    width: 100%;
}

.training-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.training-card h3 {
    margin-bottom: 0.8rem;
    text-align: center;
}

.training-card ul {
    list-style-type: none;
}

.training-card li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
}

.training-card li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* CTA Container */
.cta-container {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 100%;
}

.cta-container h3 {
    margin-bottom: 1rem;
}

.cta-container .btn {
    max-width: 300px;
    margin: 0 auto;
}

.cta-container form {
    margin-bottom: 1rem;
}

/* Form Container */
.form-container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 0.8rem;
    width: 100%;
}

.form-container h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
    width: 100%;
}

input[type="email"], select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--dark-accent);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
}

input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23f8d3a7%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    width: 100%;
    padding: 0.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative; /* Changed from sticky positioning */
    margin-top: 2rem; /* Add some space above footer */
}

footer p {
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.ai-credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Thank You Page */
.thank-you {
    padding: 1.5rem 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0.8rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Content styling to match reference */
#content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 60px;
    padding-bottom: 20px;
    z-index: 100;
}

/* Media queries refinements */
@media (min-width: 769px) {
    html, body {
        min-height: 100%;
    }
    
    .container {
        min-height: 100%;
    }
    
    main {
        min-height: auto; /* Changed from fixed height to auto */
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .tab-content {
        min-height: auto; /* Changed from fixed height to auto */
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .tab-content.active {
        height: auto;
        min-height: auto; /* Changed from fixed height to auto */
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    /* Ensure the footer doesn't stick to viewport */
    footer {
        position: relative;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        min-height: 100%;
        height: auto;
    }
    
    .hero {
        flex-direction: column;
    }
    
    /* Hide entire navigation on mobile */
    .main-nav {
        display: none;
    }
    
    main {
        min-height: auto; /* Changed from fixed height to auto */
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .tab-content {
        min-height: auto; /* Changed from fixed height to auto */
        flex: 1;
    }
    
    #manifesto.tab-content, #training.tab-content, #home.tab-content {
        padding: 1rem 0 3rem 0;
        min-height: auto; /* Changed from fixed height to auto */
        max-width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    /* Ensure the footer doesn't stick to viewport on mobile */
    footer {
        position: relative;
        margin-top: 2rem;
    }
}

/* Extra Small Screens (iPhone, 300px width) */
@media (max-width: 375px) {
    .container {
        min-height: 100%;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-image-container {
        min-width: auto;
    }
    
    .hero-content {
        min-width: auto;
    }
    
    .manifesto-preview p {
        font-size: 1rem;
    }
    
    .full-manifesto p, .training-intro p {
        font-size: 0.95rem;
    }
    
    .training-card {
        padding: 0.8rem;
        min-width: 100%;
    }
    
    .training-card li {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    input[type="email"], select {
        font-size: 0.9rem;
    }
    
    .form-container h2 {
        font-size: 1.2rem;
    }
}

/* Form feedback styles */
.form-feedback {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.form-feedback p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Disabled button style */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
} 