/* Henrys Simms Letting Agents
   Brand colours are taken from the logo: teal + orange-red. Change them here and the whole site follows. */
:root {
  --teal: #24545f;
  --teal-dark: #1b4450;
  --teal-deep: #133640;
  --teal-tint: #e6eef0;
  --orange: #ee4520;        /* logo orange, used for accents and large type */
  --orange-btn: #d93a16;    /* slightly deeper so white button text stays readable */
  --orange-soft: #ff8a68;   /* orange for small text on teal */
  --paper: #f6f4ef;
  --white: #ffffff;
  --ink: #17313a;
  --muted: #55707a;
  --line: #dbe3e5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 54, 64, 0.10);
  --wrap: 1160px;
  --font: "Barlow", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--orange-btn); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--paper { background: var(--paper); }
.section--teal { background: var(--teal-dark); color: var(--white); }
.section--teal a { color: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.section--teal .lead { color: #c9dade; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-btn);
  margin-bottom: 14px;
}
.section--teal .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--orange-soft); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange-btn); color: var(--white); }
.btn--primary:hover { background: #bf3010; color: var(--white); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-deep); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--teal-dark); border-color: var(--white); }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* Top bar + header */
.topbar { background: var(--teal-deep); color: #d5e3e6; font-size: 0.92rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--white); }
.topbar svg { width: 16px; height: 16px; }
.topbar__contact, .topbar__social { display: flex; gap: 22px; align-items: center; }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--teal-dark); }
.brand img { width: 60px; height: 60px; border-radius: 8px; }
.brand__name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.1; }
.brand__name small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; color: var(--orange-btn); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
}
.nav a:not(.btn):hover { background: var(--teal-tint); color: var(--teal-dark); }
.nav a.is-active { color: var(--orange-btn); }
.nav .btn { margin-left: 10px; padding: 11px 20px; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--teal-dark); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Home hero */
.hero { position: relative; overflow: hidden; background: var(--teal); color: var(--white); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.08), transparent 55%), linear-gradient(180deg, transparent 60%, rgba(19,54,64,.55));
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero h1 em { font-style: normal; color: var(--orange-soft); }
.hero p { font-size: 1.25rem; color: #d3e2e5; max-width: 54ch; }
.hero__house { position: relative; }
.hero__house svg { width: 100%; height: auto; display: block; }
.hero__points { position: absolute; left: 14%; right: 14%; top: 43%; bottom: 9%; display: flex; flex-direction: column; justify-content: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.hero__points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
.hero__points svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--orange-soft); }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; background: var(--teal); color: var(--white); padding: clamp(48px, 7vw, 88px) 0; }
.page-hero::after {
  content: ""; position: absolute; right: -40px; bottom: -70px; width: 360px; height: 360px;
  background: var(--teal-dark); clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); opacity: .7;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 20ch; }
