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

/* Smooth scrolling + offset for sticky nav */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 56px;
}

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

/* Body */
body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f0f4f2;
    color: #333;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Wrapper */
.header-wrapper {
    position: relative;
    background: url('plant.webp') center/cover no-repeat;
    background-color: #87b5a2;
    min-height: 200px;
}

/* Header Overlay */
.header-overlay {
    position: relative;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
    padding: 1rem;
}

/* Header */
header {
    color: white;
    text-align: center;
    padding: 2.25rem 1rem 1.25rem;
}
header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}
header p {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.92;
}

/* Navigation */
nav {
    background-color: transparent;
    padding: 0.75rem 1rem 1.25rem;
    text-align: center;
}
nav a {
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0.6rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    padding: 0.3rem 0.1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}
nav a:hover,
nav a.active {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.75);
}

/* Container */
.container {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

/* Welcome Section with Logo */
.welcome-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.welcome-text {
    flex: 1;
    min-width: 280px;
}
.welcome-logo {
    max-width: 145px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Section Boxes */
.section-box {
    background-color: #ffffff;
    padding: 28px 28px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    margin-bottom: 24px;
    position: relative;
    border-left: 4px solid #4a7c6a;
    transition: box-shadow 0.2s ease;
}
.section-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.section-box h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #3a6657;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4eeeb;
}
.section-box h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #4a7c6a;
    margin-top: 22px;
    margin-bottom: 10px;
}
.section-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #6a9b8a;
    margin-top: 14px;
    margin-bottom: 6px;
}
.section-box p {
    margin-bottom: 0.6rem;
}
.section-box p, .section-box ul {
    max-width: 700px;
}
.section-box ul {
    margin-left: 20px;
}
.section-box li {
    margin-bottom: 8px;
}

/* Inline links */
a {
    color: #4a7c6a;
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 124, 106, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover {
    color: #3a6657;
    border-bottom-color: #3a6657;
}

/* Profile Section */
.profile-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.profile-img {
    width: 160px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Call to Action Button */
.cta-section {
    text-align: center;
}
.cta-section p {
    margin-bottom: 1rem;
}
.cta-button {
    display: inline-block;
    background-color: #4a7c6a;
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none !important;
    border-bottom: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(74, 124, 106, 0.3);
    margin: 0.5rem 0 1rem;
}
.cta-button:hover {
    background-color: #3a6657;
    box-shadow: 0 6px 18px rgba(74, 124, 106, 0.35);
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: rgba(30, 30, 30, 0.88);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    padding: 1.5rem 1rem;
    width: 100%;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Form */
form {
    max-width: 500px;
    margin: 1rem 0;
}
label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-top: 1rem;
    color: #444;
}
.required {
    color: #d9534f;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    margin-top: 0.3rem;
    border: 1px solid #cdd8d4;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4a7c6a;
    box-shadow: 0 0 0 3px rgba(74, 124, 106, 0.12);
}
textarea {
    height: 120px;
    resize: vertical;
}
input[type="submit"] {
    background-color: #4a7c6a;
    color: white;
    padding: 0.7rem 1.75rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px rgba(74, 124, 106, 0.3);
}
input[type="submit"]:hover {
    background-color: #3a6657;
    box-shadow: 0 4px 14px rgba(74, 124, 106, 0.35);
}
.success {
    color: #2d6a4f;
    background-color: #d8f3e3;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.error {
    color: #a94442;
    background-color: #f2dede;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* ── Sticky Nav ─────────────────────────────────────── */
#sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    /* hidden above viewport until scrolled */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    pointer-events: none;
}
#sticky-nav.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
/* compact state — slightly slimmer when already scrolled */
#sticky-nav.compact {
    padding: 0.5rem 1rem;
}
#sticky-nav a {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0.65rem;
    text-decoration: none;
    border-bottom: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    padding: 0.25rem 0.1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
#sticky-nav a:hover,
#sticky-nav a.active {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* ── Back to Top Button ──────────────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.75rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #4a7c6a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 44px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(74, 124, 106, 0.45);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#back-to-top:hover {
    background-color: #3a6657;
    box-shadow: 0 6px 18px rgba(74, 124, 106, 0.5);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }
    header p {
        font-size: 1rem;
    }
    nav a {
        display: inline-block;
        margin: 0.3rem 0.4rem;
        font-size: 0.9rem;
    }
    .welcome-content {
        flex-direction: column;
        align-items: center;
    }
    .welcome-logo {
        max-width: 120px;
    }
    .profile-container {
        flex-direction: column;
        align-items: center;
    }
    .profile-img {
        width: 120px;
        height: 150px;
    }
    .section-box {
        padding: 20px 18px;
    }
    #sticky-nav a {
        display: inline-block;
        margin: 0.2rem 0.35rem;
        font-size: 0.82rem;
    }
    #sticky-nav {
        padding: 0.6rem 0.5rem;
    }
    #sticky-nav.compact {
        padding: 0.4rem 0.5rem;
    }
    #back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1rem;
    }
}
