/*
 * Design system compartilhado
 * Outros plugins podem reutilizar a classe .adp-global-shell e as variáveis --adp-*.
 */
.adp-global-shell {
    --adp-primary: #2f7d4a;
    --adp-primary-dark: #164b2c;
    --adp-primary-soft: #e9f7ee;
    --adp-accent: #d6a443;
    --adp-accent-soft: #fff5dc;
    --adp-surface: #ffffff;
    --adp-surface-soft: #f6faf7;
    --adp-page: #edf5ef;
    --adp-text: #173220;
    --adp-muted: #64756a;
    --adp-border: rgba(33, 91, 54, .14);
    --adp-shadow-sm: 0 10px 28px rgba(24, 70, 40, .08);
    --adp-shadow-md: 0 22px 60px rgba(24, 70, 40, .13);
    --adp-shadow-lg: 0 34px 90px rgba(20, 62, 35, .17);
    --adp-radius-sm: 14px;
    --adp-radius-md: 22px;
    --adp-radius-lg: 32px;
    --adp-transition: 180ms ease;

    /* Compatibilidade com a versão anterior. */
    --amb-green: var(--adp-primary);
    --amb-green-dark: var(--adp-primary-dark);
    --amb-green-soft: var(--adp-primary-soft);
    --amb-cream: var(--adp-surface-soft);
    --amb-text: var(--adp-text);
    --amb-muted: var(--adp-muted);
    --amb-border: var(--adp-border);
    --amb-white: var(--adp-surface);

    color: var(--adp-text);
    font-family: inherit;
    line-height: 1.6;
}

.adp-global-shell,
.adp-global-shell *,
.adp-global-shell *::before,
.adp-global-shell *::after {
    box-sizing: border-box;
}

.amb-ambiente-ideal-page {
    background:
        radial-gradient(circle at 8% 8%, rgba(88, 177, 110, .12), transparent 30rem),
        radial-gradient(circle at 92% 15%, rgba(214, 164, 67, .10), transparent 28rem),
        #f4f8f4;
}

.amb-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 72px;
}

.amb-shortcode-shell {
    width: 100%;
    margin: 20px 0;
}

.amb-shell a,
.amb-shortcode-shell a {
    transition: color var(--adp-transition), border-color var(--adp-transition), background var(--adp-transition), transform var(--adp-transition), box-shadow var(--adp-transition);
}

.amb-shell h1,
.amb-shell h2,
.amb-shell h3,
.amb-shortcode-shell h2 {
    color: var(--adp-text);
    font-weight: 800;
    letter-spacing: -.035em;
}

.amb-section-heading {
    max-width: 760px;
    margin-bottom: 20px;
}

.amb-section-heading h2,
.amb-search-card h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.12;
}

.amb-section-heading p,
.amb-search-card p {
    margin: 0;
    color: var(--adp-muted);
    font-size: 1rem;
}

.amb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--adp-primary);
    font-size: .76rem;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.amb-eyebrow::before {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    opacity: .75;
}

/* Hero */
.amb-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: var(--adp-radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(237, 248, 240, .88)),
        var(--adp-surface);
    box-shadow: var(--adp-shadow-md);
}

.amb-hero::before,
.amb-hero::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.amb-hero::before {
    top: -170px;
    right: -100px;
    width: 390px;
    height: 390px;
    background: radial-gradient(circle, rgba(59, 145, 84, .20), rgba(59, 145, 84, 0) 68%);
}

.amb-hero::after {
    bottom: -190px;
    left: 25%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(220, 170, 66, .15), rgba(220, 170, 66, 0) 68%);
}

.amb-home-hero {
    margin-bottom: 24px;
}

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

.amb-hero h1 {
    max-width: 820px;
    margin: 10px 0 14px;
    font-size: clamp(2.15rem, 5vw, 4.5rem);
    line-height: 1.01;
}

.amb-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--adp-muted);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
}

.amb-hero-stat,
.amb-score,
.amb-score-card {
    position: relative;
    z-index: 1;
    min-width: 190px;
    padding: 25px 24px;
    border: 1px solid rgba(48, 117, 69, .13);
    border-radius: 26px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 50px rgba(26, 76, 42, .12);
    backdrop-filter: blur(10px);
    text-align: center;
}

