/* --- Swiss Peaks Stylesheet --- */

/* 1. Global Styles & Variables */
:root {
    --primary-color: #0055a4; /* A rich, professional blue */
    --secondary-color: #d52b1e; /* A vibrant Swiss red */
    --text-color: #333333;
    --light-text-color: #ffffff;
    --bg-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --border-color: #dddddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3 {
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* 2. Header and Navigation */
header {
    background-color: var(--card-bg-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline animation on hover */
nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav a:hover::after, nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

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


/* 3. Main Content & Layout */
main {
    max-width: 1200px;
    width: 90%;
    margin: 2.5rem auto;
}

.content-page {
    padding: 2.5rem;
    background: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* 4. Homepage Specific Styles */
.hero {
    position: relative;
    color: var(--light-text-color);
    text-align: center;
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners are rounded */
}

.hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.55);
    padding: 2rem 3rem;
    border-radius: 8px;
    width: 80%;
}

.intro-section {
    text-align: center;
    margin: 4rem 0;
}

/* 5. Reusable Components (Cards, Buttons) */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #b8241a; /* Darker red */
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(213, 43, 30, 0.4);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-top: 0;
}

/* 6. Form Styles (Contact Page) */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect final width */
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 85, 164, 0.3);
}

/* 7. Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
    background-color: #333;
    color: var(--light-text-color);
}
footer a {
    color: var(--light-text-color);
    text-decoration: underline;
}

/* 8. Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem 2%;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 15px;
    }

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

    .hero-text {
        width: 90%;
        padding: 1.5rem;
    }
}