/*
 * Starting Your Roots - Styles
 * Colors: Black, White, RGB(104, 117, 98)
 */

:root {
    --color-primary: rgb(104, 117, 98);
    --color-black: #000000;
    --color-white: #ffffff;
    --color-light-gray: #f5f5f5;
    --color-dark-gray: #333333;
    --color-primary-light: rgba(104, 117, 98, 0.1);
    --color-primary-hover: rgb(84, 97, 78);
}

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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-black);
    background: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-black);
    text-decoration: none;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-black);
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 4px;
    padding: 0.5rem 0;
}

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

.nav-links a {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        rgb(84, 97, 78) 100%
    );
    padding: 3rem 0;
    text-align: center;
    position: relative;
    color: var(--color-white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
    color: var(--color-black);
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.8;
    color: var(--color-black);
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-approach {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    color: var(--color-dark-gray);
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        rgb(84, 97, 78) 100%
    );
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

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

.subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--color-light-gray);
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 3rem;
    background: var(--color-white);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform: translateY(0);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-card.featured {
    background: var(--color-primary-light);
    grid-template-columns: 1fr 1fr;
    border: 3px solid var(--color-primary);
}

.service-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.service-card:nth-child(even) .service-image {
    order: 2;
}

.service-card:nth-child(even) .service-content {
    order: 1;
}

.service-image {
    overflow: hidden;
    height: 100%;
    max-height: 500px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-image:hover img {
    transform: scale(1.02);
}

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.service-content p {
    margin-bottom: 1rem;
}

.service-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.service-content li {
    margin-bottom: 0.5rem;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background: var(--color-white);
}

.content-section:nth-of-type(even) {
    background: var(--color-light-gray);
}

.content-grid {
    max-width: 900px;
    margin: 0 auto;
}

.content-main h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--color-black);
}

.content-main h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-primary);
}

.content-main p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.feature-list {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.feature-list li {
    margin-bottom: 0.75rem;
}

.image-block {
    margin: 2rem 0;
    overflow: hidden;
}

.image-block {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.image-block img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

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

.image-gallery img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.content-with-image {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 3rem;
    margin: 3rem 0;
    align-items: center;
}

.content-with-image.reverse {
    grid-template-columns: 55% 45%;
    direction: rtl;
}

.content-with-image.reverse > * {
    direction: ltr;
}

.content-with-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.content-with-image.large img {
    height: 500px;
}

.content-with-image.small img {
    height: 320px;
}

.content-with-image.wide {
    grid-template-columns: 35% 65%;
}

.content-with-image.wide.reverse {
    grid-template-columns: 65% 35%;
}

.visit-card {
    background: var(--color-primary-light);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.visit-card h3 {
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    font-weight: 700;
}

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

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

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

/* CTA Section */
.cta {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.cta-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-link {
    background: var(--color-white);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-black);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-link:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.cta-box {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        rgb(84, 97, 78) 100%
    );
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    border: none;
    box-shadow: 0 10px 40px rgba(104, 117, 98, 0.3);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.cta-box h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.cta-box p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

/* Forms */
form {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-white);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-white);
    background: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

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

    .hero-title {
        font-size: 1.6rem;
    }

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

    .service-card {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 250px;
    }

    .content-with-image {
        grid-template-columns: 1fr;
    }

    .content-with-image.reverse {
        direction: ltr;
    }

    .content-with-image img {
        height: 280px;
    }

    .cta-links {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        justify-content: center;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}
