@import url('https://fonts.googleapis.com/css2?family=Hammersmith+One&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #296341ff;
    --accent-color: #c4a861;
    --background-color: #f8f6f0;
    --text-color: #1e4a2f;
    --primary-text-color: #ede5c4;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* General link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

a:visited {
    color: #1a3322;
}

a:visited:hover {
    color: var(--accent-color);
}

/* Headings and titles use Hammersmith One */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Hammersmith One', sans-serif;
}

/* Navigation uses Hammersmith One */
nav {
    font-family: 'Hammersmith One', sans-serif;
}

header {
    background-color: var(--primary-color);
    padding: 1rem;
    height: 18rem;
    color: var(--primary-text-color);
    position: relative;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

.logo img {
    height: 16rem;
    width: auto;
}

/* Hamburger menu button */
.hamburger {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-text-color);
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    transition: right 0.3s ease;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    font-family: 'Hammersmith One', sans-serif;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

main {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

/* Content sections with increased spacing */
section {
    margin: 2rem 0;
    padding: 1rem 0;
}

section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services section styling */
.services {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 3rem 0;
}

.service {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.service h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service p {
    margin-bottom: 1.5rem;
}

.service a {
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* Contact section */
.contact {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 4rem auto;
    max-width: 50rem;
}

.contact h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.hero {
    text-align: center;
    padding: 1rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 4rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.gallery-item h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.gallery-item p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.gallery-item > img {
    display: none; /* Hide all direct img children initially */
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0f0f0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

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

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 2;
    transition: background-color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 15px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: white;
}

/* About Us image styling */
.about-us-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 2rem auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .about-us-image {
        max-width: 300px;
        margin: 1.5rem auto;
    }
}

footer {
    background-color: var(--primary-color);
    color: var(--primary-text-color);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

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

footer a:hover {
    text-decoration: underline;
}
