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

:root {
  --color-background: #FAF6F0;
  --color-background-2: #F3EBE0;
  --color-background-3: #FFFFFF;
  --color-background-dark: #2B211C;
  --color-background-darker: #211813;
  --color-background-error: #FBE6E3;
  --color-background-success: #DCEFEC;
  --color-main-1: #2B211C;
  --color-main-2: #D9653B;
  --color-main-2-hover: #C0532B;
  --color-main-3: #1F7A70;
  --color-main-3-hover: #17635B;
  --color-accent-light: #FFB88F;
  --color-peach: #FCE9DF;
  --color-mint: #DCEFEC;
  --color-sand: #FDF1DA;
  --color-border: #EADFD2;
  --color-border-2: #D8C7B4;
  --font-main: 'Inter', sans-serif;
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Inter', sans-serif;
  --color-text: #2A211C;
  --color-text-muted: #6E6158;
  --color-text-soft: #A39588;
  --color-link: #C0532B;
  --color-label: #2A211C;
  --color-error: #A83A30;
  --color-success: #17635B;
  --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;
  scroll-padding-top: var(--header-height, 72px);
}

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

body.is-scroll-locked {
  overflow: hidden;
}

::selection {
  background: var(--color-accent-light);
  color: var(--color-main-1);
}

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

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

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

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

:focus-visible {
  outline: 3px solid rgba(217, 101, 59, 0.45);
  outline-offset: 3px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-text);
  text-wrap: balance;
}

h1 em, h2 em, h3 em, h4 em {
  font-family: var(--font-title);
  font-style: normal;
  color: var(--color-main-2);
}

h1 {
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  @media (max-width: 1024px) {
    font-size: 56px;
  }
  @media (max-width: 767px) {
    font-size: 40px;
  }
}

h2 {
  font-size: 48px;
  @media (max-width: 1024px) {
    font-size: 38px;
  }
  @media (max-width: 767px) {
    font-size: 30px;
  }
}

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

h4 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  @media (max-width: 1024px) {
    font-size: 20px;
  }
}

h5 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h6 {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
}

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

p {
  text-wrap: pretty;
}

.lead {
  font-size: 18px;
  color: var(--color-text-muted);
  @media (max-width: 767px) {
    font-size: 16px;
  }
}

/* Small tracked label - eyebrows, tags, badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-main-2-hover);
}

/* ==========================================================================
   SPACING SYSTEM
   Unified top/bottom rhythm for sections and blocks. The adaptive tier sits
   at the container's own edge (1248px max-width + 24px + 24px padding).
   ========================================================================== */

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

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

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

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

/* 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: 767px) {
    margin-bottom: 24px;
  }
}

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

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

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

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

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

.button {
  position: relative;
  width: fit-content;
  height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  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 span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

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

.button:hover i.ri-arrow-right-line,
.button:hover i.ri-arrow-right-up-line {
  transform: translateX(3px);
}

.button:active {
  transform: scale(0.98);
}

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

.button.btn-sm {
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
}

.button.btn-block {
  width: 100%;
}

.button.btn-primary {
  background: var(--color-main-2);
  border-color: var(--color-main-2);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(217, 101, 59, 0.28);
}

.button.btn-primary:hover {
  background: var(--color-main-2-hover);
  border-color: var(--color-main-2-hover);
  box-shadow: 0 12px 30px rgba(217, 101, 59, 0.36);
}

/* 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: var(--color-border-2);
  color: var(--color-text);
}

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

/* Frosted glass - for dark sections and photo backgrounds */
.button.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.button.btn-light:hover {
  background: var(--color-background);
  border-color: var(--color-background);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text);
  cursor: pointer;
}

/* ==========================================================================
   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-main-1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  box-shadow: 0 12px 30px rgba(43, 33, 28, 0.25);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out-expo), background-color 0.2s ease;
  z-index: 98;
}

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

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

/* ==========================================================================
   LINK ARROW
   A text link with an icon that 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: 6px;
  font-weight: 700;
  color: var(--color-main-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.link-arrow i {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.35s var(--ease-out-expo);
}

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

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

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

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

.contact-item span {
  color: inherit;
}

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

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;
  row-gap: 12px;
}

.accordion-item {
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--color-border-2);
}

.item-title-wrapper {
  min-height: 72px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 36px;
  column-gap: 18px;
  align-items: center;
  cursor: pointer;
}

.item-title-wrapper span {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.item-title-wrapper i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-background-2);
  font-size: 20px;
  color: var(--color-main-2-hover);
  transition: transform 0.4s var(--ease-out-expo), background-color 0.3s ease, color 0.3s ease;
}

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

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

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

.accordion-item.active {
  border-color: var(--color-border-2);
  box-shadow: 0 12px 30px rgba(70, 45, 25, 0.08);
}

.accordion-item.active .item-title-wrapper i {
  background: var(--color-main-2);
  color: #FFFFFF;
  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: 18px;
}

.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 for="...">Name</label>
           <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 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;
}

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

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

.form-label small {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-soft);
}

.access-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--color-border-2);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.access-input:hover {
  border-color: var(--color-text-soft);
}

.access-input:focus-visible {
  outline: none;
  border-color: var(--color-main-2);
  box-shadow: 0 0 0 4px rgba(217, 101, 59, 0.16);
}

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

/* Custom select - native <select> with the arrow drawn by Remix Icon's
   ri-arrow-down-s-line glyph through a wrapper pseudo-element. */
.select-wrap {
  position: relative;
}

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

.select-wrap::after {
  content: "\ea4e";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-family: 'remixicon';
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-muted);
  pointer-events: none;
}

.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;
  font-weight: 500;
  color: var(--color-error);
}

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

/* Honeypot - off-screen, ignored by humans and by validate.js */
.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;
}

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

.form-loading {
  padding: 12px 0;
  font-size: 14px;
  text-align: center;
  color: var(--color-text-muted);
}

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

.form-error-msg,
.form-error-msg span {
  font-size: 14px;
  color: var(--color-error);
}

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

.form-sent {
  padding: 36px 24px;
  text-align: center;
}

.form-sent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: var(--color-background-success);
  color: var(--color-success);
  font-size: 30px;
  border-radius: 50%;
}

.form-sent-title {
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
}

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

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
