/* ========== Theme variables ========== */
:root {
  --background: #030303;
  --foreground: #ffffff;
  --primary: #D4AF37;
  --primary-gradient: linear-gradient(135deg, #EAD38A 0%, #D4AF37 50%, #B89020 100%);
  --primary-foreground: #000000;
  --muted: #1A1A1A;
  --muted-foreground: #A0A0A0;
  --border: rgba(255, 255, 255, 0.08);
  --card: #0A0A0A;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Responsive padding: desktop 120px, tablet 48px, mobile 24px */
  --page-padding-x: 120px;
  --header-padding-x: 64px;
  --section-padding-y: 140px;
}

@media (max-width: 1024px) {
  :root {
    --page-padding-x: 48px;
    --header-padding-x: 32px;
    --section-padding-y: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --page-padding-x: 24px;
    --header-padding-x: 24px;
    --section-padding-y: 60px;
  }
}

/* ========== Global ========== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  position: relative;
  font-family: var(--font-family-body);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

body.nav-open {
  overflow: hidden;
}

.text-gold {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

.page-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
  padding-top: 100px;
  box-sizing: border-box;
}

/* ========== Buttons & blocks ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #000;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 4px 20px rgba(212, 175, 55, 0.15);
}

.btn-outline {
  background-color: rgba(212,175,55,0.05);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-large {
  padding: 16px 40px;
  font-size: 15px;
}

.btn-massive {
  padding: 20px 48px;
  font-size: 16px;
  letter-spacing: 0.1em;
}

.section {
  padding: var(--section-padding-y) var(--page-padding-x);
}

.section-header {
  text-align: center;
  margin-bottom: 100px;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 48px;
  }
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }
  .section-header {
    margin-bottom: 32px;
  }
}

.section-subtitle {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
}

/* ========== Top bar & navigation ========== */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--header-padding-x);
  background-color: #000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 101;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .top-bar-left,
  .top-bar-right {
    gap: 12px;
  }
  .top-bar {
    font-size: 10px;
    padding: 8px var(--header-padding-x);
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px var(--header-padding-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(3,3,3,0.98) 0%, rgba(3,3,3,0.92) 100%);
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
}

.logo-icon {
  height: 100%;
  padding: 8px 11px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.logo-icon img {
  height: 100%;
  width: auto;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
}

.nav {
  display: flex;
  gap: 48px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--foreground);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.nav a:hover,
.nav a.active {
  opacity: 1;
  color: #fff;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
  cursor: pointer;
}

.lang-selector a {
  color: inherit;
}

.lang-selector a.active {
  color: #fff;
  font-weight: 500;
}

.lang-selector .lang-selector-split:last-child {
  display: none;
}

@media (max-width: 1024px) {
  .nav {
    gap: 24px;
  }
}

/* Mobile: hamburger + drawer */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  z-index: 101;
  position: relative;
}

.nav-toggle iconify-icon {
  font-size: 22px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-drawer {
  display: contents;
}

@media (max-width: 768px) {
  .page-container {
    padding-top: 76px;
  }

  .header {
    padding: 16px var(--header-padding-x);
  }

  .logo {
    height: 44px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .header.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: #0a0a0a;
    border-left: 1px solid var(--border);
    padding: 88px 24px 32px;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  }

  .header.nav-open .nav-drawer {
    transform: translateX(0);
  }

  .nav {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .nav a {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

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

  .lang-selector {
    justify-content: center;
  }
}

/* ========== Hero common ========== */
.hero-label {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 2px;
  height: 12px;
  background: var(--primary-gradient);
}

.hero-title {
  font-size: 72px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 32px 0;
  letter-spacing: 0.02em;
}

.hero-title .text-gold {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
}

/* ========== Forms ========== */
.form-input {
  background: #000;
  border: 1px solid var(--border);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-size: 14px;
  display: flex;
  align-items: center;
  font-family: inherit;
}

.form-textarea {
  height: 140px;
  min-height: 140px;
  align-items: flex-start;
  resize: vertical;
}

input.form-input,
select.form-input,
textarea.form-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

input.form-input::placeholder,
textarea.form-input::placeholder {
  color: var(--muted-foreground);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

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

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========== Footer ========== */
.footer {
  background-color: #000;
  padding: 100px var(--page-padding-x) 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-brand p {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.8;
  margin: 24px 0 32px 0;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  text-decoration: none;
}

.social-icon iconify-icon {
  font-size: 18px;
  color: var(--muted-foreground);
}

.footer-legal-first {
  margin-right: 24px;
}

.footer-newsletter .btn iconify-icon.newsletter-btn-icon,
.newsletter-btn-icon {
  font-size: 18px;
  color: #000;
  vertical-align: -3px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 32px 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
}

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

.footer-newsletter h4 {
  margin-top: 0;
}

.footer-newsletter p {
  color: var(--muted-foreground);
  font-size: 14px;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.newsletter-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-input-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.newsletter-input-cell .form-input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border-color: rgba(255,255,255,0.15);
  box-sizing: border-box;
}

.newsletter-input input.form-input {
  display: block;
  outline: none;
  min-height: 44px;
}

.newsletter-input input.form-input::placeholder {
  color: var(--muted-foreground);
}

.newsletter-input input.form-input.is-invalid {
  border-color: rgba(180, 100, 100, 0.85);
}

.newsletter-form-wrap .newsletter-error {
  display: none;
  color: rgba(200, 130, 130, 0.95);
  font-size: 12px;
  margin-top: 2px;
}

.newsletter-form-wrap.is-invalid .newsletter-error {
  display: block;
}

.newsletter-input button {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #666;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px var(--page-padding-x) 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-bottom: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-newsletter {
    grid-column: 1 / -1;
  }
  .footer-links h4 {
    margin-bottom: 20px;
  }
  .footer-links a {
    margin-bottom: 12px;
    font-size: 13px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== Contact block (home & contact page) ========== */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #0A0A0A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text h6 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: var(--muted-foreground);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-text p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 16px;
}

/* ========== Site-wide animation ========== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-in-up {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }

  .animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .animate-on-scroll.animate-delay-1 { transition-delay: 0.1s; }
  .animate-on-scroll.animate-delay-2 { transition-delay: 0.2s; }
  .animate-on-scroll.animate-delay-3 { transition-delay: 0.3s; }
  .animate-on-scroll.animate-delay-4 { transition-delay: 0.4s; }

  .btn:hover,
  .btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
  }

  .btn-outline:hover,
  .btn-outline:focus-visible {
    background-color: rgba(212, 175, 55, 0.15);
  }

  .footer-links a {
    transition: color 0.25s ease, transform 0.2s ease;
  }

  .footer-links a:hover {
    transform: translateX(4px);
  }

  .card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
