/*
Theme Name: Smart Technology
Theme URI: https://smarttechnology.gr
Author: Smart Technology
Description: Ελαφρύ block theme (FSE) για το εταιρικό site της Smart Technology. Χωρίς page builder· οι ενότητες είναι block patterns.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: smarttechnology
*/

:root {
  --st-ink: #111315; --st-bg: #F3F3F0; --st-white: #FFFFFF; --st-line: #D6D6D0;
  --st-t1: #33363A; --st-t2: #3A3D41; --st-muted: #55585C;
  --st-accent: #C2410C; --st-accent-l: #F08A4B;
  --st-dline: #2C2F33; --st-dsoft: #C9CBC5; --st-dmuted: #B8BAB4;
  --st-head: 'Commissioner', 'Helvetica Neue', Arial, sans-serif;
  --st-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
:where(.st-main, .st-header, .st-footer) :is(p, h1, h2, h3, ul, figure) { margin: 0; }
.st-main img, .st-header img { max-width: 100%; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; }
.st-tech :focus-visible, .st-footer :focus-visible, .st-stats :focus-visible { outline-color: var(--st-accent-l); }
.st-main [id], .st-footer[id] { scroll-margin-top: 16px; }

/* ---------- Header ---------- */
.st-header { border-bottom: 1px solid var(--st-line); background: var(--st-bg); }
.st-header__in { max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.st-brand { display: flex; align-items: center; gap: 10px; }
.st-mark { width: 34px; height: 34px; background: var(--st-ink); font-family: var(--st-head); font-weight: 800; font-size: 15px; line-height: 1; }
.st-mark a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--st-bg); text-decoration: none; }
.st-mark a:hover { color: var(--st-bg); }
.st-name, .st-name a { font-family: var(--st-head); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--st-ink); text-decoration: none; line-height: 1.55; }
.st-name a:hover { color: var(--st-ink); }
.st-nav { font-size: 15px; font-weight: 500; }
.st-nav .wp-block-navigation__container { gap: 28px; flex-wrap: wrap; align-items: center; }
.st-nav .wp-block-navigation-item__content { text-decoration: none; padding: 0; }
.st-nav .st-lang .wp-block-navigation-item__content { font-family: var(--st-mono); font-size: 13px; color: var(--st-muted); }
.st-nav .st-lang .wp-block-navigation-item__content:hover { color: var(--st-accent); }
.st-nav .st-nav-cta .wp-block-navigation-item__content { background: var(--st-accent); color: #fff; padding: 11px 18px; font-weight: 600; }
.st-nav .st-nav-cta .wp-block-navigation-item__content:hover { color: #fff; }
.st-nav .wp-block-navigation__responsive-container-open { color: var(--st-ink); }
.st-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.st-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 20px; align-items: flex-start; font-size: 18px; }
.st-nav .wp-block-navigation__responsive-container.is-menu-open .st-nav-cta { align-self: stretch; width: 100%; }
.st-nav .wp-block-navigation__responsive-container.is-menu-open .st-nav-cta .wp-block-navigation-item__content { display: block; text-align: center; }

/* ---------- Τυπογραφία ---------- */
.st-h1, .st-h2, .st-h3 { font-family: var(--st-head); font-weight: 800; }
.st-h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; }
.st-h2 { font-size: 42px; line-height: 1.08; letter-spacing: -0.02em; }
.st-h2--tech { font-size: 34px; line-height: 1.1; }
.st-h2--panel { font-size: 40px; line-height: 1.1; }
.st-h2--history { font-size: 36px; line-height: 1.1; }
.st-h3 { font-size: 22px; line-height: 1.55; }
.st-eyebrow { font-family: var(--st-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--st-muted); }
.st-eyebrow--dark { color: var(--st-accent-l); }
.st-eyebrow--accent { color: var(--st-accent); }
.st-num { font-family: var(--st-mono); font-size: 13px; color: var(--st-accent); }
.st-sub { color: var(--st-t1); font-size: 17px; }
.st-lead { font-size: 19px; color: var(--st-t1); max-width: 540px; }

