/* ============================================================
   Karel Veverka Reality — Hlavní styly
   Design: Premium Navy & Gold
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --navy:        #1a2744;
  --navy-dark:   #0d1b2a;
  --navy-mid:    #243156;
  --navy-light:  #2d4a8a;
  --gold:        #c9a84c;
  --gold-light:  #e8c36a;
  --gold-pale:   #f5e6b8;
  --white:       #ffffff;
  --off-white:   #f8f9fc;
  --gray-100:    #f1f3f7;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #64748b;
  --gray-800:    #1e293b;
  --text:        #2d3748;
  --text-light:  #718096;

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

  --shadow-sm:   0 2px 8px rgba(26,39,68,.08);
  --shadow:      0 4px 24px rgba(26,39,68,.12);
  --shadow-lg:   0 12px 48px rgba(26,39,68,.18);
  --shadow-gold: 0 8px 32px rgba(201,168,76,.25);

  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --transition-fast: .15s ease;

  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;

  --section-pad: 100px 0;
  --container:   1200px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

::selection { background: var(--gold); color: var(--white); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-light); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

p { line-height: 1.75; color: var(--text-light); }

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.font-serif { font-family: var(--font-serif); }

/* ── Buttons ── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,168,76,.4);
  color: var(--white);
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 13px 31px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.5);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Section Titles ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.section-title {
  font-family: var(--font-serif);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px auto;
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(13,27,42,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo {
  height: 44px;
  width: auto;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-logo-text .name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.navbar-logo-text .title {
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 16px !important;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,.3) !important;
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ── Hero Section ── */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(13,27,42,.88) 0%, rgba(26,39,68,.75) 60%, rgba(45,74,138,.65) 100%),
    url('../assets/images/hero.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated grid overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--gold);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.3);
}

/* Hero stats card */
.hero-stats-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
}

.hero-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.5), transparent);
}

.hero-stat-item {
  text-align: center;
  padding: 16px 0;
}

.hero-stat-item + .hero-stat-item {
  border-top: 1px solid rgba(255,255,255,.08);
}

.hero-stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Stats Section ── */
#stats {
  background: var(--navy-dark);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.08);
}

.stat-card:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── About Section ── */
#about {
  padding: var(--section-pad);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  right: -200px;
  top: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-pale) 0%, transparent 70%);
  pointer-events: none;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap .avatar {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about-image-bg {
  position: absolute;
  top: 24px;
  left: 24px;
  right: -24px;
  bottom: -24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-xl);
  z-index: 0;
}

.about-badge-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  min-width: 180px;
}

.about-badge-card .badge-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.about-badge-card .badge-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.about-badge-card .badge-label {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.about-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
}

.cert-badge i { color: var(--gold); }

/* ── Services Section ── */
#services {
  padding: var(--section-pad);
  background: var(--off-white);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

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

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card p {
  font-size: .95rem;
  line-height: 1.65;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 20px;
  transition: gap var(--transition-fast);
}

.service-card:hover .service-link { gap: 10px; }

/* ── How It Works ── */
#how-it-works {
  padding: var(--section-pad);
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

#how-it-works::before {
  content: '';
  position: absolute;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,.06) 0%, transparent 70%);
}

.how-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  height: 100%;
}

.how-step:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(201,168,76,.2);
  transform: translateY(-4px);
}

.how-step-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .4;
  line-height: 1;
  flex-shrink: 0;
  min-width: 60px;
  transition: opacity var(--transition);
}

.how-step:hover .how-step-number { opacity: .8; }

.how-step-content h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.how-step-content p {
  color: rgba(255,255,255,.55);
  font-size: .95rem;
}

/* ── Listings Teaser ── */
#listings {
  padding: var(--section-pad);
  background: var(--white);
}

.listing-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

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

.listing-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.listing-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.listing-price {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(13,27,42,.85);
  backdrop-filter: blur(8px);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.listing-body {
  padding: 24px;
}

.listing-body h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.listing-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.listing-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .85rem;
  color: var(--text-light);
}

.listing-meta-item i { color: var(--gold); font-size: .8rem; }

/* ── Testimonials ── */
#testimonials {
  padding: var(--section-pad);
  background: var(--off-white);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  border: 1px solid var(--gray-200);
  height: 100%;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 6rem;
  color: var(--gold-pale);
  position: absolute;
  top: 8px;
  left: 24px;
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 16px;
}

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

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-author-info .name {
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
}

.testimonial-author-info .detail {
  font-size: .8rem;
  color: var(--text-light);
}

/* ── FAQ Section ── */
#faq {
  padding: var(--section-pad);
  background: var(--white);
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,168,76,.12);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  user-select: none;
  transition: background var(--transition-fast);
}

.faq-question:hover { background: var(--gray-100); }

