/* ============================================================
   The Property Surveyor — Shared Stylesheet
   Palette: Deep Navy · Charcoal · Gold · Cream
   Fonts: Playfair Display (headings) · Lato (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&family=Patrick+Hand&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0b1f38;
  --navy-dark:  #071428;
  --navy-mid:   #122845;
  --charcoal:   #1e2d40;
  --gold:       #c4993a;
  --gold-light: #ddb96a;
  --gold-pale:  #f0dda8;
  --blue-light: #7fabce;
  --blue-pale:  #a9c7e0;
  --cream:      #f7f3ec;
  --cream-dark: #ede7db;
  --white:      #ffffff;
  --text-dark:  #1a1a2e;
  --text-mid:   #3d4a5c;
  --text-light: #6b7a8d;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --font-script:  'Patrick Hand', 'Bradley Hand', 'Segoe Script', cursive;

  --max-w: 1140px;
  --section-pad: 90px 24px;
  --transition: 0.35s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--cream);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
p { margin-bottom: 1em; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gold-rule {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 18px 0 28px;
}
.gold-rule.centered { margin: 18px auto 28px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.nav-logo {
  display: flex; flex-direction: column;
  gap: 0px;
}
.nav-logo-chapel {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.nav-logo-tps {
  font-family: var(--font-script);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-top: -1px;
}
.nav-logo-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links {
  display: flex; gap: 26px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: var(--transition);
}
.nav-mobile {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--navy-dark); padding: 24px 40px 32px;
  flex-direction: column; gap: 20px; z-index: 99;
  border-top: 1px solid rgba(196,153,58,0.25);
}
.nav-mobile a {
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.nav-mobile.open { display: flex; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.site-footer .footer-logo-chapel {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.site-footer .footer-logo-tps {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.site-footer .footer-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.site-footer .footer-links {
  display: flex; justify-content: center; gap: 28px;
  list-style: none; margin-bottom: 24px;
}
.site-footer .footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.site-footer .footer-links a:hover { color: var(--gold-light); }
.footer-divider {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 0 auto 20px;
  opacity: 0.5;
}
.footer-legal-entity {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  max-width: 560px;
  margin: 18px auto 0;
  line-height: 1.6;
}
.footer-legal {
  margin-top: 12px !important;
}
.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gold-light); }
.rics-badge {
  display: inline-block;
  border: 1px solid rgba(196,153,58,0.4);
  padding: 4px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 12px auto 0;
}
.rics-logo {
  display: table;
  background: var(--white);
  padding: 8px 18px;
  margin: 12px auto 0;
}
.rics-logo img {
  height: 30px; width: auto;
  display: block;
}

/* ---------- Section intro ---------- */
.section-intro {
  max-width: 640px;
}
.section-intro.centered { margin: 0 auto; }
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 36px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,153,58,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(196,153,58,0.6);
}
.btn-outline:hover {
  background: rgba(196,153,58,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-blue {
  background: var(--blue-light);
  color: var(--navy-dark);
}
.btn-blue:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(127,171,206,0.35);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 320px;
  display: flex; align-items: flex-end;
  padding: 0;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: subtleZoom 18s ease-in-out infinite alternate;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,20,40,0.55) 0%,
    rgba(7,20,40,0.88) 100%
  );
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 100px 40px 52px;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.page-hero-content h1 { color: var(--white); }
.page-hero-content .gold-rule { margin: 14px 0 0; }

/* ---------- Animations ---------- */
@keyframes subtleZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ---------- Scroll-reveal utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 36px 32px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 768px) {
  :root { --section-pad: 60px 20px; }
  .site-nav { padding: 0 24px; }

  .page-hero-content { padding: 90px 24px 40px; }
}

/* ---------- Inner-page intro (Valuations / Building Surveys / Development Consultancy) ---------- */
.section-page-intro {
  background: var(--cream);
  padding: 72px 24px;
  text-align: center;
}
.page-intro-inner {
  max-width: 740px; margin: 0 auto;
}
.page-intro-inner p { color: var(--text-mid); font-size: 1.1rem; line-height: 1.85; }

