/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

:root{
  --brand:#FF6600;
  --brandHover:#e65c00;

  --btnText:#111827;
  --btnMuted:#374151;
  --border:#e5e7eb;

  --radius:999px;
}

/* ===========================
   BUTTON SYSTEM (BASE)
   - toimii <a>, <button>, <input>
   =========================== */
.btn,
button.btn,
input.btn,
input[type="submit"].btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 12px 26px;
  border-radius: var(--radius);

  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;

  border: 1px solid transparent;
  transition: background .2s ease, transform .1s ease, filter .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;

  /* estä teemojen “button reset” */
  appearance: none;
  -webkit-appearance: none;
}

/* ===========================
   PRIMARY (Tallenna hinnat -tyyli)
   =========================== */
.btn-primary{
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color:#fff !important;
  box-shadow: 0 10px 20px rgba(255, 102, 0, .18);
}

.btn-primary:hover{
  background: var(--brandHover) !important;
  border-color: var(--brandHover) !important;
  transform: translateY(-1px);
}

.btn-primary:active{
  transform: translateY(0);
}

/* ===========================
   GHOST (Takaisin listaan -tyyli)
   =========================== */
.btn-ghost{
  background:#fff !important;
  color: var(--btnMuted) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}

.btn-ghost:hover{
  background:#f9fafb !important;
  border-color: #d1d5db !important;
  transform: translateY(-1px);
}

.btn-ghost:active{
  transform: translateY(0);
}

/* ===========================
   SIZE: small (headeriin)
   =========================== */
.btn--sm{
  padding: 10px 18px !important;
  font-size: 14px;
}

/* ===========================
   HEADER: estä Astran menu-ylikirjoitukset
   =========================== */
.ast-header-html .ast-builder-html-element a.btn{
  text-decoration: none !important;
  border-radius: var(--radius) !important;
  padding: 10px 18px !important; /* header default */
  line-height: 1 !important;
}

/* Lisää väli napeille headerissa */
.ast-header-html .ast-builder-html-element{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===========================
   ACF submit -> primary look
   =========================== */
.acf-form-submit input[type="submit"]{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  background: var(--brand) !important;
  border: 1px solid var(--brand) !important;
  color:#fff !important;

  border-radius: var(--radius) !important;
  padding: 12px 26px !important;

  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background .2s ease, transform .1s ease !important;
}

.acf-form-submit input[type="submit"]:hover{
  background: var(--brandHover) !important;
  border-color: var(--brandHover) !important;
  transform: translateY(-1px);
}

/* ===========================
   User Registration submit -> primary look
   =========================== */
.user-registration .ur-button-container .ur-submit-button{
  background: var(--brand) !important;
  border: 1px solid var(--brand) !important;
  color:#fff !important;

  border-radius: var(--radius) !important;
  padding: 12px 26px !important;

  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background .2s ease, transform .1s ease !important;
}

.user-registration .ur-button-container .ur-submit-button:hover{
  background: var(--brandHover) !important;
  border-color: var(--brandHover) !important;
  transform: translateY(-1px);
}

/* ===========================
   GLOBAL (valinnainen):
   Jos haluat tehdä KAIKISTA WP/Astra napeista primary-tyylisiä
   -> jätä tämä päälle vain jos haluat oikeasti globaalin muutoksen
   =========================== */
.ast-button,
.wp-element-button,
a.wp-block-button__link{
  background: var(--brand) !important;
  border: 1px solid var(--brand) !important;
  color:#fff !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
}

/* ÄLÄ pakota kaikkia input/button elementtejä,
   koska se voi sotkea hallintapaneelin ja plugareiden UI:n.
   Jos kuitenkin haluat, lisää erikseen harkiten. */


.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-5 { margin-left: 20px; }

.acf-hidden-field{ display:none !important; }







.hdr-link{
  margin-left: 14px;
  font-weight: 600;
}

/* Yleinen header-linkki */
.hdr-link {
  margin-left: 14px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

/* Rekisteröidy = nappi */
.hdr-button-register {
  background: #FF6600;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.hdr-button-register:hover {
  background: #e65c00;
  transform: translateY(-1px);
}

/* Kirjaudu ulos – hillitympi */
.hdr-button-logout {
  color: #666;
}


/* Nykyiset ACF-tyylit */
.acf-field-tab .acf-label { display: none; }

.acf-notice.-success{
  background:#e8f5e9;
  border-left:5px solid #4caf50;
  color:#2e7d32;
  padding:12px 16px;
  margin:20px 0;
  font-weight:500;
  border-radius:6px;
}



/* =========================================================
   Klapivaja – Modern Front Page (Astra)
   - Scoped to front page where sensible (body.home ...)
   - Single source of truth for vars, spacing, components
   ========================================================= */

/* Base/reset only for Kv blocks */
.kv-section,
.kv-section * { box-sizing: border-box; }
.kv-section a,
.kv-section a:hover { text-decoration: none; }

/* Design tokens */
:root{
  --kv-bg: #ffffff;
  --kv-page: #f3f4f6;                 /* page background */
  --kv-panel: rgba(255,255,255,.55);  /* alt section panel */
  --kv-alt: #f6f7f9;

  --kv-text: #111827;
  --kv-muted: #6b7280;

  --kv-accent: #f6b44b;

  --kv-border: rgba(17,24,39,.10);
  --kv-border-strong: rgba(17,24,39,.14);

  --kv-radius: 18px;
  --kv-radius-lg: 22px;

  --kv-shadow-soft: 0 10px 24px rgba(0,0,0,.08);
  --kv-shadow: 0 16px 40px rgba(0,0,0,.10);

  /* Spacing (tiiviimpi) */
  --kv-section-y: 52px;
  --kv-section-y-mobile: 36px;
  --kv-gap: 14px;
  --kv-gap-hero: 16px;
  --kv-card-pad: 18px;
  --kv-panel-pad: 18px;

  --kv-btn-pad-y: 12px;
  --kv-btn-pad-x: 16px;
  --kv-btn-radius: 14px;
}

/* Astra page-level tweaks (front page only) */
body.home .site-content { background: var(--kv-page); }
body.home .ast-container { padding-left: 0; padding-right: 0; }
body.home #primary { width: 100%; }
body.home .entry-content { margin-top: 0; }

/* Layout primitives */
.kv-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body.home .kv-section{
  padding: var(--kv-section-y) 0;
}

@media (max-width:640px){
  body.home .kv-section{ padding: var(--kv-section-y-mobile) 0; }
}

/* Use .alt as “panel section” (instead of flat bg blocks) */
body.home .kv-section.alt{ background: transparent; }
body.home .kv-section.alt > .kv-wrap{
  background: var(--kv-panel);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--kv-radius-lg);
  padding: var(--kv-panel-pad);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

/* Typography */
.kv-kicker{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kv-muted);
  margin: 0 0 8px;
  font-weight: 700;
}

.kv-h1{
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--kv-text);
  font-weight: 800;
}

