/* ============================================================
   thefeetsquare.com - the company's public homepage.
   Editorial real-estate look: Playfair Display for headings, Inter
   for text; deep navy from the logo, a muted gold, ivory paper.
   One fixed look (the brand), not a light/dark switch.
   ============================================================ */
:root {
  --navy: #0b2540; --navy-deep: #071a2e; --navy-line: rgba(255, 255, 255, .14);
  --gold: #b8893b; --gold-light: #d8b06a;
  --ivory: #f6f2ea; --paper: #fbfaf7; --white: #ffffff;
  --ink: #14202e; --body: #46525f; --soft: #7a8592; --rule: #e4ddd0;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
h2 { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; text-wrap: balance; }
h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.label { margin: 0 0 14px; font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.label-light { color: var(--gold-light); }
.sub { margin: 0; color: var(--body); font-size: 17px; max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  padding: 17px 28px; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #a37630; }
.btn-line { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-line:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--navy-deep); border-bottom: 1px solid var(--navy-line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand-logo { width: 54px; }
.brand-word { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.brand-word small { display: block; margin-top: 5px; font: 600 10.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); }
.nav { display: flex; align-items: center; gap: 34px; font-size: 14.5px; font-weight: 500; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.nav a:hover { color: var(--white); }
.nav .nav-cta { color: var(--white); border: 1px solid var(--gold); padding: 11px 18px; border-radius: 2px; }
.nav .nav-cta:hover { background: var(--gold); }
.menu { display: none; width: 44px; height: 44px; padding: 12px 10px; background: none; border: 1px solid var(--navy-line); border-radius: 2px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu span { display: block; height: 1.5px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
@media (max-width: 900px) {
  .menu { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); border-bottom: 1px solid var(--navy-line); padding: 8px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--navy-line); font-size: 16px; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--gold); }
  .menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}
@media (max-width: 380px) { .brand-word { font-size: 18px; } .brand-logo { width: 46px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(90% 120% at 85% 10%, #163a5e 0%, var(--navy) 45%, var(--navy-deep) 100%); }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(216, 176, 106, .16); }
.hero-in { position: relative; padding: 88px 20px 64px; max-width: 1200px; }
@media (min-width: 768px) { .hero-in { padding: 120px 40px 80px; } }
.kicker { margin: 0 0 22px; font: 600 12.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.hero h1 { margin: 0 0 22px; color: var(--white); font-size: clamp(38px, 6.4vw, 72px); line-height: 1.06; font-weight: 600; max-width: 13em; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-light); }
.lede { margin: 0 0 36px; max-width: 36em; font-size: clamp(17px, 2vw, 19px); color: rgba(255, 255, 255, .78); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { position: relative; list-style: none; margin: 0; padding: 0 0 56px; display: grid; gap: 0; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--navy-line); }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { padding: 24px 20px 0 0; }
.trust strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--white); }
.trust span { font-size: 14px; color: rgba(255, 255, 255, .62); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section-ivory { background: var(--ivory); }
.split { display: grid; gap: 48px; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; gap: 80px; } .split-head { position: sticky; top: 120px; align-self: start; } }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.services li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.no { font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--gold); line-height: 1.1; }
.services p { margin: 0; color: var(--body); }

.head-row { display: grid; gap: 18px; margin-bottom: 52px; align-items: end; }
@media (min-width: 960px) { .head-row { grid-template-columns: 1fr 1fr; gap: 80px; } }

.areas { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .areas { grid-template-columns: 1.4fr 1fr 1fr; } .area-main { grid-row: span 2; } }
.area { background: var(--white); padding: 34px 30px; }
.area p { margin: 0; color: var(--body); font-size: 15.5px; }
.area-main { background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px;
  background-image: linear-gradient(180deg, rgba(7, 26, 46, .2), rgba(7, 26, 46, .9)), radial-gradient(80% 80% at 80% 0%, #1d4a75, var(--navy)); }
.area-main h3 { color: var(--white); font-size: 32px; }
.area-main p { color: rgba(255, 255, 255, .78); font-size: 16.5px; max-width: 26em; }
.area-badge { align-self: flex-start; margin-bottom: auto; font: 600 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); border: 1px solid rgba(216, 176, 106, .5); padding: 9px 12px; }

.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 700px) { .process { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .process { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.process li { border-top: 2px solid var(--ink); padding-top: 22px; }
.step { display: block; margin-bottom: 12px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.process p { margin: 0; color: var(--body); font-size: 15.5px; }

.statement { background: var(--navy-deep); color: var(--white); padding: 96px 0; text-align: center; }
.quote { margin: 0 auto 22px; max-width: 26em; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.35; }
.quote-by { margin: 0; font: 600 12.5px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.quote-by span { color: var(--gold-light); }

/* ---------- contact ---------- */
.contact { display: grid; box-shadow: 0 40px 80px -40px rgba(7, 26, 46, .35); }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 7fr; } }
.contact-panel { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 44px 30px; }
@media (min-width: 768px) { .contact-panel { padding: 56px 48px; } }
.contact-panel h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 38px); }
.contact-panel > p { margin: 0 0 32px; }
.details { margin: 0; display: grid; gap: 20px; }
.details div { border-top: 1px solid var(--navy-line); padding-top: 16px; }
.details dt { font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.details dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.details a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(216, 176, 106, .6); }

.enquiry { background: var(--white); padding: 40px 30px; display: grid; gap: 18px; border: 1px solid var(--rule); }
@media (min-width: 768px) { .enquiry { padding: 56px 48px; } }
.form-title { margin: 0 0 4px; font-size: 26px; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.enquiry label { display: grid; gap: 8px; font: 600 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.opt { text-transform: none; letter-spacing: 0; font-weight: 500; }
.enquiry input, .enquiry select, .enquiry textarea {
  width: 100%; min-width: 0; font: 400 16px/1.4 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; padding: 13px 14px;
}
.enquiry textarea { resize: vertical; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(184, 137, 59, .18); }
.enquiry [aria-invalid="true"] { border-color: #b03a2e; }
.form-msg { margin: 0; font-size: 14px; font-weight: 600; color: #b03a2e; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--body); }
.form-note { margin: 0; font-size: 13px; color: var(--soft); text-align: center; }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: rgba(255, 255, 255, .66); font-size: 15px; }
.foot-grid { display: grid; gap: 40px; padding-top: 72px; padding-bottom: 48px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-brand img { width: 110px; margin-bottom: 18px; }
.foot-brand p { margin: 0; max-width: 24em; }
.foot h4 { margin: 0 0 16px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: rgba(255, 255, 255, .8); text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--white); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--navy-line); font-size: 13.5px; }

/* ---------- motion ---------- */
.hero-in > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-in > :nth-child(2) { animation-delay: .08s; }
.hero-in > :nth-child(3) { animation-delay: .16s; }
.hero-in > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
