/*
Theme Name: Plaxihen Earth
Theme URI: https://plaxihenearth.com
Author: Plaxihen Group
Description: Theme oficial de Plaxihen Earth.
Version: 0.1.0
Text Domain: plaxihen-earth
*/

/* ========================================
   Variables
======================================== */

:root {
    --earth-green: #1f6b45;
    --earth-green-dark: #123d2b;
    --earth-green-soft: #eaf4ee;

    --earth-background: #f7faf8;
    --earth-surface: #ffffff;

    --earth-text: #18231d;
    --earth-text-soft: #66756b;

    --earth-border: #e3ebe6;

    --earth-width: 1280px;

    --earth-radius-sm: 12px;
    --earth-radius-md: 20px;
    --earth-radius-lg: 32px;

    --earth-shadow:
        0 12px 32px rgba(18, 61, 43, 0.08);
}


/* ========================================
   Reset y base
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--earth-background);
    color: var(--earth-text);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ========================================
   Accesibilidad
======================================== */

:focus-visible {
    outline: 3px solid rgba(31, 107, 69, 0.35);
    outline-offset: 3px;
}


/* ========================================
   Contenedor global
======================================== */

.earth-container {
    width: min(92%, var(--earth-width));
    margin-inline: auto;
}


/* ========================================
   Header
======================================== */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    background: rgba(255, 255, 255, 0.98);

    border-bottom:
        1px solid var(--earth-border);
}

.site-header__inner {
    width: min(92%, var(--earth-width));

    min-height: 88px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 36px;
}


/* ========================================
   Branding
======================================== */

.site-branding {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    min-width: 0;
}

.site-branding__name {
    display: inline-flex;
    align-items: center;

    color: var(--earth-green-dark);

    font-size: 24px;
    font-weight: 700;

    line-height: 1.1;

    letter-spacing: -0.02em;

    text-decoration: none;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;

    line-height: 0;

    text-decoration: none;
}

.custom-logo {
    display: block;

    width: auto;

    max-width: 280px;
    max-height: 68px;

    object-fit: contain;
}


/* ========================================
   Navegación principal
======================================== */

.site-navigation {
    display: flex;
    align-items: center;

    margin-left: auto;
}

.primary-menu {
    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;

    gap: 26px;
}

.primary-menu li {
    position: relative;

    margin: 0;
    padding: 0;
}

.primary-menu a {
    position: relative;

    display: inline-flex;
    align-items: center;

    padding: 12px 0;

    color: #263b30;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.2;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.primary-menu a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 5px;

    height: 2px;

    background: var(--earth-green);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.2s ease;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
    color: var(--earth-green);
}

.primary-menu a:hover::after,
.primary-menu a:focus-visible::after,
.primary-menu .current-menu-item > a::after {
    transform: scaleX(1);
}


/* ========================================
   Main
======================================== */

.site-main {
    min-height: 70vh;

    padding: 80px 24px;
}


/* ========================================
   Placeholder temporal
======================================== */

.earth-placeholder {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}

.earth-placeholder h1 {
    margin: 0 0 16px;

    color: var(--earth-green);

    font-size: clamp(38px, 6vw, 56px);
    font-weight: 700;

    line-height: 1.05;

    letter-spacing: -0.03em;
}

.earth-placeholder p {
    max-width: 650px;

    margin: 0 auto;

    color: var(--earth-text-soft);

    font-size: 18px;

    line-height: 1.7;
}


/* ========================================
   Footer
======================================== */

.site-footer {
    background: var(--earth-green-dark);
    color: #ffffff;
}

.site-footer__inner {
    width: min(92%, var(--earth-width));

    margin: 0 auto;

    padding: 32px 0;

    text-align: center;
}

.site-footer__copyright {
    margin: 0;

    color: rgba(255, 255, 255, 0.85);

    font-size: 14px;

    line-height: 1.6;
}


/* ========================================
   WordPress
======================================== */

.alignwide {
    width: min(92%, var(--earth-width));

    margin-inline: auto;
}

