/* ==========================================================================
   AW2S — DIGITAL ARCHITECTURE & STRATEGY (BY ALISON DJ/VJ)
   Obsidian & Gold Luxury Design System (AL Marketing Digital Standard)
   - Sharp Corners & High Contrast
   - Cormorant Garamond & Playfair Luxury Serif Typography
   - Manrope Sans & JetBrains Mono Tech Typography
   - Zero Cumulative Layout Shift (CLS)
   - 100% Mobile Responsive & Ultralight
   ========================================================================== */

:root {
  /* Dark Mode (Default Obsidian Luxury) */
  --bg-body: #050505;
  --bg-card: #0f0f0f;
  --bg-card-hover: #171717;
  --bg-header: rgba(5, 5, 5, 0.94);
  --bg-glass: rgba(18, 18, 18, 0.88);
  
  --color-gold: #c8a96e;
  --color-gold-hover: #e5c158;
  --color-gold-dark: #9a7a3b;
  --color-gold-glow: rgba(200, 169, 110, 0.18);
  
  --text-main: #f5f2ec;
  --text-muted: #a39e93;
  --text-light: #736f66;
  
  --border-color: rgba(200, 169, 110, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: #c8a96e;
  
  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 28px rgba(200, 169, 110, 0.22);

  --font-heading: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 84px;
}

[data-theme="light"] {
  --bg-body: #faf8f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f4efe6;
  --bg-header: rgba(250, 248, 245, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.94);
  
  --color-gold: #b38f4d;
  --color-gold-hover: #987538;
  --color-gold-dark: #82622b;
  --color-gold-glow: rgba(179, 143, 77, 0.12);
  
  --text-main: #141312;
  --text-muted: #5e594f;
  --text-light: #8c8577;
  
  --border-color: rgba(179, 143, 77, 0.3);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: #b38f4d;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(179, 143, 77, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 32px;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-gold);
  color: #050505;
  border-color: var(--color-gold);
  box-shadow: 0 4px 20px var(--color-gold-glow);
}

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(229, 193, 88, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(200, 169, 110, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  background: linear-gradient(to bottom, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.5) 70%, transparent 100%);
}

.site-header.scrolled {
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.brand-logo .logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.site-header.scrolled .brand-logo .logo-img {
  height: 42px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-gold);
}

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

.nav-cta-btn {
  border: 1px solid var(--color-gold) !important;
  color: var(--color-gold) !important;
  padding: 8px 18px !important;
  font-weight: 600;
}

.nav-cta-btn:hover {
  background-color: var(--color-gold);
  color: #050505 !important;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--color-gold);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background-color: var(--color-gold);
  color: #050505;
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger-btn svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 160px 0 90px 0;
  background: radial-gradient(circle at 75% 25%, rgba(200, 169, 110, 0.12) 0%, transparent 60%),
              linear-gradient(to bottom, #050505 0%, #0a0a0a 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(200, 169, 110, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 169, 110, 0); }
}

.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-title em {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-gold);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--color-gold);
  line-height: 1.1;
}

.metric-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero Visual Card */
.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  border-top: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
}

.hero-visual-card::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 80px;
  height: 80px;
  border-bottom: 2px solid var(--color-gold);
  border-left: 2px solid var(--color-gold);
}

.profile-tagline {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 24px;
}

.profile-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.profile-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.profile-features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.profile-direct-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.profile-direct-links a {
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-direct-links a:hover {
  color: var(--color-gold-hover);
  text-decoration: underline;
}

/* ==========================================================================
   PORTFOLIO & CASES SECTION
   ========================================================================== */
.section {
  padding: 110px 0;
  position: relative;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--color-gold);
  color: #050505;
  background-color: var(--color-gold);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.case-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #000;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-img-wrap img {
  transform: scale(1.05);
}

.case-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(5, 5, 5, 0.85);
  border: 1px solid var(--border-color);
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
}

.case-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-title {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.case-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border: 1px solid var(--border-subtle);
}

.case-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  background: transparent;
  transition: var(--transition);
}

.case-link-btn:hover {
  background: var(--color-gold);
  color: #050505;
}

/* ==========================================================================
   SERVICES & SOLUTIONS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--color-gold);
  margin-bottom: 24px;
  background: rgba(200, 169, 110, 0.06);
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   EDITORIAL & TECH ARTICLES
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  border-color: var(--border-color);
  transform: translateY(-4px);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.article-title {
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.25;
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.article-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.article-btn:hover {
  color: var(--color-gold-hover);
  text-decoration: underline;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background: radial-gradient(circle at 50% 50%, rgba(200, 169, 110, 0.08) 0%, #050505 80%);
  border-top: 1px solid var(--border-subtle);
}

.contact-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: clamp(36px, 6vw, 64px);
  box-shadow: var(--shadow-card);
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.channel-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.channel-card:hover {
  border-color: var(--color-gold);
  background: rgba(200, 169, 110, 0.04);
}

.channel-card-icon {
  color: var(--color-gold);
  margin-bottom: 12px;
}

.channel-card h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.channel-card p {
  font-size: 1.05rem;
  color: var(--text-main);
}

/* ==========================================================================
   FLOATING ACTIONS & FOOTER
   ========================================================================== */
.floating-actions-lux {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whatsapp-float-lux, .instagram-float-lux {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}

.whatsapp-float-lux {
  background-color: var(--color-gold);
  color: #050505;
  border: 1px solid var(--color-gold-hover);
}

.whatsapp-float-lux:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-3px) scale(1.03);
}

.instagram-float-lux {
  background-color: #111;
  color: #f5f2ec;
  border: 1px solid var(--border-color);
}

.instagram-float-lux:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-3px) scale(1.03);
}

.whatsapp-float-lux svg, .instagram-float-lux svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer {
  background-color: #030303;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px 0;
  color: var(--text-muted);
}

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

.footer-brand .logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

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

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* Modal for reading articles */
.article-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.article-modal.active {
  display: flex;
}

.article-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--color-gold);
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: var(--color-gold);
  color: #000;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-body);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-wrapper.active {
    transform: translateX(0);
  }
  .main-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }
  .hamburger-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
