/* ============================================================
   S&H Immobilien Hochfranken GmbH — Stylesheet
   Colors extracted from logo: dark teal #2a7a96, light blue #7dbfd8
   Fonts: locally hosted via fontsource
   ============================================================ */

/* ===== LOCAL FONT FACES ===== */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/cormorant-garamond-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/cormorant-garamond-300i.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600i.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/jost-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jost-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jost-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/jost-600.woff2') format('woff2');
}

:root {
  --blue-dark:    #1e6b87;
  --blue-mid:     #2a7f9e;
  --blue-light:   #7dbfd8;
  --blue-pale:    #d8eef5;
  --blue-faint:   #f0f8fb;
  --white:        #ffffff;
  --offwhite:     #f8fbfd;
  --grey-100:     #f2f6f9;
  --grey-200:     #e2eaef;
  --grey-400:     #9ab0bb;
  --grey-600:     #5a7280;
  --grey-800:     #2d3e47;
  --text-primary: #1c2f38;
  --text-body:    #3d5260;
  --text-light:   #6e8b99;

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

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(30, 107, 135, 0.08);
  --shadow-md:  0 8px 32px rgba(30, 107, 135, 0.12);
  --shadow-lg:  0 16px 48px rgba(30, 107, 135, 0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:  1160px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-mid); }

address { font-style: normal; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
  /* Logo has correct colors — no filter needed */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover { color: var(--blue-dark); background: var(--blue-faint); }

.nav-links a.nav-cta {
  background: var(--blue-dark);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 99px;
}

.nav-links a.nav-cta:hover {
  background: var(--blue-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 99px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

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

.btn-primary:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 107, 135, 0.3);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0f3d50 0%, #1a6680 40%, #2a8a9e 80%, #3ba8b8 100%);
  overflow: hidden;
  padding: 96px 24px 80px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(125,191,216,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  animation: heroFadeUp 1s ease both;
}

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

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 20px;
  animation: heroFadeUp 1s 0.1s ease both;
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  animation: heroFadeUp 1s 0.2s ease both;
}

#hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue-light);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: heroFadeUp 1s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp 1s 0.4s ease both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: heroFadeUp 1s 0.6s ease both;
  text-decoration: none;
  transition: color var(--transition);
}

.hero-scroll-hint:hover { color: rgba(255,255,255,0.8); }

.scroll-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8));
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top: 200%; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}

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

.section-legal {
  background: var(--grey-100);
  padding: 80px 0;
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-pale);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-header h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue-dark);
}

.section-intro {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== ÜBER UNS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text .lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.8;
}

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

.stat-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ===== OBJEKTE ===== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.property-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-dark));
  opacity: 0;
  transition: opacity var(--transition);
}

.property-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.property-card:hover::before { opacity: 1; }

.property-card--featured {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
}

.property-card--featured::before { opacity: 1; }

.property-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.property-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-faint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  flex-shrink: 0;
}

.property-icon svg { width: 28px; height: 28px; }

.property-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-pale);
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.property-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.property-location svg { width: 14px; height: 14px; flex-shrink: 0; }

.property-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.property-units {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--blue-faint);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue-light);
}

.property-units span {
  font-size: 0.82rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-units span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-mid);
  flex-shrink: 0;
}

.property-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.property-features li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding-left: 20px;
  position: relative;
}

.property-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue-light);
  font-size: 0.8rem;
}

.property-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
  padding: 10px 18px;
  border: 1.5px solid var(--blue-mid);
  border-radius: 99px;
  transition: all var(--transition);
  margin-top: auto;
  text-align: center;
  justify-content: center;
}

.property-cta:hover {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

.properties-cta {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.properties-cta p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 20px;
}

/* ===== LEISTUNGEN ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-item {
  padding: 40px 36px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-item:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-faint));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.service-icon svg { width: 28px; height: 28px; }

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-item p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ===== KONTAKT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: linear-gradient(145deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 96px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.3;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 4px;
}

.contact-item span, .contact-item a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.contact-email-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  font-style: italic;
}

.contact-item a:hover { color: var(--white); }

.contact-note {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 8px;
  padding-top: 24px;
}

.contact-note p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact-note p:last-child { margin-bottom: 0; }
.contact-note strong { color: rgba(255,255,255,0.95); }

/* ===== FORM ===== */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--offwhite);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  transition: all var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ab0bb' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-mid);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(42, 127, 158, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey-400); }

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

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--blue-dark);
  cursor: pointer;
  border-radius: 4px;
  background: var(--offwhite);
  padding: 0;
}

.form-check label {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-light);
  line-height: 1.6;
  cursor: pointer;
}

.form-check label a { color: var(--blue-dark); text-decoration: underline; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
}

.form-success {
  text-align: center;
  padding: 48px 32px;
  color: var(--text-primary);
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--blue-dark);
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== RECHTLICHES ===== */
.legal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: 0;
}

.legal-tab {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  background: none;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.legal-tab:hover { color: var(--blue-dark); }

.legal-tab.active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-dark);
  background: var(--white);
}

.legal-block {
  display: none;
  max-width: 860px;
}

.legal-block--active { display: block; }

.legal-block h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.legal-block h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin: 28px 0 10px;
}

.legal-block h3:first-of-type { margin-top: 0; }

.legal-block p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-block a { color: var(--blue-dark); text-decoration: underline; }

/* Email obfuscation display */
.email-display {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-body);
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

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

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

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

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

.footer-contact address {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-contact .footer-email-hint {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .properties-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-md);
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-links a.nav-cta { text-align: center; border-radius: var(--radius-sm); }

  .section { padding: 64px 0; }

  .section-header { margin-bottom: 40px; }

  .about-stats { grid-template-columns: 1fr 1fr; }

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

  .services-grid { grid-template-columns: 1fr; gap: 20px; }

  .service-item { padding: 28px 24px; }

  .contact-form-wrapper { padding: 28px 24px; }

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

  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .legal-tabs { gap: 4px; }
  .legal-tab { padding: 10px 16px; font-size: 0.85rem; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .properties-cta .btn { width: auto; max-width: none; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 16px; }
  .container { padding: 0 16px; }
  .stat-card { padding: 20px 16px; }
  .property-card { padding: 24px 20px; }
  .contact-card { padding: 28px 24px; }
  .footer-content { grid-template-columns: 1fr; }
}
