/*!
Theme Name: Diretiva
Theme URI: https://diretivasc.com.br/
Author: Diretiva SC
Author URI: https://diretivasc.com.br/
Description: Tema WordPress para DIRETIVA SC - Assessoria em transporte de passageiros
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: diretiva
Tags: custom-menu, featured-images, translation-ready
*/

/* ============================================================
   DIRETIVA SC — Custom Styles
   ============================================================ */

:root {
    --orange-primary: #f7941e;
    --header-offset: 96px;
}

* {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* -----------------------------------------------
   Animations
   ----------------------------------------------- */

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------------
   Service Card
   ----------------------------------------------- */

.service-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--orange-primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------------
   CTA Button
   ----------------------------------------------- */

.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(247, 148, 30, 0.3);
}

.wpcf7 .cta-button {
    background-color: var(--orange-primary);
}

/* -----------------------------------------------
   Orange Bar
   ----------------------------------------------- */

.orange-bar {
    height: 4px;
    background: var(--orange-primary);
    width: 80px;
}

/* -----------------------------------------------
   Header
   ----------------------------------------------- */

.header-border {
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
}

/* Mobile nav */
.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
}

.mobile-menu a + a {
    border-top: 1px solid #f0f0f0;
}

.mobile-menu {
    transition: max-height 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.mobile-menu.is-open {
    max-height: 420px;
    opacity: 1;
}

.menu-icon {
    position: relative;
    width: 24px;
    height: 18px;
    display: inline-block;
}

.menu-icon-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #111827;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-icon-line:nth-child(1) {
    top: 0;
}

.menu-icon-line:nth-child(2) {
    top: 8px;
}

.menu-icon-line:nth-child(3) {
    bottom: 0;
}

.is-open .menu-icon-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.is-open .menu-icon-line:nth-child(2) {
    opacity: 0;
}

.is-open .menu-icon-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: #4ac959;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 60;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

/* Anchor offset for sticky header */
section[id],
div[id] {
    scroll-margin-top: var(--header-offset);
}

/* -----------------------------------------------
   Active nav link
   ----------------------------------------------- */

.nav-active {
    color: var(--orange-primary);
}

/* -----------------------------------------------
   Scroll-triggered fade-in
   ----------------------------------------------- */

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------------------
   Contact form inputs
   ----------------------------------------------- */

.form-input {
    border: 1px solid #e5e7eb;
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(247, 148, 30, 0.15);
}

/* Contact Form 7 spacing normalization */
.wpcf7 form p {
    margin: 0;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
}

/* -----------------------------------------------
   Info card hover
   ----------------------------------------------- */

.info-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--orange-primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover::before {
    width: 100%;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------------
   Hero Split (Homepage)
   ----------------------------------------------- */

.hero-split {
    position: relative;
    overflow: hidden;
}

.hero-split-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-size: cover;
    background-position: right;
    animation: splitReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    clip-path: inset(0 100% 0 0);
}

@keyframes splitReveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@media (max-width: 1023px) {
    .hero-split-image {
        display: none;
    }
}

/* -----------------------------------------------
   WordPress overrides
   ----------------------------------------------- */

/* Reset WP default link colors */
a {
    color: inherit;
    text-decoration: none;
}


a:hover,
a:focus,
a:active {
    /* color: inherit; */
    outline: none;
}

/* Reset WP default body styles */
body {
    margin: 0;
    background: #fff;
}

/* Reset WP default list styles for nav */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
