/*
Theme Name: Powerfit
Theme URI: https://powerfit.ro
Author: Powerfit
Description: Identitate Powerfit. Marca portocalie, Montserrat, fundal închis și deschis.
Version: 1.0.0
Text Domain: powerfit
*/

/* Montserrat — latin + latin-ext (ă, ș, ț) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
[data-theme="dark"] {
  --bg: #0c0d10;
  --bg-elev: #16181d;
  --text: #f4efe6;
  --muted: #cfc6b8;
  --amber: #fcb040;
  --accent-text: #fcb040;
  --word: #ffffff;
  --tag: #b3b3b3;
  --line: rgba(244, 239, 230, 0.16);
  --glow: rgba(252, 176, 64, 0.18);
  --hero-fade: 12, 13, 16;
  --shadow: none;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4efe6;
  --bg-elev: #fffdf8;
  --text: #161513;
  --muted: #5e5952;
  --amber: #fcb040;
  --accent-text: #9a5e0b;
  --word: #161513;
  --tag: #5c574f;
  --line: rgba(22, 21, 19, 0.12);
  --glow: rgba(252, 176, 64, 0.28);
  --hero-fade: 244, 239, 230;
  --shadow: 0 12px 32px rgba(28, 22, 14, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

.page,
.subpage { flex: 1 0 auto; }

img { max-width: 100%; }

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--amber);
  color: #1a1206;
  padding: 0.5rem 0.8rem;
  z-index: 5;
  font-weight: 700;
}

.skip:focus { transform: none; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 46%) 1fr;
}

body.admin-bar .page { min-height: calc(100dvh - 32px); }

.copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(900px 420px at -10% -20%, var(--glow), transparent 55%),
    var(--bg);
}

.watermark {
  position: absolute;
  width: min(78%, 460px);
  height: auto;
  right: -12%;
  bottom: -14%;
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
}

[data-theme="light"] .watermark { opacity: 0.16; }

.brand,
.intro,
.colophon { position: relative; z-index: 1; }

.brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: auto;
  height: 54px;
  flex: 0 0 auto;
  display: block;
}

.logo-text { min-width: 0; }

.logo-name {
  display: block;
  color: var(--word);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.logo-tag {
  display: block;
  margin-top: 0.38rem;
  color: var(--tag);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.theme-toggle {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--tag);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--amber);
}

.logo:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.theme-icon { display: inline-flex; }
.theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: inline-flex; }

h1 {
  margin: 0 0 1rem;
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

h1 em {
  font-style: normal;
  color: var(--accent-text);
}

.lead {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 2rem;
}

.card {
  padding: 1.1rem 1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.mark {
  display: block;
  width: 1.7rem;
  height: 3px;
  margin-bottom: 0.85rem;
  background: var(--amber);
  border-radius: 99px;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  margin: 0;
  min-height: 46vh;
  overflow: hidden;
  background: #1a140e;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--hero-fade), 0.55), transparent 28%),
    linear-gradient(180deg, transparent 55%, rgba(var(--hero-fade), 0.35));
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.2rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 220px at -10% -40%, var(--glow), transparent 60%),
    var(--bg);
}

.topbar .logo-mark { height: 44px; }
.topbar .logo-name { font-size: 1.35rem; }

.subpage {
  padding: clamp(1.6rem, 4vw, 3.2rem) clamp(1.2rem, 4vw, 2.4rem) 4rem;
}

.entry-wrap { max-width: 68ch; }

.subpage h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.entry {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.entry a { color: var(--accent-text); }
.entry p,
.entry ul { margin: 0 0 1rem; }

.sub-colophon {
  padding: 1.2rem clamp(1.2rem, 4vw, 2.4rem) 1.6rem;
  border-top: 1px solid var(--line);
}

::selection {
  background: #fcb040;
  color: #1a1206;
}

@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; }
  .hero { order: -1; min-height: 46vh; }
  .hero::after {
    background: linear-gradient(180deg, transparent 40%, rgba(var(--hero-fade), 0.72));
  }
  .services { grid-template-columns: 1fr; }
  h1 { max-width: none; }
  .colophon { flex-direction: column; }
}

@media (min-width: 861px) {
  .hero { min-height: 100%; }
}

@media (max-width: 782px) {
  body.admin-bar .page { min-height: calc(100dvh - 46px); }
}

@media (max-width: 520px) {
  .theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .theme-toggle { padding: 0.55rem 0.7rem; }
  .logo-tag { letter-spacing: 0.12em; }
}

@media (max-width: 380px) {
  .logo { gap: 0.6rem; }
  .logo-mark { height: 44px; }
  .logo-tag {
    white-space: normal;
    max-width: 12.5rem;
  }
}
