@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

/* === Base Styles === */
html {
    box-sizing: border-box;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #f8f5ed;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: #B6964B;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.link-list {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.link-list li {
    display: block;
    padding: 0;
    transition: transform 0.2s ease;
}

.link-list li:hover {
    transform: translateY(-2px);
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 132px;
    min-height: 112px;
    padding: 0.85rem 1rem;
    background-color: white;
    border: 1px solid rgba(34, 49, 44, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(34, 49, 44, 0.08);
    color: #22312C;
    font-weight: 700;
    text-decoration: none;
}

.link-card:hover {
    text-decoration: none;
}

.store-logo {
    width: 78px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
    background-color: transparent;
}

.store-logo:hover {
    transform: scale(1.05);
}

/* Specific sizing for eBay and Etsy logos to match height */
img[src="ebay-logo-backgroundwhite.png"],
img[src="etsy-logo-backgroundwhite.png"] {
    width: 78px;
    height: 44px;
    object-fit: contain;
}

/* === Header === */
header {
    background-color: #22312C;
    color: white;
    text-align: center;
    padding: 1.5em 0;
}

.logo {
    max-width: 180px;
    height: auto;
}

/* === Top Navigation === */
.top-nav {
    background-color: #C57069;
    padding: 0.5em 1em;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 1.2em;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    display: none;
    cursor: pointer;
}

.menu-icon {
    display: block;
    line-height: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1em;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5em;
}

.nav-links li a:hover {
    background-color: #B6964B;
    border-radius: 4px;
}

/* === Dropdown Menu Styles === */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4em;
    cursor: pointer;
    padding: 0.5em;
}

.dropdown-toggle .chevron {
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: calc(100% - 0.5em);
    left: 0;
    background-color: #B6964B;
    border-radius: 4px;
    padding: 0;
    margin: 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
    pointer-events: auto;
}

.nav-dropdown:hover .dropdown-toggle .chevron {
    transform: rotate(180deg);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75em 1em;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #22312C;
    border-radius: 0;
}

.dropdown-menu li:first-child a {
    border-radius: 4px 4px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 4px 4px;
}

/* === Main Content === */
main {
    padding: 2em;
    text-align: center;
    flex-grow: 1;
}

.home-page {
    padding: 0;
    text-align: left;
}

.home-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    color: white;
    background:
        linear-gradient(90deg, rgba(34, 49, 44, 0.94), rgba(34, 49, 44, 0.68) 58%, rgba(34, 49, 44, 0.25)),
        url("Hibiscus Macro.jpg") center / cover no-repeat;
}

.hero-content {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    min-width: 0;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: #B6964B;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero .eyebrow {
    color: #F0DFAE;
}

.home-hero h1,
.section-heading h2,
.content-section h2 {
    font-family: 'DM Serif Display', serif;
    letter-spacing: 0;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    color: white;
    font-size: 3rem;
    line-height: 1.08;
    overflow-wrap: break-word;
}

.home-hero h1 span {
    display: block;
}

