/* Global Styles */
:root {
    --bg-color: #FAF3E8; /* Warm off-white */
    --text-color: #5D4037; /* Dark Brown */
    --heading-color: #4A3B31; /* Darker Brown */
    --accent-color: #B08D57; /* Antique Gold */
    --highlight-bg: #EADDCA; /* Soft Beige */
    --white: #FFFFFF;
    --nav-height: 70px;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    text-decoration: underline;
}

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

.section-padding {
    padding: 60px 0;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--nav-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

#logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--heading-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--accent-color);
}

.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    position: relative;
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('hero-image.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    height: calc(100vh - var(--nav-height));
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin-top: var(--nav-height); /* Offset for fixed header */
}

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

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #9a7543; /* Darker accent */
    text-decoration: none;
}

/* Styles for sub-pages main content to be below fixed header */
.main-content-subpage {
    padding-top: var(--nav-height);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto;
    object-fit: contain;
}

/* Portfolio Section */
#portfolio {
    background-color: var(--highlight-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.portfolio-item img:hover {
    transform: scale(1.05);
}


/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    text-align: left;
    max-width: 600px;
}

/* Contact Section */
.contact-section {
    background-color: var(--highlight-bg);
    text-align: center;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}
.contact-section p i {
    margin-right: 8px;
    color: var(--accent-color);
}


/* Footer */
footer {
    background-color: var(--heading-color);
    color: var(--bg-color);
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media (min-width: 769px) { /* Tablet and Desktop */
    .about-content {
        flex-direction: row;
        text-align: left;
    }
    .about-image {
        flex-shrink: 0;
        margin-right: 40px; /* If row layout */
    }
     .about-text {
        text-align: left;
    }
}


@media (max-width: 768px) { /* Mobile */
    h1 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    #hero { height: auto; min-height: 350px; padding: 80px 20px 40px; }


    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        margin: 0;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--bg-color);
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .nav-toggle {
        display: block; /* Show hamburger */
    }

    .nav-open .hamburger {
        transform: rotate(45deg);
    }
    .nav-open .hamburger::before {
        top: 0;
        transform: rotate(90deg);
    }
    .nav-open .hamburger::after {
        bottom: 0;
        transform: rotate(90deg);
        opacity: 0; /* Hide bottom bar to form X */
    }
    
    .about-text {
        text-align: center;
    }

    .section-padding {
        padding: 40px 0;
    }
}