/*
Theme Name: Rappid 2026
Description: A clean, modern WordPress theme for conferences based on HTML5 UP Directive template.
Author: Karine Cardona
Text Domain: rappid2026
*/

/* ==========================================
   CSS Variables for Easy Customization
   ========================================== */
:root {
    /* Colors - Based on HTML5 UP Directive */
    --color-primary: #4eb980;        /* Green accent color */
    --color-secondary: #fbb651;      /* Yellow accent color */
    --color-accent: #333333;         /* Dark gray */

    --color-bg-main: #ffffff;
    --color-bg-alt: #f7f7f7;
    --color-bg-dark: #000000;        /* Dark gray for header/footer */

    --color-text-primary: #515151;   /* Body text */
    --color-text-heading: #515151;   /* Heading text */
    --color-text-light: #ffffff;
    --color-text-dark: #000000;

    --color-border: rgba(224, 224, 224, 0.75);
    --color-border-light: #eeeeee;

    --color-link: #4eb980;           /* Green links */
    --color-link-hover: #fbb651;

    --color-button-bg: #544d55;      /* Button background */
    --color-button-hover: #6e6570;   /* Button hover */

    /* Fonts */
    --font-primary: 'Source Serif Pro', Georgia, serif;
    --font-heading: 'Source Sans Pro', Helvetica, sans-serif;

    /* Font Sizes */
    --font-size-base: 16pt;
    --font-size-small: 0.9em;
    --font-size-large: 1.2em;

    --font-size-h1: 2.5em;
    --font-size-h2: 1.75em;
    --font-size-h3: 1.5em;
    --font-size-h4: 1.25em;
    --font-size-h5: 1em;
    --font-size-h6: 0.9em;

    /* Spacing */
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 3rem;
    --spacing-xlarge: 4rem;

    /* Layout */
    --content-max-width: 51rem;       /* 816px at 16pt base */
    --header-height: 80px;

    /* Transitions */
    --transition-speed: 0.2s;
}

/* WordPress color classes */
.has-primary-background-color {
    background-color: var(--color-primary) !important;
}

.has-secondary-background-color {
    background-color: var(--color-secondary) !important;
}

.has-accent-background-color {
    background-color: var(--color-accent) !important;
}

.has-white-background-color {
    background-color: #ffffff !important;
}

.has-primary-color {
    color: var(--color-primary) !important;
}

.has-secondary-color {
    color: var(--color-secondary) !important;
}
.has-medium-gray-color {
    color: var(--color-accent) !important;
}

.has-accent-color {
    color: var(--color-accent) !important;
}

.has-white-color {
    color: #ffffff !important;
}

/* Make background colors apply to the full-width outer container */
.wp-block-group.alignfull.center-call[class*="has-background"] {
    /* Keep the background on the outer div */
}

.wp-block-group.alignfull.center-call .wp-block-group__inner-container {
    background: none !important;
    padding: 1rem 0 3rem;
}

/* Move background from inner to outer */
.wp-block-group.alignfull.center-call.has-primary-background-color .wp-block-group__inner-container {
    background: none !important;
}

.wp-block-group.alignfull.center-call.has-primary-background-color {
    background-color: var(--color-primary) !important;
}

.wp-block-group.alignfull.center-call.has-secondary-background-color {
    background-color: var(--color-secondary) !important;
}

.wp-block-group.alignfull.center-call.has-medium-gray-background-color {
    background-color: var(--color-accent) !important;
}

.wp-block-group.alignfull.center-call.has-white-background-color {
    background-color: #ffffff !important;
}
/* ==========================================
   Reset and Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background: var(--color-bg-main);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.75em;

}


.wp-block-accordion-heading { }

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

p {
    margin-bottom: var(--spacing-medium);
}

a {
    color: var(--color-link);
    text-decoration: none;
    border-bottom: dotted 1px;
    transition: color var(--transition-speed), border-bottom-color var(--transition-speed);
}

a:hover {
    border-bottom-color: transparent;
}


strong, b {
    font-weight: 600;
    color: var(--color-text-heading);
}

/* tables */
tbody tr:nth-child(odd) {
    background-color: var(--color-bg-main);
}

tbody tr:nth-child(even) {
    background-color: var(--color-bg-alt);
}

