/*
Theme Name: Child Theme
Theme URI: https://truthandhugs.com
Description: Child theme for generatepress
Author: Your Name
Author URI: https://truthandhugs.com
Template: generatepress
Version: 1.0.0
*/

/* Add your custom CSS below this line */



/* ==========================================================================
   1. HERO VIDEO CLICK-TO-LOAD SYSTEM
   INSTRUCTIONS FOR ADDING NEW VIDEOS:
   1. Upload new video and 1280x720 jpg to media library.
   1. Select the Youtube Video Container in the WordPress Editor.
   2. Go to Advanced > HTML Anchor: Paste the 11-character YouTube ID here.
      NOTE: GP theme adds ID- automatically to this value when page saved.
   3. Go to Advanced > Additional CSS Class(es): Add 'hero-video-trigger'.
   4. Go to Background settings: Set to new thumbnail in media library.
   ========================================================================== */

/* Main Container: Forces 16:9, prevents column spill, and handles overflow */
.hero-video-trigger {
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    aspect-ratio: 16 / 9;
    z-index: 10;
    width: 100% !important; /* Prevents spilling into right column */
    max-width: 100%;        /* Ensures responsiveness on mobile */
    box-sizing: border-box;
    border-radius: 12px !important; /* Adds radius to corner of video frame */
}

/* Play Button Overlay: Centers the YouTube PNG over the thumbnail */
.hero-video-trigger::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;  
    height: 56px; 
    background-image: url('https://truthandhugs.com/wp-content/uploads/2026/05/youtube-logo-1024.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 15;
    opacity: 0.9;
}

/* Hover Effect: Icon pops when hovering the thumbnail */
.hero-video-trigger:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* Hide Overlay: Removes the icon once the iframe video is active */
.hero-video-trigger:has(iframe)::before {
    display: none;
}

/* Passthrough: Prevents internal icons from blocking the click event */
.hero-video-trigger * {
    pointer-events: none;
}

/* Control Restoration: Re-enables clicking for YouTube player controls */
.hero-video-trigger iframe {
    pointer-events: auto !important;
    z-index: 20;
    width: 100%;
    height: 100%;
    border-radius: 12px !important; /* Adds radius to video frame */
}

/* ==========================================================================
   2. SITE HEADER & BRANDING
   Logo styling, header padding, and alignment.
   ========================================================================== */

/* Circular Logo: 80px fixed size */
.site-logo img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    image-rendering: -webkit-optimize-contrast;
    display: block !important;
}

/* Header Spacing: Tightens the vertical white space */
.inside-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Branding Alignment: Centers logo with the Site Title */
.site-branding {
    display: flex !important;
    align-items: center !important;
}

.site-logo {
    margin-right: 15px !important;
    line-height: 0 !important;
}

.main-title {
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

/* ==========================================================================
   3. NAVIGATION (STICKY MENU)
   Matches sticky navigation width and alignment to the static header.
   ========================================================================== */

#sticky-navigation .inside-navigation {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* ==========================================================================
   4. SECTION ICONS (PSEUDO-ELEMENTS)
   Adds custom icons to headings for Ask Me, Ko-fi, and YouTube.
   ========================================================================== */

/* "Ask Me Three" Heading Icon */
.ask-me-heading:after {
    content: "";
    display: inline-block;
    background-image: url('https://truthandhugs.com/wp-content/uploads/2026/05/ask-me-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 34px;
    height: 34px;
    margin-left: 20px;
    vertical-align: middle;
    transform: translateY(-18px);
    opacity: 0.95;
    border: 2px solid #bb6e01;
    border-radius: 50%;
    box-sizing: content-box;
    margin-bottom:-20px;
}

/* Support (Ko-fi) Section Heading */
.support-heading-with-icon {
    display: flex;
    align-items: center;
    text-transform: none;
    margin-top: -15px; 
    margin-bottom: 0px; 
}

.support-heading-with-icon::after {
    content: "";
    display: inline-block;
    width: 55px; 
    height: 55px;
    margin-left: 12px;
    background-image: url('https://truthandhugs.com/wp-content/uploads/2026/05/kofi-logo.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-1px);
}

/* Contact Heading Icon */
/* Specific Icon for Contact Heading only */
.contact-heading-icon {
    display: flex;
    align-items: center;
}

.contact-heading-icon:after {
    content: "";
    display: inline-block;
    background-image: url('https://truthandhugs.com/wp-content/uploads/2026/05/email-icon.png');
    background-repeat: no-repeat;
    background-position: center;

    /* --- ADJUST SIZE HERE --- */
    width: 44px;  /* Width of the border */
    height: 34px; /* Height of the border (The "Oblong" setting) */
    
    /* --- MANUALLY SET ICON SIZE --- */
    background-size: 36px 36px; 

    /* --- VERTICAL NUDGE --- */
    /* Use negative values (e.g., -5px) to move UP */
    /* Use positive values (e.g., 5px) to move DOWN */
    transform: translateY(-5px); 
    /* ---------------------- */

    border: 2px solid #53a002;
    border-radius: 8px;
    margin-left: 18px;
}

/* YouTube Section Heading Icon */
.yt-heading-with-icon {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.yt-heading-with-icon::after {
    content: "";
    display: inline-block;
    width: 45px; 
    height: 32px;
    margin-left: 15px;
    background-image: url('https://truthandhugs.com/wp-content/uploads/2026/05/youtube-logo-1024.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* YouTube Subscribe Button Styling */
.your-button-class {
    background-color: #FF0000;
    transition: background-color 0.3s ease;
}

.your-button-class:hover {
    background-color: #CC0000;
}

/* ==========================================================================
   5. PAGE LAYOUT & BLOCK SPACING
   Removes default padding to create flush, section-based layouts.
   ========================================================================== */

/* Removes padding for specific page (Home) */
.page-id-20 .entry-content {
    padding: 0 !important;
}

/* Forces GB Containers to be flush (removes vertical gaps) */
.entry-content {
    display: flex;
    flex-direction: column;
}

.entry-content > .gb-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   6. FLUENT FORM CUSTOM STYLES
   Handles field shapes, hover effects, and button styling.
   ========================================================================== */

/* 1. Square Field Edges */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform textarea,
.fluentform select {
    border-radius: 0 !important;
}

/* 2. Hover Effect: Washed-out Pale Green */
.fluentform input[type="text"]:hover,
.fluentform input[type="email"]:hover,
.fluentform input[type="tel"]:hover,
.fluentform textarea:hover,
.fluentform select:hover {
    background-color: #f3f9f3 !important;
}

/* 3. Submit Button Styling - Updated with EMs */
.ff-btn-submit {
    background-color: #55555e !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    /* 12px border radius */
    border-radius: 12px !important;
    /* Solid 2px border in #53a002 */
    border: 3px solid #53a002 !important;
    /* Padding using EMs (Vertical Horizontal) */
    padding: 1em 2.1em !important;
    /* Space between message field and button */
    margin-top: 1em !important;
    /* Ensures smooth transition for hover effects */
    transition: all 0.3s ease;
}

.ff-btn-submit:hover {
    background-color: #3f3f47 !important;
    border-color: #53a002 !important;
}

