/* ============================================
   Village Residential — Main Stylesheet
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.2;
  font-weight: normal;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p {
  color: #444;
  max-width: 65ch;
}

/* --- Layout --- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 80px 0;
}

/* --- Color Palette --- */
:root {
  --black:    #302e2d;
  --charcoal: #3e3a38;
  --mid-grey: #7a7574;
  --light-grey: #f6f5f3;
  --white:    #ffffff;
  --accent:   #b09080;   /* warm taupe — sophisticated, subtle warmth */
  --accent-light: #f0ebe7;
}

/* --- Navigation --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0;
}

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

.nav-logo {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--black);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Hamburger (mobile) */
.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(--charcoal);
  transition: all 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
}

/* --- Hero --- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3e3a38 0%, #302e2d 100%);
  opacity: 0.97;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero p {
  color: #b5b0ae;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 55ch;
}

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

/* --- Section Headers --- */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--black);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mid-grey);
  margin-bottom: 48px;
  max-width: 60ch;
}

/* --- Services Grid --- */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  padding: 36px 32px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-icon {
  margin-bottom: 16px;
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--black);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--mid-grey);
}

/* --- About Preview --- */
.about-preview {
  background: var(--light-grey);
}

.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-preview-text p {
  margin-bottom: 20px;
}

.about-preview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat-block {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}

.stat-number {
  font-family: 'Georgia', serif;
  font-size: 2.4rem;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Recent Work / Before & After --- */
.recent-work-section {
  background: var(--white);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  margin-top: 8px;
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--mid-grey);
  letter-spacing: 0.04em;
}

.project-meta svg {
  color: var(--accent);
  flex-shrink: 0;
}

.ba-hint {
  font-size: 0.8rem;
  color: var(--mid-grey);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  font-style: italic;
}

/* --- Flip Card Grid --- */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.flip-card {
  perspective: 1000px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.flip-card-front {
  z-index: 2;
  opacity: 1;
}

.flip-card-back {
  z-index: 1;
  opacity: 0;
}

.flip-card:hover .flip-card-front,
.flip-card.flipped .flip-card-front {
  opacity: 0;
}

.flip-card:hover .flip-card-back,
.flip-card.flipped .flip-card-back {
  opacity: 1;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 600;
}

.ba-label--before {
  background: rgba(0,0,0,0.6);
  color: #fff;
}

.ba-label--after {
  background: var(--accent);
  color: #fff;
}

.flip-card-room {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  font-family: 'Inter', sans-serif;
}

.hint-mobile { display: none; }

@media (max-width: 600px) {
  .flip-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}

/* --- Why Choose Us --- */
.why-section {
  background: var(--charcoal);
  color: var(--white);
}

.why-section .section-title {
  color: var(--white);
}

.why-section .section-subtitle {
  color: #b5b0ae;
}

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

.why-item {
  text-align: center;
  padding: 16px;
}

.why-icon {
  margin-bottom: 16px;
  color: var(--accent);
}

.why-item h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.why-item p {
  font-size: 0.9rem;
  color: #a09a98;
  margin: 0 auto;
}

/* --- CTA Banner --- */
.cta-section {
  background: var(--black);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: #a09a98;
  font-size: 1.05rem;
  margin: 0 auto 36px;
  max-width: 55ch;
}

/* --- About Page --- */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 80px 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: #b5b0ae;
  font-size: 1.05rem;
}

.about-story {
  background: var(--white);
}

.about-story-inner {
  max-width: 760px;
}

.about-story h2 {
  margin-bottom: 20px;
  margin-top: 48px;
}

.about-story h2:first-of-type {
  margin-top: 0;
}

.about-story p {
  margin-bottom: 18px;
  max-width: none;
  color: #444;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.value-card {
  padding: 28px 24px;
  background: var(--white);
  border-radius: 4px;
  border: 1px solid #e8e8e8;
}

.value-card h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--mid-grey);
}

/* --- Who List (Contact) --- */
.who-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.who-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-size: 0.95rem;
}

.who-list svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 32px;
  color: var(--mid-grey);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid-grey);
  margin-bottom: 2px;
}

.contact-detail-text span {
  color: var(--black);
}

/* Contact Form */
.contact-form {
  background: var(--light-grey);
  padding: 48px 40px;
  border-radius: 4px;
}

.contact-form h3 {
  margin-bottom: 28px;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 20px;
}

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

label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid-grey);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  text-align: center;
  padding: 16px;
}

/* --- Footer --- */
footer {
  background: var(--black);
  color: #888;
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #504a48;
  margin-bottom: 28px;
}

.footer-brand .nav-logo {
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #777;
  font-size: 0.9rem;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #aaa;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #777;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #555;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-center p,
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }

/* --- Responsive --- */
@media (max-width: 768px) {
  section { padding: 60px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 0;
  }

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

  .nav-links a {
    display: block;
    padding: 14px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .about-preview-inner,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

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

  .contact-form {
    padding: 32px 24px;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding: 60px 0;
  }
}
