/* CSS Variables */
:root {
    --color-primary: #1a2f23;
    --color-secondary: #2d4a3e;
    --color-accent: #4a7c59;
    --color-accent-light: #6b9b7a;
    --color-text: #2c3e34;
    --color-text-light: #5a6b62;
    --color-background: #ffffff;
    --color-background-alt: #f8faf9;
    --color-border: #e2e8e4;
    --color-gold: #8b7355;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    
    --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.logo:hover {
    color: var(--color-accent);
}

.logo-img {
    height: 75px;
    width: 83px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 4rem 0;
}

.hero h1 {
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.subhead {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(12, 22, 16, 0.92) 0%, rgba(12, 22, 16, 0.7) 32%, rgba(12, 22, 16, 0.32) 58%, rgba(12, 22, 16, 0.08) 80%),
        linear-gradient(0deg, rgba(12, 22, 16, 0.35) 0%, rgba(12, 22, 16, 0) 30%);
    z-index: 1;
}

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

/* About Intro */
.about-intro {
    padding: 6rem 0;
    background: var(--color-background-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 0;
}

/* Services Section */
.services {
    padding: 6rem 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-light);
    transform: translateY(-2px);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background-alt);
    border-radius: 50%;
    color: var(--color-accent);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* About Page */
.page-hero {
    padding: 10rem 0 4rem;
    background: var(--color-background-alt);
    border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0;
}

.page-content {
    padding: 4rem 0 6rem;
}

.page-content .container {
    max-width: 800px;
}

.page-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* About Page Image */
.about-image {
    margin-top: 3rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Page */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-background-alt);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    max-width: 400px;
}

.contact-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-item a {
    font-size: 1.05rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
}

.footer .disclaimer {
    font-size: 0.85rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.footer .copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        min-height: 70vh;
        padding: 6rem 0 3rem;
    }

    .hero-image::before {
        background:
            linear-gradient(180deg, rgba(12, 22, 16, 0.55) 0%, rgba(12, 22, 16, 0.45) 40%, rgba(12, 22, 16, 0.7) 100%);
    }

    .hero-content {
        padding: 2rem 0;
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-intro,
    .services {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1.15rem;
    }
}

/* ========================================
   Rentals Page - TurboTenant Embed
   ======================================== */

.rentals-content .container {
    max-width: 1200px;
}

.rentals-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.rentals-embed {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.rentals-embed iframe {
    display: block;
    width: 100%;
    min-height: 800px;
}

/* Responsive iframe height */
@media (min-width: 768px) {
    .rentals-embed iframe {
        min-height: 1200px;
    }
}

@media (max-width: 480px) {
    .rentals-embed iframe {
        min-height: 600px;
    }
}

/* ========================================
   Tenant Portal Page
   ======================================== */

.portal-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.portal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.portal-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.portal-card:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.portal-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background-alt);
    border-radius: 50%;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.portal-card:hover .portal-icon {
    background: var(--color-accent);
    color: var(--color-background);
}

.portal-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.portal-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.portal-link-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portal-card:hover .portal-link-text {
    color: var(--color-secondary);
}

.portal-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding: 1.5rem;
    background: var(--color-background-alt);
    border-radius: 4px;
    max-width: 500px;
    margin: 0 auto;
}

.portal-note strong {
    color: var(--color-text);
}

/* Portal cards responsive */
@media (max-width: 900px) {
    .portal-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Adjust nav for more links */
@media (max-width: 900px) {
    .nav-links {
        gap: 1.25rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }
}

