/*
Theme Name: Teichos Energy
Theme URI: https://teichosenergy.com
Author: Jack Wong
Description: Custom one-page theme for Teichos Energy based on design by Jose Rodriguez
Version: 1.0.0
Text Domain: teichos-energy
*/

/* ==========================================================================
   Teichos Energy Sticky Navigation Layout System
   ========================================================================== */

:root {
    --header-bg: rgba(255, 255, 255, 0.85); /* Semi-transparent background for sticky header */
    --header-blur: saturate(180%) blur(15px); /* Enhances readability across scroll zones */
    --black: #000000;
    --dark: #1A202C;
    --light: #FFFFFF;
    --neutral: #486284;
    --purple: #8661FF;
    --purple-dark: #440F84;
    --bg-neutral: #E5EEF6;
    --bg-neutral-alt: #DDE0E4;
    --bg-neutral-alt-2: #FAFBFD;
    --bg-blue-light: #CADEE6;
    --bg-blue-dark: #0D0235;
    --bg-orange: #FBAB00;
    --bg-orange-light: #FEEECC;
    --bg-purple: #8B28F5;
    --bg-purple-dark: #6C1EC5;
    --bg-purple-light: rgba(139, 40, 245, 0.20);
    --stroke-purple: #8B28F5;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Allow normal document scrolling */
html, body {
  margin: 0;
}

/* Ensure sections take up at least full height, but grow if content is longer */
.section-scroll-snap {
  min-height: 100vh;
  box-sizing: border-box;
}

/* Scroll-Locked section styling */
.section-scroll-snap.is-scroll-locked {
  height: 100vh;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  padding-top: 80px; /* Prevents hero blocks from running under fixed banner */
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
}

h2, .section-title {
  margin-bottom: 36px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -1.28px;
  color: var(--black);
}
@media (min-width: 768px) {
  h2, .section-title {
      font-size: 64px;
      line-height: 1.0;
      letter-spacing: -1.28px;
  }
}

a {
    color: var(--purple-dark);
}

a:hover, a:focus {
    color: var(--purple);
}

a, button {
    transition: background 0.4s ease, color 0.4s ease;
}

section {
    background-color: var(--light);
}

.fine-print {
    font-size: 12px;
    line-height: 1.2;
    color: var(--dark);
}

.section {
  padding-top: 80px;
  padding-bottom: 60px;
  min-height: 100vh;
}


@media (min-width: 768px) {
  .section {
    padding-top: 140px;
  }
}

.section-image img {
  width: 100%;
}

.site-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--header-bg);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    z-index: 99999; /* Ensure header stays on top of content layers */
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Branding & Logo Constraints */
.header-branding img {
    max-height: 50px;
    width: auto;
    display: block;
}
.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #111;
}

/* Default Menu Configurations (Standard Horizontal View) */
.primary-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}
.primary-nav-menu a {
    text-decoration: none;
    color: rgba(56, 56, 56, 0.9);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
    letter-spacing: -0.48px;
}
.primary-nav-menu a:hover {
    color: var(--bg-blue-dark);
}

