/*
Theme Name: ProServe Latvia
Theme URI: https://proserve.lv
Author: ProServe Latvia
Author URI: https://proserve.lv
Description: Elegant black and gold theme for ProServe Latvia — Business, Investment & Immigration Consultants.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: proserve
*/

/* ─── CSS VARIABLES ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:       #0a0a0a;
  --black-rich:  #111111;
  --black-card:  #161616;
  --black-soft:  #1e1e1e;
  --gold:        #c8a951;
  --gold-light:  #e2c26e;
  --gold-pale:   #f0dda0;
  --gold-dim:    rgba(200,169,81,0.15);
  --white:       #ffffff;
  --off-white:   #f5f0e8;
  --muted:       #7a7a7a;
  --border:      rgba(200,169,81,0.18);
  --border-soft: rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--black);
  color: var(--off-white);
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ─── NAV ─── */
nav#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 64px;
  transition: all 0.4s ease;
}
nav#site-nav.stuck {
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--border);
  padding: 18px 64px;
  backdrop-filter: blur(12px);
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark::before {
  content: 'P';
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--gold);
}
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.08em; color: var(--white); }
.logo-text span { color: var(--gold); }
.logo-sub { font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.67rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-btn { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--black); background: var(--gold); border: none; padding: 12px 28px; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.3s, transform 0.2s; }
.nav-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 64px 80px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 70% at 72% 45%, rgba(200,169,81,0.05) 0%, transparent 65%), radial-gradient(ellipse 30% 40% at 15% 80%, rgba(200,169,81,0.04) 0%, transparent 60%), var(--black); }
.hero-deco { position: absolute; top: 0; right: 0; width: 460px; height: 460px; pointer-events: none; }
.hero-deco svg { width: 100%; height: 100%; opacity: 0.08; }
.hero-deco-bl { position: absolute; bottom: 60px; left: 0; width: 220px; height: 220px; pointer-events: none; }
.hero-deco-bl svg { width: 100%; height: 100%; opacity: 0.05; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 30px; animation: fadeUp 1s ease both; }
.eyebrow-line { width: 36px; height: 1px; background: var(--gold); }
h1.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 5.5vw, 5.2rem); font-weight: 700; line-height: 1.07; letter-spacing: -0.01em; margin-bottom: 30px; animation: fadeUp 1s 0.1s ease both; }
h1.hero-title em { font-style: italic; color: var(--gold); }
.hero-body { font-size: 0.9rem; font-weight: 300; line-height: 2; color: var(--muted); max-width: 500px; margin-bottom: 50px; animation: fadeUp 1s 0.2s ease both; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; animation: fadeUp 1s 0.3s ease both; }
.btn-gold { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--black); background: var(--gold); border: none; padding: 16px 42px; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.3s, transform 0.2s; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--off-white); background: transparent; border: 1px solid var(--border-soft); padding: 16px 42px; cursor: pointer; text-decoration: none; display: inline-block; transition: border-color 0.3s, color 0.3s; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-badge { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); width: 168px; height: 168px; border: 1px solid var(--border); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; animation: fadeUp 1s 0.4s ease both; z-index: 2; }
.badge-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.badge-label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.hero-stats { position: absolute; bottom: 52px; left: 64px; right: 64px; display: flex; gap: 0; border-top: 1px solid var(--border); padding-top: 36px; animation: fadeUp 1s 0.5s ease both; }
.hero-stat { flex: 1; padding: 0 40px 0 0; border-right: 1px solid var(--border); }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }
.stat-val { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-desc { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ─── SHARED ─── */
section { position: relative; z-index: 1; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.section-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
h2.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
h2.section-title em { font-style: italic; color: var(--gold); }
.section-body { font-size: 0.83rem; font-weight: 300; line-height: 1.95; color: var(--muted); }
.gold-divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); }

/* ─── WHY LATVIA ─── */
.why { padding: 120px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.why-list { margin-top: 28px; display: flex; flex-direction: column; gap: 0; }
.why-item { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border-soft); transition: padding-left 0.3s; }
.why-item:hover { padding-left: 8px; }
.why-item:first-child { border-top: 1px solid var(--border-soft); }
.why-tick { color: var(--gold); font-size: 0.7rem; margin-top: 3px; flex-shrink: 0; }
.why-text { font-size: 0.82rem; font-weight: 400; line-height: 1.6; color: var(--off-white); }
.why-visual { position: relative; }
.why-card-main { background: var(--black-card); border: 1px solid var(--border); padding: 52px 48px; }
.why-card-main h3 { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 600; line-height: 1.3; margin-bottom: 20px; }
.why-card-main p { font-size: 0.8rem; line-height: 1.9; color: var(--muted); }
.why-tag { display: inline-block; margin-top: 28px; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border); padding: 8px 18px; }
.why-card-accent { position: absolute; bottom: -24px; right: -24px; background: var(--gold); padding: 24px 32px; }
.why-card-accent-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--black); line-height: 1; }
.why-card-accent-label { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0,0,0,0.6); margin-top: 4px; }

