/* ==========================================================================
   STRANGE NOMAD GROUP — MASTER STYLESHEET
   Building Legacy · Serving Purpose · Impacting Futures
   Pure Vanilla CSS Architecture
   ========================================================================== */

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

:root {
  /* Core Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-surface: #181818;
  --bg-footer: #060606;

  /* Accent Colors */
  --accent: #e87320;
  --accent-hover: #ff852e;
  --accent-dark: #b8540c;
  --accent-glow: rgba(232, 115, 32, 0.25);
  --accent-subtle: rgba(232, 115, 32, 0.12);

  /* Text & Accents */
  --text-pure: #ffffff;
  --text-main: #f5f5f5;
  --text-light: #e0e0e0;
  --text-muted: #999999;
  --text-dim: #666666;
  --text-faint: rgba(255, 255, 255, 0.25);

  /* Borders & Dividers */
  --border-ultra-subtle: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.25);

  /* Nav Header (Light Aesthetic) */
  --nav-bg: #ffffff;
  --nav-text: #2d2d2d;
  --nav-border: #e5e5e5;
  --nav-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 20px 50px rgba(0, 0, 0, 0.7);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent-glow);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  padding: 0 clamp(16px, 4vw, 56px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--nav-shadow);
  transition: background var(--transition-fast);
}

.snav-brand {
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.snav-brand img {
  height: 46px;
  width: auto;
  display: block;
}

.snav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.snav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--nav-text);
  cursor: pointer;
  letter-spacing: 0.01em;
  user-select: none;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.snav-link:hover {
  color: var(--accent);
}

.snav-link.active {
  font-weight: 600;
  color: var(--accent);
}

.snav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.snav-cta-desktop {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.snav-cta-desktop:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.snav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  color: var(--nav-text);
}

.snav-burger svg {
  display: block;
}

.snav-drawer {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  flex-direction: column;
  padding: 12px 0 20px;
  z-index: 899;
  animation: slideDown 0.25s ease forwards;
}

.snav-drawer.snav-open {
  display: flex;
}

.snav-drawer-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--nav-text);
  padding: 14px clamp(16px, 4vw, 56px);
  border-left: 3px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.snav-drawer-link:hover,
.snav-drawer-link.active {
  background: rgba(232, 115, 32, 0.05);
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

.snav-drawer-cta {
  display: block;
  margin: 12px clamp(16px, 4vw, 56px) 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px;
  text-align: center;
  transition: background var(--transition-fast);
}

.snav-drawer-cta:hover {
  background: var(--accent-hover);
}

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

@media (max-width: 900px) {
  .snav-links {
    display: none;
  }
  .snav-cta-desktop {
    display: none;
  }
  .snav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 56px clamp(16px, 5vw, 80px) 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 44px;
}

.footer-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.footer-mantra {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-desc {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 300;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-address {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 12px;
  font-weight: 300;
}

.footer-contact-item {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 300;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid var(--border-ultra-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #555;
  font-weight: 300;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal-link {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #555;
  cursor: pointer;
  font-weight: 300;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: #888;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITY CLASSES
   ========================================================================== */

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.heading-display {
  font-family: var(--font-serif);
  font-size: clamp(36px, 8vw, 76px);
  font-weight: 400;
  color: #f5f5f5;
  line-height: 1.06;
  text-wrap: pretty;
}

.heading-section {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 400;
  color: #f0f0f0;
  line-height: 1.12;
}

.heading-card {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: #e8e8e8;
}

.body-lead {
  font-family: var(--font-sans);
  font-size: 16px;
  color: rgba(245, 245, 245, 0.6);
  line-height: 1.75;
  font-weight: 300;
}

.body-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #aaa;
  line-height: 1.9;
  font-weight: 300;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 40px;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: rgba(245, 245, 245, 0.85);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 40px;
  border: 1px solid rgba(245, 245, 245, 0.22);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn-ghost-arrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2px;
  display: inline-block;
  transition: color var(--transition-fast), border-color var(--transition-fast), padding var(--transition-fast);
}

.btn-ghost-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  padding-left: 4px;
}

/* Badges */
.badge-selling-fast {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}

.badge-new {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.badge-available {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #ffffff;
  color: #111111;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}

/* Architectural 1px Grid Container */
.grid-monolith {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
}

.grid-monolith > * {
  background: var(--bg-primary);
}

/* Hero Containers */
.hero-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 8vw, 48px) clamp(20px, 6vw, 80px);
}

.hero-mantra-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(12px, 4vw, 16px) clamp(16px, 4vw, 56px);
  display: flex;
  justify-content: center;
  gap: clamp(12px, 4vw, 56px);
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

.hero-mantra-item {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
}

.hero-mantra-dot {
  color: rgba(255, 255, 255, 0.12);
}

/* Sections */
.section-dark {
  background: var(--bg-primary);
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 80px);
}

.section-charcoal {
  background: var(--bg-secondary);
  padding: clamp(48px, 8vw, 96px) clamp(16px, 6vw, 80px);
}

.container-standard {
  max-width: 1100px;
  margin: 0 auto;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  color: #ccc;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #191919;
  border-left: 3px solid var(--accent);
  color: #fff;
  padding: 14px 20px;
  font-size: 13px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  animation: toastIn 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.toast-success {
  border-left-color: #10b981;
}

.toast.toast-error {
  border-left-color: #ef4444;
}

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

/* Modal System */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease forwards;
}

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

.modal-dialog {
  background: #121212;
  border: 1px solid var(--border-medium);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-elevated);
  animation: modalScale 0.25s ease forwards;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
