/* Theme Name: RogerLe English Pro
Author: RogerLe Hosting
Description: v4.0.0 - Update-proof fonts, domain search customizer, specs URL per plan, EUR pricing fields, meta box cleanup, performance fixes.
Version: 4.0.1
Text Domain: rogerle-en */
:root {
    --brand-orange: #e67e22; --brand-dark-orange: #d35400;
    --bg-soft-orange: #fff7ed; --bg-vps: #34495e;
    --bg-dedicated: #1e293b; --bg-footer: #0b0f19;
    --brand-dark: #1e293b; --bg: #ffffff;
    --text: #334155; --card-bg: #ffffff;
    --border: #e2e8f0; --nav-bg: rgba(255, 255, 255, 0.95);
    --icon-color: #334155;
    --success-green: #2ecc71;
}
[data-theme="dark"] {
    --bg: #0f172a; --bg-soft-orange: #1e293b;
    --bg-vps: #020617; --bg-dedicated: #0f172a;
    --bg-footer: #000000; --text: #f1f5f9;
    --card-bg: #1e293b; --border: #334155;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --icon-color: #f1f5f9;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; margin: 0; line-height: 1.6; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-padding { padding: 80px 20px; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; }

/* HEADER */
header { position: sticky; top: 0; z-index: 999; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { color: var(--text); z-index: 1001; }
.logo svg, .logo img { height: 45px; width: auto; display: block; }
.logo svg .s0 { fill: currentColor; }

/* Logo Theme Switching */
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: block; }

.promo-bar { background: var(--brand-orange); color: white; text-align: center; font-size: 0.9rem; font-weight: 600; overflow: hidden; position: relative; }
.promo-content { display: inline-block; white-space: nowrap; animation: scroll-text 20s linear infinite; padding: 8px 0; }
.promo-content:hover { animation-play-state: paused; }
@keyframes scroll-text { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
}
.promo-bar a { color: white; text-decoration: underline; margin-left: 10px; }

.main-menu ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-menu > ul > li { position: relative; }
.main-menu a { font-weight: 600; font-size: 0.95rem; display: block; padding: 5px 0; }
.main-menu a:hover { color: var(--brand-orange); }
.main-menu ul ul { display: none; position: absolute; top: 100%; left: -20px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); flex-direction: column; gap: 0; min-width: 200px; padding: 10px 0; z-index: 1000; }
.main-menu ul li:hover > ul { display: flex; }
.main-menu ul ul li { padding: 0; }
.main-menu ul ul a { padding: 10px 20px; font-size: 0.9rem; white-space: nowrap; color: var(--text); }
.main-menu ul ul a:hover { background: var(--bg-soft-orange); color: var(--brand-orange); }

.header-actions { display: flex; gap: 20px; align-items: center; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--text); padding: 5px; }

@media (max-width: 991px) {
    .mobile-toggle { display: block; order: 2; margin-left: auto; }
    .header-actions { gap: 10px; margin-right: 15px; }
    .main-menu { display: none; width: 100%; order: 4; margin-top: 15px; border-top: 1px solid var(--border); padding-top: 10px; }
    .main-menu.active { display: block; }
    .main-menu ul { flex-direction: column; gap: 0; }
    .main-menu ul li { border-bottom: 1px solid rgba(0,0,0,0.05); }
    .main-menu a { padding: 15px 0; }
    .main-menu ul ul { position: static; box-shadow: none; border: none; padding-left: 20px; background: transparent; display: none; }
    .main-menu ul li:hover > ul { display: flex; }
    .btn-primary { padding: 8px 16px; font-size: 0.85rem; }
}

.lang-switch img { vertical-align: middle; border-radius: 2px; transition: transform 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-left: 5px;}
.lang-dropdown { position: relative; cursor: pointer; }
.lang-icon { font-size: 1.2rem; color: var(--text); display: flex; align-items: center; gap: 5px; }
.lang-icon:hover { color: var(--brand-orange); }
.lang-menu { display: none; position: absolute; top: 100%; right: -10px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); min-width: 140px; padding: 8px 0; z-index: 1002; }
.lang-dropdown:hover .lang-menu { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 15px; font-size: 0.9rem; color: var(--text); text-decoration: none; transition: 0.2s; }
.lang-menu a:hover { background: var(--bg-soft-orange); color: var(--brand-orange); }
.lang-menu img { width: 20px; height: auto; border-radius: 2px; }

