/* Reencon Chartered Surveyors – site styles */

:root {
  --red: #81191a;
  --red-dark: #631314;
  --ink: #111;
  --text: #333;
  --muted: #666;
  --panel: #f1f1f1;
  --white: #fff;
  --black: #000;
  --max: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --heading: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
}

h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; text-transform: uppercase; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid #f8a20f; outline-offset: 2px; }

/* Icons */
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Top bar */
.topbar { background: var(--red); color: var(--white); font-family: var(--heading); font-weight: 700; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; }

/* Header and nav */
.site-header { background: var(--white); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 110px; gap: 24px; }
.logo img { width: 130px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 8px 14px; text-decoration: none;
  font-family: var(--heading); font-weight: 700; font-size: .95rem; color: var(--ink);
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { background: var(--red); color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); padding: 8px 12px;
  font: 700 .95rem var(--heading); cursor: pointer; color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 8px 16px rgba(0,0,0,.12); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav a { padding: 12px 14px; }
  .logo img { width: 100px; }
  .site-header .container { min-height: 88px; }
}

/* Hero */
.hero {
  position: relative; color: var(--white); text-align: center;
  background-size: cover; background-position: center;
  display: flex; align-items: center; min-height: clamp(420px, 52vw, 600px);
  padding: 64px 0 120px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero .container { position: relative; max-width: 960px; }
.hero h1 { color: var(--white); text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .5em; }
.hero p { font-size: 1rem; margin-bottom: .6em; }
.hero .btn { margin-top: 10px; }
.hero--compact { padding-bottom: 64px; }

.hero-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-block; background: var(--red); color: var(--white);
  font-family: var(--heading); font-weight: 700; text-decoration: none;
  padding: 10px 30px; border: 1px solid var(--white); cursor: pointer; font-size: .95rem;
}
.btn:hover { background: var(--red-dark); }
.btn--plain { border-color: var(--red); }
.btn--dark { background: var(--black); border-color: var(--black); }
.btn--dark:hover { background: #222; }

/* USP strip */
.usps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: var(--max); margin: -76px auto 0; padding: 0 var(--gutter); position: relative; z-index: 2;
}
.usp {
  background: var(--red); color: var(--white); text-align: center;
  padding: 60px 12px 22px; position: relative;
  font-family: var(--heading); font-weight: 700; text-transform: uppercase;
}
.usp::before {
  content: ""; position: absolute; top: -38px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 44px no-repeat;
  border: 4px solid var(--white);
}
@media (max-width: 700px) {
  .usps { grid-template-columns: 1fr; gap: 48px; margin-top: -40px; }
}

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }

.split {
  display: grid; grid-template-columns: 2fr 1fr; gap: 10px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.split__text { background: var(--panel); padding: clamp(28px, 5vw, 64px) clamp(24px, 7vw, 90px); align-self: stretch; }
/* The image fills the row height set by the text, so tall photos don't stretch the section. */
.split__media { position: relative; min-height: 300px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split--cta .split__text { background: var(--red); color: var(--white); }
.split--cta h2 { color: var(--white); }
.split--cta .phone-big { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font: 700 1.4rem var(--heading); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split__media { min-height: 260px; } }

/* Offset feature: text beside an image floating over a coloured block */
.feature {
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative;
}
.feature__text { padding: 0 clamp(16px, 3vw, 40px); }
.feature__media { position: relative; z-index: 1; }
.feature__media img { width: 100%; }
.feature__block { position: absolute; top: 0; bottom: 0; z-index: 0; }
.feature--right .feature__block { right: var(--gutter); width: 50%; background: var(--panel); }
.feature--left .feature__block { left: var(--gutter); width: 50%; background: var(--black); }
.feature--left .feature__text { grid-column: 3; grid-row: 1; }
.feature--left .feature__media { grid-column: 2; grid-row: 1; }
.feature { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: 24px; padding-top: 0; padding-bottom: 0; }
  .feature--left .feature__text, .feature--left .feature__media { grid-column: 1; grid-row: auto; }
  .feature__block { display: none; }
  .feature__text { padding: 0; }
}

.centered { text-align: center; max-width: 820px; margin: 0 auto; }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { position: relative; min-height: 300px; background-size: cover; background-position: center; color: var(--white); text-decoration: none; display: block; }
.tile__panel { background: rgba(20,20,20,.88); width: 66%; padding: 22px 20px 64px; position: relative; }
.tile h3 { color: var(--white); font-size: 1rem; margin-bottom: .5em; }
.tile p { font-size: .88rem; margin: 0; }
.tile__arrow {
  position: absolute; left: 20px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
}
.tile:hover .tile__arrow { background: var(--red-dark); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } .tile__panel { width: 80%; } }

