/* ==========================================================================
   WISE The Agency — site styles
   Rebuilt from the Squarespace design: black & white editorial,
   Libre Baskerville (display) + Almarai (body).
   ========================================================================== */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --grey-600: #595959;
  --grey-400: #949494;
  --line: #d9d9d9;
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Almarai", "Helvetica Neue", Arial, sans-serif;
  --shell-max: 1400px;
  --shell-pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ header */

.site-header { background: var(--paper); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover { opacity: 0.6; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.icon-link { display: inline-flex; align-items: center; }
.icon-link svg { width: 18px; height: 18px; }
.site-nav .icon-link { border-bottom: none; }

/* -------------------------------------------------------------------- hero */

.hero { padding-top: clamp(24px, 5vh, 64px); padding-bottom: clamp(48px, 8vh, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(28px, 4vh, 48px);
}

.hero-copy p {
  max-width: 560px;
  margin: 0 0 14px;
}

.hero-media {
  margin: 0;
  align-self: stretch;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

/* -------------------------------------------------------------------- form */

.enquiry-form { margin-top: clamp(36px, 6vh, 72px); max-width: 560px; }

.field-group { border: 0; padding: 0; margin: 0 0 22px; }

.group-label {
  font-size: 15px;
  padding: 0;
  margin-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 14px;
}

.field { margin-bottom: 22px; }
.field-group .field, .two-col .field, .phone-row .field { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
  color: var(--ink);
}

.req {
  color: var(--grey-400);
  font-size: 11px;
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  transition: border-color 0.2s ease;
  appearance: none;
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
}

textarea { resize: vertical; min-height: 120px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: -10px 0 22px;
  cursor: pointer;
}

.checkbox-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--ink);
  margin: 0;
}

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.submit-link {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 2px 2px 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.submit-link:hover { opacity: 0.55; }
.submit-link:disabled { opacity: 0.35; cursor: default; }

.form-status { font-size: 14px; margin-top: 16px; min-height: 1em; }
.form-status.ok { color: #1a6b3c; }
.form-status.err { color: #a4262c; }

/* ------------------------------------------------------------ testimonials */

.testimonials {
  border-top: 1px solid #efefef;
  padding-top: clamp(48px, 8vh, 88px);
  padding-bottom: clamp(64px, 10vh, 120px);
}

.testimonials h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 45px);
  margin: 0 0 clamp(32px, 5vh, 56px);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.quote { margin: 0; }

.quote blockquote { margin: 0; }

.quote p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.quote figcaption { font-size: 14px; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid #efefef;
  padding: clamp(40px, 7vh, 72px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-email {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}
.footer-email:hover { opacity: 0.6; }

.footer-logo img { width: clamp(120px, 12vw, 165px); }

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.footer-social .icon-link { color: var(--ink); }
.footer-social .icon-link:hover { opacity: 0.6; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { min-height: 0; max-height: 62vh; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
  }
  .footer-social { justify-content: center; }
}

@media (max-width: 520px) {
  .two-col, .phone-row { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
}
