/* ============================================
   LAVALLA GROUP
   Ultra-minimal / Editorial / Architecture
   ============================================ */

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

:root {
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --black: #0A0A0A;
    --grey: #888888;
    --grey-light: #E8E8E8;
    --green: #1B4332;
    --green-light: #2D5A45;

    --font: 'Inter', -apple-system, sans-serif;
    --tracking-tight: -0.03em;
    --tracking-wide: 0.15em;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--green);
    color: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* --- Typography --- */

h1, h2, h3 {
    font-weight: 300;
    letter-spacing: var(--tracking-tight);
}

h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.95;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.eyebrow {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--green);
}

.large {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.6;
    color: var(--grey);
}

/* --- Layout --- */

.wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.wrap--narrow {
    max-width: 900px;
}

.section {
    padding: clamp(8rem, 18vh, 14rem) 0;
}

.section--tight-top {
    padding-top: clamp(4rem, 8vh, 6rem);
}

/* --- Header --- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2rem 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--light .header__nav a {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.header--light .header__menu span {
    background: var(--white);
}

.header--light .header__nav a::after {
    background: var(--white);
}

.header--scrolled {
    padding: 1rem 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header--scrolled .header__nav a {
    color: var(--black);
}

.header--scrolled .header__menu span {
    background: var(--black);
}

.header--scrolled .header__nav a::after {
    background: var(--green);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__brand-logo {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s;
}

.header__brand-logo img {
    height: 38px;
    width: auto;
    display: block;
    transition: filter 0.5s;
}

.header__brand-logo:hover {
    opacity: 0.6;
}

.header--light .header__brand-logo img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.header--scrolled .header__brand-logo img,
.header--menu-open .header__brand-logo img {
    filter: none;
}

/* Hero accent (used inside h1) — uses brighter green for better legibility on dark bg */
.hero-accent {
    color: var(--green-light);
}

/* --- Contact form --- */

.contact-form-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.contact-form__intro {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--grey);
    line-height: 1.7;
    margin-top: 1rem;
    margin-bottom: 3.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form__honey {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-form__label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--green);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    border: none;
    border-bottom: 1px solid var(--grey-light);
    background: transparent;
    padding: 0.85rem 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--black);
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.contact-form select {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231B4332' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 12px 8px;
    padding-right: 2.25rem;
    cursor: pointer;
    color: var(--black);
    height: auto;
    min-height: 2.85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.contact-form select:invalid,
.contact-form select option[value=""] {
    color: var(--grey);
}

.contact-form select option {
    color: var(--black);
    background: var(--white);
    padding: 0.5rem;
    font-family: var(--font);
}

/* Remove default focus ring on Firefox */
.contact-form select::-ms-expand {
    display: none;
}
.contact-form select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--black);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--green);
}

.contact-form__submit {
    align-self: flex-start;
    margin-top: 1rem;
    padding: 1.1rem 2.4rem;
    background: var(--green);
    color: var(--white);
    border: none;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    transition: background 0.3s;
}

.contact-form__submit:hover {
    background: var(--green-light);
}

.contact-form__submit span {
    transition: transform 0.3s;
}

.contact-form__submit:hover span {
    transform: translateX(4px);
}

.contact-form__error {
    padding: 1rem 1.25rem;
    border-left: 3px solid #b44;
    background: #fdf2f2;
    color: #7a2929;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-form__success {
    padding: 3rem;
    border: 1px solid var(--green);
    background: var(--off-white);
    margin-top: 2rem;
}

