@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600&family=Saira+Condensed:wght@500;600;700;800&display=swap');

:root {
  --color-background: #0B0B0B;
  --color-background-2: #141414;
  --color-background-3: #111111;
  --color-background-light: #EEECE7;
  --color-background-error: #2A1214;
  --color-background-success: #10261A;
  --color-main-1: #E30B18;
  --color-main-1-dark: #C4000F;
  --color-main-2: #FECF03;
  --color-stripe-dark: #33251D;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5A;
  --font-main: 'Archivo', system-ui, sans-serif;
  --font-title: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-mono: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --color-text: #F3F1EC;
  --color-text-muted: #A8A49D;
  --color-text-dark: #0B0B0B;
  --color-link: #F3F1EC;
  --color-label: #9E9A93;
  --color-border: #262626;
  --color-error: #FF6B6B;
  --color-success: #4ADE80;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-main-1);
  color: #FFFFFF;
}

img {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  padding-left: 30px;
}

button,
input,
textarea {
  font-family: var(--font-main);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  color: inherit;
  text-wrap: balance;
}

/* The universal reset sets font-family on every element, so accent spans
   inside headings need the title face (and size) re-applied explicitly. */
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
  font-family: var(--font-title);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

h1 {
  font-size: 100px;
  @media (max-width: 1024px) {
    font-size: 72px;
  }
  @media (max-width: 767px) {
    font-size: 54px;
  }
}

h2 {
  font-size: 78px;
  @media (max-width: 1024px) {
    font-size: 60px;
  }
  @media (max-width: 767px) {
    font-size: 44px;
  }
}

h3 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  @media (max-width: 1024px) {
    font-size: 30px;
  }
}

h4 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  @media (max-width: 1024px) {
    font-size: 24px;
  }
}

h5 {
  font-size: 24px;
  font-weight: 700;
  @media (max-width: 1024px) {
    font-size: 18px;
  }
}

h6 {
  font-size: 18px;
  font-weight: 700;
  @media (max-width: 1024px) {
    font-size: 16px;
  }
}

p, span, li {
  font-size: 16px;
  font-weight: 400;
  line-height: 160%;
  color: inherit;
}

