/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Neutral Color Palette */
    --clr-black: #1a1a1a;
    --clr-dark-gray: #333333;
    --clr-slate-gray: #707b7c;
    --clr-medium-gray: #a6acaf;
    --clr-light-gray: #e5e7e9;
    --clr-off-white: #f4f6f6;
    --clr-white: #ffffff;
    
    /* Typography */
    --font-main: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-dark-gray);
    background-color: var(--clr-off-white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
.site-header {
    background-color: var(--clr-white);
    border-bottom: 1px solid var(--clr-light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-black);
    letter-spacing: 0.5px;
}

.brand-name a {
    color: inherit;
    text-decoration: none;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.primary-nav a {
    text-decoration: none;
    color: var(--clr-slate-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.primary-nav a:hover {
    color: var(--clr-black);
}

/* Hero Section */
.hero-section {
    background-color: var(--clr-dark-gray);
    /* Descriptive image name in CSS */
    background-image: linear-gradient(to right, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.4)), url('images/large-shark-silhouetted-in-murky-monochrome-ocean-water.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--clr-white);
}

.hero-content {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--clr-light-gray);
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--clr-off-white);
    color: var(--clr-black);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: var(--clr-medium-gray);
    color: var(--clr-white);
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.bg-light-gray {
    background-color: var(--clr-off-white);
}

.bg-white {
    background-color: var(--clr-white);
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: var(--clr-black);
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--clr-slate-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Card Grid (Species) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background-color: var(--clr-white);
    border: 1px solid var(--clr-light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--clr-light-gray);
    background-color: var(--clr-light-gray); /* Fallback for missing img */
}

.card-body {
    padding: 2rem;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--clr-black);
}

.card-body p {
    color: var(--clr-slate-gray);
    font-size: 0.95rem;
}

/* Split Layout (Conservation) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-text h2 {
    font-size: 2.5rem;
    color: var(--clr-black);
    margin-bottom: 1.5rem;
}

.split-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-slate-gray);
    font-size: 1.1rem;
}

.split-image-container {
    position: relative;
}

.split-image {
    width: 100%;
    height: auto;
    box-shadow: 15px 15px 0 var(--clr-light-gray);
    background-color: var(--clr-light-gray); /* Fallback for missing img */
}

/* Footer */
.site-footer {
    background-color: var(--clr-black);
    color: var(--clr-light-gray);
    padding: 3rem 0;
    text-align: center;
}

.footer-subtext {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--clr-slate-gray);
}

.site-footer a {
    color: var(--clr-medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--clr-white);
    text-decoration: underline;
}

/* Legal Text Styles */
.text-container {
    max-width: 800px;
}

.legal-text h3 {
    font-size: 1.5rem;
    color: var(--clr-black);
    margin: 2rem 0 1rem;
}

.legal-text p {
    margin-bottom: 1.25rem;
    color: var(--clr-dark-gray);
}

.legal-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--clr-dark-gray);
}

.legal-text li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .primary-nav ul {
        gap: 1.5rem;
    }
}