/* Hide Burger Button Controller on Large Viewports */
.menu-burger-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 100001; /* Layer above drawer container panels */
}
.burger-bar {
    width: 28px;
    height: 3px;
    background-color: #111;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Responsive Breakpoint Logic (lg screens and smaller)
   ========================================================================== */
@media (max-width: 1199.98px) {
    
    .menu-burger-trigger {
        display: flex;
    }

    /* Transform navigation layout into Right Side Sliding Drawer Panel */
    .header-navigation {
        position: fixed;
        top: 0;
        right: -100%; /* Fully hidden offscreen layout position */
        width: 100%;
        max-width: 400px; /* Responsive target scope constraints */
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        padding: 120px 40px 40px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100000;
    }

    /* Re-orient menu items vertically inside the drawer track */
    .primary-nav-menu {
        flex-direction: column;
        gap: 25px;
    }
    
    .primary-nav-menu a {
        font-size: 1.35rem;
        display: block;
        width: 100%;
    }

    /* Active Open State Class Manipulations */
    body.menu-drawer-open {
        overflow: hidden; /* Lock background scrolling behaviors when open */
    }

    body.menu-drawer-open .header-navigation {
        right: 0; /* Slide panel smoothly into view space area */
    }

    /* Morph standard Burger bars into clean Close "X" shape when open */
    body.menu-drawer-open .burger-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    body.menu-drawer-open .burger-bar:nth-child(2) {
        opacity: 0;
    }
    body.menu-drawer-open .burger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Handle ultra tiny screen sizes smoothly */
@media (max-width: 480px) {
    .header-navigation {
        max-width: 100%; /* Take up complete screen footprint on standard mobile */
    }
}

.site-main {
  margin-top: -80px; /* Adjust for fixed header height */
}

.site-main.subpage {
  padding-top: 80px;
}


/* ==========================================================================
   Teichos Energy Footer Architecture Styling System
   ========================================================================== */
.site-theme-footer {
    background-color: var(--bg-orange);
    color: var(--black);
    padding: 60px 20px 30px 20px;
}
.footer-master-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-branding-block img {
    max-height: 50px;
    width: auto;
    display: block;
    margin-bottom: 50px;
}
.footer-site-title {
    font-weight: 700;
    text-decoration: none;
}
.footer-site-tagline {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.32px;
  max-width: 300px;
}

/* Social Media Channels Track */
.footer-social-networks {
    display: flex;
    gap: 15px;
    align-items: center;
}
.footer-social-icon-btn {
    color: var(--black);
    background-color: rgba(255, 255, 255, 1);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.25s ease;
}
.footer-social-icon-btn:hover {
    background-color: var(--black);
    color: var(--light);
    transform: translateY(-2px);
}
.footer-social-icon-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.footer-divider-line {
    border: none;
    border-top: 1px solid var(--black);
    margin: 80px 0 30px 0;
}

/* Bottom Matrix Layout */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 16px;
    color: var(--black);
}
.footer-legal-links {
    display: flex;
    gap: 25px;
}
.footer-legal-links a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-legal-links a:hover {
    color: var(--bg-blue-dark);
}

@media (max-width: 767px) {
    .footer-top-row, .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
    }
}

@media (min-width: 768px) {
  .footer-social-networks {
    flex: 0 0 100%;
  }
}

/* form styles */
.wpcf7-form-control {
  padding: 5px 0;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stroke-purple);
}
.wpcf7-form-control.wpcf7-select {
  padding-bottom: 10px;
}
.wpcf7-form-control-wrap:has(.wpcf7-textarea) {
  display: grid;
  align-items: end; /* Aligns content to the bottom */
  height: 200px;
  border-bottom: 1px solid var(--stroke-purple);
  box-sizing: border-box;
  overflow: hidden; /* Prevents overflow issues */
}
.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  max-height: 250px; /* Prevents excessive growth */
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  /* Allows textarea to start small at the bottom */
  field-sizing: content; /* Modern CSS: expands upward as you type */
}
.wpcf7-form-control.wpcf7-submit {
    width: auto;
    padding: 12px 20px;
    border-radius: 50px;
    color: var(--neutral);
    border: 1px solid var(--neutral);
    transition: background 0.4s ease, color 0.4s ease;
}
.wpcf7-form-control.wpcf7-submit:hover {
    color: var(--bg-blue-dark);
    background-color: var(--bg-neutral);
}
::placeholder {
  color: var(--dark);
  opacity: 1;
}


/* tabs */
.tab-nav { 
  list-style: none; 
  padding: 0; 
  display: flex; 
  justify-content: space-between;
  border-bottom: 1px solid #90A3BF;
}
.tab-nav li {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}
.tab-link {
  flex-grow: 1;
  padding: 10px 25%;
  background: transparent;
  border: 0;
  border-bottom: 4px solid transparent;
  color: rgba(26, 32, 44, 0.6);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.32px;
}
.tab-link.active {
  font-weight: 700;
  color: var(--purple-dark);
  border-bottom-color: var(--purple);
}
.tab-pane {
  padding: 30px 40px 60px 0;
}

@media (max-width: 767px) {
  .tab-nav {
    flex-wrap:wrap;
  }
  .tab-nav li {
    flex: 0 0 50%;
    margin-bottom: 0;
    background-color: var(--bg-purple-light);
  }
  .tab-link {
    padding: 5px 10px;
    font-size: 14px;
    color: var(--dark);
  }
}

@media (min-width: 768px) {
  .tabs-wrapper {
    margin-left: 40px;
    margin-right: -40px;
  }
  .tab-pane {
    padding: 60px 40px 60px 0;
  }
}

/* Apply initial hidden state natively */
img:not(.no-animate),
svg:not(.no-animate) {
    opacity: 0;
    transform: translateY(30px);
    /* Changed duration from 0.6s to 1.2s for a slower, smoother effect */
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* Ensure inline SVGs handle CSS transforms properly */
svg:not(.no-animate) {
    transform-box: fill-box;
}

/* Visible active state */
img.is-in-view:not(.no-animate),
svg.is-in-view:not(.no-animate) {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Opt-out class reset */
img.no-animate,
svg.no-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}