:root {
    --deep-ocean: #005F73;
    --sage: #94D2BD;
    --amber: #EE9B00;
    --river-sand: #F1FAEE;
    --text-dark: #1D3557;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--river-sand);
    margin: 0;         /* This kills the outer gap */
    padding: 0;        /* This kills any inner gap */
    width: 100%;
    overflow-x: hidden; /* This prevents accidental horizontal scrolling */
}

header {
    background: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero {
    width: 100%;             /* Force it to be the full width of the screen */
    min-height: 60vh;        /* Use min-height so it can grow if needed */
    margin: 0;               /* Ensure no margins are pushing it in */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,95,115,0.7), rgba(0,95,115,0.7)), url('assets/images/river-bg.jpg');
    background-size: cover;
    background-position: center; /* Keeps the river centered even on wide screens */
    color: white;
}

h1 { font-family: 'Lora', serif; font-size: 3rem; }

.cta-btn {
    background-color: var(--amber);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.cta-btn:hover { background-color: #ca8600; transform: scale(1.05); }

/* Layout Containers */
.container {
    width: 100%;           /* Fills the screen */
    max-width: 1400px;     /* But stops at a reasonable point so lines aren't too long to read */
    margin: 0 auto;        /* Centers the content */
    padding: 0 40px;       /* Adds 'breathing room' on the sides */
    box-sizing: border-box; /* Prevents padding from breaking the width */
}

/* Hero Section */
.about-hero {
    text-align: center;
    padding: 100px 0; /* Adds significant space above and below the title */
    background-color: white; /* Ensures it feels distinct from the river-sand body */
    margin-bottom: 0; /* Removes the gap between sections */
}

.lead {
    font-size: 1.4rem;
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--deep-ocean);
}

/* Content Grid (Text on one side, Image on other) */
.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Gives the text 50% more space than the image */
    gap: 4rem;
    align-items: start; /* Prevents text from stretching vertically */
}

@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
}

.aesthetic-round {
    border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%; /* Organic 'river stone' shape */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Pillars Section */
.pillars {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--sage);
    padding-top: 3rem;
}

.pillar h3 {
    color: var(--amber);
}

/* Active Link Highlight */
nav a.active {
    border-bottom: 2px solid var(--amber);
}

/* Team Grid Layout */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

/* Individual Profile Cards */
.profile-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px); /* Subtle hover lift */
}

/* Scaling the Profile Image */
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Perfect circle */
    object-fit: cover;  /* Ensures faces aren't stretched */
    margin: 0 auto 15px;
    border: 4px solid var(--sage);
}

.role {
    color: var(--deep-ocean);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.social-links a {
    font-size: 0.8rem;
    color: var(--amber);
    text-decoration: none;
    font-weight: bold;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* Form Styling */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--deep-ocean);
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--sage);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

/* Sidebar Styling */
.contact-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    margin-top: 0;
    color: var(--deep-ocean);
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Species Hero */
.species-hero {
    background: linear-gradient(rgba(0,95,115,0.8), rgba(0,95,115,0.8)), url('../assets/images/river-texture.jpg');
    background-size: cover;
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.taxonomy {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.common-name {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.5rem;
}

/* Two-column layout for info */
.species-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

/* Sidebar Stats */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-left: 5px solid var(--sage);
}

.stat-card h4 {
    margin-top: 0;
    font-size: 0.9rem;
    color: var(--deep-ocean);
}

.status.secure {
    color: #2D6A4F;
    font-weight: bold;
}

/* Gallery inside info */
.image-gallery img {
    margin-top: 20px;
    width: 100%;
}

/* Species Hero */
.species-hero {
    background: linear-gradient(rgba(0,95,115,0.8), rgba(0,95,115,0.8)), url('../assets/river_reduced.jpg');
    background-size: cover;
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.taxonomy {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.common-name {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.5rem;
}

/* Two-column layout for info */
.species-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

/* Sidebar Stats */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-left: 5px solid var(--sage);
}

.stat-card h4 {
    margin-top: 0;
    font-size: 0.9rem;
    color: var(--deep-ocean);
}

.status.secure {
    color: #2D6A4F;
    font-weight: bold;
}

/* Gallery inside info */
.image-gallery img {
    margin-top: 20px;
    width: 100%;
}


/* Gallery Layout FOR SPECIES CARDS */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* The Card */
.species-card {
    text-decoration: none; /* Removes link underline */
    color: inherit;
    background: white;
    border-radius: 15px;
    overflow: hidden; /* Clips image to border radius */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.species-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,95,115,0.15);
    border-color: var(--sage);
}

/* Card Image scaling */
.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.species-card:hover .card-image img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Card Text */
.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--deep-ocean);
}