.amb-hero-stat strong,
.amb-score strong,
.amb-score-card strong {
    display: block;
    color: var(--adp-primary-dark);
    font-size: clamp(2.3rem, 4vw, 3.25rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.amb-hero-stat span,
.amb-score span,
.amb-score small,
.amb-score-card span,
.amb-score-card em {
    display: block;
    margin-top: 8px;
    color: var(--adp-muted);
    font-style: normal;
}

.amb-score span {
    margin: 0 0 11px;
    color: var(--adp-primary);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Breadcrumb */
.amb-breadcrumb {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 18px;
    color: var(--adp-muted);
    font-size: .88rem;
}

.amb-breadcrumb a {
    color: var(--adp-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.amb-breadcrumb a:hover {
    color: var(--adp-primary);
}

/* Search */
.amb-search-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 34px;
    align-items: center;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--adp-border);
    border-radius: 28px;
    background: var(--adp-surface);
    box-shadow: var(--adp-shadow-sm);
}

.amb-search-card::after {
    position: absolute;
    right: -65px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 143, 85, .12), transparent 69%);
    content: "";
    pointer-events: none;
}

.amb-search-form {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-content: center;
}

.amb-search-form label {
    grid-column: 1 / -1;
    color: var(--adp-text);
    font-size: .9rem;
    font-weight: 800;
}

.amb-search-form select,
.amb-control-grid select {
    width: 100%;
    min-height: 52px;
    padding: 0 42px 0 15px;
    border: 1px solid rgba(33, 91, 54, .18);
    border-radius: var(--adp-radius-sm);
    outline: none;
    background-color: #fff;
    color: var(--adp-text);
    box-shadow: inset 0 1px 2px rgba(20, 55, 31, .03);
    font: inherit;
    transition: border-color var(--adp-transition), box-shadow var(--adp-transition), background var(--adp-transition);
}

.amb-search-form select:hover,
.amb-control-grid select:hover {
    border-color: rgba(47, 125, 74, .45);
}

.amb-search-form select:focus,
.amb-control-grid select:focus {
    border-color: var(--adp-primary);
    box-shadow: 0 0 0 4px rgba(47, 125, 74, .12);
}

.amb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--adp-radius-sm);
    background: linear-gradient(135deg, #348a51, var(--adp-primary-dark));
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(35, 105, 59, .23);
    font: inherit;
    font-weight: 850;
    text-decoration: none !important;
    cursor: pointer;
}

.amb-button:hover {
    background: linear-gradient(135deg, #3b965a, #123f25);
    box-shadow: 0 16px 35px rgba(35, 105, 59, .30);
    transform: translateY(-2px);
}

.amb-button:active {
    transform: translateY(0);
}

.amb-button-secondary {
    width: max-content;
    margin-top: 14px;
}

.amb-form-message {
    grid-column: 1 / -1;
    min-height: 20px;
    color: #a52e35 !important;
    font-size: .88rem;
}

/* Grids and cards */
.amb-directory,
.amb-products,
.amb-related,
.amb-related-plants,
.amb-calculator,
.amb-tool {
    margin-top: 46px;
}

.amb-home-grid,
.amb-plant-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.amb-home-grid a,
.amb-plant-list a {
    position: relative;
    display: flex;
    min-height: 126px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--adp-border);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, #f8fbf8);
    color: var(--adp-text);
    box-shadow: 0 9px 24px rgba(22, 66, 36, .055);
    text-decoration: none;
}

.amb-home-grid a::after,
.amb-plant-list a::after {
    position: absolute;
    right: -24px;
    bottom: -32px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--adp-primary-soft);
    content: "";
    transition: transform var(--adp-transition);
}

.amb-home-grid a:hover,
.amb-plant-list a:hover {
    border-color: rgba(47, 125, 74, .34);
    box-shadow: 0 18px 38px rgba(22, 66, 36, .11);
    transform: translateY(-4px);
}

.amb-home-grid a:hover::after,
.amb-plant-list a:hover::after {
    transform: scale(1.22);
}

