/* WeatherWise Consulting - Master Stylesheet */
/* Final Integrated Version - February 2026 */

:root {
    --primary-blue: #2A7BB8;
    --dark-grey: #2C3338;
    --light-grey: #F4F7F9;
    --white: #ffffff;
    --max-width: 1100px;
}

/* Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-grey);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
}

/* Layout Logic */
/* Homepage: Locked to screen */
body:not(.subpage) {
    overflow: hidden;
}

/* Subpages: Natural scrolling, no vertical stretching */
body.subpage {
    overflow-y: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Logo Scaling */
header {
    background: var(--white);
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: auto;
    max-height: 100px; /* Mobile */
    width: auto;
    display: block;
    padding: 5px 0;
}

@media (min-width: 768px) {
    .logo img {
        max-height: 250px; /* High-res Desktop */
    }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
}

/* Main Content Containers */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

/* Subpage Content Logic: Prevents vertical "stretching" of cards */
body.subpage main {
    display: block; /* Standard stack instead of flex-distribution */
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 60px;
}

.section-padding {
    padding: 20px 0;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 25px auto;
    font-size: 1.1rem;
}

/* Grid & Card Logic */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-card {
    background: var(--white);
    padding: 25px;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Homepage/Hub Card Height */
body:not(.subpage) .service-card,
body.navigation-hub .service-card {
    height: 100%;
}

/* Hover Effects (Only for Hubs/Home) */
.card-link:hover .service-card {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
    cursor: pointer;
}

/* Alignment Logic */
.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.3rem;
    text-align: center;
}

/* Center text for Nav Hubs, Left-align for Deep Dives */
body:not(.subpage) .service-card p,
body.navigation-hub .service-card p {
    text-align: center;
}

/* Deep-Dive Card Logic: Collapses height to fit text content */
body.subpage:not(.navigation-hub) .service-card {
    height: auto; 
    margin-bottom: 30px;
    transform: none !important;
    box-shadow: none !important;
    cursor: default;
}

body.subpage:not(.navigation-hub) .service-card p,
body.subpage:not(.navigation-hub) .service-card h3 {
    text-align: left;
}

/* Lists & Form Elements */
.service-card ul {
    margin-top: 15px;
    padding-left: 25px;
}

.service-card li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-align: left;
}

form input, form select, form textarea {
    font-family: inherit;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #1e5a8a;
}

.value-prop {
    background-color: var(--light-grey);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Footer */
footer {
    background: var(--dark-grey);
    color: var(--white);
    text-align: center;
    padding: 15px 0;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body:not(.subpage) { overflow-y: auto; }
    .services-grid { grid-template-columns: 1fr; }
    main { display: block; padding: 20px 0; }
}


/* February 5, 2026 */


/* --- NEW FORM PATCH - ADDED FEB 2026 --- */
.contact-container {
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.consulting-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left; /* Ensures labels stay left-aligned */
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Prevents auto-zoom on mobile */
}

.submit-button {
    background-color: #2A7BB8; /* Replace with your brand blue if different */
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.submit-button:hover {
    filter: brightness(90%);
}