/* ============================================
   CONTACT PAGE — Byron Bay by Oli Ayo
   Mirrors wholesale page layout and form system.
   ============================================ */

:root {
  --bg:        #FFFFFF;
  --ink:       #0E1419;
  --ink-soft:  #3A434C;
  --ink-mute:  #7A828A;
  --rule:      #E5E7EA;
  --accent:    #1B4F6B;
  --bar:       #0E1419;
  --bar-text:  #F5F5F2;
  --warm:      #F8F4ED;

  --sans:    'Inter',   -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --section: clamp(4rem, 8vw, 7rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* NAV */
nav.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
nav.site .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem 0;
  gap: 1rem;
}
.brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
nav.site .nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  justify-content: center;
}
nav.site .nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0;
}
nav.site .nav-links a:hover { color: var(--accent); }
nav.site .nav-links a.current { color: var(--accent); }
nav.site .nav-utility {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  align-items: center;
}
nav.site .nav-utility a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
nav.site .nav-utility a.current { color: var(--accent); }
@media (max-width: 880px) {
  nav.site .inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0;
    row-gap: 0;
  }
  nav.site .brand { grid-column: 1; grid-row: 1; }
  nav.site .nav-utility { grid-column: 2; grid-row: 1; }
  nav.site .nav-links {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 1.6rem;
    padding: 0.7rem 0 0.75rem;
    margin: 0.6rem -1.5rem 0;
    border-top: 1px solid var(--rule);
  }
  nav.site .nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    padding: 0.2rem 0;
  }
}

/* BANNER */
.banner {
  position: relative;
  height: clamp(36vh, 50vh, 52vh);
  min-height: 320px;
  overflow: hidden;
  background: #0a1015;
}
.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,20,25,0.20) 0%, rgba(14,20,25,0) 40%, rgba(14,20,25,0) 55%, rgba(14,20,25,0.55) 100%);
}
.banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 var(--gutter) clamp(2.5rem, 5vh, 4rem);
  color: #fff;
  z-index: 2;
}
.banner-content .eyebrow {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
}
.banner-content h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 30px rgba(0,0,0,0.18);
}

/* FORM SECTION */
.form-section {
  padding: var(--section) 0;
  background: var(--bg);
}
.form-intro {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.form-intro p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto;
}
.form-intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.form-intro a:hover { color: var(--ink); }

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--warm);
  padding: clamp(2rem, 4vw, 3rem);
}

form.enquiry {
  display: grid;
  gap: 1.5rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field label .req { color: var(--accent); margin-left: 0.2rem; }
.field input,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 79, 107, 0.08);
}
.field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  text-align: center;
  border: 1px solid var(--ink);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  width: 100%;
}
.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.55;
  cursor: progress;
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 0.5rem;
  line-height: 1.6;
  text-align: center;
}

/* Inline success state — replaces the form on submit */
.form-success {
  text-align: center;
  padding: 1rem 0;
}
.form-success .success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  animation: successIn 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.form-success h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}
.form-success p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 44ch;
  margin: 0 auto;
}
.form-success a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.form-success a:hover { color: var(--ink); }
@keyframes successIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Inline error notice (rare — only shown if Web3Forms POST fails) */
.form-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fff5f5;
  border: 1px solid #f3c0c0;
  color: #7a2222;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* FOOTER */
footer {
  background: var(--bar);
  color: var(--bar-text);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
footer .brand-block .brand {
  color: var(--bar-text);
  margin-bottom: 1.25rem;
  display: inline-block;
}
footer .brand-block p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245,245,242,0.65);
  max-width: 32ch;
}
footer h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245,245,242,0.55);
  margin-bottom: 1.25rem;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.6rem; }
footer ul a {
  font-size: 0.88rem;
  color: rgba(245,245,242,0.85);
}
footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(245,245,242,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(245,245,242,0.5);
  letter-spacing: 0.08em;
}

/* Web3Forms honeypot — must stay hidden */
.botcheck { display: none !important; }