.page-hero p { font-size: 1.2rem; color: #d3e2e5; max-width: 58ch; margin-bottom: 0; }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.split--wide { grid-template-columns: 1.2fr 0.8fr; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.card .more svg { width: 18px; height: 18px; transition: transform .15s ease; }
.card .more:hover svg { transform: translateX(4px); }
.icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--teal-tint); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 28px; height: 28px; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon { margin: 0; flex: none; width: 48px; height: 48px; border-radius: 12px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }
.section--teal .feature .icon { background: rgba(255,255,255,.1); color: var(--orange-soft); }
.section--teal .feature p { color: #c9dade; }

.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Rightmove band */
.rm-band { background: var(--paper); }
.rm-card {
  background: var(--teal-dark); color: var(--white); border-radius: 24px;
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.rm-card::after {
  content: ""; position: absolute; right: 26%; top: -60px; width: 300px; height: 300px;
  background: rgba(255,255,255,.04); clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%);
}
.rm-card > * { position: relative; z-index: 1; }
.rm-card h2 { margin-bottom: 12px; }
.rm-card p { color: #c9dade; margin: 0; max-width: 56ch; }
.rm-card .eyebrow { color: var(--orange-soft); }

/* Packages */
.package { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; }
.package--featured { border: 2px solid var(--teal); box-shadow: var(--shadow); position: relative; }
.package__tag { position: absolute; top: -14px; left: 32px; background: var(--orange-btn); color: var(--white); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.package h3 { font-size: 1.6rem; }
.package > p { color: var(--muted); }
.package h4 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 18px 0 12px; }
.package .btn { margin-top: auto; align-self: flex-start; }
.package .ticks { margin-bottom: 1.6em; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 700; margin-bottom: 16px; }
.steps h3 { font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Fact tiles */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { background: var(--teal-tint); border-radius: var(--radius); padding: 26px; }
.fact strong { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--teal-dark); margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: 1rem; }

/* Team */
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 200px 1fr; }
.person__photo { background: var(--teal); display: grid; place-items: center; min-height: 220px; color: var(--white); font-size: 3.4rem; font-weight: 600; letter-spacing: 0.06em; position: relative; }
.person__photo::before { content: ""; position: absolute; inset: 18% 18% 0; background: var(--teal-dark); clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); }
.person__photo span { position: relative; margin-top: 30px; }
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person__body { padding: 30px; }
.person__body h3 { font-size: 1.5rem; margin-bottom: 2px; }
.person__role { color: var(--orange-btn); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.person__body p:last-child { margin-bottom: 0; color: var(--muted); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid #c3d0d4; border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(36,84,95,.15); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; }
.form-note { margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; background: #fff4e5; border: 1px solid #f1cf9b; font-size: 0.95rem; }
.form-note[hidden] { display: none; }

/* Contact details */
.details { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.details li { display: flex; gap: 16px; }
.details .icon { margin: 0; flex: none; width: 48px; height: 48px; border-radius: 12px; }
.details .icon svg { width: 22px; height: 22px; }
.details strong { display: block; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.details a { font-weight: 600; text-decoration: none; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); display: block; }

/* CTA band */
.cta-band { background: var(--teal); color: var(--white); padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -60px; bottom: -120px; width: 380px; height: 380px; background: var(--teal-dark); clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); opacity: .6; }
.cta-band .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: #d3e2e5; max-width: 52ch; }
.cta-band .btn-row { margin-top: 0; }

/* Long-form text (privacy policy) */
.prose h2 { font-size: 1.45rem; margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; color: var(--teal); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Footer */
.footer { background: var(--teal-deep); color: #c3d5d9; font-size: 0.98rem; }
.footer a { color: #e3eef0; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__main { display: grid; grid-template-columns: 1.3fr 0.8fr 1.3fr; gap: 48px; padding: 64px 0 40px; }
.footer h2 { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer address { font-style: normal; margin-bottom: 16px; }
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer__brand img { width: 72px; height: 72px; border-radius: 8px; }
.footer__badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.footer__badges img { height: 56px; width: auto; background: var(--white); border-radius: 8px; padding: 6px 10px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer__social a:hover { background: var(--orange-btn); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: 0.88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #9fb7bd; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 2px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
  .header .wrap { position: static; }
  .header { position: sticky; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero .wrap, .split, .split--wide, .rm-card { grid-template-columns: 1fr; }
  .hero__house { max-width: 420px; }
  .grid--3, .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .page-hero::after { width: 200px; height: 200px; right: -30px; bottom: -50px; }
  .topbar__social, .topbar .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand img { width: 50px; height: 50px; }
  .brand__name { font-size: 1rem; }
  .header .wrap { min-height: 72px; }
  .grid--2, .grid--3, .grid--4, .steps, .facts, .field-row, .footer__main { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person__photo { min-height: 180px; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .cta-band .btn-row { width: 100%; }
  .card, .package { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.nav a, .brand__name { white-space: nowrap; }

/* Anti-spam check widget (only appears if Turnstile keys are set in config.php) */
.ts-slot:empty { display: none; }
.ts-slot { margin-bottom: 18px; }