/* ==========================================
   Header & Navigation
   ========================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-bg-dark);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1em 0;
    font-family: var(--font-heading);
}

.header-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.site-branding h1 {
    margin: 0;
    font-size: 1.5em;
}

.site-branding a {
    color: var(--color-text-light);
    font-weight: 700;
}

.site-branding a:hover {
    color: var(--color-primary);
}
.custom-logo-link {
    display: flex;
    margin-top: 1em;
    border-bottom: none;
}
.custom-logo {
    max-width:6em;
}
/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: var(--spacing-small);
}

.main-navigation a {
    color: var(--color-text-light);
    font-weight: 600;
    padding: 0;
    display: block;
    transition: color var(--transition-speed);
}

.main-navigation a:hover {
    color: var(--color-primary);
}
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--color-secondary);
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-text-light);
    color: var(--color-text-light);
    padding: 0.2em 0.5em;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    min-width: 8em!important;
}

.menu-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ==========================================
   Hero Header Section (Directive Style)
   ========================================== */
.directive-hero {
    background-attachment: scroll, scroll, fixed;
    background-position: bottom center, top left, center center;
    background-repeat: repeat-x, repeat, no-repeat;
    background-size: 3200px 460px, auto, cover;
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 5em 0 10em 0;
    position: relative;
    text-align: center;
    margin-top: var(--header-height);
    margin-bottom:5em;
}

.directive-hero:before {
    background: rgba(224, 224, 224, 0.75);
    content: '';
    left: 50%;
    position: absolute;
    width: 1px;
    height: calc(100% - 50px);
    opacity: 0.10;
    top: 0;
    z-index: 0;
}

.directive-hero:after {
    background: rgba(224, 224, 224, 0.75);
    content: '';
    left: 50%;
    position: absolute;
    width: 1px;
    bottom: 0;
    height: 50px;
    z-index: 0;
}

.directive-hero .hero-content {
    position: relative;
    z-index: 1;
}

.directive-hero h1,
.directive-hero h2,
.directive-hero p {
    color: #ffffff;
}

.directive-hero a {
    border-bottom-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.8);
}

.directive-hero a:hover {
    border-bottom-color: transparent;
    color: var(--color-secondary);
}


.directive-hero h1 {
    font-size: 2.5em;
    margin-bottom: 0.35em;
    text-transform: none;
    letter-spacing: normal;
    line-height: 0.95em;
}
.directive-hero h1 img {
    margin-bottom:1em;
}
.directive-hero .conference-date {
    font-size:1.5em;
    font-family: var(--font-heading);
}

.directive-hero p {
    font-size: 1.1em;
    margin: 0;
}

/* ==========================================
   Center Call Section (Quote with Lines)
   ========================================== */

.center-call {
    padding: 4em 2em;
    text-align: center;
    position: relative;
    margin-top: 4rem;
}

.center-call:before,
.center-call:after {
    background: rgba(224, 224, 224, 0.75);
    content: '';
    height: 6em;
    left: 50%;
    position: absolute;
    width: 1px;
}

.center-call:before {
    top: 0;
}

.center-call:after {
    bottom: 0;
}

.center-call-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.center-call h2 {
    font-size: 1.75em;
    line-height: 1.5em;
    margin: 2em 0;
    min-height: 4em;
}

/* ==========================================
   Layout
   ========================================== */

/* Full Width Sections */
.full-width-section {
    width: 100%;
    padding: var(--spacing-xlarge) var(--spacing-medium);
}

.full-width-section.alt {
    background: var(--color-bg-alt);
}

.full-width-section.dark {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.full-width-section.dark h1,
.full-width-section.dark h2,
.full-width-section.dark h3,
.full-width-section.dark h4,
.full-width-section.dark h5,
.full-width-section.dark h6 {
    color: var(--color-text-light);
}

/* Container for content width control */
.section-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    background-color: var(--color-primary);
}

/* Page Content */
.page-content,
.post-content {
    margin-top: calc(var(--header-height) + 3em);
    font-family: Serif;
}

