/* =========================================================
   Eagle Group Real Estate — Stylesheet
   Design system: ink navy + brass accent, cool off-white base
   ========================================================= */

:root {
  /* Colour system */
  --navy: #0A1A2A;
  --navy-raised: #102A40;
  --navy-line: rgba(198, 166, 100, 0.16);
  --brass: #C6A664;
  --brass-strong: #D8BC82;
  --bg: #F3F6F9;
  --white: #FFFFFF;
  --slate: #5C6E7E;
  --ink: #0A1A2A;
  --border: rgba(10, 26, 42, 0.10);

  /* Type */
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --radius: 14px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  display: block;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 18px;
}
.section-title.center { text-align: center; }

.section-sub {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 640px;
}
.section-sub.center { margin: 0 auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-brass {
  background: var(--brass);
  color: var(--navy);
}
.btn-brass:hover {
  background: var(--brass-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(198, 166, 100, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-nav { display: none; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 22px 0;
}

.site-header.scrolled {
  background: rgba(10, 26, 42, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.4);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.wordmark-mark path { fill: var(--brass); }
.wordmark-mark .mark-stroke {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.site-header:not(.scrolled) .wordmark-mark .mark-stroke { stroke: var(--navy); }

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.wordmark-primary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.wordmark-secondary {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--brass);
}

.site-header.scrolled .wordmark-primary { color: var(--white); }

.main-nav {
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a { color: var(--navy); position: relative; }
.site-header.scrolled .main-nav a { color: rgba(255,255,255,0.85); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: background 0.3s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--white); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 22px;
  background: var(--navy-raised);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}
.mobile-nav .btn { margin-top: 12px; align-self: flex-start; }

@media (max-width: 860px) {
  .main-nav, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 140px;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contour-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contour-line {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.4;
  opacity: 0.55;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-line 2.6s var(--ease) forwards;
}
.contour-line.c1 { opacity: 0.42; animation-delay: 0s; }
.contour-line.c2 { opacity: 0.5; animation-delay: 0.12s; }
.contour-line.c3 { opacity: 0.58; animation-delay: 0.24s; }
.contour-line.c4 { opacity: 0.46; animation-delay: 0.36s; }
.contour-line.c5 { opacity: 0.36; animation-delay: 0.48s; }
.contour-line.c6 { opacity: 0.28; animation-delay: 0.6s; }

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  line-height: 1.06;
  color: var(--white);
  max-width: 760px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .eyebrow {
  color: var(--brass-strong);
  margin-bottom: 26px;
  opacity: 0.85;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.hero .reveal { transition-delay: 0.1s; }
.hero-title.reveal { transition-delay: 0s; }
.hero-sub.reveal { transition-delay: 0.12s; }
.hero-actions.reveal { transition-delay: 0.22s; }

/* stagger cards within a row */
.service-grid .service-card:nth-child(1) { transition-delay: 0s; }
.service-grid .service-card:nth-child(2) { transition-delay: 0.06s; }
.service-grid .service-card:nth-child(3) { transition-delay: 0.12s; }
.service-grid .service-card:nth-child(4) { transition-delay: 0.18s; }
.service-grid .service-card:nth-child(5) { transition-delay: 0.24s; }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip {
  background: var(--navy-raised);
  padding: 30px 0;
  border-top: 1px solid rgba(198,166,100,0.18);
  border-bottom: 1px solid rgba(198,166,100,0.18);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.88);
  font-size: 0.94rem;
  flex: 1 1 200px;
}
.trust-item strong { color: var(--brass-strong); font-weight: 600; }
.trust-icon { font-size: 1.1rem; opacity: 0.9; }

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: 110px 0 100px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -22px rgba(10,26,42,0.22);
  border-color: rgba(198,166,100,0.4);
}

.service-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--slate);
  font-size: 0.98rem;
}

.service-highlight {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.service-card-feature {
  background: var(--navy);
  border-color: var(--navy);
  grid-row: span 1;
  position: relative;
}
.service-card-feature::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -1px; right: 24px;
  background: var(--brass);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 0 0 6px 6px;
}
.service-card-feature h3,
.service-card-feature .service-label { color: var(--brass-strong); }
.service-card-feature p { color: rgba(255,255,255,0.8); }
.service-card-feature .service-highlight {
  color: var(--white);
  border-top-color: rgba(198,166,100,0.3);
}
.service-card-feature:hover {
  border-color: var(--brass);
  box-shadow: 0 22px 44px -20px rgba(198,166,100,0.35);
}

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Section divider (contour motif) ---------- */
.divider {
  background: var(--bg);
  line-height: 0;
}
.divider svg { width: 100%; height: 50px; display: block; }
.divider-line {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.2;
  opacity: 0.45;
}

/* =========================================================
   AMENITIES — "More than four walls"
   ========================================================= */
.amenities {
  background: var(--white);
  padding: 100px 0;
}

.amenities-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}

.amenities-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.amenity-item {
  display: flex;
  gap: 22px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.amenity-item:hover {
  background: #EBF0F5;
  transform: translateX(4px);
}

.amenity-num {
  font-size: 0.85rem;
  color: var(--brass);
  flex-shrink: 0;
  padding-top: 4px;
}

.amenity-item h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.amenity-item p {
  color: var(--slate);
  font-size: 0.96rem;
}

@media (max-width: 860px) {
  .amenities-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* =========================================================
   APPROACH / WHY US
   ========================================================= */
.approach {
  background: var(--navy);
  color: var(--white);
  padding: 110px 0;
  position: relative;
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.approach .section-title { color: var(--white); }
.approach .section-sub { color: rgba(255,255,255,0.7); }

.approach-points {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.approach-point {
  border-left: 2px solid var(--brass);
  padding-left: 22px;
}
.approach-point h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.approach-point p {
  color: rgba(255,255,255,0.68);
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  .approach-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* =========================================================
   ENQUIRY FORM
   ========================================================= */
.contact {
  background: var(--bg);
  padding: 110px 0 130px;
}

.contact-intro { max-width: 680px; margin-bottom: 48px; }

.enquiry-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -36px rgba(10,26,42,0.18);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.form-field { display: flex; flex-direction: column; }
.form-field-full { margin-bottom: 22px; }

label, legend, .toggle-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.req { color: var(--brass); }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  padding: 13px 16px;
  border: 1px solid rgba(10,26,42,0.16);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brass);
  background: var(--white);
}

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

.field-error {
  color: #B3433F;
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 1em;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(10,26,42,0.16);
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.checkbox-pill:has(input:checked) {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.checkbox-pill input { accent-color: var(--brass); }

.toggle-switch {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid rgba(10,26,42,0.16);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  width: fit-content;
}
.toggle-option {
  position: relative;
  margin: 0;
}
.toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-option span {
  display: inline-flex;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.toggle-option input:checked + span {
  background: var(--brass);
  color: var(--navy);
}
.toggle-option input:focus-visible + span {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.business-fields {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-bottom 0.4s var(--ease);
}
.business-fields.visible {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 22px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.form-note {
  color: var(--slate);
  font-size: 0.86rem;
}

.form-success {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(198,166,100,0.12);
  border: 1px solid rgba(198,166,100,0.4);
}
.form-success h3 { font-size: 1.1rem; margin-bottom: 6px; }
.form-success p { color: var(--slate); }

.form-error-banner {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(179,67,63,0.08);
  border: 1px solid rgba(179,67,63,0.3);
  color: #8A332F;
}

@media (max-width: 720px) {
  .enquiry-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .wordmark-primary,
.footer-brand .wordmark-secondary { color: var(--white); }
.footer-brand .wordmark-secondary { color: var(--brass); }
.footer-tag {
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  max-width: 240px;
}

.footer-heading {
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-contact p, .footer-legal p {
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.footer-contact a:hover, .footer-legal a:hover { color: var(--brass); }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .contour-line {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .hero-bg { transform: none !important; }

  .btn:hover, .service-card:hover, .amenity-item:hover {
    transform: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