.hero-intro {
    max-width: 720px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.button-primary {
    background: #B6964B;
    color: #22312C;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.62);
    color: white;
}

.featured-section,
.links {
    padding: 4rem 2rem;
}

.links {
    background: #EFE8D6;
}

.section-heading {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
    min-width: 0;
}

.section-heading h2 {
    margin: 0;
    color: #22312C;
    font-size: 2.1rem;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.section-heading h2 .line {
    display: block;
}

.section-heading p:last-child {
    margin: 0.75rem auto 0;
    color: #4f5b55;
    line-height: 1.65;
}

/* === Featured Plants Section === */
.featured-plants {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1180px;
    margin: 0 auto;
}

.plant-card {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 0;
    padding: 1em;
    text-align: left;
    border: 1px solid rgba(34, 49, 44, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(34, 49, 44, 0.09);
    background-color: white;
}

.plant-card img {
    width: 100%;
    max-width: none;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.85em;
}

.plant-card h3 {
    margin: 0.55rem 0 0.4rem;
    color: #22312C;
}

.plant-card p {
    margin: 0;
    color: #4f5b55;
    line-height: 1.55;
}

.card-label {
    align-self: flex-start;
    display: inline-block;
    padding: 0.25rem 0.55rem;
    background: #F3E7C6;
    color: #22312C;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.link-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 820px;
    margin: 0 auto;
}

.link-group {
    text-align: center;
}

.link-group h3 {
    margin: 0;
    color: #22312C;
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.content-section h2 {
    margin: 0 0 0.75rem;
    color: #22312C;
    font-size: 2rem;
}

.content-section > p {
    margin: 0 auto;
    max-width: 760px;
    color: #4f5b55;
    line-height: 1.7;
}

/* === Footer === */
footer {
    background-color: #22312C;
    color: white;
    text-align: center;
    padding: 1em 0;
}

/* === Responsive Styles === */
@media (max-width: 980px) {
    .featured-plants {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 150px;
    }

    .home-hero {
        min-height: 380px;
        padding: 3rem 1.25rem;
        background:
            linear-gradient(90deg, rgba(34, 49, 44, 0.96), rgba(34, 49, 44, 0.76)),
            url("Hibiscus Macro.jpg") center / cover no-repeat;
    }

    .home-hero h1 {
        font-size: 2.25rem;
    }

    .section-heading h2 {
        font-size: 1.85rem;
    }

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

    .featured-section,
    .links,
    .content-section {
        padding: 3rem 1.25rem;
    }

    .featured-plants,
    .link-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plant-card {
        width: auto;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin-left: auto;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #C57069;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        text-align: center;
        z-index: 20;
        padding: 0.5rem 0;
        box-shadow: 0 8px 18px rgba(34, 49, 44, 0.18);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        padding: 0;
        border-top: .5px solid rgba(255, 255, 255, 0.2);
    }

    .nav-links li a {
        display: flex;
        justify-content: center;
    }

    .nav-dropdown {
        display: block;
        width: 100%;
    }

    /* Mobile dropdown menu */
    .dropdown-menu {
        position: static;
        display: none;
        background-color: #A85C5C;
        box-shadow: none;
        margin: 0.5em 0;
        min-width: auto;
    }

    .nav-dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li a {
        padding: 0.6em 1.5em;
        border-radius: 0;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .dropdown-toggle .chevron {
        margin-left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 120px;
    }

    .home-hero h1 {
        font-size: 1.85rem;
    }

    .section-heading h2 {
        font-size: 1.65rem;
    }

    .hero-actions,
    .link-list {
        flex-direction: column;
        align-items: stretch;
    }

    .link-list li {
        width: 100%;
    }

    .button,
    .link-card {
        width: 100%;
        box-sizing: border-box;
    }

    .featured-plants,
    .link-groups {
        grid-template-columns: 1fr;
    }

    .link-list {
        align-items: stretch;
    }
}

.care-guide {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    line-height: 1.6;
}

.care-guide h1 {
    text-align: center;
    color: #22312C;
    font-family: 'DM Serif Display', serif;
    margin-bottom: 1em;
}

.care-guide h2 {
    color: #C57069;
    font-size: 1.4em;
    margin-top: 1.5em;
}

.care-guide ul {
    padding-left: 1.2em;
    list-style: disc;
}

.care-guide p a {
    color: #C57069;
    text-decoration: underline;
}

.care-guide p a:hover {
    color: #B6964B;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #EFE8D6;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(34, 49, 44, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #22312C;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(34, 49, 44, 0.16);
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #C57069;
    box-shadow: 0 0 0 3px rgba(197, 112, 105, 0.16);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: #22312C;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Quicksand', sans-serif;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(34, 49, 44, 0.22);
}

.contact-form button:active {
    transform: translateY(0);
}
        
.contact-info {
    text-align: center;
    margin: 0 auto;
    max-width: 760px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
}

.contact-info a {
    color: #A85C5C;
    text-decoration: none;
    font-weight: 700;
}

.contact-info a:hover {
    color: #B6964B;
    text-decoration: underline;
}

/* === Florida Plants Guide Page === */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.subtitle {
    text-align: center;
    color: #558b2f;
    font-size: 1.1em;
    margin-bottom: 30px;
    font-style: italic;
}

.key-section {
    background: #f1f8e9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #689f38;
}

.key-section h2 {
    color: #33691e;
    font-size: 1.3em;
    margin-bottom: 12px;
}

.key-item {
    margin: 8px 0;
    padding-left: 10px;
}

.section {
    margin-bottom: 35px;
}

.section h2 {
    color: #2e7d32;
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #81c784;
}

.subsection {
    margin: 25px 0;
}

.subsection h3 {
    color: #388e3c;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.plant {
    padding: 12px;
    margin: 8px 0;
    background: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #66bb6a;
    transition: all 0.3s ease;
}

.plant:hover {
    background: #e8f5e9;
    transform: translateX(5px);
}

.plant-name {
    font-weight: bold;
    color: #1b5e20;
    font-size: 1.05em;
}

.common-name {
    color: #424242;
    margin-left: 10px;
}

.tags {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.coastal {
    background: #b3e5fc;
    color: #01579b;
}

.inland {
    background: #c8e6c9;
    color: #1b5e20;
}

.butterfly {
    background: #ffe0b2;
    color: #e65100;
}

.butterfly-host {
    background: #ffccbc;
    color: #bf360c;
}

.avoid-section {
    background: #ffebee;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e53935;
}

.avoid-section h2 {
    color: #c62828;
    border-bottom-color: #ef5350;
}

.avoid-plant {
    padding: 10px;
    margin: 8px 0;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #ef5350;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    .tags {
        flex-direction: column;
    }
}

/* === Plant Detail Cards (shared) === */
.plant-card-detail,
.wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2em;
}

.plant-card-detail h1,
.header h1 {
    color: #22312C;
    font-family: 'DM Serif Display', serif;
    margin-bottom: 0.4em;
}

.sub {
    color: #666;
    margin-bottom: 1em;
}

.card,
.plant-card-detail > section {
    background: white;
    padding: 1em;
    margin: 1em 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    text-align: left;
}

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; margin: 10px 0; }
.kv b { color: #22312C; font-weight: 600; }
.small { color: #666; font-size: 13px; }
.hr { height: 1px; background: #e5e7eb; margin: 12px 0; }
.badge { display: inline-block; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; padding: 3px 10px; border-radius: 999px; font-size: 12px; margin-left: 10px; }

.qr { display:flex; gap: 1em; align-items:center; }
.box { width:140px; height:140px; display:flex; align-items:center; justify-content:center; background:#fff; border:1px dashed #e5e7eb; color:#666; border-radius:8px; text-align:center; font-size:13px; }

/* ensure plant pages fit site layout */
main .plant-card-detail, main .wrapper { padding: 0; }