.text-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* Tracked condensed label with a short rule in front - eyebrows, tags */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-main-2);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow span {
  font-family: var(--font-mono);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* Tricolor stripe device from the logo (black / red / gold) */
.stripe-bar {
  display: flex;
  height: 4px;
}

.stripe-bar span {
  flex: 1;
}

.stripe-bar span:nth-child(1) { background: var(--color-stripe-dark); }
.stripe-bar span:nth-child(2) { background: var(--color-main-1); }
.stripe-bar span:nth-child(3) { background: var(--color-main-2); }

/* ==========================================================================
   SPACING SYSTEM
   Unified top/bottom rhythm for sections and blocks. The adaptive value
   halves at the container's own edge (1340 + 30 + 30 = 1400px).
   ========================================================================== */

.mt-120 {
  margin-top: 120px;
  @media (max-width: 1400px) {
    margin-top: 60px;
  }
}

.mt-60 {
  margin-top: 60px;
  @media (max-width: 1400px) {
    margin-top: 30px;
  }
}

.mb-120 {
  margin-bottom: 120px;
  @media (max-width: 1400px) {
    margin-bottom: 60px;
  }
}

.mb-60 {
  margin-bottom: 60px;
  @media (max-width: 1400px) {
    margin-bottom: 36px;
  }
}

/* Standard gap between a section's title block (heading ± intro paragraph)
   and whatever content follows it (button, form, cards, etc.) */
.mb-36 {
  margin-bottom: 36px;
  @media (max-width: 1400px) {
    margin-bottom: 24px;
  }
}

.pt-120 {
  padding-top: 150px;
  @media (max-width: 1400px) {
    padding-top: 120px;
  }
  @media (max-width: 767px) {
    padding-top: 90px;
  }
}

.pt-60 {
  padding-top: 60px;
  @media (max-width: 1400px) {
    padding-top: 30px;
  }
}

.pb-120 {
  padding-bottom: 150px;
  @media (max-width: 1400px) {
    padding-bottom: 120px;
  }
  @media (max-width: 767px) {
    padding-bottom: 90px;
  }
}

.pb-60 {
  padding-bottom: 60px;
  @media (max-width: 1400px) {
    padding-bottom: 30px;
  }
}

/* ==========================================================================
   BUTTON
   Parallelogram cut echoes the diagonal stripes of the logo.
   ========================================================================== */

.button {
  width: fit-content;
  height: 56px;
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.button span {
  font-family: var(--font-title);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.button i {
  font-size: 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover i {
  transform: translateX(6px);
}

/* A leading WhatsApp icon pops instead of sliding into the label */
.button:hover i.ri-whatsapp-line {
  transform: scale(1.15);
}

.button.btn-primary {
  background: var(--color-main-1);
  color: #FFFFFF;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.button.btn-primary:hover {
  background: var(--color-main-1-dark);
  color: #FFFFFF;
}

.button.btn-dark {
  background: var(--color-background);
  color: #FFFFFF;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.button.btn-dark:hover {
  background: #1F1F1F;
  color: var(--color-main-2);
}

.button.btn-ghost {
  background: transparent;
  border-color: #3A3A3A;
  color: var(--color-text);
}

.button.btn-ghost:hover {
  border-color: var(--color-main-2);
  color: var(--color-main-2);
}

/* ==========================================================================
   NAV TOGGLE
   Hamburger button for collapsed nav (hidden on desktop - the breakpoint
   that shows it is defined in style.css, next to the nav's own markup).
   main.js toggles .is-open on the nav it controls.
   ========================================================================== */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--color-background-2);
  border: 1px solid #2A2A2A;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
}

.nav-toggle span:nth-child(1) { background: var(--color-text); }
.nav-toggle span:nth-child(2) { background: var(--color-main-1); }
.nav-toggle span:nth-child(3) { background: var(--color-main-2); }

/* ==========================================================================
   SCROLL TO TOP
   Hidden until the page is scrolled past a threshold, then faded in.
   Toggled via .is-visible by main.js.
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background-2);
  color: var(--color-text);
  border: 1px solid #2E2E2E;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 90;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--color-main-1);
  border-color: var(--color-main-1);
}

/* ==========================================================================
   LINK ARROW
   Underlined condensed link whose arrow nudges forward on hover. Markup:
   <a class="link-arrow"><span>Label</span><i class="ri-arrow-right-line"></i></a>
   ========================================================================== */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-main-1);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.link-arrow span {
  font-family: var(--font-title);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.link-arrow i {
  font-size: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-arrow:hover {
  color: var(--color-main-2);
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* ==========================================================================
   CONTACT ITEM
   Pairs an icon with a contact detail (phone, address, ...). Markup:
   <a class="contact-item"><i class="ri-phone-line"></i><span>968 81 06 75</span></a>
   ========================================================================== */

.contact-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item i {
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-main-1);
}

a.contact-item:hover {
  color: var(--color-main-2);
}

/* ==========================================================================
   ACCORDION
   Single-open accordion (FAQ, etc). Markup:
   <div class="accordion-wrapper">
     <div class="accordion-item active">
       <div class="item-title-wrapper">
         <span>Question</span>
         <i class="ri-add-line"></i>
       </div>
       <div class="item-description-wrapper">
         <div class="item-content">
           <p>Answer</p>
         </div>
       </div>
     </div>
   </div>
   JS: initFaqAccordion() in main.js drives open/close (single item open at a
   time) via jQuery slideUp/slideDown; add/remove "active" toggles the styling
   below and rotates the icon 45deg into an "x".
   ========================================================================== */

.accordion-wrapper {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #2A2A2A;
}

.accordion-item {
  border-bottom: 1px solid #2A2A2A;
}

.item-title-wrapper {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr 36px;
  column-gap: 24px;
  align-items: center;
  cursor: pointer;
  transition: color 0.25s ease;
}

.item-title-wrapper span {
  font-family: var(--font-title);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  @media (max-width: 767px) {
    font-size: 21px;
  }
}

.item-title-wrapper i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3A3A3A;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.25s ease, border-color 0.25s ease;
}

.item-title-wrapper:hover {
  color: var(--color-main-2);
}

.item-description-wrapper {
  display: none;
}

.item-content {
  padding: 0 60px 30px 0;
  @media (max-width: 767px) {
    padding-right: 0;
  }
}

.item-content p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.accordion-item.active .item-title-wrapper i {
  color: var(--color-main-1);
  border-color: var(--color-main-1);
  transform: rotate(45deg);
}

/* ==========================================================================
   GRID (row / col)
   Minimal flex-based grid for laying out form fields side by side.

   <div class="row">
     <div class="col">...</div>       // shares the row with its siblings
     <div class="col col-12">...</div> // always spans the full row
   </div>
   ========================================================================== */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.row .col {
  flex: 1 1 200px;
}

.row .col-12 {
  flex: 1 1 100%;
}

/* ==========================================================================
   FORMS
   Markup pattern (see forms/contact.php + forms/validate.js, which drives the
   submit/validation behavior behind these classes):

   <form class="contact-form-box php-email-form" data-action="forms/contact.php" novalidate>
     <div class="row">
       <div class="col form-fields">
         <div class="form-clt">
           <label class="form-label" for="f-name">Name</label>
           <input class="access-input" id="f-name" name="name" ...>
           <span class="field-error" id="err-name">...</span>
         </div>
       </div>
       <div class="col col-12">
         <div class="form-loading loading">...</div>
         <div class="form-error-msg error-message"><span></span></div>
         <div class="form-sent sent-message">...</div>
       </div>
       <div class="col col-12 form-fields">
         <div class="contact-button">
           <button type="submit" class="button btn-primary">Send</button>
         </div>
       </div>
     </div>
   </form>
   ========================================================================== */

/* Bootstrap-style visibility hook: forms/validate.js toggles this class to
   reveal the loading/error/success states below. */
.d-block {
  display: block !important;
}

/* After a successful send only the success block stays visible */
.contact-form-box:has(.sent-message.d-block) .form-fields {
  display: none;
}

.form-clt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-label);
}