.contact-form__success h3 {
    color: var(--green);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.contact-form__success p {
    color: var(--grey);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 700px) {
    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile: reduce top padding on lavalla/lahaie heroes (override inline 22vh) */
@media (max-width: 768px) {
    .page-lavalla .hero,
    .page-lahaie .hero {
        padding-top: 16vh !important;
        padding-bottom: 6vh !important;
    }
}

/* --- Contact form: dark variant (over green background) --- */

.contact-form-wrap--on-dark .eyebrow {
    color: rgba(255,255,255,0.65);
}

.contact-form-wrap--on-dark h2 {
    color: var(--white);
}

.contact-form-wrap--on-dark .contact-form__intro {
    color: rgba(255,255,255,0.78);
}

.contact-form-wrap--on-dark .contact-form__label {
    color: rgba(255,255,255,0.7);
}

.contact-form-wrap--on-dark .contact-form input[type="text"],
.contact-form-wrap--on-dark .contact-form input[type="email"],
.contact-form-wrap--on-dark .contact-form select,
.contact-form-wrap--on-dark .contact-form textarea {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.25);
}

.contact-form-wrap--on-dark .contact-form input::placeholder,
.contact-form-wrap--on-dark .contact-form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-form-wrap--on-dark .contact-form input:focus,
.contact-form-wrap--on-dark .contact-form select:focus,
.contact-form-wrap--on-dark .contact-form textarea:focus {
    border-bottom-color: var(--white);
}

.contact-form-wrap--on-dark .contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.contact-form-wrap--on-dark .contact-form select option {
    color: var(--black);
    background: var(--white);
}

.contact-form-wrap--on-dark .contact-form select:-moz-focusring {
    text-shadow: 0 0 0 var(--white);
}

.contact-form-wrap--on-dark .contact-form__submit {
    background: var(--white);
    color: var(--green);
}

.contact-form-wrap--on-dark .contact-form__submit:hover {
    background: var(--off-white);
    color: var(--green);
}

.contact-form-wrap--on-dark .contact-form__error {
    background: rgba(0,0,0,0.18);
    border-left-color: #ffb1b1;
    color: #ffd6d6;
}

.contact-form-wrap--on-dark .contact-form__success {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
}

.contact-form-wrap--on-dark .contact-form__success h3 {
    color: var(--white);
}

.contact-form-wrap--on-dark .contact-form__success p {
    color: rgba(255,255,255,0.78);
}

/* --- Location gallery (two square images at end of media-split text) --- */

.location-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.location-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header__nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.5s;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s;
}

.header__nav a:hover::after,
.header__nav a.active::after {
    width: 100%;
}

.header__menu {
    display: none;
    width: 24px;
    height: 14px;
    flex-direction: column;
    justify-content: space-between;
}

.header__menu span {
    height: 1px;
    background: var(--black);
    transition: 0.3s;
}

/* --- Hero --- */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6vh;
    padding-bottom: 15vh;
    position: relative;
}

.hero--short {
    min-height: 50vh;
    justify-content: center;
    padding-top: 18vh;
}

.hero--medium {
    min-height: 65vh;
}

.hero--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
}

.hero--parallax {
    background-attachment: fixed;
}

.hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.35) 25%,
        rgba(0,0,0,0.25) 50%,
        rgba(0,0,0,0.45) 100%
    );
    z-index: 0;
}

.hero--image .hero__line {
    background: var(--white);
}

.hero--image .hero__sub {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero--image .hero__scroll {
    color: rgba(255,255,255,0.6);
}

.hero--image .hero__scroll::after {
    background: rgba(255,255,255,0.4);
}

.hero--image .eyebrow {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 2rem;
}

.hero .eyebrow {
    margin-bottom: 1.5rem;
}

.hero__logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 2rem;
}

.hero__line {
    width: 60px;
    height: 1px;
    background: var(--green);
    margin-bottom: 1rem;
}

.hero__sub {
    max-width: 500px;
    color: var(--grey);
}

.scroll-hint {
    display: flex;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 1s ease;
}

.scroll-hint.is-hidden {
    opacity: 0;
}

.scroll-hint__text {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

.scroll-hint__arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    animation: scrollBounce 1.6s ease-in-out infinite;
}

.scroll-hint__arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid rgba(255,255,255,0.8);
    border-bottom: 1.5px solid rgba(255,255,255,0.8);
    transform: rotate(45deg);
}

