/*
 Theme Name:   WPTESTER
 Theme URI:    https://wptest.exprestage.com
 Description:  Child theme for Divi — bold, premium, tech-forward branding with purple gradients
 Author:       EXPRE Digital
 Author URI:   https://www.expre.co.uk
 Template:     Divi
 Version:      1.0.0
 Text Domain:  wptester
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Brand Tokens)
   ========================================================================== */

:root {
    /* Primary */
    --wpt-purple: #9b27b0;
    --wpt-purple-deep: #6a11cb;
    --wpt-navy: #13102a;
    --wpt-dark: #0f0f0f;

    /* Accent */
    --wpt-fuchsia: #FF0080;
    --wpt-orange: #FFA500;
    --wpt-gold: #FFD700;

    /* Neutrals */
    --wpt-text-dark: #1a1a1a;
    --wpt-text-body: #666666;
    --wpt-bg-light: #f8f9fa;
    --wpt-white: #ffffff;

    /* Gradients */
    --wpt-gradient-primary: linear-gradient(135deg, #9b27b0, #6a11cb);
    --wpt-gradient-secondary: linear-gradient(135deg, #6a11cb, #FF0080, #FFA500);
    --wpt-gradient-cta: linear-gradient(135deg, #9b27b0, #FF0080);
    --wpt-gradient-rainbow-border: linear-gradient(90deg, #5A00D1, #FF0080, #FFA500);
    --wpt-gradient-hero-overlay: radial-gradient(ellipse at 30% 50%, rgba(106, 17, 203, 0.4) 0%, transparent 70%);

    /* Shadows */
    --wpt-shadow-button: 0 8px 25px rgba(155, 39, 176, 0.39);
    --wpt-shadow-button-hover: 0 12px 35px rgba(155, 39, 176, 0.5);
    --wpt-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --wpt-shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.15);

    /* Radius */
    --wpt-radius-pill: 50px;
    --wpt-radius-card: 18px;

    /* Transitions */
    --wpt-transition: all 0.3s ease;
    --wpt-transition-slow: all 0.5s ease;
}


/* ==========================================================================
   GLOBAL / BASE
   ========================================================================== */

body {
    color: var(--wpt-text-dark);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--wpt-text-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-weight: 800;
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
}

a {
    color: var(--wpt-purple);
    transition: var(--wpt-transition);
}

a:hover {
    color: var(--wpt-purple-deep);
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

/* Primary pill button */
.wpt-btn,
.et_pb_button,
.wpt-btn-primary {
    display: inline-block;
    background: var(--wpt-gradient-primary) !important;
    color: var(--wpt-white) !important;
    border: none !important;
    border-radius: var(--wpt-radius-pill) !important;
    padding: 14px 36px !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    box-shadow: var(--wpt-shadow-button);
    transition: var(--wpt-transition);
    text-decoration: none;
}

.wpt-btn:hover,
.et_pb_button:hover,
.wpt-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--wpt-shadow-button-hover);
    color: var(--wpt-white) !important;
}

.wpt-btn:active,
.et_pb_button:active {
    transform: translateY(-1px);
}

/* Secondary / glass button */
.wpt-btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--wpt-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--wpt-radius-pill) !important;
    padding: 14px 36px !important;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--wpt-transition);
    text-decoration: none;
}

.wpt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   HERO / DARK SECTIONS
   ========================================================================== */

.wpt-hero,
.wpt-section-dark {
    background-color: var(--wpt-navy);
    color: var(--wpt-white);
    position: relative;
    overflow: hidden;
}

.wpt-hero::before,
.wpt-section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--wpt-gradient-hero-overlay);
    pointer-events: none;
    z-index: 0;
}

.wpt-hero > *,
.wpt-section-dark > * {
    position: relative;
    z-index: 1;
}

.wpt-hero h1,
.wpt-hero h2,
.wpt-section-dark h1,
.wpt-section-dark h2,
.wpt-section-dark h3 {
    color: var(--wpt-white);
}

