/**
 * Paisana - Main Stylesheet
 * 
 * Base styles for the theme.
 * Block-specific styles are loaded per-block.
 */

 :root :where(.editor-styles-wrapper)::after {
    display: none !important;
 }

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('../fonts/Sweet Sans/SweetSansPro-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('../fonts/Sweet Sans/SweetSansPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('../fonts/Sweet Sans/SweetSansPro-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('../fonts/Sweet Sans/SweetSansPro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('../fonts/Sweet Sans/SweetSansPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('../fonts/Sweet Sans/SweetSansPro-Heavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../fonts/TT Commons/TTCommonsPro-Lt.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../fonts/TT Commons/TTCommonsPro-Rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../fonts/TT Commons/TTCommonsPro-It.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../fonts/TT Commons/TTCommonsPro-Md.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../fonts/TT Commons/TTCommonsPro-Bd.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../fonts/TT Commons/TTCommonsPro-Blk.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-1: #F8F2E5;
    --color-2: #03090D;
    --color-3: #C2644F;
    --color-4: #779580;
    --color-5: #83A9D0;
    --color-6: #FFFFFF;
    --color-8: #D3CFC5;
    --color-7: #03090D60;

    --color-primary: var(--color-1);
    --color-secondary: var(--color-2);
    --color-accent: var(--color-3);
    --color-success: var(--color-4);
    --color-info: var(--color-5);
    --color-white: var(--color-6);
    --color-black: var(--color-2);

    --font-1: 'Sweet Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-2: 'TT Commons Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --font-primary: var(--font-1);
    --font-secondary: var(--font-2);

    --grid-columns: 12;
    --grid-margin: 20px;
    --grid-gap: 20px;
    
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    --size-unit: 16;
    --size-container-ideal: 1728;
    --size-container-min: 1025px;
    --size-container-max: 1920px;
    --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
    --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));
}

@media screen and (max-width: 1024px) {
  :root {
    --size-container-ideal: 834;
    --size-container-min: 768px;
    --size-container-max: 1024px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 550;
    --size-container-min: 480px;
    --size-container-max: 767px;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 360;
    --size-container-min: 320px;
    --size-container-max: 479px;
    --grid-columns: 4;
    --grid-margin: 20px;
    --grid-gap: 20px;
  }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-wrap: balance;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

html.lenis, html.lenis body {
    height: auto;
}

body {
    font-family: var(--font-primary);
    font-size: var(--size-font);
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-primary);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.title-xl {
    font-size: 5.125em;
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0.025em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}

@media screen and (max-width: 1024px) {
    .title-xl { 
        font-size: 2.5em;
    }
}

.title-l {
    font-size: 4em;
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0.025em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}

@media screen and (max-width: 1024px) {
    .title-l {
        font-size: 1.5em;
        letter-spacing: 0.025em;
    }
}

.title-m {
    font-size: 3.625em;
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0.025em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
    margin: 0;
}

@media screen and (max-width: 1024px) {
    .title-m { 
        font-size: 2em;
        letter-spacing: 0.025em;
    }
}

.title-s {
    font-size: 3em;
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0.025em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}

@media screen and (max-width: 1024px) {
    .title-s { 
        font-size: 1.5em;
        letter-spacing: 0.025em;
    }
}

.title-medium {
    font-size: 2.5em;
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0.025em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}

@media screen and (max-width: 1024px) {
    .title-medium { 
        font-size: 1.5em;
        letter-spacing: 0.025em;
    }
}

.title-sm {
    font-size: 2em;
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0.025em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}

@media screen and (max-width: 1024px) {
    .title-sm { 
        font-size: 1.5em;
        letter-spacing: 0.025em;
    }
}

.title-xs {
    font-size: 1.5em;
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0.025em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}

@media screen and (max-width: 1024px) {
    .title-xs {
        font-size: 1.125em;
        letter-spacing: 0.025em;
    }
}

.eyebrow-l {
    font-size: 1.5em;
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0.075em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}

.eyebrow {
    font-size: 0.875em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04375em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}


.eyebrow-mini {
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04375em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}

.paragraph-l {
    font-size: 1.125em;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    font-family: var(--font-secondary);
    color: inherit;
}

@media screen and (max-width: 1024px) {
    .paragraph-l {
        font-size: 1.125em;
    }
}

.paragraph-m {
    font-size: 1em;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    font-family: var(--font-secondary);
    color: inherit;
}

.link {
    font-size: 0.875em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.70em;
}

.link-mini {
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04375em;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: inherit;
}

@media screen and (max-width: 1024px) {
    .link-mini {
        font-size: 0.6875em;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.04375em;
        font-family: var(--font-primary);
        text-transform: uppercase;
        color: inherit;
    }
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.43em;
    transition: all 0.3s ease-in-out;
}

.btn-secondary.button-dark svg circle,
.btn-secondary.button-dark svg path {
  transition: fill 0.3s ease-in-out;
}

.btn-secondary.button-dark {
    color: var(--color-2);
}

.btn-secondary.button-dark svg circle {
    fill: var(--color-2);
}

.btn-secondary.button-dark svg path {
    fill: var(--color-1);
}

/* 🔥 HOVER */
.btn-secondary.button-dark:hover {
    color: #383B3D;
}

.btn-secondary.button-dark:hover svg circle {
    fill: #383B3D;
}

.btn-secondary.button-light {
    color: var(--color-1);
    transition: all 0.3s ease-in-out;
}

.btn-secondary.button-light svg circle,
.btn-secondary.button-light svg path {
  transition: fill 0.3s ease-in-out;
}


.btn-secondary.button-light svg circle {
    fill: var(--color-1);
}

.btn-secondary.button-light svg path {
    fill: var(--color-2);
}

.btn-secondary.button-light:hover svg circle {
    fill: var(--color-2);
}

.btn-secondary.button-light:hover svg path {
    fill: var(--color-1);
}

.special-rotate svg {
    transform: rotate(-30deg);
}

.wp-block-buttons {
    gap: var(--spacing-sm);
}

.wp-block-button__link {
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 0;
}

.wp-block-group,
.wp-block-columns {
    margin-top: 0;
    margin-bottom: 0;
}

/* ========================================
   GLOBAL ANIMATIONS
   ======================================== */

/* Split text words */
.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.word-inner {
    display: inline-block;
}

/* Line words for paragraphs */
.line-word {
    display: inline-block;
}

/* Image reveal wrapper */
.img-reveal {
    overflow: hidden;
    display: block;
}

/* =====================
   GENERIC MEDIA
   ===================== */

.media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* elemento base (img ou video) */
.media__item {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    
}

/* vídeo específico */
.media__video {
  background: #000; /* evita flash branco */
}

/* imagem específica (opcional, se quiser customizar depois) */
.media__image {
}

/* quando usado como background absoluto */
.media--background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* conteúdo acima do background */
.media--background + * {
  position: relative;
  z-index: 1;
}

/* ========================================
   PARALLAX BACKGROUND SYSTEM
   Background images/videos in full-image and
   text-image blocks scroll slower than content
   via GSAP scrub. will-change hints for GPU.
   ======================================== */

.block-full-image__image,
.block-text-image .block-card-content__video,
.block-text-image .block-card-content__figure,
.block-hero__bg-media,
.block-card-content__video,
.block-card-content__image,
.block-image-cta .media__item,
.block-hero-simple__background {
  will-change: transform;
}