.status-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-tag.secure { background: #d8f3dc; color: #1b4332; }
.status-tag.threatened { background: #f8d7da; color: #721c24; }


/* Education Feature Block */
.education-feature {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 2px dashed var(--sage); /* Dashed border gives a 'crafty' feel */
    margin: 40px 0;
}

.feature-text h3 {
    font-family: 'Lora', serif;
    color: var(--deep-ocean);
    margin-top: 0;
}

/* The 'Makeover' Button */
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--amber);
    color: var(--amber);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--amber);
    color: white;
    transform: scale(1.05);
}

/* Image Styling */
.makeover-thumb {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    transform: rotate(2deg); /* A slight tilt for that 'scrapbook' aesthetic */
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.makeover-thumb:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .education-feature {
        flex-direction: column;
        text-align: center;
    }
}

/* The Container for the River Image */
.river-break {
    width: 100%;
    overflow: hidden;
    background-color: var(--river-sand); /* Uses our existing beige neutral */
    padding-bottom: 2rem;
}

.river-container {
    position: relative;
    max-width: 1200px; /* Aligns with your page's max width */
    margin: 0 auto;
    padding: 0 20px;
}

/* The Image Style */
.river-full {
    width: 100%;
    height: 400px; /* Adjust this to change how 'tall' the section is */
    object-fit: cover; /* This is the secret to a professional look */
    border-radius: 0 0 100px 0; /* An organic 'river bend' curve on the bottom right */
    box-shadow: 0 10px 30px rgba(0, 95, 115, 0.1);
}

/* Subtle Credit Overlay */
.photo-credit {
    position: absolute;
    bottom: 15px;
    right: 35px;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    color: var(--deep-ocean);
    backdrop-filter: blur(5px); /* Modern 'glass' effect */
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .river-full {
        height: 250px;
        border-radius: 0 0 50px 0;
    }
}

/* Stantec-Inspired Header */
.nice-header {
    margin: 0;
    background-color: var(--deep-ocean); /* This is your dark blue (#005F73) */
    padding: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.logo {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    height: 100%; /* Important for the hover bar height */
}

.nav-links li {
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    text-transform: uppercase; /* The Stantec 'look' */
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: all 0.2s ease-in-out;
    border-bottom: 4px solid transparent; /* The hidden bar */
}

/* The Hover Effect */
.nav-links a:hover {
    background-color: #2a2a2a; /* Subtle lighten */
    border-bottom: 4px solid var(--amber); /* Stantec uses a vibrant blue/green, we'll use your Amber */
    color: #ffffff;
}

/* Active State */
.nav-links a.active {
    border-bottom: 4px solid var(--sage);
}

.logo-link {
        display: flex;
        align-items: center;
        height: 100%;
        text-decoration: none;
    }

    .urban-flow-logo {
        height: 50px; /* Adjust this to make the logo larger or smaller */
        width: auto;
        display: block;
    }
/* Ensure the header container still works with the new logo */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Kept your header height */
    padding: 0 20px;
}
/* 1. Position the dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 2. Style the hidden menu */
.dropdown-content {
    display: none; /* Hide by default */
    position: absolute;
    background-color: var(--deep-ocean); /* Match your dark blue header */
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%; /* Appears directly below the header */
    border-top: 3px solid var(--amber); /* Professional accent line */
}

/* 3. Style the links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: none; /* Keeps species names from being all caps */
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 4. Hover effects */
.dropdown-content a:hover {
    background-color: var(--sage);
    color: var(--deep-ocean);
}

/* 5. THE MAGIC: Show the menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* 6. Rotate the arrow on hover */
.dropdown:hover .arrow {
    display: inline-block;
    transform: rotate(180deg);
    transition: 0.3s;
}

/* A more compact, controlled square style */
.square-smooth {
    width: 225px;           /* Reduced from 250px */
    height: 225px;          /* Keep it a perfect square */
    object-fit: cover;      /* Prevents 'squishing' the mussel */
    border-radius: 12px;    /* Slightly tighter corners for a smaller box */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;  /* Allows text to sit next to it if needed */
    margin: 10px;
}
.square-smooth:hover {
    transform: scale(1.02); /* Slight pop when hovered */
}