.wpt-hero p,
.wpt-section-dark p {
    color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   LIGHT SECTIONS
   ========================================================================== */

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

.wpt-section-light p {
    color: var(--wpt-text-body);
}


/* ==========================================================================
   CTA SECTIONS
   ========================================================================== */

.wpt-section-cta {
    background: var(--wpt-gradient-cta);
    color: var(--wpt-white);
    text-align: center;
}

.wpt-section-cta h2,
.wpt-section-cta h3 {
    color: var(--wpt-white);
}

.wpt-section-cta p {
    color: rgba(255, 255, 255, 0.9);
}

.wpt-section-cta .wpt-btn,
.wpt-section-cta .et_pb_button {
    background: var(--wpt-white) !important;
    color: var(--wpt-purple) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.wpt-section-cta .wpt-btn:hover,
.wpt-section-cta .et_pb_button:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   CARDS
   ========================================================================== */

.wpt-card {
    background: var(--wpt-white);
    border-radius: var(--wpt-radius-card);
    padding: 32px;
    box-shadow: var(--wpt-shadow-card);
    transition: var(--wpt-transition);
    position: relative;
    overflow: hidden;
}

.wpt-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wpt-shadow-card-hover);
}

/* Rainbow top-border card */
.wpt-card-rainbow {
    border-top: 4px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.wpt-card-rainbow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wpt-gradient-rainbow-border);
    border-radius: var(--wpt-radius-card) var(--wpt-radius-card) 0 0;
}

/* Glass card (for dark backgrounds) */
.wpt-card-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--wpt-radius-card);
    padding: 32px;
    color: var(--wpt-white);
    transition: var(--wpt-transition);
}

.wpt-card-glass:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}


/* ==========================================================================
   GRADIENT TEXT
   ========================================================================== */

.wpt-gradient-text {
    background: var(--wpt-gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes wpt-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes wpt-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

@keyframes wpt-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpt-animate-float {
    animation: wpt-float 4s ease-in-out infinite;
}

.wpt-animate-pulse {
    animation: wpt-pulse 2s ease-in-out infinite;
}

.wpt-animate-fade-in-up {
    animation: wpt-fade-in-up 0.6s ease forwards;
}


/* ==========================================================================
   DIVI OVERRIDES
   ========================================================================== */

/* Main header / nav */
#main-header {
    background-color: var(--wpt-white) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

#main-header .et_nav_text_color_light #et-top-navigation nav > ul > li > a,
#top-menu li a {
    color: var(--wpt-text-dark) !important;
    font-weight: 600;
    transition: var(--wpt-transition);
}

#top-menu li a:hover {
    color: var(--wpt-purple) !important;
}

/* Divi section spacing */
.et_pb_section {
    padding: 80px 0;
}

/* Divi module titles */
.et_pb_module h2,
.et_pb_module h3 {
    font-weight: 700;
}

/* Divi blurb module — apply card styling */
.et_pb_blurb {
    border-radius: var(--wpt-radius-card);
    transition: var(--wpt-transition);
}

.et_pb_blurb:hover {
    transform: translateY(-4px);
}

/* Divi toggle / accordion */
.et_pb_toggle_title {
    font-weight: 700 !important;
}

/* Divi contact form */
.et_pb_contact_form .et_pb_contact_field input,
.et_pb_contact_form .et_pb_contact_field textarea {
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    transition: var(--wpt-transition);
}

.et_pb_contact_form .et_pb_contact_field input:focus,
.et_pb_contact_form .et_pb_contact_field textarea:focus {
    border-color: var(--wpt-purple) !important;
    box-shadow: 0 0 0 3px rgba(155, 39, 176, 0.12);
    outline: none;
}

/* Footer */
#main-footer {
    background-color: var(--wpt-navy) !important;
    color: rgba(255, 255, 255, 0.7);
}

#main-footer h4,
#footer-info {
    color: rgba(255, 255, 255, 0.5);
}

#main-footer a {
    color: rgba(255, 255, 255, 0.8);
}

#main-footer a:hover {
    color: var(--wpt-gold);
}


/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.wpt-text-center  { text-align: center; }
.wpt-text-white   { color: var(--wpt-white) !important; }
.wpt-text-purple  { color: var(--wpt-purple) !important; }
.wpt-text-fuchsia { color: var(--wpt-fuchsia) !important; }
.wpt-bg-dark      { background-color: var(--wpt-navy); }
.wpt-bg-light     { background-color: var(--wpt-bg-light); }
.wpt-bg-gradient  { background: var(--wpt-gradient-primary); }
.wpt-rounded      { border-radius: var(--wpt-radius-card); }
.wpt-pill         { border-radius: var(--wpt-radius-pill); }
.wpt-shadow       { box-shadow: var(--wpt-shadow-card); }
.wpt-no-margin    { margin: 0 !important; }
.wpt-no-padding   { padding: 0 !important; }
