@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --color-background: #F4F4F1;
  --color-background-2: #FFFFFF;
  --color-background-3: #F7F8F6;
  --color-background-error: #FDECEC;
  --color-background-success: #DDF8EE;
  --color-main-1: #0C1117;
  --color-main-2: #1F6FE0;
  --color-accent-1: #2F89FC;
  --color-accent-2: #55FBC2;
  --color-accent-3: #12B886;
  --gradient-main: linear-gradient(135deg, #2F89FC 0%, #55FBC2 100%);
  --font-main: 'Instrument Sans', system-ui, sans-serif;
  --font-title: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --color-text: #0C1117;
  --color-text-2: #4B5361;
  --color-text-3: #6B7483;
  --color-text-inverse: #F4F4F1;
  --color-text-inverse-2: #AEB6C2;
  --color-link: #0C1117;
  --color-label: #0C1117;
  --color-line: rgba(12, 17, 23, 0.14);
  --color-line-soft: rgba(12, 17, 23, 0.08);
  --color-error: #B42318;
  --color-success: #0E8A62;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  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-accent-2);
  color: var(--color-main-1);
}

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

a {
  color: var(--color-link);
}

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: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: 90px;
  @media (max-width: 1024px) {
    font-size: 60px;
  }
}

h2 {
  font-size: 84px;
  @media (max-width: 1400px) {
    font-size: 72px;
  }
  @media (max-width: 1024px) {
    font-size: 56px;
  }
  @media (max-width: 767px) {
    font-size: 44px;
  }
}

h3 {
  font-size: 48px;
  @media (max-width: 1024px) {
    font-size: 36px;
  }
}

h4 {
  font-size: 36px;
  @media (max-width: 1024px) {
    font-size: 24px;
  }
}

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

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

/* Accent word inside a heading: the universal reset would otherwise drop
   it back to the body font (see CONVENTIONS.md §11). */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
  font-family: var(--font-title);
  font-style: italic;
}

p, span, li {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: var(--color-text);
}

strong {
  font-weight: 600;
}

/* Small tracked mono label - eyebrows, tags, prices, coordinates */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-main-2);
}

/* Brand diamond - the logo's own shape, reused as bullet/marker */
.diamond {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--color-accent-3);
  transform: rotate(45deg);
}

.diamond.is-gradient {
  background: var(--gradient-main);
}

/* ==========================================================================
   SPACING SYSTEM
   Unified top/bottom rhythm for sections and blocks. Main sections should
   share the same vertical padding (e.g. 120px) unless the design calls for
   something different. Use these utilities instead of one-off px values.
   Tier 1400px = container max-width 1360px + 20px + 20px padding.
   ========================================================================== */

.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: 30px;
  }
}

/* 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: 18px;
  }
}

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

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

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

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

/* ==========================================================================
   BUTTON
   ========================================================================== */

.button {
  position: relative;
  width: fit-content;
  height: 60px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo);
}

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

.button i {
  font-size: 18px;
  transition: transform 0.35s var(--ease-out-expo);
}

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

/* Solid dark - default action */
.button.btn-primary {
  background: var(--color-main-1);
  border-color: var(--color-main-1);
  color: #FFFFFF;
}

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

/* Brand gradient - hero-level action */
.button.btn-gradient {
  background: var(--gradient-main);
  color: var(--color-main-1);
  box-shadow: 0 10px 30px -10px rgba(47, 137, 252, 0.55);
}

.button.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(47, 137, 252, 0.65);
}

/* Transparent + outlined - uses the current text color, so it reads
   correctly both on a light section and over a dark/image background. */
.button.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

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

/* ==========================================================================
   NAV TOGGLE
   Two-line burger that morphs into an "x" while the menu is open. Hidden on
   desktop; shown at the breakpoint defined in style.css next to the nav.
   ========================================================================== */

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: var(--color-main-1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out-expo), width 0.5s var(--ease-out-expo);
}

.nav-toggle .bar:last-child {
  width: 12px;
  align-self: center;
  transform: translateX(-3px);
}

