/* ===== V5: Dark premium ===== */
/* Dark bg, gold/cream accents, Cormorant Garamond + Lato, elegant */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

img, picture, video { display: block; max-width: 100%; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

:root {
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;
  --color-bg: #1a1a1a;
  --color-bg-alt: #252525;
  --color-bg-card: #252525;
  --color-accent: #d4af37;
  --color-accent-hover: #e8dcc4;
  --color-text: #e8dcc4;
  --color-text-muted: #b8a88a;
  --color-cta-bg: #d4af37;
  --color-cta-bg-hover: #c9a227;
  --color-white: #fff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --header-height: 4rem;
  --container: min(92%, 1100px);
}

.container {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.header__logo:hover {
  text-decoration: none;
  color: var(--color-accent-hover);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

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

.header__menu { display: flex; gap: 1.5rem; }
.header__menu a { color: var(--color-text); font-weight: 500; font-family: var(--font-body); }
.header__menu a:hover { color: var(--color-accent); }

@media (max-width: 768px) {
  .header__burger { display: flex; }
  .header__nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .header__menu { flex-direction: column; gap: 0.5rem; }
  .header__menu a { display: block; padding: 0.75rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn--primary {
  background: var(--color-cta-bg);
  color: #1a1a1a;
  text-decoration: none;
}

.btn--primary:hover {
  background: var(--color-cta-bg-hover);
  color: #1a1a1a;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== Hero — dark overlay ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 2rem;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/formImageSingleHouses.jpg');
  background-size: cover;
  background-position: center 25%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  opacity: 0.95;
}

.hero__cta { margin-top: 0.5rem; }

/* ===== Section dividers — dark to dark ===== */
.section-divider {
  height: 3rem;
  width: 100%;
  pointer-events: none;
}

.section-divider--from-hero {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, var(--color-bg) 100%);
}

.section-divider--alt-to-default {
  background: var(--color-bg);
}

.section-divider--default-to-alt {
  background: var(--color-bg-alt);
}

/* ===== Sections ===== */
.section {
  padding: 4.5rem 0;
  background: var(--color-bg);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--conditions-with-image {
  position: relative;
  overflow: hidden;
}

.section--conditions-with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=1920&q=80');
  background-size: cover;
  background-position: center center;
  opacity: 0.2;
  pointer-events: none;
}

.section--conditions-with-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0.5;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, transparent 22%, transparent 78%, var(--color-bg-alt) 100%);
  pointer-events: none;
}

.section--conditions-with-image .container { position: relative; z-index: 1; }

.section--with-bg {
  position: relative;
  overflow: hidden;
}

.section--with-bg .container { position: relative; z-index: 1; }

.section--with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}

.section--with-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0.5;
  background: linear-gradient(180deg, var(--color-bg) 0%, transparent 20%, transparent 80%, var(--color-bg) 100%);
  pointer-events: none;
}

.section--with-bg.section--alt::after {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, transparent 20%, transparent 80%, var(--color-bg-alt) 100%);
}

.section--about-bg::before { background-image: url('https://images.unsplash.com/photo-1490750967868-88aa4486c946?w=1920&q=80'); }
.section--services-bg::before { background-image: url('https://images.unsplash.com/photo-1528605248644-14dd04022da1?w=1920&q=80'); }
.section--care-bg::before { background-image: url('https://images.unsplash.com/photo-1513694203232-719a280e022f?w=1920&q=80'); }

.section--cta {
  background: var(--color-bg-alt);
  color: var(--color-text);
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out both;
}

.section__title--light { color: var(--color-accent); }

.section__intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 60ch;
  animation: fadeInUp 0.6s 0.1s ease-out both;
}

.section__intro--light {
  color: var(--color-text);
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.section__outro {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.prose {
  max-width: 65ch;
  animation: fadeInUp 0.6s 0.15s ease-out both;
}

.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }

.prose .highlight {
  font-weight: 500;
  color: var(--color-text);
  padding: 1rem;
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== Cards — dark bg, light border / gold accent ===== */
.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cards:not(.cards--compact) { grid-template-columns: repeat(2, 1fr); }
  .cards--compact { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  animation: fadeInUp 0.5s ease-out both;
}

#services .card:nth-child(1) { animation-delay: 0.08s; }
#services .card:nth-child(2) { animation-delay: 0.16s; }
#services .card:nth-child(3) { animation-delay: 0.24s; }
#services .card:nth-child(4) { animation-delay: 0.32s; }
#services .card:nth-child(5) { animation-delay: 0.4s; }
#conditions .card:nth-child(1) { animation-delay: 0.06s; }
#conditions .card:nth-child(2) { animation-delay: 0.12s; }
#conditions .card:nth-child(3) { animation-delay: 0.18s; }

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-accent);
  border-radius: var(--radius);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card--compact .card__text { font-size: 0.9rem; }

/* ===== Contact ===== */
.contact-block {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.contact-block__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--color-text);
}

.contact-block__item i { font-size: 1.25rem; color: var(--color-accent); }

.contact-block__item--note,
.contact-block__item--address {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-block a:hover {
  text-decoration: underline;
  color: var(--color-accent);
}

.contact-layout {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-map__title,
.contact-form__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.contact-map__frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-map__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map__hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.contact-form-wrap {
  background: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.contact-form__label:first-child { margin-top: 0; }

.contact-form__input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form__input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__submit { margin-top: 0.5rem; align-self: flex-start; }

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  background: #111;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

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

.footer__nav { display: flex; gap: 1.25rem; }
.footer__nav a { color: var(--color-text-muted); }
.footer__nav a:hover { color: var(--color-accent); }

.footer__versions { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.75rem; }
.footer__versions a { color: var(--color-text-muted); }
.footer__versions a:hover { color: var(--color-accent); }

.footer__credit { font-size: 0.8rem; opacity: 0.75; }
.footer__credit a { color: var(--color-accent); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section__title, .section__intro, .prose, .card { animation: none; }
  .card:hover, .btn--primary:hover { transform: none; }
}
