@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* Color Palette */
    --color-primary: #0F5132;
    /* Deep lush green */
    --color-primary-light: #198754;
    --color-accent: #0D6EFD;
    /* Fresh water blue for CTAs */
    --color-accent-hover: #0b5ed7;
    --color-bg: #F8F9FA;
    --color-surface: #FFFFFF;
    --color-text-main: #212529;
    --color-text-muted: #6C757D;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* UI Values */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);

    /* Animation */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Header & Nav */
header {
    background-color: var(--color-surface);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

header img {
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-sm);
}

nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
}

nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

nav a:hover,
nav a.nav-active {
    color: var(--color-primary);
    background-color: rgba(15, 81, 50, 0.08);
}

/* Typography & Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h1,
h2,
h3 {
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

input[type="submit"] {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    width: 100%;
    transition: var(--transition-normal);
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.95), rgba(25, 135, 84, 0.95));
    color: white;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('first_install/IMG_0463.jpeg') center/cover;
    opacity: 0.3;
    z-index: 0;
}

.hero * {
    position: relative;
    z-index: 1;
}

.hero h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    animation: slideUp 1s ease-out;
}

/* About Section */
#about-owner {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.owner-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.owner-photo-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--color-bg);
}

.owner-img-zoomed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%; /* align closer to the face */
    transform: scale(1.6); /* zooms in to hide the arm/folder/hat */
}

/* Services */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    list-style: none;
}

.services-list li {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid transparent;
}

.services-list li:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-primary);
}

.service-item-icon {
    background: rgba(15, 81, 50, 0.05);
    padding: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 64px;
    height: 64px;
    filter: invert(24%) sepia(87%) saturate(693%) hue-rotate(106deg) brightness(89%) contrast(92%);
    /* colors match --color-primary approximately */
}

/* Forms */
form {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

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

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
    transition: var(--transition-normal);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Reviews */
.review-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-normal);
}

.review:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.review::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -10px;
    left: 20px;
    color: rgba(15, 81, 50, 0.05);
    font-family: serif;
    line-height: 1;
}

.review p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.reviewer {
    font-weight: 800;
    color: var(--color-primary);
    text-align: right;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay .text {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.gallery-item:hover .overlay .text {
    transform: translateY(0);
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-normal);
}

.close:hover {
    color: var(--color-accent);
}

/* Footer */
footer {
    background: var(--color-text-main);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

.social-icons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-icon:hover {
    color: white;
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .owner-container {
        flex-direction: column;
        text-align: center;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}