/* Font definitions */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/poppins-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #35251d;
}

/* Services page styles */
.services-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-column {
    flex: 1;
    min-width: 250px;
    max-width: 480px;
}

.service-column h3 {
    text-align: center;
    padding: 1em;
}

.service-content {
    display: flex;
    flex-direction: column;
    padding-left: 1em;
    padding-right: 1em;
}

.service-row {
    margin-bottom: 1rem;
}

.service-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .services-flex-container {
        flex-direction: column;
        align-items: center;
    }
    
    .service-column {
        max-width: 85%;
    }
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    color: rgb(31, 71, 71);
}

/* Navigation */
nav {
    background: #eee996;
    padding: 1rem;
    margin: 1rem;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5em;
}

.logo {
    color: #1F4747;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: #1F4747;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-weight: bold;
    font-size: 0.8em;
}

.nav-links a:hover {
    color: #c1ba31;
}

/* Hamburger menu button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1F4747;
    transition: all 0.3s;
}

/* Mobile menu toggle (hidden checkbox) */
#menu-toggle {
    display: none;
}

/* Mobile styles */
@media (max-width: 1200px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #eee996;
        flex-direction: column;
        padding: 1rem;
        display: none;
        z-index: 100;
    }

    .nav-links li {
        text-align: center;
        padding: 0.5rem 0;
    }

    /* Show menu when checkbox is checked */
    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    /* Animate hamburger to X */
    #menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Single centered flex column layout */
.single-centered-flex-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Single centered flex row layout */
.single-centered-flex-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Main content */
main {
    max-width: 100%;
    margin: 1rem auto 0;
    padding: 0 1rem;
}

/* Page content */
.page-content {
    margin-top: 2rem;
}

.page-content h2 {
    margin-bottom: 1rem;
    color: #4a4a4a;
}

.page-content p {
    margin-bottom: 1.5rem;
}

/* Section summaries for homepage */
.section-summaries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.section-summary {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.section-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.section-summary h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.section-summary a {
    display: inline-block;
    margin-top: 1rem;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.section-summary a:hover {
    text-decoration: underline;
}

/* Button styles */
.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button:hover {
    background-color: #3e8e41;
}

.back-to-home {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-to-home:hover {
    background-color: #3e8e41;
}

/* Gallery styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background-color: #f5f5f5;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact form styles */
.contact-form {
    width: 100%;
    margin: 2rem 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Contact page specific styles */
.contact-flex-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 2rem;
}

.contact-image-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.contact-image-column img {
    max-height: 768px;
    object-fit: cover;
    margin: 1em;
}

.contact-form-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
}

.name-fields {
    display: flex;
    gap: 1rem;
}

.name-fields input {
    flex: 1;
}

@media (max-width: 1200px) {
    .contact-flex-container {
        flex-direction: column;
    }
    
    .contact-image-column,
    .contact-form-column {
        width: 100% !important;
    }
    
    .contact-form-column {
        padding: 2rem 1rem !important;
    }
}

/* Services styles */
.services-list {
    margin-top: 2rem;
}

.service-item {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h2 {
    color: #4CAF50;
}

/* Spacer utility */
.spacer {
    height: 1.6em;
}

.double-height-spacer {
    height: 3.2em;
}

/* Text content below hero image */
#text-content-below-hero-image {
    background: #f6f3cb;
    padding: 1rem 0;
}

/* Bringing nature home section */
#bringing-nature-home {
    max-width: 95%;
}

/* Why work with a landscaper section */
#why-work-with-a-landscaper {
    max-width: 80%;
}

/* Two-column layout children */
#why-work-reasons {
    flex: 1;
    min-width: 300px;
}

#instagram-plugin-container {
    flex: 0 0 734px;
    min-width: 734px;
}

/* About page column layout */
.about-pictures-column {
    flex: 1;
    min-width: 200px;
    margin-right: 4em;
}

.about-text-column {
    flex: 5;
    min-width: 400px;
    max-width: 1100px;
    align-items: flex-start;
}

/* About page section styling */
#about-section {
    max-width: 80%;
}

/* Picture placeholder styling */
.picture-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 2rem;
    text-align: center;
    color: #666;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo album style rotations */
.rotated-left {
    transform: rotate(-6deg);
    max-width: 100%;
    height: auto;
}

.rotated-right {
    transform: rotate(6deg);
    max-width: 100%;
    height: auto;
}

/* Hero image */
#hero-image {
    width: 100%;
    max-height: 450px;
    margin: 0 auto;
}

#hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 2.48;
    object-fit: cover;
}

/* Footer */
footer {
    background: #f6f3cb;
    color: #333;
    padding: 2rem 0;
    margin: 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.social-row {
    justify-content: space-around;
    max-width: 300px;
    margin: 0 auto;
}

.social-logo {
    height: 40px;
    width: auto;
    padding-left: 8px;
    padding-right: 8px;
}

.contact-row p {
    margin: 0;
    font-size: 1.1rem;
}

.nav-row {
    gap: 2rem;
}

.nav-row a {
    color: #1F4747;
    text-decoration: none;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-row a:hover {
    color: #c1ba31;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    color: #4CAF50;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
}