/* ─── SERVICES ─── */
.services { padding: 120px 64px; background: var(--black-rich); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 70px; gap: 40px; }
.services-intro { font-size: 0.82rem; line-height: 1.9; color: var(--muted); max-width: 380px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.svc-card { background: var(--black-card); padding: 52px 42px; border-top: 2px solid transparent; transition: border-color 0.3s, transform 0.3s, background 0.3s; }
.svc-card:hover { border-top-color: var(--gold); transform: translateY(-6px); background: var(--black-soft); }
.svc-num { font-family: 'Playfair Display', serif; font-size: 0.85rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 30px; }
.svc-icon { width: 42px; height: 42px; margin-bottom: 26px; }
.svc-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; line-height: 1.25; margin-bottom: 16px; }
.svc-desc { font-size: 0.78rem; line-height: 1.85; color: var(--muted); margin-bottom: 30px; }
.svc-price { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); border-top: 1px solid var(--border); padding-top: 20px; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--off-white); text-decoration: none; transition: color 0.3s, gap 0.3s; }
.svc-link:hover { color: var(--gold); gap: 14px; }
.svc-link::after { content: '→'; }

/* ─── RESIDENCY ─── */
.residency { padding: 120px 64px; }
.residency-header { text-align: center; margin-bottom: 70px; }
.residency-header .section-eyebrow { justify-content: center; }
.residency-header .section-eyebrow::before { display: none; }
.residency-header .section-eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
.residency-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.res-card { background: var(--black-card); border: 1px solid var(--border-soft); padding: 36px 30px; transition: border-color 0.3s, transform 0.3s; text-decoration: none; color: inherit; display: block; }
.res-card:hover { border-color: var(--border); transform: translateY(-4px); }
.res-icon { font-size: 1.4rem; margin-bottom: 18px; display: block; }
.res-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.res-desc { font-size: 0.73rem; line-height: 1.75; color: var(--muted); }
.res-tag { display: inline-block; margin-top: 18px; font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border); padding: 5px 12px; }

/* ─── ABOUT ─── */
.about { padding: 120px 64px; background: var(--black-rich); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-visual { position: relative; }
.about-box { background: var(--black-card); border: 1px solid var(--border); padding: 56px 52px; }
.about-quote { font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--gold); opacity: 0.25; line-height: 0; position: absolute; top: 28px; left: 28px; }
.about-quote-text { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-style: italic; line-height: 1.75; color: var(--off-white); margin-top: 20px; }
.about-author { margin-top: 30px; display: flex; align-items: center; gap: 16px; }
.about-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-dim); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--gold); }
.about-author-name { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; }
.about-author-role { font-size: 0.68rem; color: var(--muted); margin-top: 3px; }
.about-accent { position: absolute; top: -20px; right: -20px; background: var(--gold); padding: 20px 26px; }
.about-accent-text { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--black); }
.about-accent-sub { font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0,0,0,0.55); margin-top: 3px; }
.about-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-list-item { display: flex; align-items: flex-start; gap: 14px; font-size: 0.82rem; line-height: 1.6; color: var(--off-white); }
.about-list-dot { color: var(--gold); flex-shrink: 0; font-size: 0.5rem; margin-top: 6px; }