.content-wrapper {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* Entry content - allow full-width blocks */
.entry-content {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.entry-content > *:not(.alignfull):not(.wp-block-cover) {
    max-width: var(--content-max-width)!important;
    margin-left: auto!important;
    margin-right: auto!important;
    padding-left: var(--spacing-medium)!important;
    padding-right: var(--spacing-medium)!important;
}

/* Ensure full-width blocks extend properly */
.entry-content .alignfull,
.entry-content .wp-block-cover.alignfull {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    background-color: var(--color-bg-main);
}

/* ==========================================
   Footer (Directive Style - Green with Triangle)
   ========================================== */
#site-footer {
    background-attachment: scroll;
    background-color: var(--color-primary);
    background-color: var(--color-secondary);
    background-image: url('assets/images/bottom-3200.svg');
    background-position: top center;
    background-repeat: repeat-x;
    background-size: 3200px 460px;
    color: var(--color-text-dark);
    margin-top: 0;
    padding: calc(460px + 6em) 0 10em 0;
    position: relative;
    text-align: center;
    font-family: var(--font-heading);
}

#site-footer:before {
    background: rgba(224, 224, 224, 0.75);
    content: '';
    height: calc(460px + 6em);
    left: 50%;
    position: absolute;
    top: 0;
    width: 1px;
    z-index: 0;
}

.footer-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#site-footer h1,
#site-footer h2,
#site-footer h3,
#site-footer h4,
#site-footer h5,
#site-footer h6 {
    color: var(--color-text-dark);
}

#site-footer a {
    color: var(--color-text-dark);
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

#site-footer a:hover {
    color: var(--color-primary);
    border-bottom-color: transparent;
}

#site-footer .copyright {
    font-size: 0.9em;
    margin-top: 3em;
    opacity: 0.8;
}

/* CTA in Footer Style */
.footer-cta {
    padding: 4em 2em;
    margin-bottom: 280px;
    text-align: center;
    position: relative;
}

.footer-cta:before,
.footer-cta:after {
    background: rgba(224, 224, 224, 0.75);
    content: '';
    height: 6em;
    left: 50%;
    position: absolute;
    width: 1px;
}

.footer-cta:before {
    top: 0;
}

.footer-cta:after {
    bottom: -260px;
    height: 260px;
}

.footer-cta h3 {
    font-size: 1.75em;
    margin-top: 3em;
}

.footer-cta p {
    font-size: 1.1em;
    margin-bottom: 2em;
}

/* ==========================================
   Buttons
   ========================================== */
.button,
button,
input[type="submit"],
input[type="button"] {
    appearance: none;
    display: inline-block;
    padding: 0 1.5em;
    background: var(--color-button-bg);
    color: var(--color-text-light);
    border: 0;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.125em;
    line-height: 3.25em;
    min-width: 15em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease-in-out;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--color-button-hover);
    color: var(--color-text-light);
}

.button.alt,
input[type="submit"].alt,
input[type="button"].alt {
    background: none;
    color: var(--color-button-bg);
    box-shadow: inset 0 0 0 2px rgba(224, 224, 224, 0.75);
}

.button.alt:hover,
input[type="submit"].alt:hover,
input[type="button"].alt:hover {
    background: rgba(224, 224, 224, 0.15);
}

/* ==========================================
   WordPress Specific
   ========================================== */
.alignleft {
    float: left;
    margin-right: var(--spacing-medium);
    margin-bottom: var(--spacing-small);
}

.alignright {
    float: right;
    margin-left: var(--spacing-medium);
    margin-bottom: var(--spacing-small);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-small);
}

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

/* Full-width alignment for blocks */
.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ==========================================
   Cover Blocks & Hero Sections
   ========================================== */