.controls-bar { display: flex; justify-content: center; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.switch-wrapper { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.section-vps .switch-wrapper, .section-dedicated .switch-wrapper { color: white !important; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0 !important; width: 0 !important; height: 0 !important; margin: 0 !important; position: absolute; appearance: none; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--brand-orange); }
input:checked + .slider:before { transform: translateX(24px); }
[data-theme="dark"] .slider { background-color: #475569; }
[data-theme="dark"] input:checked + .slider { background-color: var(--brand-orange); }
.header-icons i { color: var(--icon-color); font-size: 14px; transition: 0.3s; }

.btn { padding: 12px 28px; border-radius: 8px; font-weight: 700; cursor: pointer; display: inline-block; border: none; text-align: center; }
.btn-primary { background: var(--brand-orange); color: white; }
.btn-primary:hover { background: var(--brand-dark-orange); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--brand-orange); color: var(--brand-orange); background: transparent; }
.btn-outline:hover { background: var(--brand-orange); color: white; }
.btn-order { 
    padding: 10px 24px; 
    font-size: 0.95rem; 
    width: auto !important; /* Force fit to content */
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 8px; 
    margin-top: 20px; 
    align-self: center; /* Center horizontally in flex column */
}

.domain-section { background: var(--brand-dark); padding: 40px 0; text-align: center; color: white; margin-top: -1px; }
.domain-wrapper { max-width: 700px; margin: 0 auto; position: relative; display: flex; gap: 10px; }
.domain-wrapper input { flex: 1; padding: 15px 20px; border-radius: 8px; border: 2px solid transparent; font-size: 1rem; outline: none; }
.domain-wrapper input:focus { border-color: var(--brand-orange); }
.domain-wrapper button { padding: 15px 30px; border-radius: 8px; border: none; background: var(--brand-orange); color: white; font-weight: bold; cursor: pointer; font-size: 1rem; }
.domain-wrapper button:hover { background: var(--brand-dark-orange); }
@media (max-width: 600px) { .domain-wrapper { flex-direction: column; } .domain-wrapper button { width: 100%; } }

.swiper { width: 100%; height: 600px; }
.swiper-slide { height: 100%; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; text-align: center !important; background-size: cover; background-position: center center; position: relative; }
.swiper-slide::before { content: ""; position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.6); z-index: 1; }
.slide-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; color: white; padding: 20px; }
.slide-content h1 { font-size: 3.5rem; margin: 0 0 1rem 0; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.slide-content p { font-size: 1.4rem; opacity: 0.95; margin-bottom: 30px; }

/* LOGOS */
.powered-wrapper { overflow: hidden; white-space: nowrap; padding: 40px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.powered-track { display: inline-block; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.powered-track img { height: 50px; width: auto; margin: 0 40px; transition: all 0.3s ease; }
/* Light Mode - Make logos black/dark and fully visible */
.powered-track img { filter: grayscale(100%) brightness(0); opacity: 1; }
.powered-track img:hover { filter: none; opacity: 1; }
/* Dark Mode - Make logos white/light */
[data-theme="dark"] .powered-track img { filter: brightness(0) invert(1); opacity: 0.7; }
[data-theme="dark"] .powered-track img:hover { filter: brightness(0) invert(1); opacity: 1; }

.section-soft { background-color: var(--bg-soft-orange); padding: 80px 0; }
.section-vps { background-color: var(--bg-vps); color: white; padding: 80px 0; }
.section-dedicated { background-color: var(--bg-dedicated); color: white; padding: 80px 0; }
.section-vps h2, .section-vps p, .section-dedicated h2, .section-dedicated p { color: white; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 10px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 80px; }
.feature-box { text-align: center; padding: 30px; }
.feature-box i { font-size: 2.5rem; color: var(--brand-orange); margin-bottom: 20px; }
.feature-box h3 { margin-bottom: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card-bg); color: var(--text); padding: 40px 30px; border-radius: 16px; border: 1px solid var(--border); position: relative; transition: transform 0.3s ease; text-align: center; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.card:hover { transform: translateY(-10px); border-color: var(--brand-orange); }
.card.popular { border: 2px solid var(--brand-orange); transform: scale(1.05); z-index: 10; box-shadow: 0 10px 40px rgba(230, 126, 34, 0.25); }

/* Corner Ribbon Style - Fixed visibility */
.card.popular::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -40px;
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-dark-orange) 100%);
    color: white;
    padding: 8px 45px;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 15;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Remove any hover overlays from enhanced-design.css */
.card::after { display: none !important; }

.badge { display: none; } /* Hide old badge style */
.card .features { width: 100%; } /* Ensure features list takes full width for left align text */

.testimonial-box { background: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--border); text-align: left; }
.testimonial-box p { font-style: italic; opacity: 0.8; margin-bottom: 20px; }
.client-info { display: flex; align-items: center; gap: 15px; }
.client-avatar { width: 50px; height: 50px; background: #ddd; border-radius: 50%; object-fit: cover; }
.stars { color: #f1c40f; margin-bottom: 10px; }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px; font-size: 1.1rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question:hover { color: var(--brand-orange); }
.faq-answer { display: none; padding: 0 20px 20px; opacity: 0.8; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.social-links { margin-top: 20px; display: flex; gap: 15px; }
.social-links a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; transition: 0.3s; }
.social-links a i { font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.social-links a:hover { background: var(--brand-orange); transform: translateY(-3px); }

.status-grid { max-width: 800px; margin: 0 auto; }
.status-item { display: flex; justify-content: space-between; align-items: center; background: var(--card-bg); padding: 20px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 15px; }
.status-name { font-weight: 700; font-size: 1.1rem; }
.status-badge { background: var(--success-green); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }

.gdpr-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--brand-dark); color: white; padding: 20px; z-index: 9999; display: none; box-shadow: 0 -5px 20px rgba(0,0,0,0.2); text-align: center; }
.gdpr-content { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.gdpr-content p { margin: 0; font-size: 0.9rem; text-align: left; }
.gdpr-btn { background: var(--brand-orange); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; }

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 9998; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); color: white; }

