/* Basic CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4A6D87; 
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #ffffff;
    --bg-dark: #222222;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: #fdfdfd;
}

header {
    background-color: var(--bg-light);
    padding: 1.5rem 5%;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 60px; /* Adjust as needed */
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #333;
}

#hero {
    background: url('../images/mountinscolor.png') no-repeat center center/cover;
    color: var(--text-light);
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content to top and bottom */
    text-align: center;
    position: relative;
    padding: 5rem 0 2rem 0; /* Adjust padding for top and bottom */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5)); /* Softer overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%; /* Ensure it takes full width */
}

#hero h1 {
    font-family: 'Playfair Display', serif; /* Apply Playfair Display font */
    font-size: 5rem; /* Made bigger */
    margin-bottom: 0; /* Removed margin as flex handles spacing */
    font-weight: 700; /* Use a bolder weight if available for Playfair Display */
    letter-spacing: 2px;
    color: #000; /* Change color to black */
}

.hero-bottom-text {
    position: relative;
    z-index: 1;
    width: 100%; /* Ensure it takes full width */
    color: var(--text-light); /* Ensure visibility */
}

.hero-bottom-text p {
    font-size: 1.8rem; /* Keep existing size */
    font-weight: bold; /* Keep existing boldness */
    color: var(--text-light); /* Ensure visibility */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Keep existing shadow */
    margin-bottom: 0; /* Remove default paragraph margin */
}

section {
    padding: 60px 15%;
    margin: 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid #e0e0e0;
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 300;
}

#our-story p, #our-practices p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    text-align: justify;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr; /* Image column and text column */
    gap: 50px; /* Space between image and text */
    align-items: start; /* Align items to the top of the grid area */
    max-width: 1200px;
    margin: 0 auto;
}

.inline-image {
    width: 100%; /* Image will fill the grid column */
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr; /* Stack to a single column */
    }
    .inline-image {
        width: 80%; /* Adjust size for mobile */
        margin: 0 auto 20px auto; /* Center image with bottom margin */
    }
}

footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Crop images to fit */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Discreet auditor access */
.auditor-link {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #c8c8c8;
    text-underline-offset: 3px;
}
.auditor-link:hover { color: #fff; }
.auditor-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.audit-content { max-width: 1600px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2rem; min-height: 65vh; }
.audit-content h1 { color: var(--primary-blue); margin-bottom: 1rem; }
.audit-content a { color: var(--primary-blue); }
.audit-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}
.audit-eyebrow {
    margin-bottom: 0.25rem;
    color: #6d7869;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}
.audit-content .audit-heading h1 { margin-bottom: 0; }
.audit-home-link { white-space: nowrap; }
.audit-view {
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.audit-view h2 {
    padding: 0.75rem 1rem;
    margin: 0;
    text-align: left;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.2rem;
}
.audit-embed {
    display: block;
    width: 100%;
    height: clamp(533px, 72vh, 900px);
    border: 0;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}
@media (max-width: 600px) {
    .audit-heading { align-items: start; flex-direction: column; }
}

.audit-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.audit-login { max-width: 460px; margin: 0 auto; padding: 2rem; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; }
.audit-login-form { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.audit-login-form label { font-weight: 600; }
.audit-login-form input { width: 100%; padding: 0.8rem; border: 1px solid #999; border-radius: 4px; font: inherit; }
.audit-button { background: var(--primary-blue); color: white; padding: 0.75rem 1rem; border: 0; border-radius: 4px; font: inherit; cursor: pointer; }
.audit-button:hover { background: #354e60; }
.audit-button:focus-visible, .audit-login-form input:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; }
.audit-error { color: #a02121; }