.scroll-hint__arrow span:nth-child(2) {
    opacity: 0.45;
    margin-top: -5px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Intro --- */

.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.intro > div:last-child .large {
    padding-top: 1.5rem;
}

.intro--align-values {
    align-items: start;
}

.intro__left {
    position: static;
}

/* --- Dual --- */

.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.dual__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 8vw, 6rem);
    position: relative;
    transition: background 0.6s;
}

.dual__item--dark {
    background: var(--green);
    color: var(--white);
}

.dual__item--light {
    background: var(--off-white);
}

.dual__item:hover {
    background: var(--green-light);
    color: var(--white);
}

.dual__eyebrow {
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.dual__item--dark .dual__eyebrow {
    color: rgba(255,255,255,0.7);
}

.dual__title {
    margin-bottom: 1rem;
}

.dual__text {
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 400px;
}

.dual__link {
    font-size: 0.7rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.dual__link::after {
    content: '\2192';
    transition: transform 0.3s;
}

.dual__item:hover .dual__link::after {
    transform: translateX(5px);
}

.dual__item:hover .dual__eyebrow {
    color: rgba(255,255,255,0.7);
}

/* --- Inline history link (under media-split paragraphs) --- */

.history__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--green);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--green);
    transition: gap 0.3s, opacity 0.3s;
}

.history__link span {
    transition: transform 0.3s;
    display: inline-block;
}

.history__link:hover {
    opacity: 0.7;
}

.history__link:hover span {
    transform: translateX(4px);
}

/* --- Stats --- */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--grey-light);
    border-bottom: 1px solid var(--grey-light);
}

.stat {
    padding: 4rem 2rem;
    text-align: center;
    border-right: 1px solid var(--grey-light);
}

.stat:last-child {
    border-right: none;
}

.stat__number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    letter-spacing: var(--tracking-tight);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.7rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--grey);
}

/* --- Company Info --- */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    border-top: 1px solid var(--grey-light);
}

.info-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--grey-light);
}

.info-item__label {
    font-size: 0.65rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.info-item__value {
    font-size: 1rem;
}

/* --- Timeline --- */

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--grey-light);
}

.timeline__item {
    padding-left: 4rem;
    padding-bottom: 4rem;
    position: relative;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__text {
    color: var(--grey);
    font-size: 0.95rem;
    position: relative;
}

.timeline__text::before {
    content: '';
    position: absolute;
    left: -4rem;
    top: 0.45em;
    transform: translateX(-4px);
    width: 9px;
    height: 9px;
    background: var(--green);
    border-radius: 50%;
}

.timeline__year {
    font-size: 0.7rem;
    letter-spacing: var(--tracking-wide);
    color: var(--green);
    margin-bottom: 0.5rem;
}

.timeline__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* --- Block Center --- */

.block-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.block-center h2 {
    margin: 1rem 0 2rem;
}

.block-center__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--grey);
}

/* --- Values --- */

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.value__title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.value__text {
    font-size: 0.9rem;
    color: var(--grey);
}

/* --- Commitment (numbered list) --- */

.commitment {
    max-width: 800px;
}

.commitment__list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.commitment__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.commitment__num {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--green);
    line-height: 1;
}

.commitment__item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.commitment__item p {
    color: var(--grey);
    font-size: 0.95rem;
}

/* --- CTA --- */

.cta {
    background: var(--black);
    color: var(--white);
    padding: clamp(6rem, 15vh, 10rem) 0;
}

.cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4rem;
}

.cta h2 {
    flex: 1;
}

.cta__link {
    font-size: 0.7rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: 1.25rem 2.5rem;
    border: 1px solid var(--white);
    transition: all 0.4s;
    white-space: nowrap;
}

.cta__link:hover {
    background: var(--white);
    color: var(--black);
}

/* --- Footer --- */

