/* ================================
   CSS Variables & Reset
================================ */
:root {
    --primary: #2d5a27;
    --primary-dark: #1e3d1a;
    --primary-light: #4a8c42;
    --secondary: #f5a623;
    --secondary-dark: #d4890f;
    --dark: #1a1a1a;
    --gray-dark: #333;
    --gray: #666;
    --gray-light: #999;
    --light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ================================
   Layout
================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   Header & Navigation
================================ */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-dark);
    transition: var(--transition);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================================
   Buttons
================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ================================
   Hero Section
================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    margin: 0 auto 1.5rem;
}

/* ================================
   Quote Section
================================ */
.quote-section {
    padding: 4rem 0;
    background: var(--light);
}

.quote-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    overflow: hidden;
}

.quote-card h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.quote-card > p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
    min-width: 0;
}

.contact-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.contact-text strong {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-text span:last-child {
    font-size: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ================================
   Services Section
================================ */
.services-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray);
}

.service-card-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.service-card-cta h3,
.service-card-cta p {
    color: var(--white);
}

.service-card-cta .btn {
    margin-top: 1rem;
}

/* ================================
   Why Section
================================ */
.why-section {
    padding: 5rem 0;
    background: var(--dark);
    color: var(--white);
}

.why-section .section-title {
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
}

.why-number {
    font-size: inherit;
    font-weight: 700;
    color: var(--secondary);
    margin-right: 0.5rem;
}

.why-item h3 {
    margin-bottom: 0.5rem;
}

.why-item p {
    color: var(--gray-light);
}

/* ================================
   About Page
================================ */
.about-hero {
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* New simple hero layout */
.about-hero-simple {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.about-hero-image {
    width: 75%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light);
}

.about-intro h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.about-intro .subtitle {
    font-size: 1.25rem;
    color: var(--gray);
}

.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.about-text h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.about-text blockquote {
    background: var(--light);
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-dark);
}

.about-cta {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 3rem;
}

.about-cta h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.about-cta p {
    margin-bottom: 1.5rem;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--light);
}

.sidebar-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}

.sidebar-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-card ul li {
    color: var(--gray);
}

.sidebar-card p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.sidebar-card a {
    color: var(--primary);
    transition: var(--transition);
}

.sidebar-card a:hover {
    color: var(--primary-dark);
}

.sidebar-card.highlight {
    background: var(--primary);
    color: var(--white);
}

.sidebar-card.highlight h3 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-card.highlight ul li {
    color: rgba(255, 255, 255, 0.9);
}

/* ================================
   Past Work / Gallery Page
================================ */
.page-header {
    background: var(--white);
    padding: 5rem 0 1.5rem;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-section {
    padding: 2rem 0 4rem;
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 2rem;
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray-light);
    font-size: 1.25rem;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10;
}

.slide-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-arrow.prev {
    left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.slide-arrow.next {
    right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
}

.slide-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
}

.gallery-description {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.gallery-description h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.gallery-description p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.gallery-cta {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.gallery-cta p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
    font-weight: 500;
}

/* ================================
   Footer
================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-brand-row {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-dark);
}

.footer-brand-row h3 {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.footer-brand-row p {
    color: var(--gray-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-sitemap ul,
.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-sitemap ul li,
.footer-social ul li {
    margin-bottom: 0.5rem;
}

.footer-sitemap a,
.footer-social a {
    color: var(--gray-light);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-sitemap a:hover,
.footer-social a:hover {
    color: var(--white);
}

.social-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--light);
    font-size: 0.875rem;
}

/* ================================
   Mobile Responsive
================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .quote-card {
        padding: 2rem 1.5rem;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        order: 1;
    }

    .about-hero {
        height: 300px;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero-image {
        width: 100%;
    }

    .about-intro h1 {
        font-size: 2rem;
    }

    .about-intro .subtitle {
        font-size: 1rem;
    }

    .slide-arrow {
        padding: 0.75rem;
        font-size: 1.25rem;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .quote-card {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    .contact-text span:last-child {
        font-size: 0.875rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-item {
        padding: 1.5rem 1rem;
    }
}
