:root {
    /* Color Palette */
    --clr-limestone: #EBE5D9;
    --clr-limestone-dark: #D4CBB6;
    --clr-basalt: #3B3B3B;
    --clr-basalt-dark: #242424;
    --clr-accent: #8E7A5A; /* earthy warm tone */
    --clr-white: #FFFFFF;
    --clr-text-light: #F5F2EC;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-limestone);
    color: var(--clr-basalt);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--clr-accent);
    color: var(--clr-white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #7A6648;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--clr-text-light);
    border: 2px solid var(--clr-text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--clr-text-light);
    color: var(--clr-basalt);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(59, 59, 59, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo a {
    display: block;
}

.logo img {
    height: 135px;
    border-radius: 8px; 
    object-fit: contain;
}

.navbar nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar nav a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    color: var(--clr-limestone);
}

.navbar nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--clr-accent);
    transition: width 0.3s ease;
}

.navbar nav a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(59, 59, 59, 0.5), rgba(59, 59, 59, 0.7)), url('assets/hero_stone_house.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: var(--clr-text-light);
    padding-top: 120px;
    padding-bottom: 40px;
    padding-left: 10%;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    width: 350px;
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.1s;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.3s;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 0 2.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.6s;
}

.hero-content .btn-secondary {
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
}

/* Philosophy */
.philosophy {
    padding: 8rem 0;
    background-color: var(--clr-limestone);
}

.philosophy .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.philosophy-text {
    flex: 1;
}

.philosophy-text h2 {
    font-size: 3rem;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}

.philosophy-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--clr-basalt);
}

.philosophy-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.philosophy-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.philosophy-image:hover img {
    transform: scale(1.05);
}

/* Services */
.services {
    padding: 8rem 0;
    background-color: var(--clr-basalt);
    color: var(--clr-text-light);
}

.services h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--clr-limestone);
}

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

.service-card {
    background-color: var(--clr-basalt-dark);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border-bottom: 4px solid var(--clr-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--clr-limestone);
}

.services-image-banner {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

/* Contact */
.contact {
    padding: 8rem 0;
    background-color: var(--clr-limestone);
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 3rem;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.2rem;
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info, .contact-form-container {
    flex: 1;
    width: 100%;
}

.contact-info {
    background-color: var(--clr-basalt-dark);
    color: var(--clr-text-light);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--clr-limestone);
    margin-bottom: 2.5rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-icon {
    color: var(--clr-accent);
    flex-shrink: 0;
}

.contact-details a {
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--clr-accent);
}

.contact-form {
    width: 100%;
    background: var(--clr-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-limestone-dark);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(142, 122, 90, 0.2);
}

.contact-form .btn-primary {
    width: 100%;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--clr-basalt-dark);
    color: var(--clr-text-light);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 160px;
        padding-left: 5%;
        padding-right: 5%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .hero-logo {
        width: 280px;
        max-width: 80%;
        height: auto;
        margin: 0 auto 1.5rem auto;
        display: block;
    }
    .hero-content p {
        margin: 0 auto 2.5rem auto;
    }
    .philosophy .container,
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-wrapper {
        gap: 2rem;
    }
    .contact-info, .contact-form {
        padding: 2rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .navbar {
        padding: 0.8rem 5%;
        align-items: center;
        flex-direction: row; /* keep it side-by-side */
    }
    .logo img {
        height: 100px; /* scale down slightly on phones, but larger than before */
    }
    .navbar nav ul {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.4rem;
        margin-top: 0;
    }
    .navbar nav a {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    .navbar nav a.btn-primary {
        padding: 0.3rem 0.8rem;
        margin-top: 0.2rem;
    }
}