.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 40px 0; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--brand-orange); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; box-sizing: border-box; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: var(--card-bg); border: 4px solid var(--brand-orange); top: 15px; border-radius: 50%; z-index: 1; }
.timeline-item.right::after { left: -10px; }
.timeline-content { padding: 20px 30px; background-color: var(--card-bg); position: relative; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.timeline-date { color: var(--brand-orange); font-weight: 800; font-size: 1.5rem; margin-bottom: 10px; display: block; }
.timeline-img { width: 100%; border-radius: 6px; margin-top: 15px; border: 1px solid var(--border); }
@media screen and (max-width: 768px) {
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
  .timeline-item::after { left: 21px; }
  .timeline-item.right::after { left: 21px; }
}
.about-hero { text-align: center; padding: 60px 20px; background: var(--bg-soft-orange); }
.about-stats { display: flex; justify-content: center; gap: 50px; margin: 40px 0; flex-wrap: wrap; }
.stat-box { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 800; color: var(--brand-orange); display: block; }
.stat-label { font-size: 1rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

.price-unit { display: none; }
body[data-currency="usd"][data-billing="month"] .price-usd.price-month { display: inline-block; }
body[data-currency="usd"][data-billing="year"] .price-usd.price-year { display: inline-block; }
body[data-currency="eur"][data-billing="month"] .price-eur.price-month { display: inline-block; }
body[data-currency="eur"][data-billing="year"] .price-eur.price-year { display: inline-block; }
body[data-currency="brl"][data-billing="month"] .price-brl.price-month { display: inline-block; }
body[data-currency="brl"][data-billing="year"] .price-brl.price-year { display: inline-block; }

.price { font-size: 2.5rem; font-weight: 800; margin: 20px 0; color: var(--brand-dark); }
[data-theme="dark"] .price { color: white; }
.features { list-style: none; padding: 0; margin: 30px 0; opacity: 0.9; text-align: left; }
.features li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.features li i { color: var(--brand-orange); width: 20px; text-align: center; }
/* Specs Link CSS */
.features li.view-more { justify-content: center; margin-top: 15px; border-top: 1px solid var(--border); padding-top: 15px; }
.features li.view-more a { color: var(--brand-orange); font-weight: 600; font-size: 0.9rem; }
.features li.view-more a:hover { text-decoration: underline; }

.dedicated-bar { background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-dark-orange) 100%); color: white; padding: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); width: 100%; box-sizing: border-box; }
.dedicated-content h2 { margin: 0 0 10px 0; color: white; }
.dedicated-bar .btn { background: white; color: var(--brand-orange); }
.dedicated-bar .btn:hover { background: #f8fafc; }

footer { background: var(--bg-footer); color: white; padding: 80px 0 40px; margin-top: 0; }
footer a { opacity: 0.7; }
footer a:hover { opacity: 1; color: var(--brand-orange); }
footer .logo svg { fill: white; } 
footer .logo .s0 { fill: white; }
footer .logo svg, footer .logo img { height: 40px; }

/* Footer Logo - Always show DARK logo (footer bg is dark, so we need light-colored logo) */
footer .logo .logo-light { display: none !important; }
footer .logo .logo-dark { display: block !important; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid h4 { margin-bottom: 15px; font-size: 1.1rem; }
.footer-grid a { display: block; padding: 5px 0; }
.footer-bottom { text-align: center; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
