/**
 * Hobbi Design System (hobbi-ds.css)
 *
 * Sistem de design comun pentru landing page si tema WordPress.
 * Extras din hobbi-v4.html (Thinkbox) — varianta finala de design.
 *
 * Cuprins:
 *   1. Reset & Box Model
 *   2. CSS Custom Properties (Design Tokens)
 *   3. Tipografie
 *   4. Layout & Container
 *   5. Navigare (Nav)
 *   6. Sectiuni (Section Headers)
 *   7. Butoane
 *   8. Carduri (Feature Cards)
 *   9. Formulare
 *  10. Utilitati
 *  11. Responsive
 */

@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/urbanist/Urbanist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/urbanist/Urbanist-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


/* ==========================================================================
   1. RESET & BOX MODEL
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Urbanist', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}


/* ==========================================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
  /* Culori hobbi.ro */
  --light-blue:  #EEF6FF;
  --primary:     #008BD2;

  /* Culori primare */
  --pink:        #F95F8E;
  --pink-hover:  #E04070;
  --pink-light:  #FFE4ED;
  --pink-mid:    #FFD0DF;

  --blue:        #1AAFE6;
  --blue-dark:   #0B8CC0;
  --blue-bg:     #E8F7FD;

  --yellow:      #FFD233;
  --yellow-bg:   #FFF8DC;

  --green:       #3ECF8E;

  /* Culori neutre */
  --dark:        #1A1A2E;
  --body:        #4A5568;
  --muted:       #8A9BB0;
  --border:      #E2E8F0;
  --surface:     #F7F9FC;
  --white:       #FFFFFF;

  /* Border radius */
  --r-lg:        28px;
  --r-md:        16px;
  --r-sm:        12px;
  --r-pill:      9999px;

  /* Umbre */
  --shadow-sm:   0 2px 12px rgba(26, 175, 230, 0.08);
  --shadow-md:   0 4px 24px rgba(26, 175, 230, 0.12);
  --shadow-lg:   0 12px 48px rgba(26, 175, 230, 0.16);
  --shadow-pink: 0 6px 28px rgba(249, 95, 142, 0.30);
  --shadow-blue: 0 6px 28px rgba(26, 175, 230, 0.30);

  /* Tranzitii */
  --transition:  0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease:        0.2s ease-in-out;

  /* Latime maxima container */
  --max-width:   1180px;
}


/* ==========================================================================
   3. TIPOGRAFIE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
}

h4 {
  font-size: 15px;
  font-weight: 700;
}

p {
  color: var(--body);
  line-height: 1.7;
}

/* Text accent colorat */
.text-blue   { color: var(--blue); }
.text-pink   { color: var(--pink); }
.text-yellow { color: var(--yellow); }
.text-muted  { color: var(--muted); }

/* Accent subliniat (underline decorativ galben sub text) */
.accent {
  color: var(--blue);
  position: relative;
  display: inline-block;
}

.accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 5px;
  background: var(--yellow);
  opacity: 0.55;
  border-radius: 3px;
  z-index: -1;
}


/* ==========================================================================
   4. LAYOUT & CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 48px;
}

section .container {
  padding: 0;
}


/* ==========================================================================
   5. NAVIGARE (NAV)
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-text {
  font-size: 26px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -1px;
}

.nav-logo-dot {
  width: 7px;
  height: 7px;
  background: var(--pink);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color var(--ease);
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  transition: all var(--ease);
}

.nav-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Meniu mobil (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}


/* ==========================================================================
   6. SECTIUNI (SECTION HEADERS)
   ========================================================================== */

/* Label deasupra titlului de sectiune */
.sec-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 10px;
}

/* Titlu principal sectiune */
.sec-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

/* Subtitlu sectiune */
.sec-sub {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  max-width: 600px;
}

/* Centrat */
.sec-header {
  text-align: center;
  margin-bottom: 48px;
}

.sec-header .sec-sub {
  margin: 0 auto;
}


/* ==========================================================================
   7. BUTOANE
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  background: var(--pink);
  color: var(--white);
  border: none;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 800;
  font-family: 'Urbanist', sans-serif;
  cursor: pointer;
  letter-spacing: -0.2px;
  box-shadow: var(--shadow-pink);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--pink-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(249, 95, 142, 0.40);
}

.btn-primary--pink {
  background: var(--pink);
  box-shadow: var(--shadow-pink);
}

.btn-primary--pink:hover {
  background: var(--pink-hover);
  box-shadow: 0 12px 40px rgba(249, 95, 142, 0.40);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Urbanist', sans-serif;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}

.btn-secondary:hover {
  color: var(--dark);
}

/* Buton full-width */
.btn-block {
  width: 100%;
}


/* ==========================================================================
   8. CARDURI (FEATURE CARDS)
   ========================================================================== */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all var(--ease);
}

.feat-card:hover {
  border-color: var(--blue-bg);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Icon in card */
.feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

/* Variante culoare icon */
.fi-pink   { background: var(--pink-light); }
.fi-blue   { background: var(--blue-bg); }
.fi-yellow { background: var(--yellow-bg); }
.fi-green  { background: #E6FAF3; }

.feat-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.feat-card p {
  font-size: 13px;
  color: var(--body);
  line-height: 1.65;
}


/* ==========================================================================
   9. FORMULARE
   ========================================================================== */

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Indicator camp obligatoriu */
.form-field .req {
  color: var(--pink);
  margin-left: 2px;
}

/* Indicator camp optional */
.form-field .opt {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 400;
  font-family: 'Urbanist', sans-serif;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-field textarea {
  min-height: 90px;
  resize: vertical;
}

.form-field textarea {
  border-radius: var(--r-md);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 210, 51, 0.20);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #D1D5DB;
  font-weight: 400;
}

/* Hint sub camp */
.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

/* Rand cu doua campuri */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Eroare validare */
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(249, 95, 142, 0.15);
}

.form-error {
  font-size: 11px;
  color: var(--pink);
  margin-top: 4px;
  display: none;
}

.form-field.has-error .form-error {
  display: block;
}


/* ==========================================================================
   10. UTILITATI
   ========================================================================== */

/* Spatiu dupa nav (68px) */
.pt-nav {
  padding-top: 68px;
}

/* Text align */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Flex utilitati */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* Vizibilitate */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2, .sec-title { font-size: 30px; }

  section { padding: 72px 32px; }

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; letter-spacing: -1px; }
  h2, .sec-title { font-size: 26px; }

  section { padding: 56px 20px; }

  .nav { padding: 0 20px; }

  .nav-links { display: none; }

  .nav-toggle { display: flex; }

  /* Meniu mobil deschis */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .feat-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2, .sec-title { font-size: 22px; }

  section { padding: 40px 16px; }

  .btn-primary {
    padding: 13px 24px;
    font-size: 14px;
  }
}