.footer {
    background: var(--black);
    color: var(--white);
    padding: 6rem 0 3rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer__brand {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer__brand span {
    color: #4A9E6E;
}

.footer__desc {
    font-size: 0.85rem;
    color: #AAAAAA;
    max-width: 300px;
    line-height: 1.7;
}

.footer__title {
    font-size: 0.65rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: #AAAAAA;
    margin-bottom: 1.5rem;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__nav a {
    font-size: 0.85rem;
    color: #AAAAAA;
    transition: color 0.3s;
}

.footer__nav a:hover {
    color: var(--white);
}

.footer__bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999999;
}

/* --- Cookie Banner --- */

.cookie {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--black);
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    transform: translateY(200%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie.active {
    transform: translateY(0);
}

.cookie__text {
    font-size: 0.8rem;
    color: var(--grey);
}

.cookie__text a {
    color: var(--white);
    text-decoration: underline;
}

.cookie__btn {
    font-size: 0.7rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--white);
    color: var(--white);
    transition: all 0.3s;
}

.cookie__buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie__btn:hover {
    background: var(--white);
    color: var(--black);
}

.cookie__btn--reject {
    border-color: var(--grey);
    color: var(--grey);
}

.cookie__btn--reject:hover {
    background: var(--grey);
    color: var(--black);
}

/* --- Revoke button (cookies page) --- */

.btn--outline {
    font-size: 0.75rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--black);
    color: var(--black);
    background: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn--outline:hover {
    background: var(--black);
    color: var(--white);
}

/* --- Contact --- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.contact-card {
    padding: 3rem;
    border: 1px solid var(--grey-light);
    transition: all 0.4s;
}

.contact-card:hover {
    border-color: var(--green);
}

.contact-card__logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 2rem;
}

.contact-card .eyebrow {
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    margin-bottom: 2rem;
}

.contact-card__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-card__label {
    font-size: 0.65rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--grey);
}

.contact-card__value {
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-card__value:hover {
    color: var(--green);
}

/* --- Legal --- */

.legal {
    padding-top: 12rem;
    padding-bottom: 6rem;
}

.legal h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
}

.legal h2 {
    font-size: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.legal h3 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal p {
    color: var(--grey);
    margin-bottom: 1rem;
}

.legal ul {
    margin: 1rem 0 2rem 0;
}

.legal li {
    color: var(--grey);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.legal li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 1px;
    background: var(--green);
}

.legal table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.legal th, .legal td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--grey-light);
    font-size: 0.9rem;
}

.legal th {
    font-weight: 400;
    color: var(--grey);
    font-size: 0.7rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

/* --- Mobile Menu --- */

/* --- Menu open override (force dark over white bg) --- */

.header--menu-open .header__nav a {
    color: var(--black);
    text-shadow: none;
}

.header--menu-open .header__menu span {
    background: var(--black);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 300;
    letter-spacing: var(--tracking-tight);
}

/* --- FAQ --- */

.faq {
    max-width: 900px;
}

.faq__item {
    border-bottom: 1px solid var(--grey-light);
    padding: 2rem 0;
}

.faq__item:first-child {
    border-top: 1px solid var(--grey-light);
}

.faq__question {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.faq__answer {
    font-size: 0.95rem;
    color: var(--grey);
    line-height: 1.7;
}

/* --- Data Bar --- */

.data-bar {
    background: var(--green);
    color: var(--white);
    padding: 3rem 0;
}

.data-bar__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
}

.data-bar__item {
    flex: 1;
    padding: 0 2rem;
    border-right: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.data-bar__item:first-child {
    padding-left: 0;
}

.data-bar__item:last-child {
    border-right: none;
    padding-right: 0;
}

.data-bar__label {
    font-size: 0.65rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    opacity: 0.6;
}

.data-bar__value {
    font-size: 1rem;
    font-weight: 400;
}

/* --- Cards Dark --- */

.cards-dark {
    background: var(--green);
    color: var(--white);
    padding: clamp(8rem, 18vh, 14rem) 0;
}

.cards-dark__header {
    text-align: center;
    margin-bottom: 5rem;
}

.cards-dark__header h2 {
    margin-top: 1rem;
}

.cards-dark__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cards-dark__grid--4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1100px;
    margin: 0 auto;
}

.cards-dark__card {
    border: 1px solid rgba(255,255,255,0.15);
    padding: 3rem;
    transition: border-color 0.4s;
}

.cards-dark__card:hover {
    border-color: rgba(255,255,255,0.4);
}

.cards-dark__title {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.cards-dark__text {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.75;
}

/* --- Media Split --- */

.media-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    overflow: hidden;
}

.media-split__image {
    overflow: hidden;
}

.media-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-split__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 8vw, 6rem);
}

