/* =========================
   Furniture & Landscape — Theme
   File: CSS/styles.css
   ========================= */

:root {
  --color-bg: #f7f3ec;       /* warm cream */
  --color-surface: #ffffff;
  --color-text: #2b2620;     /* charcoal */
  --color-text-muted: #5f574c;
  --color-olive: #6b7a4f;    /* accent / links */
  --color-olive-dark: #55603f;
  --color-terracotta: #b5654a; /* CTAs */
  --color-terracotta-dark: #9a5540;
  --color-line: rgba(43, 38, 32, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;

  --radius: 16px;
  --shadow: 0 16px 40px rgba(43, 38, 32, 0.14);
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: inherit;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(43, 38, 32, 0.55) 0%,
    rgba(43, 38, 32, 0.35) 45%,
    rgba(43, 38, 32, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background-color: #fff;
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

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

.btn.btn-primary:hover {
  background-color: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: #fff;
}

/* ---- Card Section ---- */
.card-section {
  background-color: var(--color-bg);
  padding: 110px 24px;
  text-align: center;
}

.card-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--color-text);
  margin-bottom: 48px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(43, 38, 32, 0.08);
  overflow: hidden;
  text-align: left;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.25s ease;
}

.card.show {
  transform: translateY(0);
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 22px 22px 26px;
}

.card-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.card-content a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background-color: var(--color-olive);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.card-content a:hover {
  background-color: var(--color-olive-dark);
}

/* ---- Footer ---- */
.footer {
  background-color: var(--color-text);
  color: #f1ede6;
  width: 100%;
  padding: 44px 20px;
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d9d2c5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .card-section {
    padding: 70px 20px;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }
}