.access-input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  background: var(--color-background-2);
  border: 1px solid #2E2E2E;
  border-radius: 0;
  color: var(--color-text);
  font-size: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.access-input::placeholder {
  color: #5E5B56;
}

.access-input:focus-visible {
  outline: none;
  border-color: var(--color-main-2);
}

/* Native <select> re-skinned: wrap it in .select-wrap with a chevron icon */
.select-wrap {
  position: relative;
}

.select-wrap select.access-input {
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrap select.access-input option {
  background: var(--color-background-2);
  color: var(--color-text);
}

.select-wrap i {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-label);
  pointer-events: none;
}

textarea.access-input {
  height: auto;
  padding-top: 15px;
  padding-bottom: 15px;
  line-height: 1.5;
  resize: vertical;
}

.access-input.input-error {
  background: var(--color-background-error);
  border-color: var(--color-error);
}

.field-error {
  display: none;
  font-size: 14px;
  color: var(--color-error);
}

.field-error.visible {
  display: block;
}

/* Consent checkbox */
.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-main-1);
  cursor: pointer;
}

.form-check input.input-error {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

.form-check span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.form-check a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Honeypot - kept off-screen, ignored by validation */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Loading / error / success states start hidden; forms/validate.js shows
   the relevant one via .d-block. */
.loading,
.error-message,
.sent-message {
  display: none;
}

.form-loading {
  color: var(--color-text-muted);
}

.form-loading-spinner {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 2px solid #2E2E2E;
  border-top-color: var(--color-main-2);
  border-radius: 50%;
  animation: form-spin 0.6s linear infinite;
}

@keyframes form-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-error-msg {
  padding: 12px 18px;
  background: var(--color-background-error);
  color: var(--color-error);
  border-left: 3px solid var(--color-error);
}

.form-error-msg i {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}

.form-sent {
  padding: 30px 0;
}

.form-sent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  background: var(--color-main-2);
  color: var(--color-text-dark);
  font-size: 30px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.form-sent-title {
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.form-sent-sub {
  color: var(--color-text-muted);
}