.media-split--accent {
    border-top: 4px solid var(--white);
}

.media-split--reversed {
    direction: rtl;
}

.media-split--reversed > * {
    direction: ltr;
}

.media-split__content .eyebrow {
    margin-bottom: 1.5rem;
}

.media-split__content h2 {
    margin-bottom: 2rem;
}

/* --- Steps (Proceso Numerado) --- */

.steps {
    background: var(--off-white);
    padding: clamp(8rem, 18vh, 14rem) 0;
}

.steps__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.steps__header h2 {
    margin: 1rem 0 2rem;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.steps__grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.steps__item {
    padding: 0 3rem;
    border-right: 1px solid var(--grey-light);
}

.steps__item:first-child {
    padding-left: 0;
}

.steps__item:last-child {
    border-right: none;
    padding-right: 0;
}

.steps__num {
    font-size: clamp(4rem, 6vw, 6rem);
    font-weight: 300;
    color: var(--green);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.steps__title {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.steps__text {
    font-size: 0.95rem;
    color: var(--grey);
    line-height: 1.7;
}

/* --- Parallax Section --- */

.parallax-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: clamp(6rem, 12vh, 10rem) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
}

.parallax-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 0;
}

.parallax-section__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.parallax-section__content h2 {
    margin-bottom: 2rem;
}

.parallax-section__content p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.parallax-section__content p:last-child {
    margin-bottom: 0;
}

/* --- Two Columns Editorial --- */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

.two-col::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--green);
    opacity: 0.3;
}

.two-col__left,
.two-col__right {
    padding: 0 clamp(2rem, 5vw, 5rem);
}

.two-col__left {
    padding-left: 0;
}

.two-col__right {
    padding-right: 0;
}

.two-col .eyebrow {
    margin-bottom: 1.5rem;
}

.two-col h3 {
    margin-bottom: 2rem;
}

.two-col p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    color: var(--grey);
    margin-bottom: 1.5rem;
}

.two-col p:last-child {
    margin-bottom: 0;
}

/* Two-col variant: white text over dark parallax */
.two-col--on-dark h3 {
    color: var(--white);
}

.two-col--on-dark p {
    color: rgba(255,255,255,0.85);
}

.two-col--on-dark::before {
    background: rgba(255,255,255,0.25);
}

/* Parallax variant: full-width content (skips 700px max) */
.parallax-section--wide {
    padding: clamp(6rem, 14vh, 10rem) 0;
}

.parallax-section--wide .wrap {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* --- Credits Page --- */

.cr-hero {
    background: var(--green);
    color: var(--white);
    padding-bottom: 14vh;
}

.cr-autor-datos {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--grey-light);
}

.cr-card-num {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: var(--tracking-wide);
    color: rgba(255,255,255,0.25);
    margin-bottom: 1.2rem;
}

.cr-cta__inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cr-cta__contacto {
    max-width: 380px;
    margin: 0 auto 3rem;
    text-align: left;
}

.cr-cta__dato {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cr-cta__dato:last-child {
    border-bottom: none;
}

.cr-cta__label {
    font-size: 0.65rem;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
}

.cr-cta__value {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--white);
    transition: color 0.3s;
}