.kv-lead{
  font-size: 19px;
  line-height: 1.75;
  color: var(--kv-muted);
  max-width: 72ch;
  margin: 0;
}

.kv-title{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--kv-text);
  font-weight: 800;
}

.kv-text{
  margin: 0;
  color: var(--kv-muted);
  line-height: 1.7;
  font-size: 15.5px;
}

/* Grid */
.kv-grid{ display: grid; gap: var(--kv-gap); }
.kv-hero-grid{ grid-template-columns: 1.15fr .85fr; align-items: center; gap: var(--kv-gap-hero); }
.kv-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.kv-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.kv-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width:980px){
  .kv-hero-grid{ grid-template-columns: 1fr; }
  .kv-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .kv-4, .kv-3, .kv-2{ grid-template-columns: 1fr; }
}

/* Hero */
body.home .kv-hero{
  background:
    radial-gradient(1000px 600px at 15% 10%, rgba(246,180,75,.22), transparent 60%),
    radial-gradient(900px 550px at 85% 25%, rgba(59,130,246,.14), transparent 62%),
    linear-gradient(180deg, #ffffff, #ffffff);
}
body.home .kv-hero .kv-wrap{ padding-top: 8px; }

/* Cards */
.kv-card{
  background: var(--kv-bg);
  border: 1px solid var(--kv-border);
  border-radius: var(--kv-radius);
  box-shadow: var(--kv-shadow-soft);
  padding: var(--kv-card-pad);
}

body.home .kv-card:hover{
  box-shadow: var(--kv-shadow);
  transition: 160ms ease;
}

/* Buttons */
.kv-btns{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
}

.kv-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--kv-btn-pad-y) var(--kv-btn-pad-x);
  border-radius: var(--kv-btn-radius);
  font-weight: 800;
  border: 1px solid transparent;
  text-decoration: none !important;
  line-height: 1;
}

.kv-btn.primary{
  background: var(--kv-accent);
  color: #1b1408 !important;
  box-shadow: 0 10px 20px rgba(246,180,75,.25);
}

.kv-btn.ghost{
  background: rgba(255,255,255,.7);
  border-color: var(--kv-border-strong);
  color: var(--kv-text) !important;
}

.kv-btn.primary:hover,
.kv-btn.ghost:hover{
  transform: translateY(-1px);
  transition: 150ms ease;
  opacity: .98;
}

/* Pills/badges */
.kv-pills{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.kv-pill{
  border: 1px solid var(--kv-border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--kv-muted);
  background: rgba(255,255,255,.9);
}

/* Link cards */
a.kv-linkcard{ display: block; color: inherit !important; }
.kv-linkcard .kv-title{ display:flex; align-items:center; gap:10px; }
.kv-linkcard:hover{
  border-color: rgba(246,180,75,.45);
  transform: translateY(-2px);
  transition: 160ms ease;
}

.kv-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(246,180,75,.16);
  border: 1px solid rgba(246,180,75,.22);
  font-weight: 900;
}

/* Steps */
.kv-steps ol{ margin: 10px 0 0 18px; color: var(--kv-muted); }
.kv-steps li{ margin: 6px 0; }

/* FAQ */
.kv-faq details{
  border: 1px solid var(--kv-border);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.kv-faq details + details{ margin-top: 10px; }
.kv-faq summary{ cursor: pointer; font-weight: 800; color: var(--kv-text); }
.kv-faq p{ margin: 10px 0 0; color: var(--kv-muted); line-height: 1.65; }

/* FIX: pakota etusivun osiot pinoutumaan pystysuunnassa (Astra / flex-override) */
body.home #primary #main.site-main{
  display: block !important;
}

body.home #primary #main.site-main > section{
  width: 100% !important;
  max-width: 100% !important;
}


/* ===== PRIVACY PAGE ONLY: keep identical with front page ===== */
.kv-privacy-page{
  background:#f3f4f6;
}

/* Gutenberg sometimes adds extra margins/paddings to blocks */
.kv-privacy-page .kv-section{
  margin: 0;
}

/* Make sure the content doesn't stick to edges in Gutenberg context */
.kv-privacy-page .kv-wrap{
  width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

/* Ensure hero area behaves exactly like front page */
.kv-privacy-page .kv-hero{
  border-radius: 16px;
  overflow: hidden;
}

/* Badges if they aren't in global CSS */
.kv-privacy-page .kv-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.kv-privacy-page .kv-badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.7);
}