/* ==========================================================================
   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: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  color: var(--color-main-1);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  box-shadow: 0 12px 30px -12px rgba(12, 17, 23, 0.5);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out-expo), background-color 0.3s ease;
  z-index: 90;
}

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

.scroll-top-btn:hover {
  box-shadow: 0 18px 36px -12px rgba(47, 137, 252, 0.65);
}

.scroll-top-btn i {
  transition: transform 0.35s var(--ease-out-expo);
}

.scroll-top-btn:hover i {
  transform: translateY(-3px);
}

/* ==========================================================================
   LINK ARROW
   A text link with an icon that slides in from the left on hover - for
   nav/footer/menu items. Markup:
   <a class="link-arrow"><i class="ri-arrow-right-up-line"></i><span>Label</span></a>
   ========================================================================== */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  transition: color 0.25s ease;
}

.link-arrow i {
  display: inline-block;
  width: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1;
  color: var(--color-accent-2);
  opacity: 0;
  transform: translateX(-6px);
  transition: width 0.35s var(--ease-out-expo), opacity 0.25s ease, transform 0.35s var(--ease-out-expo);
}

.link-arrow span {
  color: inherit;
  font-size: inherit;
}

.link-arrow:hover i {
  width: 22px;
  padding-right: 6px;
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   CONTACT ITEM
   Pairs an icon with a contact detail (email, address, ...). Markup:
   <a class="contact-item"><i class="ri-mail-line"></i><span>hello@example.com</span></a>
   ========================================================================== */

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

.contact-item i {
  margin-top: 3px;
  font-size: 16px;
  line-height: 1;
  color: var(--color-accent-2);
}

.contact-item span {
  color: inherit;
  font-size: inherit;
}

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

/* ==========================================================================
   ACCORDION
   Single-open accordion (FAQ, services, 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 (one item open at a
   time per .accordion-wrapper) via jQuery slideUp/slideDown; the "active"
   class toggles the styling below and rotates the icon 45deg into an "x".
   ========================================================================== */

.accordion-wrapper {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-line);
}

.accordion-item {
  border-bottom: 1px solid var(--color-line);
}

.item-title-wrapper {
  padding: 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  column-gap: 18px;
  align-items: center;
  cursor: pointer;
}

.item-title-wrapper span {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
  transition: color 0.25s ease;
}

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

.item-title-wrapper i {
  font-size: 22px;
  color: var(--color-main-2);
  transition: transform 0.4s var(--ease-out-expo);
}

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

.item-content {
  padding: 0 48px 24px 0;
}

.item-content p {
  color: var(--color-text-2);
}

.accordion-item.active .item-title-wrapper i {
  transform: rotate(45deg);
}

/* ==========================================================================
   GRID (row / col)
   Minimal flex-based grid for laying out form fields side by side. Not a
   full breakpoint grid system - just enough to pair two fields on one row
   and let a field span the full row.

   <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: 18px;
}

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

.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">
         <div class="form-clt">
           <input class="access-input" 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">
         <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;
}

.contact-form-box {
  width: 100%;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.access-input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  background: var(--color-background-3);
  border-radius: 14px;
  border: 1px solid var(--color-line);
  font-size: 16px;
  color: var(--color-text);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.access-input::placeholder {
  color: #9AA1AC;
}

.access-input:focus-visible {
  outline: none;
  background: #FFFFFF;
  border-color: var(--color-accent-1);
  box-shadow: 0 0 0 4px rgba(47, 137, 252, 0.12);
}

textarea.access-input {
  height: auto;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
  min-height: 120px;
}

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

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

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

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

/* Pill-style checkbox/radio options ("chips"). Markup:
   <label class="chip"><input type="checkbox" name="needs[]" value="SEO"><span>SEO</span></label> */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(12, 17, 23, 0.16);
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.chip:hover span {
  border-color: var(--color-main-1);
}

.chip input:checked + span {
  background: var(--color-main-1);
  border-color: var(--color-main-1);
  color: #FFFFFF;
}

.chip input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(47, 137, 252, 0.2);
}

/* Honeypot - kept off-screen, bots fill it, people never see it */
.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);
}

.form-loading-spinner {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 2px solid var(--color-line);
  border-top-color: var(--color-accent-1);
  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);
  border-radius: 14px;
}

.form-error-msg span,
.form-error-msg i {
  color: var(--color-error);
}

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

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

.form-sent-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 6px 0 24px 6px;
  background: var(--gradient-main);
  transform: rotate(45deg);
}

.form-sent-title {
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

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

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

/* ==========================================================================
   REVEAL
   Elements with .reveal start hidden and are faded/raised in by GSAP
   ScrollTrigger (initReveal() in main.js). Without JS they stay visible.
   ========================================================================== */

.js-ready .reveal {
  opacity: 0;
  transform: translateY(36px);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