/* ---------- Service tag pills (legacy — kept for reference, unused) ---------- */
.section-services {
  background: var(--white);
  padding: 0 24px 90px;
}
.tag-pill {
  border: 1px solid rgba(196,153,58,0.4);
  background: var(--cream);
  padding: 14px 26px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.tag-pill-row {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}

/* ---------- Consultancy sidebar tabs ---------- */
.consultancy-tabs-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.consultancy-tab-list {
  position: sticky; top: 100px;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--cream-dark);
}
.consultancy-tab {
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--cream-dark);
  border-left: 3px solid transparent;
  padding: 16px 18px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--text-mid);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.consultancy-tab:hover { background: var(--cream); color: var(--navy); }
.consultancy-tab.active {
  background: var(--blue-light);
  border-left-color: var(--blue-light);
  color: var(--navy-dark);
  font-weight: 700;
}
.consultancy-tab.active:hover { background: var(--blue-light); }

.consultancy-tab-content {}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
.tab-panel-img {
  width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  margin-bottom: 28px;
}
.tab-panel h3 { color: var(--navy); }
.tab-panel .gold-rule { margin: 14px 0 24px; }
.tab-panel p { color: var(--text-mid); font-size: 1.05rem; line-height: 1.85; }
.tab-panel p:last-child { margin-bottom: 0; }
.tab-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold) !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.02em;
}

/* Mobile dropdown (replaces sidebar list on small screens) */
.tab-select-wrap {
  display: none;
  position: relative;
  max-width: var(--max-w); margin: 0 auto 32px;
}
.tab-select-wrap::after {
  content: '';
  position: absolute;
  right: 26px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.tab-select {
  width: 100%;
  padding: 16px 44px 16px 20px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid rgba(196,153,58,0.4);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.tab-select:focus,
.tab-select:hover {
  outline: none;
  border-color: var(--gold);
}
@media (max-width: 900px) {
  .consultancy-tabs-grid { grid-template-columns: 1fr; }
  .consultancy-tab-list { display: none; }
  .tab-select-wrap { display: block; }
}
.page-intro-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* ---------- Valuation type list (Valuations page) ---------- */
.section-valuation-types {
  background: var(--white);
  padding: 0 24px 90px;
}
.valuation-type-list {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; gap: 24px;
}
.valuation-type {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 30px 34px;
}
.valuation-type h3 { color: var(--navy); margin-bottom: 10px; }
.valuation-type p { color: var(--text-mid); font-size: 0.98rem; margin: 0; }

/* ---------- Survey option cards ---------- */
.section-surveys {
  background: var(--white);
  padding: 0 24px 90px;
}
.survey-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.survey-card { display: flex; flex-direction: column; }
.survey-card-num {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.survey-card h3 { color: var(--navy); margin-bottom: 14px; }
.survey-card p { color: var(--text-mid); font-size: 0.98rem; margin: 0; }
@media (max-width: 900px) {
  .survey-grid { grid-template-columns: 1fr; }
}

/* ---------- Page feature photo ---------- */
.section-page-photo {
  padding: 0 24px 90px;
  background: var(--white);
}
.page-photo-frame {
  max-width: var(--max-w); margin: 0 auto;
  position: relative;
}
.page-photo-frame img {
  width: 100%; aspect-ratio: 21/9; object-fit: cover;
}
.page-photo-accent {
  position: absolute; bottom: -14px; right: -14px;
  width: 40%; height: 40%;
  border: 2px solid var(--gold);
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Shared CTA banner (used on inner pages) ---------- */
.section-cta {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}
.section-cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: subtleZoom 20s ease-in-out infinite alternate;
}
.section-cta-overlay {
  position: absolute; inset: 0;
  background: rgba(7,20,40,0.85);
}
.section-cta-content {
  position: relative; z-index: 2;
  max-width: 640px; margin: 0 auto;
}
.section-cta h2 { color: var(--white); margin-bottom: 14px; }
.section-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ---------- Home: Chapel & Co intro statement ---------- */
.section-chapel-intro {
  background: var(--white);
  padding: 76px 24px;
  text-align: center;
}
.chapel-intro-inner {
  max-width: 780px; margin: 0 auto;
}
.chapel-intro-inner p {
  color: var(--text-mid);
  font-size: 1.15rem;
  line-height: 1.9;
}

/* ---------- Enquiry form (Contact page) ---------- */
.enquiry-form { margin-top: 8px; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-field .req { color: var(--gold); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  transition: border-color var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-honeypot {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 24px;
  cursor: pointer;
}
.form-checkbox input { margin-top: 3px; flex-shrink: 0; }
.form-checkbox .req { color: var(--gold); }
.cf-turnstile { margin-bottom: 24px; }
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: #2f7a4d; }
.form-status.error { color: #b3432b; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
