/* =========================================================
   SmartRank.lt — rebuild using real Astra theme tokens
   (extracted from original site's astra-theme-css-inline-css)
   ========================================================= */

:root {
  --gold: #ecc800;         /* --ast-global-color-0 */
  --ink-1: #3a3a3a;        /* --ast-global-color-1 / 2 */
  --ink-3: #4B4F58;        /* --ast-global-color-3 (body text) */
  --surface-4: #F5F5F5;    /* --ast-global-color-4 */
  --surface: #FFFFFF;      /* --ast-global-color-5 */
  --surface-6: #F2F5F7;    /* --ast-global-color-6 */
  --ink-7: #424242;        /* --ast-global-color-7 */
  --black: #000000;        /* --ast-global-color-8 (header bg) */
  --btn: #fdcc18;          /* button background */
  --link: #0764ce;         /* link color */
  --border: #dddddd;
  --max: 1090px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 34px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Merriweather Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6em;
  color: var(--ink-3);
  background: var(--surface);
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--ink-1); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
  font-family: "Merriweather Sans", sans-serif;
  font-weight: 700;
  color: var(--ink-3);
  line-height: 1.25em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 3px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--btn); color: var(--ink-1); }
.btn-primary:hover { background: #f2c000; color: var(--ink-1); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-dark { background: var(--black); color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--black); position: sticky; top: 0; z-index: 60; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand-text { font-weight: 700; font-size: 1.15rem; color: #fff; font-family: "Merriweather Sans", sans-serif; }

nav.main-nav > ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav.main-nav a.top-link,
nav.main-nav button.dropdown-toggle {
  color: #b7b7b7; font-size: .92rem; font-weight: 500; padding: 6px 0;
  background: none; border: none; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
nav.main-nav a.top-link:hover, nav.main-nav button.dropdown-toggle:hover { color: #d8d8d8; }
nav.main-nav li.current > a.top-link { color: #fff; }
.dropdown-toggle .caret { font-size: .7rem; transition: transform .15s ease; }
.has-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { display: grid; }
.dropdown {
  display: none;
  position: absolute; top: 100%; left: -18px;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 10px; min-width: 230px; z-index: 70;
}
.dropdown a { display: block; padding: 9px 14px; border-radius: 6px; color: var(--ink-3); font-size: .9rem; }
.dropdown a:hover { background: var(--surface-6); color: var(--link); }

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 6px; }
.mobile-only-cta { display: none; }

@media (max-width: 900px) {
  .mobile-toggle { display: inline-flex; }
  .header-cta { display: none; }
  nav.main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black);
    padding: 8px 20px 20px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  nav.main-nav a.top-link, nav.main-nav button.dropdown-toggle { width: 100%; padding: 14px 2px; justify-content: space-between; }
  .mobile-only-cta { display: block; border-bottom: none !important; margin-top: 8px; }
  .mobile-only-cta .top-link { background: var(--btn); color: var(--ink-1) !important; border-radius: 6px; padding: 12px 14px; justify-content: center; font-weight: 700; }
  .has-dropdown .dropdown {
    position: static; box-shadow: none; background: #14161a; margin: 0 0 8px; border-radius: 8px; padding: 6px;
  }
  .dropdown a { color: #d8d8d8; }
  .dropdown a:hover { background: rgba(255,255,255,.07); color: var(--gold); }
}

.header-cta .btn { padding: 10px 20px; font-size: .88rem; }

/* ---------- Hero band (per-page, colored like original page banners) ---------- */
.hero {
  background: var(--ink-7);
  color: #fff;
  padding: 56px 0 60px;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 10px; }
.hero .sub { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 680px; margin: 0 auto; }

/* ---------- Order box (mirrors original WooCommerce product form) ---------- */
.order-section { padding: 46px 0; background: var(--surface-6); }
.order-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto;
}
.order-box h3 { margin-bottom: 4px; }
.order-box .order-sub { color: #8a8f98; font-size: .88rem; margin-bottom: 20px; }
.order-field { margin-bottom: 16px; }
.order-field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-1); margin-bottom: 6px; }
.order-field select {
  width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--border);
  font-family: inherit; font-size: .95rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234B4F58' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
}
.order-box .btn-primary { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
.order-checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.order-checklist li { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-3); }
.order-checklist li::before { content: "✓"; color: var(--gold); font-weight: 800; flex: none; }

