/*
Theme Name: ODOekspert
Theme URI: https://odoekspert.pl
Author: UDI Group
Description: Dedykowany motyw WordPress dla ODOekspert, budowany na ACF PRO Flexible Content.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: odoekspert
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-serif-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens (z Figma) ---------- */
:root {
  --color-navy: #022A3A;
  --color-navy-light: #1E2E45;
  --color-navy-footer: #101443;
  --color-white: #FFFFFF;
  --color-gray-light: #D5D9DB;
  --color-text: #1A1A1A;
  --color-text-muted: #3A3A38;
  --color-accent: #FF6B35;
  --color-indigo: #3F51B5;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-h4: 2.75rem;
  --fs-h5: 2rem;
  --fs-h6: 1.5rem;
  --fs-body: 1.125rem;

  --container-max: 1596px;
  --container-padding: clamp(1.25rem, 4vw, 2.5rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

@media (max-width: 1024px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --space-md: 1.25rem;
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
    --space-2xl: 3rem;
  }
}

/* ---------- Unified inter-section spacing ---------- */
:root {
  --section-gap: 10.125rem;
}

@media (max-width: 1024px) {
  :root {
    --section-gap: 6.25rem;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 3.75rem;
  }
}

#main > * {
  margin-bottom: var(--section-gap);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; margin: 0 0 var(--space-sm); line-height: 1.15; }
p { margin: 0 0 var(--space-sm); }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--container-padding) * 2);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ---------- Contact Form 7 ---------- */
.wpcf7,
.wpcf7 form,
.wpcf7 form > p,
.wpcf7-form-control-wrap {
  display: contents;
}

.wpcf7-not-valid-tip {
  display: block;
  color: var(--color-accent);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.wpcf7-spinner {
  position: absolute;
  margin-left: var(--space-sm);
}

/* ---------- Komponenty ---------- */
.divider-bar {
  height: 10px;
  background: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  text-align: center;
  white-space: nowrap;
}

.btn--orange {
  background: var(--color-accent);
}

.btn--indigo {
  background: var(--color-indigo);
}

.btn--full {
  width: 100%;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.section-eyebrow__text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-navy-footer);
  white-space: nowrap;
  margin: 0;
}

.section-eyebrow__line {
  flex: 1;
  height: 1px;
  background: var(--color-accent);
}

.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-2xl);
}

.section-head__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-navy-footer);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .section-head__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .section-eyebrow__text,
  .section-link {
    font-size: 1.125rem;
  }

  .btn {
    font-size: 1.125rem;
    padding: 0.55rem 1.1rem;
  }
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-navy);
  color: var(--color-white);
}
.skip-link:focus { left: 0; }
