/*
Theme Name: AUCONIA v1
Theme URI: https://auconia.estate
Author: Digital Heaven Ventures GmbH
Description: Elementor-first theme for AUCONIA — Special Situation Real Estate DealMaker. One-click setup, full Customizer support.
Version: 1.0.0
Text Domain: auconia-v1
*/

/* ══════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════ */
:root {
  --auc-white:      #FFFFFF;
  --auc-black:      #1A1A1A;
  --auc-violet:     #770490;
  --auc-violet-lt:  #F3E6F7;
  --auc-gray-mid:   #6B6B6B;
  --auc-gray-light: #F0F0F0;
  --auc-gray-line:  #E0E0E0;
  --auc-max:        1200px;

  /* Logo & header height are linked: header = logo height + vertical breathing room */
  --logo-height:    56px;
  --header-pad-y:   16px;
  --auc-header-h:   calc(var(--logo-height) + (var(--header-pad-y) * 2));
}

/* ══════════════════════════════════════════════
   RESET
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--auc-white);
  color: var(--auc-black);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.label,
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--auc-gray-mid);
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--auc-white);
  border-bottom: 1px solid var(--auc-gray-line);
  height: var(--auc-header-h);
}

.header-inner {
  max-width: var(--auc-max);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img,
.site-logo .custom-logo {
  height: var(--logo-height) !important;
  width: auto !important;
  max-width: none;
  display: block;
}
.site-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--auc-black);
  line-height: 1.1;
}

/* Primary nav */
#primary-navigation { display: flex; align-items: center; gap: 36px; }
#primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
#primary-navigation a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--auc-gray-mid);
  transition: color 0.15s;
}
#primary-navigation a:hover,
#primary-navigation .current-menu-item > a { color: var(--auc-black); }

/* Nav CTA */
.nav-cta-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--auc-white) !important;
  background: var(--auc-violet);
  border: 1.5px solid var(--auc-violet);
  padding: 13px 28px;
  border-radius: 2px;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta-btn:hover {
  background: #5c0370;
  border-color: #5c0370;
  color: var(--auc-white) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--auc-gray-line);
  color: var(--auc-black);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* Main content */
#main-content { width: 100%; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#site-footer {
  background: var(--auc-white);
  padding: 48px 0 36px;
  border-top: 1px solid var(--auc-gray-line);
}

/* Violet accent line at top of footer */
#site-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--auc-violet) 0%, var(--auc-violet) 60px, var(--auc-gray-line) 60px);
  margin-top: -1px;
  margin-bottom: 0;
}

.footer-inner {
  max-width: var(--auc-max);
  margin: 0 auto;
  padding: 40px 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr auto;
  gap: 64px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--auc-gray-line);
}

/* Brand column */
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-brand .site-logo-text { color: var(--auc-black); }

.footer-brand-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--auc-gray-mid);
  line-height: 1.5;
  margin-top: 6px;
}

/* Nav columns */
.footer-nav-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auc-black);
  margin-bottom: 14px;
}
.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a {
  font-size: 13px;
  font-weight: 400;
  color: var(--auc-gray-mid);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.footer-nav-col a:hover { color: var(--auc-black); }

/* Footer contact column */
.footer-contact-col { text-align: right; }
.footer-contact-col .label { display: block; margin-bottom: 14px; }
.footer-contact-col p {
  font-size: 13px;
  color: var(--auc-gray-mid);
  line-height: 1.7;
  font-weight: 300;
}
.footer-contact-col a { color: var(--auc-violet); }

/* Footer bottom bar */
.footer-bottom {
  padding-top: 24px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p,
.footer-legal {
  font-size: 12px;
  color: var(--auc-gray-mid);
  letter-spacing: 0.02em;
}
.footer-legal { display: flex; gap: 24px; list-style: none; }
.footer-legal a { transition: color 0.15s; }
.footer-legal a:hover { color: var(--auc-black); }
.footer-copy { font-size: 12px; color: var(--auc-gray-mid); }

/* ══════════════════════════════════════════════
   ELEMENTOR INTEGRATION
══════════════════════════════════════════════ */
.elementor-section .elementor-container { max-width: var(--auc-max) !important; }
.e-con > .e-con-inner { max-width: var(--auc-max) !important; }
body.elementor-page #site-header { z-index: 9999; }
.elementor-section.elementor-section-full_width .elementor-container { max-width: 100% !important; }
.elementor-widget-heading .elementor-heading-title { font-family: 'Playfair Display', Georgia, serif; }
.elementor-widget-text-editor,
.elementor-widget-button .elementor-button { font-family: 'Inter', sans-serif; }
.elementor-widget-button .elementor-button { border-radius: 2px !important; }

/* ══════════════════════════════════════════════
   MOBILE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-inner { padding: 0 24px; }
  .footer-inner { padding: 32px 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  #primary-navigation,
  .nav-cta-btn { display: none; }
  #primary-navigation.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--auc-header-h);
    left: 0; right: 0;
    background: var(--auc-white);
    padding: 24px;
    border-bottom: 1px solid var(--auc-gray-line);
    z-index: 9998;
  }
  #primary-navigation.is-open ul { flex-direction: column; gap: 20px; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact-col { text-align: left; }
}

/* ── OVERFLOW FIX ── */
html, body { max-width: 100%; overflow-x: hidden; }
.elementor-section, .elementor-container, .elementor-row { max-width: 100% !important; }
#main-content { width: 100%; }