/* ---------- Home hero ---------- */
.home-hero {
  background: linear-gradient(135deg, #12161c 0%, #23272d 100%);
  color: #fff; padding: 76px 0 60px; text-align: center;
}
.home-hero .eyebrow { color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.home-hero h1 { color: #fff; max-width: 760px; margin: 14px auto 16px; }
.home-hero p.lead { color: rgba(255,255,255,.75); max-width: 620px; margin: 0 auto 30px; font-size: 1.08rem; }
.service-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; margin: 0 auto; }
.service-pills a { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 9px 18px; border-radius: 4px; color: #fff; font-size: .87rem; }
.service-pills a:hover { background: var(--btn); color: var(--ink-1); border-color: var(--btn); }

/* ---------- Sections ---------- */
section.block { padding: 58px 0; }
section.block.alt { background: var(--surface-6); }
.content-body h2 { margin-top: 1.5em; }
.content-body h3 { margin-top: 1.3em; color: var(--link); }
.content-body p, .content-body ul { max-width: 800px; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 42px; height: 42px; border-radius: 8px; background: var(--btn);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink-1); margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { font-size: .9rem; }
.card .card-link { font-weight: 700; font-size: .87rem; color: var(--link); }

.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; text-align: left; }
@media (max-width: 860px) { .benefits { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }
.benefit h4 { display: flex; gap: 9px; font-size: .98rem; align-items: center; }
.benefit h4::before { content: "✓"; color: var(--gold); font-weight: 900; }
.benefit p { font-size: .88rem; }

.cta-band { background: var(--black); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 22px; }

.contact-form { display: grid; gap: 16px; max-width: 620px; }
.contact-form label { font-size: .85rem; font-weight: 700; display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--border); font-family: inherit; font-size: .95rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--link); }

.legal p { max-width: 100%; }
.legal h2 { margin-top: 1.5em; font-size: 1.2rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { font-size: .9rem; color: rgba(255,255,255,.6); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; padding: 20px 0; font-size: .8rem; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 10px; }

/* ---------- Floating cart bubble (cosmetic, matches original) ---------- */
.cart-bubble {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cart-bubble span.count {
  position: absolute; top: -4px; right: -4px; background: var(--btn); color: var(--ink-1);
  font-size: .72rem; font-weight: 800; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero .eyebrow { color: var(--gold); font-weight:700; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; display:block; margin-bottom:10px; }

/* ---------- Checkout box (product order form) ---------- */
.checkout-section { padding: 50px 0 60px; background: var(--surface-6); }
.checkout-box {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  max-width: 920px; margin: 0 auto; padding: 32px 36px 36px; border: 1px solid var(--border);
}
.checkout-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.checkout-head h2 { margin: 0; font-size: 1.4rem; }
.checkout-head .accent { color: #ff7a1a; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; background: #e9f9ef; color: #1b8a4c;
  font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #1b8a4c; }

.checkout-grid { display: grid; grid-template-columns: 200px 1fr; gap: 34px; }
@media (max-width: 720px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-side { text-align: center; }
.checkout-icon { width: 96px; height: 96px; margin: 0 auto 18px; }
.checkout-icon svg { width: 100%; height: 100%; border-radius: 22px; }
.mini-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; }
.mini-checklist li { font-size: .85rem; color: var(--ink-3); }

.total-card {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  background: linear-gradient(135deg, #eef3ff, #f7f9ff); border-radius: 12px; padding: 20px 24px; margin-bottom: 24px;
}
.total-card .label { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #8892a6; margin-bottom: 4px; }
.total-card .price { font-size: 1.7rem; font-weight: 800; color: var(--ink-1); }
.stepper { display: flex; align-items: center; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.step-btn { width: 40px; height: 40px; border: none; background: linear-gradient(135deg,#ffb300,#ff7a1a); color: #fff; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.stepper input { width: 60px; text-align: center; border: none; font-size: 1rem; font-weight: 700; color: var(--ink-1); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink-1); }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border);
  font-family: inherit; font-size: .95rem; background: #fafbfc;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--link); background: #fff; }

.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; margin-bottom: 14px; cursor: pointer; }
.checkbox-row input { margin-top: 3px; }

.btn-checkout {
  width: 100%; justify-content: center; padding: 15px; font-size: 1.02rem;
  background: linear-gradient(135deg, #ff9a1a, #ff5b1a); color: #fff; border-radius: 8px; margin-top: 6px;
}
.btn-checkout:hover { filter: brightness(1.05); }
.checkout-note { text-align: center; font-size: .8rem; color: #8892a6; margin-top: 12px; margin-bottom: 0; }

.icon-badge { width: 46px; height: 46px; margin-bottom: 14px; }
.icon-badge svg { width: 100%; height: 100%; border-radius: 10px; }
.service-card { display: block; }

/* ---------- Two column layout (contact page) ---------- */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.contact-side-card { position: sticky; top: 100px; }
@media (max-width: 860px) { .contact-side-card { position: static; } }

/* ---------- Restyle: checkout accents follow site palette (gold/black) instead of orange ---------- */
.status-pill { background: #fff7d9; color: #8a6d00; }
.status-pill .dot { background: var(--gold); }
.total-card { background: linear-gradient(135deg, #fffceb, #fff8d6); }
.step-btn { background: var(--black); color: var(--btn); }
.btn-checkout { background: var(--btn); color: var(--ink-1); }
.btn-checkout:hover { background: #f2c000; filter: none; }

/* ---------- Hero polish: subtle radial glow instead of flat gray ---------- */
.hero {
  background:
    radial-gradient(700px 320px at 15% -10%, rgba(236,200,0,.16), transparent 60%),
    radial-gradient(600px 300px at 100% 0%, rgba(7,100,206,.14), transparent 55%),
    var(--black);
  padding: 64px 0 68px;
}
.home-hero {
  background:
    radial-gradient(800px 360px at 10% -10%, rgba(236,200,0,.18), transparent 55%),
    radial-gradient(700px 340px at 100% 0%, rgba(7,100,206,.18), transparent 55%),
    linear-gradient(160deg, #0b0e13 0%, #1a1d24 100%);
}

/* ---------- Contact form notices ---------- */
.form-notice { padding: 12px 16px; border-radius: 8px; font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.form-notice.success { background: #e9f9ef; color: #1b8a4c; }
.form-notice.error { background: #fdeceb; color: #c0392b; }
