/*
Theme Name: Revinova AI Theme
Description: Custom block-based theme mapped from Astro
Version: 1.0
*/

:root {
    --font-lato: 'Lato', sans-serif;
    --font-open-sans: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-open-sans);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-lato {
    font-family: var(--font-lato);
}

/* Header Parity Styles */
#main-header {
    backface-visibility: hidden;
    will-change: background-color, box-shadow;
}

#products-dropdown {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography Utils */
.font-300 {
    font-weight: 300;
}

.font-400 {
    font-weight: 400;
}

.font-500 {
    font-weight: 500;
}

.font-600 {
    font-weight: 600;
}

.font-700 {
    font-weight: 700;
}

.font-900 {
    font-weight: 900;
}

/* Gradient Text Support */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Footer Backdrop Text */
.footer-backdrop-text {
    font-family: var(--font-open-sans);
    letter-spacing: -0.02em;
}

/* Global Container System */
.revinova-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ─── Gutenberg Content Fix (revinova-container-wp) ──────────────── */
/* Targets content manually grouped in Admin using this class.
   Uses high specificity (body .class) to avoid !important. */

body .revinova-container-wp {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding: 1.25rem;
    font-family: var(--font-lato);
    color: #2D1B45;
    line-height: 1.6;
}

@media (min-width: 768px) {
    body .revinova-container-wp {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    body .revinova-container-wp {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1280px) {
    body .revinova-container-wp {
        padding-left: 5rem;
        padding-right: 5rem;

    }
}

/* Typography Standardization */
body .revinova-container-wp h1,
body .revinova-container-wp h2,
body .revinova-container-wp h3,
body .revinova-container-wp h4,
body .revinova-container-wp h5,
body .revinova-container-wp h6,
body .revinova-container-wp .wp-block-heading {
    font-family: var(--font-lato);
    color: #2D1B45;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

body .revinova-container-wp h1 {
    font-size: 3rem;
}

body .revinova-container-wp h2 {
    font-size: 2.25rem;
}

/* ~36px */
body .revinova-container-wp h3 {
    font-size: 1.875rem;
}

/* ~30px */
body .revinova-container-wp h4 {
    font-size: 1.5rem;
}

/* ~24px */
body .revinova-container-wp h5 {
    font-size: 1.25rem;
}

/* ~20px */
body .revinova-container-wp h6 {
    font-size: 1.1rem;
}

body .revinova-container-wp p {
    font-size: 18px;
    margin-bottom: 1.5rem;
    color: #2D1B45;
}

/* Lists */
body .revinova-container-wp ul,
body .revinova-container-wp ol,
body .revinova-container-wp .wp-block-list {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

body .revinova-container-wp ul {
    list-style-type: disc;
}

body .revinova-container-wp ol {
    list-style-type: decimal;
}

body .revinova-container-wp li {
    margin-bottom: 0.5rem;
    font-family: var(--font-lato);
}

body .revinova-container-wp li::marker {
    color: #BA70C7;
    font-weight: bold;
}

/* Links */
body .revinova-container-wp a {
    color: #BA70C7;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s ease;
}

body .revinova-container-wp a:hover {
    color: #341852;
}

/* Images & Figures */
body .revinova-container-wp img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    display: block;
}

body .revinova-container-wp figure {
    margin: 2rem 0;
}

body .revinova-container-wp figcaption {
    text-align: center;
    font-size: 14px;
    color: #868686;
    margin-top: 0.5rem;
}

/* Blockquotes */
body .revinova-container-wp blockquote {
    border-left: 4px solid #F3B7FD;
    padding: 1rem 0 1rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #341852;
    background: #FFFAFF;
}

/* Tables */
body .revinova-container-wp table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

body .revinova-container-wp th,
body .revinova-container-wp td {
    padding: 12px;
    border: 1px solid #DCDCDC;
    text-align: left;
}

body .revinova-container-wp th {
    background: #F2EEFD;
    color: #341852;
    font-weight: 700;
}

/* =============================================
   HERO BLOCKS — Remove WP default block margins
   WordPress injects margin-block-start between
   blocks. Hero sections must flush against header.
   ============================================= */
.wp-block-acf-use-case-hero,
.wp-block-acf-pricing-page-hero,
.wp-block-acf-see-action-hero,
.wp-block-acf-about-hero,
.wp-block-acf-about-hero-custom,
.wp-block-acf-form-hero,
.wp-block-acf-tenant-hero,
.wp-block-acf-home-hero,
.wp-block-acf-try-free-hero {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =============================================
   Leadership/Team Grid — image aspect ratio fix
   Ensures portrait photos don't stretch inside
   gradient frame cards.
   ============================================= */
.wp-block-acf-leadership-grid img {
    object-fit: cover;
    width: 100%;
}