/* Whitestone Football Properties — premium minimal UK theme */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0b1220;
  --muted: #5c667a;
  --line: #e8ecf2;
  --accent: #0d4d3d;
  --accent-soft: #e6f4ef;
  --gold: #c9a962;
  --shadow: 0 22px 60px rgba(11, 18, 32, 0.08);
  --radius: 16px;
  --header-h: 72px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(15px, 1.05vw, 17px);
  padding-bottom: 88px;
}

@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;
  }
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(11, 18, 32, 0.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 40px;
  height: 40px;
}

.logo-word {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-word span {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-desktop a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-desktop .btn-nav {
  margin-left: 0.75rem;
  padding-inline: 1.25rem;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 77, 61, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(13, 77, 61, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-desktop {
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav-desktop.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-desktop a {
    border-radius: 12px;
  }

  .nav-desktop .btn-nav {
    margin-left: 0;
    justify-content: center;
  }

  body.nav-open .site-main {
    filter: grayscale(0.15);
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 4.8vw, 3.75rem);
  line-height: 1.06;
  font-weight: 500;
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
}

.hero-copy .lead {
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.85rem;
}

.badge-pill {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stat {
  text-align: left;
}

.stat strong {
  display: block;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 620px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.85), transparent);
  color: #e8eef6;
  font-size: 0.88rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.section-head h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin: 0 0 1rem;
  font-weight: 500;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 920px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #dbe4ee;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  color: var(--accent);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Property / listing cards */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.prop-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.prop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.prop-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.prop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop-body {
  padding: 1.35rem;
}

.prop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 1rem;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.t-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}

.t-author strong {
  display: block;
  font-size: 0.96rem;
}

.t-author span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* CTA ribbon */
.cta-ribbon {
  margin: clamp(2rem, 5vw, 3rem) 0;
}

.cta-inner {
  background: linear-gradient(135deg, #0b2e26 0%, #0d4d3d 45%, #1a6653 100%);
  color: #e8fff6;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 30px 80px rgba(13, 77, 61, 0.35);
}

@media (max-width: 760px) {
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-inner .btn-primary {
    width: 100%;
  }
}

.cta-inner h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.cta-inner p {
  margin: 0;
  opacity: 0.9;
}

/* Forms */
.form-wrap {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 620px) {
  .form-grid.two {
    grid-template-columns: 1fr;
  }
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  font-size: 0.82rem;
  font-weight: 600;
}

input,
textarea,
select {
  font: inherit;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(13, 77, 61, 0.12);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Lists / prose */
.prose-block {
  max-width: 720px;
  margin-inline: auto;
}

.prose-block h3 {
  margin-top: 1.85rem;
  font-size: 1.22rem;
}

.prose-block p,
.prose-block li {
  color: var(--muted);
}

.prose-block li {
  margin-bottom: 0.55rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 3rem 0 5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.footer-links strong {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.legal-micro {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* WhatsApp FAB */
.whats-float {
  position: fixed;
  right: 22px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 950;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease);
}

.whats-float:hover {
  transform: scale(1.06);
}

.whats-float svg {
  width: 28px;
  height: 28px;
}

.whats-float .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Cookie banner */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 980;
  background: rgba(11, 18, 32, 0.97);
  color: #e8eef6;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  box-shadow: 0 -14px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 100%);
  margin-inline: auto;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: min(100%, 320px);
  font-size: 0.92rem;
  color: #c9d4e8;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-actions button {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 238, 246, 0.25);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.cookie-accept {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.cookie-settings {
  background: transparent;
  color: #e8eef6;
}

.cookie-settings:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-panel {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.cookie-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%) scale(0.96);
  width: min(480px, 92vw);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.65rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}

.cookie-panel.is-open .cookie-dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-dialog h3 {
  margin: 0 0 0.5rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 500;
}

.cookie-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.cookie-switch:last-of-type {
  border-bottom: none;
}

.cookie-switch span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.cookie-switch small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s var(--ease);
}

.switch input:checked + .slider {
  background: var(--accent);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.cookie-dialog-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.35rem;
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.stagger-delay-1 {
  transition-delay: 0.08s;
}

.stagger-delay-2 {
  transition-delay: 0.14s;
}

.stagger-delay-3 {
  transition-delay: 0.2s;
}

.page-banner {
  background: linear-gradient(120deg, #0f172a 0%, #0d4d3d 100%);
  color: #eaf6f3;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-banner .container > h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.page-banner .container > p {
  margin: 0;
  max-width: 46ch;
  opacity: 0.88;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.mini-card strong {
  display: block;
  margin-bottom: 0.35rem;
}
