/**
 * TaxEurope Enhancement Styles v1.0.1
 */

/* ---- Base ---- */
.te-sec{padding:5rem 1rem;opacity:0;transform:translateY(30px);transition:opacity .7s ease,transform .7s ease}
.te-sec.te-vis{opacity:1;transform:none}
.te-alt{background:linear-gradient(135deg,#0a1628 0%,#0f1f3d 50%,#081425 100%)}
.te-ctr{max-width:72rem;margin:0 auto;padding:0 1rem}
.te-sh{text-align:center;margin-bottom:3rem}
.te-sh h2{color:#fff;font-size:2rem;font-weight:700;margin-top:.75rem;line-height:1.3}
.te-sh p{color:#94a3b8;font-size:1.05rem;margin-top:.75rem;max-width:36rem;margin-left:auto;margin-right:auto}
.te-bg{display:inline-block;padding:.4rem 1.2rem;border-radius:9999px;font-size:.65rem;font-weight:700;letter-spacing:.25em;color:#7dd3fc;background:rgba(56,189,248,.1);border:1px solid rgba(56,189,248,.2)}

/* ---- Services Grid ---- */
.te-sg{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}
.te-sc{display:flex;flex-direction:column;padding:1.75rem;border-radius:1.5rem;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);backdrop-filter:blur(8px);color:#fff;text-decoration:none;transition:all .3s ease}
.te-sc:hover{border-color:rgba(56,189,248,.3);background:rgba(255,255,255,.07);transform:translateY(-4px);box-shadow:0 8px 30px rgba(56,189,248,.15)}
.te-si{font-size:2rem;margin-bottom:1rem;width:3.5rem;height:3.5rem;display:flex;align-items:center;justify-content:center;border-radius:1rem;background:rgba(255,255,255,.08)}
.te-sc h3{font-size:1.15rem;font-weight:600;margin-bottom:.5rem}
.te-sc p{font-size:.875rem;color:#cbd5e1;line-height:1.6;flex:1}
.te-sa{font-size:.8rem;color:#38bdf8;font-weight:600;margin-top:1rem;transition:color .2s}
.te-sc:hover .te-sa{color:#7dd3fc}

/* ---- Testimonials ---- */
.te-tg{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}
.te-tc{padding:2rem;border-radius:1.5rem;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);transition:border-color .3s}
.te-tc:hover{border-color:rgba(56,189,248,.25)}
.te-ts{color:#fbbf24;font-size:1.1rem;letter-spacing:2px;margin-bottom:1rem}
.te-tc p{color:#e2e8f0;font-size:.925rem;line-height:1.7;font-style:italic}
.te-ta{display:flex;align-items:center;gap:.75rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.06)}
.te-av{width:2.5rem;height:2.5rem;border-radius:50%;background:linear-gradient(135deg,#38bdf8,#06b6d4);display:flex;align-items:center;justify-content:center;color:#0f172a;font-weight:700;font-size:1rem}
.te-ta strong{display:block;color:#fff;font-size:.85rem}
.te-ta span{font-size:.75rem;color:#64748b}

/* ---- FAQ ---- */
.te-faqc{max-width:48rem}
.te-fl{display:flex;flex-direction:column;gap:.75rem}
.te-fi{border:1px solid rgba(255,255,255,.08);border-radius:1rem;overflow:hidden;transition:border-color .3s}
.te-fi:hover,.te-fi.te-fo{border-color:rgba(56,189,248,.25)}
.te-fq{width:100%;display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;background:rgba(255,255,255,.03);color:#fff;font-size:.95rem;font-weight:500;border:none;cursor:pointer;text-align:left}
.te-fq svg{transition:transform .3s;color:#64748b;flex-shrink:0}
.te-fo .te-fq svg{transform:rotate(180deg);color:#38bdf8}
.te-fa{max-height:0;overflow:hidden;transition:max-height .35s ease}
.te-fo .te-fa{max-height:12rem}
.te-fa p{padding:0 1.5rem 1.25rem;color:#94a3b8;font-size:.875rem;line-height:1.7}

/* ---- News ---- */
.te-ng{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}
.te-nc{display:flex;flex-direction:column;padding:1.75rem;border-radius:1.5rem;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);text-decoration:none;color:#fff;transition:all .3s}
.te-nc:hover{border-color:rgba(56,189,248,.3);transform:translateY(-3px);box-shadow:0 6px 24px rgba(56,189,248,.12)}
.te-nt{display:inline-block;padding:.25rem .75rem;border-radius:9999px;font-size:.65rem;font-weight:700;letter-spacing:.1em;color:#22d3ee;background:rgba(34,211,238,.1);border:1px solid rgba(34,211,238,.2);margin-bottom:1rem;align-self:flex-start}
.te-nc h3{font-size:1.05rem;font-weight:600;margin-bottom:.5rem;line-height:1.4}
.te-nc p{font-size:.85rem;color:#94a3b8;line-height:1.6;flex:1}
.te-nr{font-size:.8rem;color:#38bdf8;font-weight:600;margin-top:1rem}
.te-na{text-align:center;margin-top:2rem}
.te-na a{color:#38bdf8;font-weight:600;font-size:.9rem;text-decoration:none;transition:color .2s}
.te-na a:hover{color:#7dd3fc}

/* ---- CTA ---- */
.te-ctas{background:linear-gradient(135deg,#0c1e3a 0%,#0e2952 50%,#0a1628 100%);position:relative;overflow:hidden}
.te-ctas::before{content:"";position:absolute;top:-50%;right:-20%;width:60%;height:200%;background:radial-gradient(circle,rgba(56,189,248,.12) 0%,transparent 60%);pointer-events:none}
.te-ctai{position:relative;display:flex;flex-direction:column;align-items:center;gap:2.5rem;text-align:center;padding:3rem 2rem;border-radius:2rem;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);backdrop-filter:blur(10px)}
.te-ctac h2{color:#fff;font-size:2rem;font-weight:700}
.te-ctac p{color:#94a3b8;font-size:1.05rem;margin-top:.75rem}
.te-ctaf{display:flex;gap:1.5rem;justify-content:center;flex-wrap:wrap;margin-top:1.25rem;font-size:.85rem;color:#7dd3fc}
.te-ctab{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}
.te-btn1,.te-btn2{display:inline-flex;align-items:center;gap:.5rem;padding:.9rem 2rem;border-radius:9999px;font-size:.95rem;font-weight:600;text-decoration:none;transition:all .3s}
.te-btn1{background:linear-gradient(135deg,#38bdf8,#22d3ee);color:#0f172a;box-shadow:0 4px 20px rgba(56,189,248,.4)}
.te-btn1:hover{transform:scale(1.03);box-shadow:0 6px 28px rgba(56,189,248,.55)}
.te-btn2{background:linear-gradient(135deg,#25D366,#128C7E);color:#fff;box-shadow:0 4px 20px rgba(37,211,102,.3)}
.te-btn2:hover{transform:scale(1.03);box-shadow:0 6px 28px rgba(37,211,102,.45)}

/* ---- Responsive Adjustments ---- */
@media(max-width:768px){
  .te-stg{grid-template-columns:repeat(2,1fr)}
  .te-ctai{padding:2rem 1.25rem}
  .te-ctac h2{font-size:1.5rem}
}
@media(max-width:480px){
  .te-sg,.te-tg,.te-ng{grid-template-columns:1fr}
  .te-sh h2{font-size:1.5rem}
}

html {
    transition: filter 0.3s ease, background-color 0.3s ease;
}

/* ==========================================
   Light Theme Overrides
   ========================================== */
html[data-theme="light"] {
    filter: invert(1) hue-rotate(180deg);
    background-color: #020617; /* Ensure the base background is dark so it inverts to light */
}

/* Expand Header width to separate logo and buttons */
header > div.max-w-6xl {
    max-width: 1400px !important;
}

/* Fix Navbar Spacing and Font Size (Overrides React defaults) */
header nav.hidden.items-center.lg\:flex {
    gap: 3rem !important; /* xl:gap-20 */
}
header nav.hidden.items-center.lg\:flex > a,
header nav.hidden.items-center.lg\:flex > div > a {
    font-size: 15px !important;
}

/* Fix Logo Background for Light Theme */
html[data-theme="light"] header a[href="/"] > div,
html[data-theme="light"] div.bg-white:has(img[alt="TAXEUROPE"]) {
    background-color: #000 !important;
}

/* Re-invert media so they display their original colors */
html[data-theme="light"] img,
html[data-theme="light"] video,
html[data-theme="light"] iframe {
    filter: invert(1) hue-rotate(180deg);
}

/* Dropdown specific text fix */
html[data-theme="light"] .text-slate-200 {
    color: #e2e8f0; /* Keeping it light so it inverts to dark */
}