/* ---------- Κουμπιά ---------- */
.st-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.st-btn .wp-block-button__link, .st-btn-ghost .wp-block-button__link { display: inline-block; border-radius: 0; font-size: 16px; line-height: 1.55; font-weight: 600; text-decoration: none; padding: 14px 22px; }
.st-btn .wp-block-button__link { background: var(--st-accent); color: #fff; }
.st-btn .wp-block-button__link:hover { color: #fff; }
.st-btn--lg .wp-block-button__link { padding: 15px 24px; }
.st-btn-ghost .wp-block-button__link { background: transparent; color: var(--st-ink); border: 1.5px solid var(--st-ink); padding: 13px 22px; }

/* ---------- Hero ---------- */
.st-hero { max-width: 1240px; margin: 0 auto; padding: 72px 24px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; }
.st-hero__text { display: flex; flex-direction: column; gap: 24px; }
.st-hero__img { margin: 0; }
.st-hero__img img { display: block; width: 100%; height: 440px; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- Αριθμοί ---------- */
.st-stats { background: var(--st-ink); color: var(--st-bg); }
.st-stats__in { max-width: 1240px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.st-stat { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid #3A3D42; padding-left: 18px; }
.st-stat__n { font-family: var(--st-head); font-weight: 800; font-size: 40px; line-height: 1.1; }
.st-stat__l { font-size: 15px; color: var(--st-dsoft); }

/* ---------- Εταιρεία ---------- */
.st-section { max-width: 1240px; margin: 0 auto; }
.st-company { padding: 96px 24px 40px; }
.st-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; align-items: end; margin-bottom: 40px; }
.st-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px; background: var(--st-line); border: 1px solid var(--st-line); }
.st-cell { background: var(--st-white); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.st-cell__p { margin: 0; color: var(--st-t2); font-size: 16px; }

/* ---------- Καταστήματα ---------- */
.st-stores { padding: 56px 24px 96px; }
.st-stores .st-head { margin-bottom: 32px; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.st-card { position: relative; background: var(--st-white); border: 1px solid var(--st-line); display: flex; flex-direction: column; }
.st-card__img { margin: 0; }
.st-card__img img { display: block; width: 100%; height: 190px; object-fit: cover; }
.st-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.st-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.st-card__name { font-family: var(--st-head); font-weight: 800; font-size: 22px; line-height: 1.55; color: var(--st-ink); }
.st-card__tag { font-family: var(--st-mono); font-size: 12px; color: var(--st-muted); }
.st-card__desc { font-size: 16px; color: var(--st-t2); }
.st-card__link { margin-top: auto !important; padding-top: 8px; font-size: 14px; font-weight: 600; }
.st-card__link a { color: var(--st-accent); text-decoration: none; }
.st-card__link a::after { content: ''; position: absolute; inset: 0; }
.st-card:hover { border-color: var(--st-ink); }

/* ---------- Τεχνολογία ---------- */
.st-tech { background: var(--st-ink); color: var(--st-bg); }
.st-tech__in { max-width: 1240px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px; align-items: center; }
.st-tech__text { display: flex; flex-direction: column; gap: 14px; }
.st-tech__p { color: #D2D4CE; font-size: 16px; line-height: 1.55; }
.st-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px; background: var(--st-dline); border: 1px solid var(--st-dline); }
.st-feat { background: var(--st-ink); padding: 12px 14px; font-size: 15px; }
.st-diagram { margin: 0; justify-self: end; width: 100%; max-width: 560px; }
.st-diagram svg { display: block; width: 100%; height: auto; }

/* ---------- Συνεργασίες ---------- */
.st-partner { padding: 96px 24px 72px; }
.st-panel { background: var(--st-white); border: 1px solid var(--st-line); border-top: 4px solid var(--st-accent); padding: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 40px; align-items: start; }
.st-panel__text { display: flex; flex-direction: column; gap: 18px; }
.st-panel__text .st-btns { margin-top: 6px; }
.st-rows { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--st-line); border: 1px solid var(--st-line); }
.st-row { background: var(--st-white); padding: 18px 20px; display: flex; gap: 16px; align-items: baseline; }
.st-row__t { font-size: 17px; font-weight: 500; }
.st-channels { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding: 22px 0; border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); }
.st-channels__label { font-family: var(--st-mono); font-size: 12px; color: var(--st-muted); }
.st-channels__name { font-family: var(--st-head); font-weight: 600; font-size: 20px; color: var(--st-muted); }

/* ---------- Ιστορία ---------- */
.st-history { max-width: 1240px; margin: 0 auto; padding: 0 24px 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; }
.st-history__img { margin: 0; }
.st-history__img img { display: block; width: 100%; height: 360px; object-fit: cover; }
.st-history__text { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Footer ---------- */
.st-footer { background: var(--st-ink); color: var(--st-bg); }
.st-footer a { color: var(--st-bg); }
.st-footer a:hover { color: var(--st-accent-l); }
.st-footer__in { max-width: 1240px; margin: 0 auto; padding: 72px 24px 40px; }
.st-footer__grid { display: grid; grid-template-columns: minmax(min(320px, 100%), 2fr) minmax(min(200px, 100%), 1fr) minmax(min(200px, 100%), 1fr); gap: 40px; }
.st-footer__cta { display: flex; flex-direction: column; gap: 14px; }
.st-footer__cta .st-btns { align-self: flex-start; margin-top: 6px; }
.st-footer__lead { font-family: var(--st-head); font-weight: 800; font-size: 30px; line-height: 1.15; }
.st-footer__txt { color: var(--st-dsoft); font-size: 16px; }
.st-footer__col { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.st-label { font-family: var(--st-mono); font-size: 12px; color: var(--st-dmuted); }
.st-footer__form { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--st-dline); }
.st-footer__barwrap { max-width: 1240px; margin: 0 auto; padding: 20px 24px 32px; border-top: 1px solid var(--st-dline); font-size: 13px; color: var(--st-dmuted); }
.st-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.st-footer__bar a { color: var(--st-dmuted); }
.st-footer__links { margin: 0; }

/* ---------- Φόρμα επικοινωνίας ---------- */
.st-form { display: grid; gap: 20px; max-width: 900px; }
.st-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px 20px; }
.st-form__field { display: flex; flex-direction: column; gap: 6px; }
.st-form__field--wide { grid-column: 1 / -1; }
.st-form label { font-family: var(--st-mono); font-size: 12px; color: var(--st-dmuted); }
.st-form input[type=text], .st-form input[type=email], .st-form input[type=url], .st-form textarea { font: inherit; font-size: 16px; color: var(--st-bg); background: #1A1C20; border: 1px solid #4A4E54; border-radius: 0; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.st-form textarea { min-height: 140px; resize: vertical; }
.st-form input::placeholder { color: #8A8D91; }
.st-form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--st-dsoft); }
.st-form__consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--st-accent); }
.st-form__consent label { font-family: inherit; font-size: 15px; color: var(--st-dsoft); }
.st-form__consent a { color: var(--st-bg); }
.st-form__submit { align-self: flex-start; font: inherit; font-size: 16px; font-weight: 600; background: var(--st-accent); color: #fff; border: 0; border-radius: 0; padding: 14px 24px; cursor: pointer; }
.st-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.st-form__msg { padding: 14px 16px; border: 1px solid #4A4E54; font-size: 16px; }
.st-form__msg--ok { border-color: #4C9F70; }
.st-form__msg--err { border-color: var(--st-accent-l); }

/* ---------- Νομικές σελίδες ---------- */
.st-doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.st-doc__title { font-size: 44px; margin-bottom: 32px !important; }
.st-doc__body h2 { font-family: var(--st-head); font-weight: 800; font-size: 24px; line-height: 1.2; margin: 40px 0 12px; }
.st-doc__body p, .st-doc__body li { font-size: 17px; line-height: 1.65; color: var(--st-t1); margin: 0 0 14px; }
.st-doc__body ul { padding-left: 1.2em; margin: 0 0 14px; }

/* ---------- Mobile: ίδια σελίδα σε μία στήλη ---------- */
@media (max-width: 640px) {
  .st-header__in { padding: 14px 24px; flex-wrap: nowrap; }
  .st-h1 { font-size: 40px; }
  .st-h2, .st-h2--panel, .st-h2--history { font-size: 30px; }
  .st-h2--tech { font-size: 28px; }
  .st-hero { padding: 40px 24px 32px; gap: 32px; }
  .st-hero__img img { height: 280px; }
  .st-lead { font-size: 17px; }
  .st-btns { flex-direction: column; align-items: stretch; }
  .st-btn .wp-block-button__link, .st-btn-ghost .wp-block-button__link { display: block; width: 100%; text-align: center; box-sizing: border-box; }
  .st-footer__cta .st-btns { align-self: stretch; }
  .st-stats__in { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 28px 24px; }
  .st-stat { padding-left: 14px; }
  .st-stat__n { font-size: 30px; }
  .st-stat__l { font-size: 14px; }
  .st-company { padding: 56px 24px 24px; }
  .st-head { gap: 16px; margin-bottom: 28px; }
  .st-stores { padding: 32px 24px 56px; }
  .st-cards { gap: 14px; }
  .st-card { flex-direction: row; align-items: stretch; }
  .st-card__img { flex: 0 0 112px; width: 112px; }
  .st-card__img img { width: 112px; height: 100%; min-height: 112px; }
  .st-card__body { padding: 14px 16px; }
  .st-card__row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .st-card__name { font-size: 19px; }
  .st-card__desc { font-size: 15px; }
  .st-tech__in { padding: 40px 24px; gap: 32px; }
  .st-partner { padding: 56px 24px 40px; }
  .st-panel { padding: 24px; gap: 28px; }
  .st-history { padding: 0 24px 56px; gap: 28px; }
  .st-history__img img { height: 240px; }
  .st-footer__in { padding: 48px 24px 32px; }
  .st-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .st-footer__lead { font-size: 26px; }
  .st-footer__form { margin-top: 36px; padding-top: 32px; }
  .st-form__submit { align-self: stretch; }
  .st-doc { padding: 40px 24px 56px; }
  .st-doc__title { font-size: 32px; }
}
