/*
  SanTa Homes — Main Stylesheet
  Design tokens + shared component styles
*/

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

:root {
  --sand: #E8DFD4;
  --sand-light: #F4F0EB;
  --sand-dark: #C4B8A9;
  --charcoal: #1A1A1A;
  --charcoal-soft: #2D2D2D;
  --warm-white: #FDFBF8;
  --olive: #5C6B4F;
  --olive-light: #7A8C6A;
  --terracotta: #B8704A;
  --terracotta-light: #D4956E;
  --gold: #C9A96E;
  --gold-light: #DFC89A;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6358;
  --text-light: #9A9188;
  --heading: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', -apple-system, sans-serif;
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body);
  color: var(--text-primary);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 60px);
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.nav-logo {
  display: none;
}

.nav-wordmark {
  height: 75px;
  width: auto;
  max-width: 200px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--charcoal);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-lang {
  font-size: 0.7rem !important;
  padding: 5px 14px;
  border: 1px solid var(--sand-dark);
  border-radius: 20px;
  letter-spacing: 0.1em !important;
  transition: all 0.3s !important;
}

.nav-lang:hover {
  background: var(--charcoal);
  color: var(--warm-white) !important;
  border-color: var(--charcoal);
}

.nav-lang::after {
  display: none !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

/* ── SHARED COMPONENTS ── */

/* Hero for inner pages (contact, experience, etc.) */
.page-hero {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(184, 112, 74, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(92, 107, 79, 0.08) 0%, transparent 50%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.page-hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--warm-white);
  line-height: 1.1;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

/* Two-column grid layout */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.two-col-grid--start {
  align-items: start;
}

.two-col-grid--center {
  align-items: center;
}

/* Section content heading */
.content-heading {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 24px;
  line-height: 1.2;
}

/* Hover card effect (used by service cards, testimonials, etc.) */
.hover-card {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.08);
}

.hover-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.hover-card:hover::after {
  transform: scaleX(1);
}

/* ── HOME HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(92, 107, 79, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 112, 74, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.3) 0%, transparent 40%, rgba(26, 26, 26, 0.5) 100%);
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255, 255, 255, 0.5) 80px, rgba(255, 255, 255, 0.5) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255, 255, 255, 0.5) 80px, rgba(255, 255, 255, 0.5) 81px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--warm-white);
  margin-bottom: 12px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.hero-sub {
  font-family: var(--body);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--sand-dark);
  max-width: 520px;
  margin: 28px auto 0;
  line-height: 1.7;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--sand-dark);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--sand-dark), transparent);
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── SECTIONS ── */
.section {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 5vw, 80px);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── SERVICES ── */
.services {
  background: var(--warm-white);
}

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

.service-card {
  background: var(--sand-light);
  padding: 40px 32px 36px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.service-card h3 {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive-light);
}

/* ── ENVIRONMENT ── */
.environment {
  background: var(--sand-light);
}

.env-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 48px auto 0;
}

.env-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.env-img-wrap {
  overflow: hidden;
  border-radius: 12px;
}

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

/* ── HOUSE DETAIL PAGE ── */
.back-link {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--terracotta);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--gold);
}

.hero-location {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--sand-dark);
  margin-top: 8px;
}

/* Gallery */
.house-gallery-section {
  padding-top: 0;
}

.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery::-webkit-scrollbar {
  height: 6px;
}

.gallery::-webkit-scrollbar-track {
  background: var(--sand-light);
  border-radius: 3px;
}

.gallery::-webkit-scrollbar-thumb {
  background: var(--sand-dark);
  border-radius: 3px;
}

.gallery-item {
  flex: 0 0 auto;
  width: 80%;
  max-width: 700px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CSS-only Tabs */
.css-tabs {
  max-width: 800px;
  margin: 0 auto;
}

.css-tabs-radio {
  display: none;
}

.css-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--sand);
  margin-bottom: 32px;
}

.css-tab-label {
  padding: 12px 24px;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.3s, border-color 0.3s;
}

.css-tab-label:hover {
  color: var(--charcoal);
}

.css-tabs-radio:nth-of-type(1):checked ~ .css-tabs-nav .css-tab-label:nth-child(1),
.css-tabs-radio:nth-of-type(2):checked ~ .css-tabs-nav .css-tab-label:nth-child(2) {
  color: var(--charcoal);
  border-bottom-color: var(--terracotta);
}

.css-tabs-content {
  position: relative;
}

.css-tab-panel {
  display: none;
}

.css-tabs-radio:nth-of-type(1):checked ~ .css-tabs-content #panel-first,
.css-tabs-radio:nth-of-type(2):checked ~ .css-tabs-content #panel-second {
  display: block;
}