.cr-cta__value:hover {
    color: #4A9E6E;
}

.cr-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cr-cta__btn--whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.cr-cta__btn--whatsapp:hover {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

@media (max-width: 768px) {
    .cr-cta__inner { text-align: center; }
    .cr-cta__inner .eyebrow { margin-bottom: 1.2rem; }
    .cr-cta__inner h2 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 1.5rem; }
    .cr-cta__inner .large { margin-bottom: 2.5rem; }
    .cr-cta__contacto { max-width: none; margin-bottom: 2rem; }
    .cr-cta__dato { flex-direction: column; gap: 0.2rem; align-items: center; }
    .cr-cta__buttons { flex-direction: column; align-items: center; }
    .cr-cta__buttons .cta__link { width: 100%; text-align: center; padding: 1.1rem 1.5rem; }
}

/* --- Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */

@media (max-width: 1024px) {
    .intro { grid-template-columns: 1fr; gap: 3rem; }
    .intro__left { position: static; }
    .dual { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--grey-light); }
    .stat:last-child { border-bottom: none; }
    .values { grid-template-columns: 1fr; gap: 3rem; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .data-bar__grid { flex-wrap: wrap; }
    .data-bar__item { flex: 0 0 calc(50% - 1rem); padding: 1rem 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .data-bar__item:nth-last-child(-n+2) { border-bottom: none; }
    .cards-dark__grid { grid-template-columns: 1fr; }
    .media-split { grid-template-columns: 1fr; }
    .media-split__image { min-height: 50vh; }
    .media-split__content { padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 4rem); }
    .steps__grid, .steps__grid--4 { grid-template-columns: 1fr; gap: 4rem; }
    .steps__item { padding: 0; border-right: none; border-bottom: 1px solid var(--grey-light); padding-bottom: 4rem; }
    .steps__item:last-child { border-bottom: none; padding-bottom: 0; }
    .two-col { grid-template-columns: 1fr; gap: 4rem; }
    .two-col::before { left: 0; top: auto; bottom: 50%; width: 60px; height: 1px; }
    .two-col__left, .two-col__right { padding: 0; }
    .hero--parallax, .parallax-section { background-attachment: scroll; }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .header__nav { display: none; }
    .header__menu { display: flex; }
    .hero { padding: 6rem 0; height: 100vh; height: 100dvh; min-height: 0; max-height: 100dvh; overflow: hidden; }
    .cta__inner { flex-direction: column; align-items: flex-start; }
    .info-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; text-align: center; }
    .footer__grid > div:first-child { grid-column: 1 / -1; }
    .footer__desc { max-width: none; font-size: 1rem; line-height: 1.7; }
    .footer__brand { font-size: 0.95rem; }
    .footer__title { font-size: 0.8rem; }
    .footer__nav a { font-size: 1rem; }
    .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; align-items: center; font-size: 0.9rem; }
    .cookie { flex-direction: column; text-align: center; bottom: 1rem; left: 1rem; right: 1rem; }
    .data-bar { padding: 2rem 0; }
    .data-bar__grid { flex-direction: column; }
    .data-bar__item { flex: none; padding: 0.75rem 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .data-bar__item:last-child { border-bottom: none; }
    .cards-dark__card { padding: 2rem; }
    .media-split__image { min-height: 40vh; }
    .parallax-section { min-height: 60vh; }
    .parallax-section__content { padding: 0 1rem; }
    .two-col::before { display: none; }

    /* Hero centering + editorial sizing on mobile (Home, Empresa, Contacto) */
    .hero__content {
        text-align: center;
    }
    .hero__line {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hero h1 {
        font-size: clamp(3.2rem, 13vw, 5rem);
    }
    .hero__sub {
        font-size: clamp(1rem, 3.5vw, 1.15rem);
    }
    .hero .eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.18em;
    }
    .cta__inner {
        text-align: center;
        align-items: center;
    }
}