/* ─── PROCESS ─── */
.process { padding: 120px 64px; }
.process-header { text-align: center; margin-bottom: 80px; }
.process-header .section-eyebrow { justify-content: center; }
.process-header .section-eyebrow::before { display: none; }
.process-header .section-eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(to right, var(--gold) 0%, rgba(200,169,81,0.2) 100%); }
.step { padding: 0 32px 0 0; }
.step:last-child { padding-right: 0; }
.step-num { width: 72px; height: 72px; background: var(--black-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--gold); margin-bottom: 28px; }
.step-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.step-desc { font-size: 0.76rem; line-height: 1.8; color: var(--muted); }

/* ─── DISCLAIMER ─── */
.disclaimer-band { background: var(--black-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 64px; display: flex; align-items: flex-start; gap: 20px; }
.disclaimer-icon { color: var(--gold); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.disclaimer-text { font-size: 0.7rem; line-height: 1.75; color: var(--muted); }
.disclaimer-text strong { color: var(--off-white); font-weight: 500; }

/* ─── CONTACT ─── */
.contact { padding: 120px 64px; background: var(--black-rich); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contact-tagline { font-size: 0.8rem; line-height: 1.9; color: var(--muted); margin-bottom: 48px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.contact-detail-item { display: flex; align-items: center; gap: 18px; font-size: 0.8rem; color: var(--off-white); }
.contact-detail-icon { width: 38px; height: 38px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 0.85rem; flex-shrink: 0; }
.imc-badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); padding: 12px 20px; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.imc-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.form-input, .form-select, .form-textarea { background: var(--black-card); border: 1px solid rgba(255,255,255,0.08); color: var(--off-white); padding: 14px 18px; font-family: 'Raleway', sans-serif; font-size: 0.8rem; outline: none; width: 100%; transition: border-color 0.3s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a7a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-textarea { resize: none; height: 110px; }
::placeholder { color: rgba(122,122,122,0.5); }
.form-submit { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--black); background: var(--gold); border: none; padding: 16px; cursor: pointer; transition: background 0.3s, transform 0.2s; margin-top: 6px; width: 100%; }
.form-submit:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ─── FOOTER ─── */
footer#site-footer { background: #050505; border-top: 1px solid var(--border); }
.footer-top { padding: 60px 64px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-logo-text span { color: var(--gold); }
.footer-tagline { font-size: 0.73rem; line-height: 1.8; color: var(--muted); margin-bottom: 24px; }
.footer-since { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border); padding: 8px 16px; display: inline-block; }
.footer-col-title { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.75rem; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 24px 64px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.65rem; color: var(--muted); }
.footer-address { font-size: 0.65rem; color: var(--muted); text-align: right; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  nav#site-nav { padding: 22px 32px; }
  nav#site-nav.stuck { padding: 16px 32px; }
  .hero { padding: 120px 32px 160px; }
  .hero-badge { display: none; }
  .hero-stats { left: 32px; right: 32px; flex-wrap: wrap; gap: 24px; }
  .why, .about, .contact { padding: 80px 32px; grid-template-columns: 1fr; gap: 50px; }
  .services, .residency, .process { padding: 80px 32px; }
  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .residency-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 32px; }
  .footer-bottom { padding: 20px 32px; flex-direction: column; gap: 8px; text-align: center; }
  .disclaimer-band { padding: 24px 32px; }
  .why-card-accent { display: none; }
}
@media (max-width: 600px) {
  .residency-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-stats { display: none; }
}
