@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --color-background: #FBF7F5;
  --color-background-2: #F4EAEF;
  --color-background-3: #F0E3EA;
  --color-background-dark: #2A0E25;
  --color-background-error: #FBE6EA;
  --color-background-success: #EAF4EE;
  --color-main-1: #2A0E25;
  --color-main-2: #872173;
  --color-main-3: #5E1650;
  --color-accent-light: #E7A9D7;
  --color-accent-pale: #F3C9E4;
  --color-text: #1F1419;
  --color-text-2: #4D3A46;
  --color-link: #872173;
  --color-label: #6E5A66;
  --color-line: #E6D8DF;
  --color-line-2: #DCC6D2;
  --color-on-dark: #F3E6EC;
  --color-on-dark-2: #D9C5D1;
  --color-on-dark-3: #B591A8;
  --color-error: #A3243B;
  --color-success: #2F7A52;
  --font-main: 'Manrope', system-ui, sans-serif;
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Manrope', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-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: normal;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:hover {
  color: var(--color-main-3);
}

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

button,
input,
select,
textarea {
  font: inherit;
  line-height: normal;
}

:focus-visible {
  outline: 2px solid var(--color-main-2);
  outline-offset: 3px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(50px, 6vw, 100px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 0.95;
}

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

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

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

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

/* The universal reset sets font-family on every element, so accent spans
   inside headings must ask for the title face explicitly. */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 400;
  color: var(--color-main-2);
}

p, span, li {
  font-size: 16px;
  font-weight: 400;
}

p, li {
  line-height: 1.7;
}

/* Spans inherit color, so labels inside buttons/links/dark blocks follow
   their parent instead of resetting to the body text color. */
li {
  color: var(--color-text);
}

span {
  color: inherit;
}

p {
  color: var(--color-text-2);
  text-wrap: pretty;
}

/* Small tracked label - eyebrows, tags, prices */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  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);
}

.eyebrow-line::before {
  content: '';
  width: 42px;
  height: 1px;
  background: currentColor;
}

/* ==========================================================================
   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.
   ========================================================================== */

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

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

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

.mb-60 {
  margin-bottom: 60px;
  @media (max-width: 1360px) {
    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: 1360px) {
    margin-bottom: 18px;
  }
}

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

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

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

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

/* ==========================================================================
   BUTTON
   Pill buttons. Optional round icon "dot" on the right:
   <a class="button btn-primary has-dot">Label <span class="button-dot"><i class="ri-arrow-right-up-line"></i></span></a>
   ========================================================================== */

.button {
  width: fit-content;
  height: 60px;
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

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

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

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

.button.has-dot {
  padding: 0 6px 0 30px;
  gap: 18px;
}

.button-dot {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: inherit;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.45s var(--ease-out);
}

.button.has-dot:hover i {
  transform: none;
}

.button.has-dot:hover .button-dot {
  transform: rotate(45deg);
}

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

.button.btn-primary .button-dot {
  background: #FFFFFF;
  color: var(--color-main-2);
}

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

/* Transparent + outlined in the accent; inverts to a solid accent fill. */
.button.btn-ghost {
  background: transparent;
  border-color: var(--color-main-2);
  color: var(--color-main-2);
}

.button.btn-ghost .button-dot {
  background: var(--color-main-2);
  color: #FFFFFF;
}

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

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

/* Light pill for dark/photo backgrounds */
.button.btn-light {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--color-main-2);
}

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

/* Underlined text link */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background: linear-gradient(var(--color-main-2), var(--color-main-2)) left bottom / 100% 1px no-repeat;
  transition: color 0.3s ease, background-size 0.45s var(--ease-out);
}

.link-line:hover {
  color: var(--color-main-2);
  background-size: 30% 1px;
}

/* ==========================================================================
   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 swaps the icon between ri-menu-line / ri-close-line and
   toggles .is-open on the nav it controls.
   ========================================================================== */

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-line-2);
  border-radius: 50%;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--color-main-2);
  color: 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: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-main-2);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  box-shadow: 0 12px 30px rgba(135, 33, 115, 0.28);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.25s 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-3);
}

@media (max-width: 767px) {
  .scroll-top-btn {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }
}

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

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

.link-arrow i {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  color: var(--color-main-2);
  transform: translateX(0);
  transition: transform 0.35s var(--ease-out);
}

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

/* ==========================================================================
   CONTACT ITEM
   Pairs an icon with a contact detail (email, phone, 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 {
  font-size: 16px;
  line-height: 1.6;
  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 var(--color-line-2);
}

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

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

.item-title-wrapper span {
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1.15;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.item-title-wrapper i {
  font-size: 22px;
  color: var(--color-main-2);
}

.item-title-wrapper i::before {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

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

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

.accordion-item.active .item-title-wrapper span {
  color: var(--color-main-2);
  font-style: italic;
}

.accordion-item.active .item-title-wrapper i::before {
  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%;
}

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

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

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

.access-input::placeholder {
  color: #A8939F;
}

.access-input:focus-visible {
  outline: none;
  border-color: var(--color-main-2);
  box-shadow: 0 0 0 4px rgba(135, 33, 115, 0.1);
}

select.access-input {
  appearance: none;
  padding-right: 54px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23872173' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  cursor: pointer;
}

textarea.access-input {
  height: auto;
  padding-top: 18px;
  padding-bottom: 18px;
  border-radius: 24px;
  resize: none;
}

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

.field-error {
  display: none;
  margin-top: 6px;
  padding-left: 24px;
  font-size: 13px;
  color: var(--color-error);
}

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

/* Honeypot - off-screen, ignored by validate.js (no .access-input) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-label);
}

.form-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 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 {
  font-size: 14px;
  color: var(--color-text-2);
}

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

.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 30px;
  background: var(--color-background-2);
  border-radius: 24px;
  text-align: center;
}

.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: #FFFFFF;
  font-size: 26px;
  border-radius: 50%;
}

.form-sent-title {
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 1.1;
  color: var(--color-text);
}

.form-sent-sub {
  font-size: 15px;
  color: var(--color-text-2);
}

/* ==========================================================================
   MEDIA PLACEHOLDER
   Image frame that shows a labelled placeholder until a real photo is put
   inside it. Swap in a photo by adding <img src="..." alt="..."> to .media -
   the image covers the frame and hides the placeholder.
   <div class="media"><span class="media-ph"><i class="ri-image-line"></i>Label</span></div>
   ========================================================================== */

.media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #F3E5EC 0%, #E9D5E0 100%);
}

.media > img,
.media > picture img,
.media > video,
.media > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  z-index: 1;
}

.media-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(135, 33, 115, 0.55);
}

.media-ph i {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0;
  color: rgba(135, 33, 115, 0.4);
}
