/*
Theme Name: Imperaline
Theme URI: https://imperaline.com/
Author: Imperaline
Description: Imperaline theme: financial, management and technology services. Pages are built in Elementor using the theme's own classes; header and footer are Elementor Theme Builder templates (theme header.php/footer.php are the fallback).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: imperaline
*/
/* Imperaline — site styles
   Brand colors are taken from the logo. Change them here to restyle the whole site. */
:root {
  --magenta: #ce0196;
  --magenta-dark: #a3017a;
  --plum: #6b0a6e;
  --aubergine: #3e0747;
  --ink: #1d1424;
  --body: #4a4352;
  --silver: #9a9aa2;
  --silver-light: #e9e9ee;
  --mist: #f7f5f9;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(62, 7, 71, 0.10);
  --max: 1160px;
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --text: "Inter", "Segoe UI", Arial, sans-serif;
}

/* Reset lives in the lowest cascade layer so Elementor controls can override it. */
@layer imperaline-reset { *, *::before, *::after { box-sizing: border-box; } }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--silver-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { width: 220px; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-family: var(--head); font-weight: 600; font-size: .92rem; color: var(--ink);
}
.nav a:hover { background: var(--mist); color: var(--magenta); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--magenta); }
.nav a.nav-cta { background: var(--magenta); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--magenta-dark); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--aubergine); border-radius: 2px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 84px; left: 0; right: 0; background: #fff;
         border-bottom: 1px solid var(--silver-light); display: none; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 2px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .brand img { width: 180px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--aubergine) 0%, var(--plum) 55%, var(--magenta) 100%);
}
.hero::after {  /* orbit rings echoing the logo's atom */
  content: ""; position: absolute; right: -140px; top: 50%; width: 620px; height: 620px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.55) 0 22px, transparent 23px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='white' stroke-opacity='.22' stroke-width='3'%3E%3Cellipse cx='100' cy='100' rx='92' ry='34'/%3E%3Cellipse cx='100' cy='100' rx='92' ry='34' transform='rotate(60 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='92' ry='34' transform='rotate(120 100 100)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-home { padding: 110px 0 120px; }
.hero-page { padding: 80px 0 84px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; color: rgba(255,255,255,.88); }
.eyebrow {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
  color: var(--magenta);
}
.hero .eyebrow { color: #f7c6ea; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 760px) { .hero::after { width: 380px; height: 380px; right: -170px; opacity: .6; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font-family: var(--head); font-weight: 700; font-size: .95rem; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-dark); }
.btn-light { background: #fff; color: var(--aubergine); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

.card {
  background: #fff; border: 1px solid var(--silver-light); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(62,7,71,.14); }
.card p:last-child { margin-bottom: 0; }
.card .more { font-family: var(--head); font-weight: 700; font-size: .92rem; }
.icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--aubergine), var(--magenta)); color: #fff;
}
.icon svg { width: 28px; height: 28px; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.panel {
  border-radius: var(--radius); padding: 40px; color: #fff;
  background: linear-gradient(150deg, var(--aubergine), var(--plum));
}
.panel h3 { color: #fff; }
.panel .feature-list li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23ce0196' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: var(--head); font-weight: 800; font-size: 2.2rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--magenta);
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--head); font-size: 2.4rem; color: var(--magenta); font-weight: 800; }
@media (max-width: 680px) { .stats { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--magenta) 0%, var(--plum) 100%);
  color: #fff; padding: 70px 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--head); font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid var(--silver-light); background: #fff; color: var(--ink); margin-bottom: 18px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(206,1,150,.15); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 22px; }
.consent input { width: auto; margin: 5px 0 0; }
.notice { padding: 16px 18px; border-radius: 10px; margin-bottom: 24px; font-weight: 600; display: none; }
.notice.ok { display: block; background: #eaf8f0; color: #156c3d; }
.notice.err { display: block; background: #fdecef; color: #9b1c33; }
.info-block { margin-bottom: 26px; }
.info-block h3 { font-size: 1rem; margin-bottom: 4px; }
.info-block p { margin: 0; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.updated { color: var(--silver); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #1b0f22; color: #c9c2cf; padding: 70px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 46px; }
.footer-brand span { font-family: var(--head); font-weight: 800; font-size: 1.4rem; color: #fff; letter-spacing: .02em; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9c2cf; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem;
}