/* Why choose */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why ul { padding-left: 1.2em; }
.why li { margin-bottom: .3em; }
.why__media { position: relative; padding: 40px 0; }
.why__media::before { content: ""; position: absolute; top: 0; bottom: 0; left: 40%; right: calc(-1 * var(--gutter)); background: var(--panel); z-index: -1; }
@media (max-width: 800px) { .why { grid-template-columns: 1fr; } .why__media { padding: 0; } .why__media::before { display: none; } }

/* Testimonials */
.testimonials { display: grid; gap: 24px; max-width: 880px; margin: 0 auto; }
.testimonial {
  border: 1px solid var(--red); padding: 48px clamp(20px, 5vw, 56px) 32px; text-align: center;
  position: relative; margin-top: 40px; box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.testimonial::before {
  content: "\201D"; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 72px; background: var(--white); border: 3px solid var(--red); border-radius: 50% 50% 50% 8px;
  color: var(--red); font: 700 4.6rem/1.1 Georgia, serif;
}
.testimonial blockquote { margin: 0 0 12px; font-style: italic; }
.testimonial cite { font-style: normal; font-weight: 700; }

.badges { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 8vw, 96px); flex-wrap: wrap; }
.badges img { height: 64px; width: auto; }

/* Case study */
.case { display: grid; grid-template-columns: 1fr 1fr; }
.case__text { background: var(--panel); padding: clamp(28px, 5vw, 64px) clamp(24px, 8vw, 120px); }
.case__video { background: var(--red); display: grid; place-items: center; padding: clamp(20px, 4vw, 48px); }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-grid > div { padding: clamp(28px, 5vw, 56px) clamp(24px, 6vw, 80px); }
.contact-info { background: var(--panel); }
.contact-form { background: var(--red); color: var(--white); }
.contact-form h2 { color: var(--white); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1px solid var(--white); background: var(--white); border-radius: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-actions { margin-top: 20px; text-align: right; }
.form-note { font-size: .85rem; margin-top: 12px; }
.btn--wa { display: inline-flex; align-items: center; gap: 8px; background: #25d366; border-color: #25d366; color: #0b2e1a; }
.btn--wa:hover { background: #1ebe5b; }
.btn--wa .icon { width: 1.3em; height: 1.3em; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.map { position: relative; height: clamp(280px, 36vw, 480px); background: var(--panel); display: grid; place-items: center; text-align: center; padding: 24px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact list (shared by footer and contact page) */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-list .icon { color: var(--red); margin-top: 4px; }

.social { display: flex; gap: 8px; margin-bottom: 14px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; color: var(--white); }
.social .icon { width: 22px; height: 22px; }
.social .fb { background: #3b5998; }
.social .li { background: #0a66c2; }
.social .x { background: #000; }
.social .ig { background: #e1306c; }

/* Footer */
.site-footer { padding: 48px 0 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-size: 1.05rem; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }

.legal { background: var(--black); color: var(--white); text-align: center; font-size: .82rem; padding: 28px 0; }
.legal p { margin: 0 0 .7em; }
.legal a { text-decoration: underline; }

/* Prose pages (privacy, 404) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