.amb-home-grid strong,
.amb-plant-list strong {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 1.03rem;
    line-height: 1.3;
}

.amb-home-grid a > span:last-child,
.amb-plant-list small {
    position: relative;
    z-index: 1;
    margin-top: 5px;
    color: var(--adp-muted);
    font-size: .86rem;
}

.amb-card-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: var(--adp-primary-soft);
    color: var(--adp-primary);
    font-size: .9rem;
}

/* Answer and explanation */
.amb-answer {
    display: grid;
    grid-template-columns: 1.25fr .95fr;
    gap: 20px;
    margin-top: 22px;
}

.amb-answer-main {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4vw, 40px);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .12), transparent 220px),
        linear-gradient(145deg, #205f38, #113b25);
    color: #fff;
    box-shadow: var(--adp-shadow-md);
}

.amb-answer-main .amb-eyebrow {
    color: #c9ead5;
}

.amb-answer-main p {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.72;
}

.amb-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.amb-metrics > div,
.amb-metrics .amb-metric {
    display: flex;
    min-height: 114px;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--adp-border);
    border-radius: 20px;
    background: var(--adp-surface);
    box-shadow: 0 8px 22px rgba(22, 66, 36, .05);
}

.amb-metrics span {
    display: block;
    color: var(--adp-muted);
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.amb-metrics strong {
    display: block;
    margin-top: 6px;
    color: var(--adp-primary-dark);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.18;
}

.amb-explanation-grid,
.amb-explain-grid,
.amb-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.amb-explanation-grid article,
.amb-explain-grid article,
.amb-two-columns article {
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--adp-border);
    border-radius: 24px;
    background: var(--adp-surface);
    box-shadow: var(--adp-shadow-sm);
}

.amb-explanation-grid h2,
.amb-explain-grid h2,
.amb-two-columns h2 {
    margin: 10px 0 10px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.amb-explanation-grid p,
.amb-explain-grid p,
.amb-two-columns p {
    margin: 0;
    color: var(--adp-muted);
}

.amb-action-card {
    border-color: rgba(201, 148, 42, .22) !important;
    background: linear-gradient(145deg, #fffaf0, var(--adp-accent-soft)) !important;
}

.amb-action-card .amb-eyebrow {
    color: #9b6b12;
}

/* Calculator */
.amb-calculator,
.amb-tool {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid var(--adp-border);
    border-radius: 30px;
    background: linear-gradient(145deg, #f8fcf9, #eef7f0);
    box-shadow: var(--adp-shadow-md);
}

.amb-calculator::before,
.amb-tool::before {
    position: absolute;
    top: -90px;
    right: -80px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 145, 83, .13), transparent 68%);
    content: "";
    pointer-events: none;
}

.amb-control-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin: 24px 0 20px;
}

.amb-control-grid label {
    color: var(--adp-text);
    font-size: .86rem;
    font-weight: 800;
}

.amb-control-grid select {
    display: block;
    margin-top: 8px;
    font-weight: 500;
}

.amb-calculator-output {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
}

.amb-result-card {
    min-width: 0;
    padding: 21px;
    border: 1px solid rgba(33, 91, 54, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 9px 24px rgba(22, 66, 36, .055);
}

.amb-result-card > span {
    display: block;
    color: var(--adp-muted);
    font-size: .78rem;
    font-weight: 750;
}

.amb-result-card strong {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 8px;
    color: var(--adp-primary-dark);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
}

.amb-result-card small {
    display: block;
    margin-top: 8px;
    color: var(--adp-muted);
    line-height: 1.4;
}

.amb-meter,
.amb-bar {
    height: 10px;
    overflow: hidden;
    margin-top: 14px;
    border-radius: 999px;
    background: #dfeae2;
}

.amb-meter span,
.amb-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4da568, var(--adp-primary-dark));
    transition: width .28s ease;
}

.amb-tool-note {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid rgba(47, 125, 74, .13);
    border-radius: 15px;
    background: rgba(255, 255, 255, .82);
    color: var(--adp-muted);
}

/* Products */
.amb-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.amb-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--adp-border);
    border-radius: 24px;
    background: var(--adp-surface);
    box-shadow: var(--adp-shadow-sm);
}

