/* Main Stylesheet for Pakihlumom */

/* Root Variables */
:root {
    --color-primary: #1b4332;
    --color-primary-light: #2d6a4f;
    --color-primary-lighter: #40916c;
    --color-accent: #52b788;
    --color-light: #d8f3dc;
    --color-bg-light: #f0f7f4;
    --color-bg-white: #fafaf7;
    --color-text-dark: #2d3436;
    --color-text-muted: #555;
    --color-border: #ddd;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

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

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

h5 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

h6 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

strong {
    font-weight: 600;
    color: var(--color-primary);
}

em {
    font-style: italic;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-light);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--color-light);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-light);
    transition: width 0.3s ease;
}

nav a:hover {
    color: white;
}

nav a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.burger-menu:hover {
    transform: scale(1.1);
}

.burger-menu:active {
    transform: scale(0.95);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    padding: 5rem 2rem 2rem;
    z-index: 99;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: var(--color-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: white;
    text-decoration: none;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary-lighter) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    animation: fadeIn 0.8s ease-in;
}

.hero h1 {
    color: var(--color-light);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 4rem 0;
    animation: fadeIn 1s ease-in;
}

.section-bg-light {
    background-color: var(--color-bg-light);
}

.section-bg-white {
    background-color: white;
}

.section-heading {
    border-bottom: 3px solid var(--color-primary-light);
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    display: inline-block;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-primary-light);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin-top: 0;
    color: var(--color-primary);
}

.card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Plant List */
.plant-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plant-item {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--color-accent);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.plant-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plant-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.plant-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Tips Section */
.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip {
    background: white;
    padding: 2rem;
    border-radius: 6px;
    border-left: 4px solid var(--color-accent);
    transition: all 0.3s ease;
}

.tip:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.tip h3 {
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    margin-top: 0;
}

.tip p {
    margin-bottom: 0;
}

/* Tools Section */
.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--color-primary-light);
    transition: all 0.3s ease;
}

.tool:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tool h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    margin-top: 0;
    color: var(--color-primary);
}

.tool p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-primary-light);
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.contact-field {
    margin-bottom: 1.5rem;
}

.contact-field strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.contact-field p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-field a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 500;
}

.contact-field a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-primary-light);
}

.contact-form h3 {
    margin-top: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
    background-color: white;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-sans);
}

.form-submit {
    background: var(--color-primary-light);
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
    transform: translateY(-2px);
}

.form-submit:active {
    transform: translateY(0);
}

.form-privacy {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    line-height: 1.5;
}

.form-privacy a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.form-privacy a:hover {
    color: var(--color-primary);
}

/* Footer */
footer {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    color: var(--color-light);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

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

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

.footer-section a {
    color: var(--color-light);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
}

.footer-section p {
    color: var(--color-light);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: rgba(216, 243, 220, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .about-grid {
        gap: 2rem;
    }

    .contact-wrapper {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    nav {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    section {
        padding: 2.5rem 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .plant-list {
        grid-template-columns: 1fr;
    }

    .tips-list {
        grid-template-columns: 1fr;
    }

    .tools-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    nav a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 0;
    }

    section {
        padding: 2rem 0;
    }

    .tools-list {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer {
        background-color: #f0f7f4;
        color: var(--color-primary);
    }

    a {
        text-decoration: underline;
    }

    .burger-menu,
    .mobile-nav {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    body {
        color: #000;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }

    .card {
        border-top-width: 6px;
    }

    a {
        text-decoration: underline;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .section-bg-light {
        background-color: #2a2a2a;
    }

    .section-bg-white {
        background-color: #1f1f1f;
    }

    .card {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }

    .card p {
        color: #b0b0b0;
    }

    .contact-form,
    .contact-info {
        background-color: #2a2a2a;
    }

    .form-group input,
    .form-group textarea {
        background-color: #1f1f1f;
        border-color: #404040;
        color: #e0e0e0;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        background-color: #2a2a2a;
        border-color: var(--color-primary-light);
    }
}