/* ==========================================================================
   APPBERTH COMMUNICATIONS | LUXURY PR & BRAND STRATEGY DESIGN SYSTEM
   Inspired by The Qode Luxury Agency Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #0b0b0c;
  --bg-surface: #121215;
  --bg-surface-hover: #1a1a1e;
  --bg-card: rgba(20, 20, 24, 0.65);
  
  --accent-gold: #c5a059;
  --accent-gold-light: #e5c175;
  --accent-gold-dim: rgba(197, 160, 89, 0.15);
  --accent-gold-glow: rgba(197, 160, 89, 0.3);
  
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(197, 160, 89, 0.35);
  
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  
  --container-max: 1320px;
  --nav-height: 90px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  letter-spacing: 0.01em;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

p.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Selection */
::selection {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7.5rem 0;
  position: relative;
}

.section-sm {
  padding: 4.5rem 0;
}

/* Sub-heading Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.section-badge::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--accent-gold);
}

/* Section Headers & Centered Alignment Utilities */
.section-header {
  margin-bottom: 4rem;
}

.text-center {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.text-center .section-badge::before {
  display: none;
}

/* Ensure buttons in text-center containers center properly */
.text-center .btn-primary {
  margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--transition-smooth), backdrop-filter var(--transition-smooth), height var(--transition-smooth), border-bottom var(--transition-smooth);
}

.site-header.scrolled {
  background-color: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 75px;
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand-logo span.dot {
  color: var(--accent-gold);
}

.brand-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  margin-top: -4px;
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.85rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-gold-glow), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.15);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-solid {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  border-color: var(--accent-gold);
  font-weight: 600;
}

.btn-solid:hover {
  background-color: var(--accent-gold-light);
  color: var(--bg-dark);
  border-color: var(--accent-gold-light);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Overlay Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1100;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.75rem;
  cursor: pointer;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  display: block;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--accent-gold);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 2rem);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: grayscale(40%) contrast(110%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(197, 160, 89, 0.12) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(11, 11, 12, 0.6) 0%, var(--bg-dark) 95%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 920px;
}

.hero-title {
  margin-bottom: 1.75rem;
}

.hero-title .gold-text {
  color: var(--accent-gold);
  font-style: italic;
}

.hero-description {
  font-size: 1.35rem;
  max-width: 680px;
  margin-bottom: 2.75rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  color: var(--accent-gold);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* ==========================================================================
   CARDS & GRID LAYOUTS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

/* Luxury Card */
.card-luxury {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 3rem 2.25rem;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.card-luxury::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  transition: width var(--transition-smooth);
}

.card-luxury:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(197, 160, 89, 0.08);
}

.card-luxury:hover::after {
  width: 100%;
}

.card-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: rgba(197, 160, 89, 0.4);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: 1rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-top: 1.5rem;
}

.card-link svg {
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   MANIFESTO & FEATURED SECTIONS
   ========================================================================== */
.manifesto-box {
  border-left: 2px solid var(--accent-gold);
  padding: 1.5rem 0 1.5rem 2.5rem;
  margin: 2rem 0;
}

.manifesto-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Image Card Showcase */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(105%) brightness(95%);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.image-wrapper:hover img {
  transform: scale(1.04);
  filter: contrast(110%) brightness(100%);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.8) 0%, transparent 60%);
}

/* Stats Counter Grid */
.stat-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

/* Timeline Process */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent-gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 3rem;
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 3rem;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -6px;
}

.timeline-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  width: 100%;
}

/* ==========================================================================
   INTERACTIVE SERVICES CALCULATOR
   ========================================================================== */
.calculator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  padding: 3rem;
  margin-top: 3rem;
  position: relative;
}

.calc-step {
  margin-bottom: 2rem;
}

.calc-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: block;
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.calc-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-btn.selected, .calc-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
  background: var(--accent-gold-dim);
}

.calc-result {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.calc-result-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-primary);
}

/* ==========================================================================
   FORMS & INPUTS (CONTACT)
   ========================================================================== */
.form-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1.15rem 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

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

.form-status {
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  border-radius: 2px;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #070708;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .brand-logo {
  margin-bottom: 1.25rem;
}

.footer-desc {
  max-width: 320px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-right: none;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

.newsletter-btn {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  padding: 0 1.25rem;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.newsletter-btn:hover {
  background: var(--accent-gold-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 3.5rem;
    padding-right: 0;
  }
  .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
    left: 14px;
    right: auto;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