/* WordPress Cover Block Support */
.wp-block-cover,
.wp-block-cover-image {
    padding: var(--spacing-xlarge) var(--spacing-medium);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.wp-block-cover.alignfull,
.wp-block-cover-image.alignfull {
    min-height: 500px;
}

.wp-block-cover__inner-container,
.wp-block-cover-image-text {
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover p {
    color: var(--color-text-light);
}

/* Hero Section - Full-width header block */
.hero-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: calc(var(--spacing-xlarge) * 2) var(--spacing-medium);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section.with-image {
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(57, 69, 75, 0.7);
    z-index: 1;
}

.hero-section .hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p {
    color: var(--color-text-light);
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: var(--spacing-small);
    font-weight: 700;
}

.hero-section p {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-medium);
}

/* CTA Section using WordPress blocks */
.wp-block-group.cta-section {
    background: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
}

.wp-block-group.cta-section.dark {
    background: var(--color-bg-dark);
}


.wp-block-group.cta-section h2 {
    color: var(--color-text-light);
}

.wp-block-group.cta-section p {
    color: var(--color-text-light);
}

.wp-block-group.cta-section .wp-block-button__link {
    background: var(--color-primary);
    color: var(--color-text-light);
    margin: 0.5em;
    font-family: var(--font-heading);
}

.wp-block-group.cta-section .wp-block-button__link:hover {
    background: var(--color-bg-alt);
    color: var(--color-text-heading);
}
/* WordPress Button Blocks */
.wp-block-button__link {
    display: inline-block;
    padding: 0.8em 2em;
    background: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed);
    text-align: center;
    text-decoration: none;
}

.wp-block-button__link:hover {
    background: var(--color-link-hover);
    color: var(--color-text-light);
}

.wp-block-buttons {
    display: flex;
    gap: var(--spacing-small);
    flex-wrap: wrap;
    justify-content: center;
}

/* Image Overlay Support */
.has-background-dim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* wp accordions */
.wp-block-accordion-heading__toggle { font-size: var(--font-size-h4); }
.wp-block-accordion-item { border-bottom:1px solid var(--color-border);}

/* ==========================================
   Responsive Design
   ========================================== */
@media screen and (max-width: 1280px) {
    .directive-hero {
        background-size: 1600px 230px, auto, cover;
        padding: 8em 0 14em 0;
    }

    #site-footer {
        background-size: 1600px 230px;
        margin-top: -40px;
        padding: calc(230px + 4em) 0 6em 0;
    }

    #site-footer:before {
        height: calc(230px + 4em);
    }

    .footer-cta {
        margin-bottom: 130px;
    }

    .footer-cta:after {
        bottom: -130px;
        height: 130px;
    }
}

@media screen and (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: calc(var(--header-height) + 2rem);
        left: -100%;
        width: 100%;
        background: var(--color-bg-dark);
        transition: left 0.3s;
        padding: var(--spacing-medium);
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation li {
        margin: 0;
        margin-bottom: var(--spacing-small);
    }
    .directive-hero {
        background-size: 1280px 184px, auto, cover;
        padding: 6em 0 10em 0;
    }

    .directive-hero h1 {
        font-size: 2em;
    }

    #site-footer {
        background-size: 1280px 184px;
        margin-top: -104px;
        padding: calc(184px + 3em) 0 4em 0;
    }

    #site-footer:before {
        height: calc(184px + 3em);
    }

    .footer-cta {
        margin-bottom: 104px;
    }

    .footer-cta:after {
        bottom: -104px;
        height: 104px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
        --font-size-h1: 2em;
        --font-size-h2: 1.6em;
        --spacing-medium: 1.5rem;
        --spacing-large: 2rem;
        --spacing-xlarge: 2.5rem;
    }




    .full-width-section {
        padding: var(--spacing-large) var(--spacing-small);
    }


    /* Hero Section Mobile */
    .hero-section {
        min-height: 400px;
        padding: var(--spacing-large) var(--spacing-small);
    }

    .hero-section h1 {
        font-size: 2em;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: var(--spacing-large) var(--spacing-small);
    }

    .wp-block-cover,
    .wp-block-cover-image {
        min-height: 300px;
    }

    .wp-block-buttons {
        flex-direction: column;
    }

    .directive-hero {
        padding: 5em 1em 8em 1em;
    }

    .directive-hero .logo {
        font-size: 2em;
    }

    .directive-hero h1 {
        font-size: 1.75em;
    }

    .center-call h2 {
        font-size: 1.35em;
    }

    .footer-cta h3 {
        font-size: 1.35em;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }
    .custom-logo {
        max-width:3em;
    }
    .hero-section h1 {
        font-size: 1.8em;
    }

    .directive-hero {
        padding: 4em 1em 6em 1em;
    }

    .directive-hero h1 {
        font-size: 1.5em;
    }
}