/*
Theme Name: LogicWorks
*/
/*
Theme Name: LogicWorks
Theme URI: https://logicworks.fi
Author: LogicWorks
Author URI: https://logicworks.fi
Description: LogicWorks custom theme
Version: 1.0
*/

/* ============================================================
   LOGICWORKS – PREMIUM STYLE SHEET
   Selkeyttä. Faktoja. Parempia päätöksiä.
   ============================================================ */


/* ------------------------------------------------------------
   1) VÄRITEEMA (BRÄNDIVÄRIT)
   ------------------------------------------------------------ */

:root {
  --lw-dark: #0A12AF;        /* Pääsininen */
  --lw-accent: #1E66FF;      /* Korostesininen */
  --lw-lightblue: #4A8CFF;   /* Vaaleampi sininen */
  --lw-text: #2A2F3A;        /* Tumma tekstiväri */
  --lw-muted: #6B7280;       /* Harmaa teksti */
  --lw-bg: #F7F9FC;          /* Vaalea taustaväri */

  /* Premium-kulta */
  --lw-gold: #D4AF37;
  --lw-gold-dark: #B8962F;
}


/* ------------------------------------------------------------
   2) TYPOGRAFIA
   ------------------------------------------------------------ */

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--lw-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  color: var(--lw-dark);
  letter-spacing: -0.3px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.15rem; }

p, li {
  font-size: 1.05rem;
  color: var(--lw-text);
}

a {
  color: var(--lw-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--lw-dark);
}


/* ------------------------------------------------------------
   3) HERO-OSIO
   ------------------------------------------------------------ */

.hero {
  padding: 140px 20px 120px;
  text-align: center;
  background: linear-gradient(135deg, #0A12AF 0%, #1E66FF 60%, #4A8CFF 100%);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .buttons a {
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

/* Primary button */
.hero .primary {
  background: var(--lw-gold);
  color: #0A12AF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero .primary:hover {
  background: #f0c14b;
  transform: translateY(-2px);
}

/* Secondary buttons */
.hero .secondary {
  background: rgba(255,255,255,0.9);
  color: #0A12AF;
  border: 1px solid rgba(255,255,255,0.4);
}

.hero .secondary:hover {
  background: white;
  transform: translateY(-2px);
}


/* ------------------------------------------------------------
   4) PALVELU-OSIO (3 KORTTIA)
   ------------------------------------------------------------ */

.lw-services-section {
  padding: 100px 20px;
  background: var(--lw-bg);
}

.lw-services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.lw-services-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--lw-dark);
  font-weight: 700;
}

.lw-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.lw-service-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 14px;
  border: 1px solid #e3e6ee;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.lw-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  border-color: #d0d4df;
}

.lw-service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: var(--lw-dark);
}

.lw-service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--lw-accent);
  font-weight: 600;
}

.lw-service-card p {
  font-size: 1rem;
  margin-bottom: 22px;
  color: var(--lw-text);
  line-height: 1.55;
}

.lw-readmore {
  display: inline-block;
  font-weight: 600;
  color: var(--lw-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lw-readmore:hover {
  color: var(--lw-dark);
}

/* Ikonipaikka */
.lw-service-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: var(--lw-accent);
  opacity: 0.08;
  border-radius: 50%;
}


/* ------------------------------------------------------------
   5) MIKSI LOGICWORKS -OSIO
   ------------------------------------------------------------ */

section.miksi-logicworks,
section:nth-of-type(3) {
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 20px;
}

section.miksi-logicworks h2,
section:nth-of-type(3) h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 35px;
  color: var(--lw-dark);
  font-weight: 700;
}

section.miksi-logicworks ul,
section:nth-of-type(3) ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
}

section.miksi-logicworks ul li,
section:nth-of-type(3) ul li {
  font-size: 1.15rem;
  margin-bottom: 18px;
  padding-left: 32px;
  position: relative;
  line-height: 1.55;
  color: var(--lw-text);
}

section.miksi-logicworks ul li::before,
section:nth-of-type(3) ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--lw-accent);
  opacity: 0.9;
}


/* ------------------------------------------------------------
   6) FOOTER
   ------------------------------------------------------------ */

footer {
  background: var(--lw-dark);
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-top: 4px solid var(--lw-gold);
}

footer p,
footer span,
footer li {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

footer a {
  color: var(--lw-gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.8;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}





/* ------------------------------------------------------------
   8) GLOBAALIT VIIMEISTELYT
   ------------------------------------------------------------ */

* {
  border-radius: 0.5px;
}

a, button {
  transition: all 0.25s ease;
}

.card, .service-card, .lw-service-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover,
.service-card:hover,
.lw-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

img {
  border-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

section + section {
  margin-top: 20px;
}


/* ------------------------------------------------------------
   9) RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .lw-services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .lw-services-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.4rem; }
  p, li { font-size: 1rem; }

  .hero {
    padding-top: 100px !important;
    padding-bottom: 90px !important;
  }
}
/* ============================================================
   LOGICWORKS – BURGER MENU (FULLSCREEN OVERLAY)
   ============================================================ */

/* HEADER RAKENNE */
.site-header {
  position: relative;
  width: 100%;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.site-header .logo img {
  height: 48px;
  width: auto;
}

/* BURGER BUTTON */
.burger {
  width: 36px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--lw-gold);
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* BURGER → X ANIMAATIO */
.burger.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* OVERLAY MENU */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 18, 175, 0.97); /* tumma sininen, 97% */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1050;
}

/* AVATTUNA */
.overlay-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* MENU LISTA */
.overlay-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.overlay-menu ul li {
  margin: 18px 0;
}

.overlay-menu ul li a {
  font-size: 2rem;
  font-weight: 600;
  color: var(--lw-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.overlay-menu ul li a:hover {
  color: white;
}

/* Mobiili */
@media (max-width: 600px) {
  .overlay-menu ul li a {
    font-size: 1.7rem;
  }
}
/* ============================================================
   LOGICWORKS – BURGER MENU (FULLSCREEN OVERLAY)
   ============================================================ */

/* HEADER RAKENNE */
.site-header {
  position: relative;
  width: 100%;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.site-header .logo img {
  height: 48px;
  width: auto;
}

/* BURGER BUTTON */
.burger {
  width: 36px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--lw-gold);
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* BURGER → X ANIMAATIO */
.burger.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* OVERLAY MENU – OLETUS: PIILOSSA */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 18, 175, 0.97);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1050;
}

/* AVATTUNA */
.overlay-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* MENU LISTA */
.overlay-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.overlay-menu ul li {
  margin: 18px 0;
}

.overlay-menu ul li a {
  font-size: 2rem;
  font-weight: 600;
  color: var(--lw-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.overlay-menu ul li a:hover {
  color: white;
}

/* Mobiili */
@media (max-width: 600px) {
  .overlay-menu ul li a {
    font-size: 1.7rem;
  }
}
.site-header {
  padding: 10px 20px !important;
}

.header-inner {
  align-items: center !important;
}

.burger {
  margin-top: 0 !important;
}
.hero {
  padding: 70px 20px 60px !important;
}
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
body.admin-bar .site-header {
  top: 32px;
}