.floorplan-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* House Icons */
.house-icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.house-icon-tag {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  background: var(--sand-light);
  border: 1px solid var(--sand-dark);
  padding: 6px 14px;
  border-radius: 20px;
}

/* House CTA */
.house-cta {
  background: var(--warm-white);
}

.house-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  gap: 32px;
}

.house-size {
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.5;
}

/* Buttons */
.btn {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 28px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn--primary {
  background: var(--olive);
  color: #d4e8c4;
}

.btn--primary:hover {
  background: var(--olive-light);
}

.btn--disabled {
  background: var(--sand-dark);
  color: var(--text-light);
  cursor: default;
}

/* Amenities */
.amenities {
  background: var(--charcoal);
}

.amenities .section-label {
  color: var(--gold);
}

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

.amenities .section-desc {
  color: var(--sand-dark);
}



/* ── HOUSES ── */
.houses {
  background: var(--charcoal);
}

.houses .section-label {
  color: var(--gold);
}

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

.houses .section-desc {
  color: var(--sand-dark);
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.house-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--charcoal-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.house-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.house-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.house-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.5) 0%, transparent 50%);
}

.house-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.house-card:hover .house-img img {
  transform: scale(1.06);
}

.house-num {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 2;
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.house-status {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.house-status.available {
  background: rgba(92, 107, 79, 0.6);
  color: #d4e8c4;
}

.house-status.unavailable {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.5);
}

.house-info {
  padding: 22px 24px 24px;
}

.house-name {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--warm-white);
  margin-bottom: 4px;
}

.house-location {
  font-size: 0.8rem;
  color: var(--sand-dark);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.house-location svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

.house-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: gap 0.3s ease, color 0.3s ease;
}

.house-card:hover .house-link {
  color: var(--gold-light);
  gap: 12px;
}

.house-link svg {
  width: 16px;
  height: 16px;
}

.house-img--white {
  background: linear-gradient(135deg, #e8e4e0 0%, #d5cfc8 50%, #c2b9ad 100%);
}

.house-img--yellow {
  background: linear-gradient(135deg, #f0d98c 0%, #d4b85c 50%, #b89b3a 100%);
}

.house-img--brown {
  background: linear-gradient(135deg, #a68b6b 0%, #8b7355 50%, #6d583f 100%);
}

.house-img--black {
  background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.house-img--orange {
  background: linear-gradient(135deg, #e8a064 0%, #cc7a3a 50%, #a85e24 100%);
}

.house-img--red {
  background: linear-gradient(135deg, #c4645a 0%, #a84a40 50%, #8c3630 100%);
}

.house-img--gray {
  background: linear-gradient(135deg, #a8a8a8 0%, #888888 50%, #6b6b6b 100%);
}

.house-img--blue {
  background: linear-gradient(135deg, #6a8caa 0%, #4d7292 50%, #355a78 100%);
}

.house-img--green {
  background: linear-gradient(135deg, #7a9c6a 0%, #5c7e4c 50%, #436336 100%);
}

.house-img--color {
  background: linear-gradient(135deg, #e8a064 0%, #c4645a 30%, #6a8caa 60%, #7a9c6a 100%);
}

/* ── CONTACT PAGE ── */
.contact-section {
  background: var(--warm-white);
}

.contact-item {
  margin-bottom: 28px;
}

.contact-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.contact-item-value {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.contact-item-value a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--sand-dark);
  transition: border-color 0.3s, color 0.3s;
}

.contact-item-value a:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.08);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* ── EXPERIENCE PAGE ── */
.exp-about {
  background: var(--warm-white);
}

.exp-about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
}

.exp-about-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ── TESTIMONIALS ── */
.testimonials {
  background: var(--sand-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--warm-white);
  padding: 36px 32px;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--heading);
  font-size: 5rem;
  color: var(--sand-dark);
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
  opacity: 0.4;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
}

.testimonial-origin {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── FOOTER ── */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  width: 170px;
  height: auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav {
    padding: 0 16px;
    height: 60px;
  }

  .nav-wordmark {
    display: none;
  }

  .nav-logo {
    display: block;
    height: 30px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 4px 8px;
  }

  .nav-lang {
    font-size: 0.6rem !important;
    padding: 3px 10px;
  }

  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .houses-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .house-img {
    height: 200px;
  }

  .contact-map iframe {
    height: 300px;
  }

  .exp-about-img {
    height: 280px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    width: 90%;
  }

  .house-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .css-tabs-nav {
    justify-content: center;
  }
}
