/* Import fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Base Styles for Newton Lorenz Theme */
:root {
    --primary-color: #252525;
    --secondary-color: #555555;
    --accent-color: #3d574a; /* Refined dark green accent color */
    --background-color: #ffffff;
    --light-gray: #f7f7f7;
    --medium-gray: #eaeaea;
    --text-color: #333333;
    --font-main: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --heading-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --section-padding: 3.6rem 0; /* Reduced from 6rem to 3.6rem (40% reduction) */
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

/* Layout */
.content-wrapper {
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    flex: 1;
    padding: 0 1rem;
    min-width: 300px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    background-color: transparent;
    transition: all var(--transition-speed);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: block;
    position: relative;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: all var(--transition-speed);
}

.logo-white {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-dark {
    opacity: 0;
    filter: brightness(0) saturate(100%); /* Make it black */
}

.scrolled .logo-white {
    opacity: 0;
}

.scrolled .logo-dark {
    opacity: 1;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: color var(--transition-speed);
    font-family: var(--heading-font);
    letter-spacing: -0.01em;
}

.scrolled .logo-text {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 2rem;
}

.menu a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed);
}

.scrolled .menu a {
    color: var(--primary-color);
}

.menu a:hover,
.menu li.active a {
    color: rgba(255, 255, 255, 0.8);
}

.scrolled .menu a:hover,
.scrolled .menu li.active a {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.menu-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: background-color var(--transition-speed);
}

.scrolled .menu-icon {
    background-color: var(--primary-color);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: transform var(--transition-speed);
}

.scrolled .menu-icon::before,
.scrolled .menu-icon::after {
    background-color: var(--primary-color);
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    width: 100%;
    min-height: 80vh; /* Keep hero at 80vh as previously set */
    display: flex;
    align-items: center;
    position: relative;
    background-color: #252525;
    color: white;
    overflow: hidden;
    padding: 6rem 0; /* Keep original padding for hero */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    z-index: 0;
    transform: scale(1.01); /* Slightly larger to avoid any edge gaps */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 87, 74, 0.7); /* Slightly darker green overlay to match screenshot */
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem; /* Increase gap between columns */
}

.hero-content {
    max-width: 620px; /* Slightly wider to match screenshot */
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-sidebar {
    max-width: 480px; /* Slightly wider to match screenshot */
    flex: 1;
    background-color: rgba(255, 255, 255, 0.08); /* More transparent to match screenshot */
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 0; /* No border radius in screenshot */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-width: 300px;
}

.hero-sidebar h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: white; /* Explicitly set color to white */
}

.hero-sidebar p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9; /* Slightly transparent to match screenshot */
}

.hero-sidebar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.hero-sidebar a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 4.5rem; /* Larger to match screenshot */
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: white; /* Explicitly set color to white */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0; /* No bottom margin in screenshot */
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9; /* Slightly transparent to match screenshot */
}

/* Tagline Section */
.tagline-section {
    text-align: center;
    padding: 4.2rem 0; /* Reduced from 7rem to 4.2rem (40% reduction) */
    background-color: #fff;
    border-bottom: 1px solid var(--light-gray);
}

.tagline-section .section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1.5rem; /* Reduced from 2.5rem */
    font-weight: 700;
}

.tagline-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--secondary-color);
}

/* Content Sections */
.content-section {
    padding: var(--section-padding);
    display: flex;
    align-items: center;
    background-color: var(--background-color);
}

.content-section:nth-child(odd) {
    background-color: var(--light-gray);
}

.section-title {
    margin-bottom: 1.5rem; /* Reduced from 2.5rem */
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.image-container {
    width: 100%;
    height: 250px; /* Set a fixed height that's about 40% smaller than typical */
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quote Section */
.quote-section {
    background-color: var(--light-gray);
    padding: var(--section-padding);
    text-align: center;
}

.quote {
    font-size: 1.5rem; /* Reduced from original size */
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto 1.2rem; /* Reduced from 2rem */
    font-style: italic;
}

.quote-author {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Contact Form */
.contact-section {
    padding: var(--section-padding);
    background-color: #fff;
}

.form-container {
    max-width: 700px;
}

.contact-info {
    margin-bottom: 1.8rem; /* Reduced from 3rem */
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    gap: 1rem;
}

.form-field {
    flex: 1;
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.6rem 1rem; /* Reduced from 0.75rem */
    border: 1px solid var(--medium-gray);
    border-radius: 0;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
    background-color: transparent;
}

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

textarea {
    min-height: 90px; /* Reduced from 150px */
    resize: vertical;
}

button, .button {
    display: inline-block;
    padding: 0.6rem 1.8rem; /* Reduced from 0.75rem 2rem */
    background-color: #999999; /* Gray button as seen in screenshot */
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    font-family: var(--font-main);
    letter-spacing: 0.02em;
}

button:hover, .button:hover {
    background-color: var(--accent-color);
}

/* Footer */
.site-footer {
    background-color: #fff;
    padding: 2.4rem 1.5rem 1.2rem; /* Reduced from 4rem 2rem 2rem */
    color: var(--secondary-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    margin-bottom: 1.2rem; /* Reduced from 2rem */
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 0.6rem; /* Reduced from 1rem */
    color: var(--primary-color);
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-navigation li {
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
}

.footer-navigation a {
    color: var(--secondary-color);
}

.footer-navigation a:hover {
    color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .quote {
        font-size: 1.5rem;
    }
    
    .hero-sidebar {
        backdrop-filter: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 3rem;
        height: auto;
    }
    
    .hero-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-sidebar {
        max-width: 100%;
    }
    
    :root {
        --section-padding: 4rem 0;
    }
    
    .site-header {
        padding: 1rem 1.5rem;
        background-color: rgba(255, 255, 255, 0.98);
    }
    
    .logo-text {
        color: var(--primary-color);
    }
    
    .logo-image {
        height: 32px;
    }
    
    .logo-white {
        opacity: 0;
    }
    
    .logo-dark {
        opacity: 1;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-icon, .menu-icon::before, .menu-icon::after {
        background-color: var(--primary-color);
    }
    
    .menu-container {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
    }
    
    .menu-container.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu {
        flex-direction: column;
        align-items: center;
    }
    
    .menu li {
        margin: 0 0 1rem 0;
    }
    
    .menu a {
        color: var(--primary-color);
    }
    
    .hero-section {
        padding-top: 80px;
    }
    
    .col {
        flex: 100%;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        flex: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .quote {
        font-size: 1.25rem;
    }
}