.faq-item.open .faq-question { background: var(--gold-pale); color: var(--navy); }

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-chevron {
  background: var(--gold);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 24px 24px;
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ── Contact Section ── */
#contact {
  padding: var(--section-pad);
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

#contact::after {
  content: '';
  position: absolute;
  right: -150px;
  bottom: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-info-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item .label {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.contact-info-item .value {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
}

.contact-info-item .value a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-info-item .value a:hover { color: var(--gold); }

/* Contact Form */
.contact-form-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.form-label-custom {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
}

.form-control-custom {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .95rem;
  width: 100%;
  transition: var(--transition);
  font-family: var(--font-body);
}

.form-control-custom::placeholder { color: rgba(255,255,255,.3); }

.form-control-custom:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

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

/* ── Footer ── */
#footer {
  background: #080f1a;
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer-brand .name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand .subtitle {
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-desc {
  color: rgba(255,255,255,.4);
  font-size: .9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer-heading {
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255,255,255,.4);
  font-size: .9rem;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: rgba(255,255,255,.85);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,.06);
  margin: 40px 0 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  color: rgba(255,255,255,.3);
  font-size: .82rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */

/* Floating Button */
#chatbot-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(26,39,68,.4), 0 0 0 0 rgba(201,168,76,.4);
  transition: var(--transition);
  animation: chatbot-ring 3s ease-in-out 2s infinite;
}

@keyframes chatbot-ring {
  0%, 90%, 100% { box-shadow: 0 8px 32px rgba(26,39,68,.4), 0 0 0 0 rgba(201,168,76,.4); }
  45% { box-shadow: 0 8px 32px rgba(26,39,68,.4), 0 0 0 14px rgba(201,168,76,0); }
}

#chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

#chatbot-toggle .icon-chat,
#chatbot-toggle .icon-close {
  position: absolute;
  transition: var(--transition);
  color: var(--white);
  font-size: 1.4rem;
}

#chatbot-toggle .icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(.5);
}

#chatbot-toggle.open .icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(.5);
}

#chatbot-toggle.open .icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Notification badge */
.chatbot-notif {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--white);
  font-size: .7rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: var(--transition);
}

#chatbot-toggle.open .chatbot-notif { display: none; }

/* Chat Window */
#chatbot-window {
  position: fixed;
  bottom: 112px;
  right: 32px;
  z-index: 9998;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: 620px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 80px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(.92) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}

#chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
}

.chat-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4), transparent);
}

.chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,168,76,.3);
}

.chat-header-info .chat-name {
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
}

.chat-header-info .chat-status {
  color: rgba(255,255,255,.6);
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.chat-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.chat-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: .85rem;
}

.chat-action-btn:hover {
  background: rgba(255,255,255,.2);
  color: var(--white);
}

/* Progress Bar */
.chat-progress {
  background: rgba(255,255,255,.1);
  height: 3px;
  border-radius: 0;
  flex-shrink: 0;
}

.chat-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 0 2px 2px 0;
  transition: width .5s ease;
  min-width: 0;
}

/* Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

/* Message Bubbles */
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: msgIn .25s ease;
}

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

.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 700;
  font-family: var(--font-serif);
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: .92rem;
  line-height: 1.55;
  word-break: break-word;
  max-width: 280px;
}

.chat-msg.bot .msg-bubble {
  background: var(--gray-100);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.msg-bubble strong { color: inherit; }
.chat-msg.bot .msg-bubble strong { color: var(--navy); }

/* Typing Indicator */
.chat-msg.typing .msg-bubble {
  padding: 12px 18px;
}

.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typing .9s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .30s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Quick Reply Buttons */
.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  max-width: 300px;
  animation: msgIn .3s ease .1s both;
}

.chat-quick-btn {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  line-height: 1.3;
  font-family: var(--font-body);
}

.chat-quick-btn:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--gold-pale);
  transform: translateX(2px);
}

.chat-quick-btn:active {
  transform: translateX(0);
}

.chat-quick-btn.selected {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-color: transparent;
  color: var(--white);
}

/* Estimate Result Card */
.chat-estimate-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white);
  margin-top: 4px;
  max-width: 300px;
  animation: msgIn .3s ease .15s both;
}

.chat-estimate-card .est-label {
  font-size: .78rem;
  opacity: .65;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

.chat-estimate-card .est-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.chat-estimate-card .est-range {
  font-size: .8rem;
  opacity: .6;
}

/* Input Area */
.chat-input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  flex-shrink: 0;
}

.chat-input-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: .92rem;
  font-family: var(--font-body);
  color: var(--text);
  resize: none;
  outline: none;
  transition: var(--transition-fast);
  max-height: 100px;
  line-height: 1.5;
}

.chat-input:focus {
  border-color: var(--gold);
  background: var(--white);
}

.chat-input::placeholder { color: var(--gray-400); }

.chat-send-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  font-size: .9rem;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-gold);
}

.chat-send-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.chat-footer-text {
  text-align: center;
  font-size: .7rem;
  color: var(--gray-400);
  margin-top: 8px;
}

/* ── Success Toast ── */
.toast-custom {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-dark);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  pointer-events: none;
}

.toast-custom.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-custom i { color: #22c55e; font-size: 1.1rem; }

/* ── Loading Overlay ── */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.loading-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scroll to Top ── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  font-size: .9rem;
}

#scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ── AOS overrides ── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── Responsive ── */
@media (max-width: 992px) {
  :root { --section-pad: 72px 0; }

  #hero { min-height: auto; padding: 130px 0 80px; background-attachment: scroll; }

  .hero-stats-card { margin-top: 40px; }

  .hero-stat-item + .hero-stat-item { border-top: 1px solid rgba(255,255,255,.08); border-left: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px 0; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .hero-cta-group { flex-direction: column; }
  .btn-primary-custom, .btn-secondary-custom { width: 100%; justify-content: center; }

  .stat-card::after { display: none; }

  #chatbot-window { bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%; border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 90vh; }

  #chatbot-toggle { bottom: 20px; right: 20px; }

  .about-badge-card { right: 0; }

  .contact-form-card, .contact-info-card { padding: 24px 20px; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.9rem; }
  .chat-quick-replies { max-width: 100%; }
  .msg-bubble { max-width: 240px; }
}
