/* ============================================================
   Ridgeway & Co — Estate Agents, Yorkshire Dales
   Palette: stone, deep green, warm off-white, slate
   ============================================================ */

:root {
  --green:      #2C4A35;
  --green-mid:  #3D6349;
  --green-light:#EAF0EB;
  --stone:      #B5A08A;
  --stone-light:#F5F0E8;
  --ink:        #1E2420;
  --muted:      #5A6360;
  --white:      #FDFCF9;
  --border:     #D8D0C4;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius: 4px;
  --max-w: 1200px;
  --section-gap: 5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ── Layout helpers ── */
.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: var(--section-gap); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.nav-logo-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--green-mid) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 30, 24, 0.82) 0%,
    rgba(20, 30, 24, 0.35) 55%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 5rem;
  max-width: 680px;
}

.hero-content .label { color: var(--stone); margin-bottom: 1rem; }

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--stone);
  color: var(--white);
  border-color: var(--stone);
}

.btn-primary:hover {
  background: #a08e79;
  border-color: #a08e79;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-green:hover { background: var(--green-mid); border-color: var(--green-mid); }

/* ── Search bar ── */
.hero-search {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 10;
}

.search-bar {
  background: var(--white);
  border-top: 3px solid var(--stone);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 140px;
}

.search-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field select,
.search-field input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  width: 100%;
}

.search-field select:focus,
.search-field input:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--green);
  padding: 3rem 0;
  margin-top: 5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
}

.stat-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ============================================================
   FEATURED PROPERTIES
   ============================================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-header a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 1px;
  white-space: nowrap;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.property-card:hover {
  box-shadow: 0 8px 32px rgba(44,74,53,0.12);
  transform: translateY(-3px);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.property-card:hover .card-img-wrap img { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

.card-badge.sold {
  background: var(--stone);
}

.card-body {
  padding: 1.25rem;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-location {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-location svg { flex-shrink: 0; }

.card-specs {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card-spec {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.card-actions a {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid var(--green);
  color: var(--green);
  transition: background 0.2s, color 0.2s;
}

.card-actions a:hover,
.card-actions a.primary {
  background: var(--green);
  color: var(--white);
}

/* ============================================================
   WHY RIDGEWAY STRIP
   ============================================================ */
.why-section {
  background: var(--stone-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-icon {
  width: 48px;
  height: 48px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon svg { color: var(--white); }

.why-item h3 {
  font-size: 1.15rem;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   VIEWING / BOOKING SECTION
   ============================================================ */
.booking-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.booking-text .label { margin-bottom: 0.75rem; }
.booking-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}
.booking-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.booking-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.booking-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  width: 100%;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44,74,53,0.1);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover { background: var(--green-mid); }

.form-message {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.form-message.success {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #b8d1bc;
}

.form-message.error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}

/* ============================================================
   AREAS WE COVER
   ============================================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.area-pill {
  background: var(--stone-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}

.area-pill:hover {
  background: var(--green-light);
  border-color: var(--green);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--green);
}

.testimonials-section .label { color: var(--stone); }
.testimonials-section h2 { color: var(--white); margin-bottom: 2.5rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 1.75rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.detail-icon {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon svg { color: var(--green); }

.detail-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.detail-text span {
  font-size: 0.95rem;
  color: var(--ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  padding: 3rem 0 1.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-brand .nav-logo-name { color: var(--white); font-size: 1.15rem; }
.footer-brand .nav-logo-tag { color: var(--stone); }

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  max-width: 240px;
  line-height: 1.6;
}

.footer-links h4 {
  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.4);
  margin-bottom: 0.85rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   PROPERTIES PAGE
   ============================================================ */
.page-hero {
  background: var(--green);
  padding: 4rem 0 3rem;
  border-bottom: 4px solid var(--stone);
}

.page-hero .label { color: var(--stone); margin-bottom: 0.75rem; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 480px;
}

.filter-bar {
  background: var(--stone-light);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.filter-bar-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-bar .search-field { min-width: 160px; }
.filter-bar select,
.filter-bar input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--white);
  width: 100%;
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
}

.results-count {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-gap: 3.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .site-header { position: relative; }

  .hero { min-height: 70vh; }
  .hero-content { padding-bottom: 4rem; }

  .search-bar {
    flex-direction: column;
    padding: 1.25rem;
  }

  .search-field { min-width: 100%; width: 100%; }

  .booking-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .form-row { grid-template-columns: 1fr; }

  .stats-strip { margin-top: 2rem; }

  .footer-inner { flex-direction: column; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .properties-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
