/*!
Theme Name: Tenterfields Business Park
Theme URI: http://localhost/tenterfields
Author: Unbranded Digital
Author URI: https://unbranded.digital
Description: Bespoke theme for Tenterfields Business Park. Built with ACF Pro flexible content components.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tenterfields_theme
Tags: custom-logo, custom-menu, featured-images
*/

/* ==================================================================
   Design tokens — shared across the whole site (from Figma).
   ================================================================== */
:root {
  /* Colours */
  --color-yellow: #f8c300;
  --color-yellow-soft: rgba(248, 195, 0, 0.1);
  --color-ink: #1d1a17;          /* primary dark text */
  --color-ink-rgb: 24, 22, 20;   /* overlays / dark panels */
  --color-cream: #f6f1e9;        /* section background */
  --color-warm: #fbf8f3;         /* page background */
  --color-white: #ffffff;
  --color-body: #595959;         /* muted body copy on light */
  --color-body-dark: #cdcdcd;    /* muted body copy on dark */
  --color-brown: #826e57;        /* testimonial role */
  --color-quote: #3e3a36;        /* testimonial quote */
  --color-hairline: #dbd7d0;     /* light borders */
  --color-link: #4d5a63;         /* small contact links */
  --color-label: #3e3a36;        /* form labels */
  --color-muted: #636363;
  --color-placeholder: rgba(29, 26, 23, 0.5);

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==================================================================
   Reset & base
   ================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-warm);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
}

ul, ol { margin: 0; }

button { font-family: inherit; }

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--color-ink);
  color: var(--color-white);
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==================================================================
   Shared layout helpers
   ================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: 64px; }

/* ---------- Section intro (eyebrow + heading + lead) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--color-yellow);
}
.eyebrow--center { flex-direction: column; gap: 12px; }
.eyebrow--center::before { order: 2; }

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.36px;
  margin-top: 18px;
}
.section-lead {
  font-size: 16px;
  line-height: 26px;
  margin-top: 16px;
  max-width: 600px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 25px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn__arrow img { width: 8px; height: 20px; transform: rotate(-90deg); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { background: var(--color-yellow); color: var(--color-ink); }
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(248, 195, 0, 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--outline:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- "Find out more" inline link ---------- */
.find-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 21px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  color: var(--color-ink);
}
.find-link img { width: 20px; height: 14px; transition: transform 0.25s var(--ease); }
.find-link:hover img { transform: translateX(4px); }

/* ---------- Decorative rules ---------- */
.rule { display: block; width: 48px; height: 1px; background: var(--color-yellow); margin-bottom: 24px; }
.rule--sm { width: 30px; height: 2px; margin-bottom: 14px; }
.rule--xs { width: 32px; height: 1px; margin-bottom: 16px; }

/* ---------- Scroll-reveal primitives ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==================================================================
   Shared breakpoint: bump container padding on larger screens
   ================================================================== */
@media (min-width: 768px) {
  :root { --container-pad: 40px; }
  .section { padding-block: 96px; }
}