.alignfull {
    width: 100%;
}

.screen-reader-text {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* ========================================
   Home - Hero
======================================== */

.site-main--home {
    min-height: auto;
    padding: 0;
}

.earth-hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(7, 31, 21, 0.94) 0%,
            rgba(7, 31, 21, 0.82) 28%,
            rgba(7, 31, 21, 0.58) 52%,
            rgba(7, 31, 21, 0.18) 78%,
            rgba(7, 31, 21, 0.06) 100%
        ),
        url("assets/images/earth-hero.png");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: #ffffff;
}

.earth-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 0%,
            rgba(0, 0, 0, 0.14) 100%
        );

    pointer-events: none;
}

.earth-hero__content {
    position: relative;
    z-index: 2;

    padding-top: 90px;
    padding-bottom: 90px;
}

.earth-hero__eyebrow {
    display: inline-flex;

    margin-bottom: 18px;

    color: #b6efc8;

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.earth-hero__title {
    max-width: 820px;

    margin: 0;

    font-size: clamp(54px, 6vw, 82px);
    font-weight: 700;

    line-height: 0.98;

    letter-spacing: -0.045em;
}

.earth-hero__title span {
    display: block;

    color: #9de2b4;
}

.earth-hero__description {
    max-width: 610px;

    margin: 30px 0 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 19px;

    line-height: 1.65;
}

.earth-hero__actions {
    margin-top: 34px;

    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}


/* ========================================
   Botones
======================================== */

.earth-button {
    min-height: 52px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.earth-button:hover {
    transform: translateY(-2px);
}

.earth-button--primary {
    background: #b6efc8;
    color: #143d2b;
}

.earth-button--primary:hover {
    background: #ffffff;
}

.earth-button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.6);

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    backdrop-filter: blur(10px);
}

.earth-button--secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}


/* ========================================
   Responsive
======================================== */

@media (max-width: 1100px) {

    .site-header__inner {
        gap: 24px;
    }

    .custom-logo {
        max-width: 240px;
        max-height: 62px;
    }

    .primary-menu {
        gap: 18px;
    }

    .primary-menu a {
        font-size: 14px;
    }
}


@media (max-width: 900px) {

    .site-header__inner {
        min-height: 80px;
        gap: 20px;
    }

    .custom-logo {
        max-width: 220px;
        max-height: 58px;
    }

    .primary-menu {
        gap: 14px;
    }

    .primary-menu a {
        font-size: 13px;
    }

    .earth-hero {
        min-height: 620px;

        background-position: 60% center;
    }
}


@media (max-width: 768px) {

    .site-header__inner {
        min-height: 76px;
    }

    /*
     * Temporal:
     * el menú móvil se añadirá después.
     */
    .site-navigation {
        display: none;
    }

    .custom-logo {
        max-width: 210px;
        max-height: 56px;
    }

    .site-main {
        padding: 60px 20px;
    }

    .earth-placeholder p {
        font-size: 17px;
    }

    .site-footer__inner {
        padding: 28px 0;
    }

    .earth-hero {
        min-height: 580px;

        background-position: 62% center;
    }

    .earth-hero__content {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .earth-hero__title {
        max-width: 640px;

        font-size: clamp(46px, 12vw, 64px);

        line-height: 1;
    }

    .earth-hero__description {
        max-width: 540px;

        margin-top: 24px;

        font-size: 17px;
    }

    .earth-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .earth-button {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .site-header__inner {
        width: min(90%, var(--earth-width));

        min-height: 72px;
    }

    .custom-logo {
        max-width: 180px;
        max-height: 52px;
    }

    .site-main {
        padding: 48px 18px;
    }

    .earth-hero {
        min-height: 560px;

        background-position: 68% center;
    }

    .earth-hero__content {
        width: min(90%, var(--earth-width));

        padding-top: 56px;
        padding-bottom: 56px;
    }

    .earth-hero__title {
        font-size: clamp(42px, 13vw, 54px);
    }

    .earth-hero__description {
        font-size: 16px;
    }
}