/*
Theme Name: SG-Profi Modern
Theme URI: https://sg-profi.fi/
Author: SG-Profi
Description: Kevyt, Gutenbergilla muokattava yritysteema SG-Profin LVI-palveluille.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: sgprofi-modern
*/

:root {
  --sg-navy: #10243a;
  --sg-navy-2: #183653;
  --sg-blue: #1769aa;
  --sg-cyan: #1ba6a6;
  --sg-ink: #182b3d;
  --sg-muted: #607184;
  --sg-cloud: #f3f6f9;
  --sg-line: #dce5ec;
  --sg-white: #fff;
  --sg-radius: 22px;
  --sg-shadow: 0 18px 55px rgba(16, 36, 58, .10);
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { background: var(--sg-white); color: var(--sg-ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { text-underline-offset: .18em; }
.wp-site-blocks { overflow: clip; }
.wp-block-post-content { margin-block-start: 0; }
.sg-site-header { position: sticky; top: 0; z-index: 99; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--sg-line); backdrop-filter: blur(14px); }
.admin-bar .sg-site-header { top: 32px; }
.sg-site-header__inner { min-height: 82px; padding-top: 12px; padding-bottom: 12px; }
.sg-brand, .wp-block-site-title { margin: 0; color: var(--sg-navy); font-size: 1.45rem; font-weight: 800; letter-spacing: -.045em; }
.sg-brand a, .wp-block-site-title a { color: inherit; text-decoration: none; }
.sg-site-header .wp-block-navigation a { color: var(--sg-ink); font-size: .95rem; font-weight: 650; text-decoration: none; }
.sg-site-header .wp-block-navigation a:hover { color: var(--sg-blue); }
.sg-header-cta .wp-block-button__link { padding: 12px 19px; border-radius: 999px; background: var(--sg-blue); color: white; font-size: .9rem; font-weight: 700; }
.sg-hero { position: relative; padding: clamp(64px, 8vw, 112px) 24px; color: white; background: linear-gradient(116deg, rgba(9,27,45,.97), rgba(17,57,86,.90) 58%, rgba(14,111,128,.82)), url('https://storage.googleapis.com/hostinger-horizons-assets-prod/ff6de6ef-2973-435d-b7ad-422ba8740810/67076a85ce46a3e13b8fb4dfffa789f3.webp') center/cover no-repeat; }
.sg-hero__inner { max-width: 1200px; margin-inline: auto; }
.sg-eyebrow { color: #8fe0dc; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sg-hero h1 { max-width: 760px; margin-top: 16px; color: #fff; font-size: clamp(2.6rem, 5.3vw, 5rem); line-height: 1.02; letter-spacing: -.055em; }
.sg-hero p { max-width: 640px; color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 1.45vw, 1.24rem); line-height: 1.75; }
.sg-hero .wp-block-button__link { border-radius: 999px; padding: 15px 24px; font-weight: 750; }
.sg-button-primary .wp-block-button__link { background: var(--sg-cyan); color: #062b36; }
.sg-button-outline .wp-block-button__link { border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; }
.sg-section { padding: clamp(64px, 7vw, 100px) 24px; }
.sg-section--soft { background: var(--sg-cloud); }
.sg-section--dark { color: white; background: var(--sg-navy); }
.sg-section-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sg-section-heading h2 { margin: 10px 0 14px; color: var(--sg-navy); font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.08; letter-spacing: -.045em; }
.sg-section-heading p { color: var(--sg-muted); font-size: 1.08rem; line-height: 1.75; }
.sg-kicker { margin: 0; color: var(--sg-blue); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sg-benefits { padding: 26px 24px; background: #fff; border-bottom: 1px solid var(--sg-line); }
.sg-benefits .wp-block-columns { max-width: 1120px; margin: 0 auto; }
.sg-benefit { display: flex; align-items: center; gap: 12px; color: var(--sg-navy); font-size: .95rem; font-weight: 700; }
.sg-benefit strong { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #e0f5f3; color: #087b79; }
.sg-service-grid.wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; max-width: 1200px; margin: 0 auto 24px; }
.sg-service-grid > .wp-block-column { margin: 0 !important; }
.sg-service-card { height: 100%; overflow: hidden; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); background: white; box-shadow: 0 8px 28px rgba(16,36,58,.045); transition: transform .2s ease, box-shadow .2s ease; }
.sg-service-card:hover { transform: translateY(-4px); box-shadow: var(--sg-shadow); }
.sg-service-card > .wp-block-image { margin: 0; }
.sg-service-card .wp-block-image img { width: 100%; height: 190px; object-fit: cover; }
.sg-service-card__body { padding: 24px; }
.sg-service-card h3 { margin: 0 0 10px; color: var(--sg-navy); font-size: 1.25rem; line-height: 1.25; }
.sg-service-card p { margin: 0; color: var(--sg-muted); font-size: .96rem; line-height: 1.7; }
.sg-about-grid { max-width: 1200px; margin: 0 auto; }
.sg-about-image img { width: 100%; height: 470px; object-fit: cover; border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); }
.sg-about-copy h2 { color: var(--sg-navy); font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.1; letter-spacing: -.04em; }
.sg-about-copy p { color: var(--sg-muted); line-height: 1.8; }
.sg-check-list { padding-left: 1.2rem; color: var(--sg-ink); }
.sg-check-list li { padding: 6px 0 6px 5px; }
.sg-contact-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--sg-line); border-radius: var(--sg-radius); background: #fff; box-shadow: var(--sg-shadow); }
.sg-contact-card h3 { color: var(--sg-navy); font-size: 1.45rem; }
.sg-contact-link { color: var(--sg-blue); font-weight: 700; text-decoration: none; }
.sg-contact-link:hover { text-decoration: underline; }
.sg-contact-dark { padding: clamp(30px, 5vw, 52px); border-radius: var(--sg-radius); color: white; background: linear-gradient(135deg, #10243a, #174e69); }
.sg-contact-dark h2, .sg-contact-dark p { color: white; }
.sg-contact-dark p { color: rgba(255,255,255,.8); }
.sg-cta .wp-block-button__link { padding: 15px 24px; border-radius: 999px; background: var(--sg-cyan); color: #062b36; font-weight: 800; }
.sg-footer { padding: 44px 24px 28px; color: rgba(255,255,255,.78); background: #0b1b2b; }
.sg-footer h2, .sg-footer h3, .sg-footer .wp-block-site-title { color: white; }
.sg-footer a { color: white; }
.sg-footer__bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; }
.sg-form .wp-block-shortcode { margin-top: 0; }
.sg-contact-form { display: grid; gap: 14px; }
.sg-contact-form label { display: grid; gap: 7px; color: var(--sg-ink); font-size: .92rem; font-weight: 700; }
.sg-contact-form input, .sg-contact-form textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid #cbd7e1; border-radius: 12px; background: #fff; color: var(--sg-ink); font: inherit; }
.sg-contact-form input:focus, .sg-contact-form textarea:focus { outline: 3px solid rgba(23,105,170,.18); border-color: var(--sg-blue); }
.sg-contact-form button { justify-self: start; border: 0; border-radius: 999px; padding: 14px 24px; background: var(--sg-blue); color: white; font: inherit; font-weight: 800; cursor: pointer; }
.sg-form-notice { padding: 12px 14px; border-radius: 10px; background: #e7f7f0; color: #145b3c; }
.sg-form-notice--error { background: #fff0ed; color: #963621; }
.sg-form-privacy { color: var(--sg-muted); font-size: .82rem; line-height: 1.6; }
.sg-form-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.wp-block-button__link { transition: transform .18s ease, background-color .18s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
@media (max-width: 900px) { .sg-service-grid.wp-block-columns { grid-template-columns: repeat(2,minmax(0,1fr)); } .sg-about-image img { height: 360px; } }
@media (max-width: 640px) { .sg-service-grid.wp-block-columns { grid-template-columns: 1fr; } .sg-site-header__inner { min-height: 70px; } .sg-header-cta { display: none; } .sg-hero { padding-left: 20px; padding-right: 20px; } .sg-section { padding-left: 20px; padding-right: 20px; } .sg-benefits .wp-block-columns { gap: 16px; } }