.amb-product-card img {
    width: 100%;
    height: 190px;
    margin-bottom: 18px;
    border-radius: 17px;
    object-fit: cover;
}

.amb-product-card h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.amb-product-card p {
    margin: 0;
    color: var(--adp-muted);
}

.amb-price {
    display: block;
    margin-top: 12px;
    color: var(--adp-primary-dark);
    font-size: 1.08rem;
}

.amb-disclosure {
    margin-top: 14px;
    color: var(--adp-muted);
    font-size: .8rem;
}

/* Related links */
.amb-related h2,
.amb-related-plants h2 {
    margin: 0 0 16px;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.amb-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.amb-link-grid a {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid var(--adp-border);
    border-radius: 15px;
    background: var(--adp-surface);
    color: var(--adp-primary-dark);
    box-shadow: 0 7px 18px rgba(22, 66, 36, .045);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.amb-link-grid a:hover {
    border-color: rgba(47, 125, 74, .35);
    background: var(--adp-primary-soft);
    transform: translateY(-2px);
}

.amb-caution {
    margin-top: 32px;
    padding: 18px 20px;
    border: 1px solid rgba(181, 132, 27, .25);
    border-radius: 18px;
    background: var(--adp-accent-soft);
}

.amb-caution p {
    margin: 4px 0 0;
    color: #6e5b30;
}

/* Accessibility */
.adp-global-shell a:focus-visible,
.adp-global-shell button:focus-visible,
.adp-global-shell select:focus-visible {
    outline: 3px solid rgba(47, 125, 74, .28);
    outline-offset: 3px;
}

@media (max-width: 1020px) {
    .amb-home-grid,
    .amb-plant-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .amb-control-grid,
    .amb-calculator-output,
    .amb-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amb-product-grid {
        grid-template-columns: 1fr;
    }

    .amb-product-card {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 20px;
        align-items: center;
    }

    .amb-product-card img {
        height: 160px;
        margin: 0;
    }
}

@media (max-width: 760px) {
    .amb-shell {
        width: min(100% - 22px, 1180px);
        margin: 14px auto 48px;
    }

    .amb-hero,
    .amb-search-card,
    .amb-answer,
    .amb-explanation-grid,
    .amb-explain-grid,
    .amb-two-columns {
        grid-template-columns: 1fr;
    }

    .amb-hero {
        gap: 24px;
        padding: 27px 23px;
        border-radius: 25px;
    }

    .amb-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .amb-hero-stat,
    .amb-score,
    .amb-score-card {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }

    .amb-search-card {
        gap: 22px;
        padding: 24px 20px;
        border-radius: 23px;
    }

    .amb-search-form {
        grid-template-columns: 1fr;
    }

    .amb-search-form label,
    .amb-form-message {
        grid-column: auto;
    }

    .amb-button {
        width: 100%;
    }

    .amb-button-secondary {
        width: 100%;
    }

    .amb-home-grid,
    .amb-plant-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .amb-home-grid a,
    .amb-plant-list a {
        min-height: 116px;
        padding: 16px;
        border-radius: 17px;
    }

    .amb-answer-main,
    .amb-calculator,
    .amb-tool {
        border-radius: 24px;
    }

    .amb-control-grid,
    .amb-calculator-output {
        grid-template-columns: 1fr;
    }

    .amb-product-card {
        display: flex;
    }

    .amb-product-card img {
        height: 210px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .amb-shell {
        width: min(100% - 16px, 1180px);
    }

    .amb-hero,
    .amb-search-card,
    .amb-answer-main,
    .amb-calculator,
    .amb-tool {
        padding: 21px 17px;
    }

    .amb-home-grid,
    .amb-plant-list,
    .amb-metrics,
    .amb-link-grid {
        grid-template-columns: 1fr;
    }

    .amb-home-grid a,
    .amb-plant-list a {
        min-height: 105px;
    }

    .amb-metrics > div,
    .amb-metrics .amb-metric {
        min-height: 92px;
    }

    .amb-product-card img {
        height: 185px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adp-global-shell *,
    .adp-global-shell *::before,
    .adp-global-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
