/* =============================================
   1. VARIABLES & RESET (MINIMALIST SALONIA STYLE)
   ============================================= */
:root {
  /* Palette: PURE Monochrome */
  --bg-body: #FFFFFF;
  --text-main: #111111;
  /* Sharp Black */
  --text-light: #666666;
  /* Dark Gray for subtitles */
  --accent-gray: #F5F5F5;
  /* Very subtle gray for hover/sections */

  /* Primary Brand Color (Kept minimal) */
  --brand-black: #000000;

  /* Typography */
  --font-base: 'Inter', "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Spacing */
  --max-width: 1200px;
  --header-height: 80px;
  --section-spacing: 80px;
  /* Reduced from 120px for better standard */

  /* UI Elements */
  --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  color: var(--text-main);
  background: var(--bg-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
  /* Slightly open tracking */
}

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

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

ul {
  list-style: none;
}

/* =============================================
   2. TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--brand-black);
  line-height: 1.3;
  font-weight: 500;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  /* Spaced out headers */
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: block;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* Styles specifically for the "highlight" interaction */
.highlight {
  position: relative;
  display: inline-block;
  color: var(--brand-black);
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--brand-black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.highlight:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* =============================================
   3. UTILITIES & LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-spacing) 0;
  position: relative;
}


/* "Center everything" by default for this style */
.section-header {
  margin-bottom: 5rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  margin-left: auto;
  margin-right: auto;
}

/* Animations - Subtle Fade Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* =============================================
   4. HEADER & NAV
   ============================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  /* Solid white feel */
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

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



.text-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--brand-black);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  height: 28px;
  width: auto;
}

/* Desktop Nav - CLEAN TEXT */
nav.primary-nav {
  display: flex;
  gap: 3rem;
  margin-right: 2rem;
}

nav.primary-nav a {
  font-family: var(--font-base);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

/* Close Button in Drawer */
.drawer-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-black);
  padding: 10px;
}

.drawer-close svg {
  width: 32px;
  height: 32px;
}

/* Underline animation for nav */
nav.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--brand-black);
  transition: var(--transition);
}

nav.primary-nav a:hover::after {
  width: 100%;
}

/* CTA Button - Minimalist Border */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  transition: var(--transition);
}

.cta-btn:hover {
  background: var(--text-main);
  color: #fff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brand-black);
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
nav.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  /* Dot Grid Pattern (Consistent with Hero) */
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Slower, graceful */


nav.drawer.open {
  right: 0;
}

nav.drawer a {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-black);
}

/* =============================================
   5. HERO SECTION
   ============================================= */
#home {
  position: relative;
  min-height: 90vh;
  /* Not full 100vh, allow peek */
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  background: #fff;
  overflow: hidden;
  /* Ensure canvas stays within bounds */
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Very simple hero layout */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: 2rem;
}

.hero-visual {
  display: none;
}

/* Removed illustrative visual for Salonia style */

.hero-grid {
  display: block;
}

/* Reset grid to block for center alignment */

/* =============================================
   5.5 CLIENTS SECTION (Minimal Grid)
   ============================================= */
.section-sm {
  padding: var(--section-spacing) 0;
  /* Standardize specific spacing */
  background: var(--bg-body);
}

.section-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  /* Ensure visible text */
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  align-items: center;
}

.client-logo {
  height: 70px;
  width: auto;
  opacity: 0.3;
  /* Greyed out look */
  filter: grayscale(100%);
  transition: opacity 0.3s;
}

.client-logo:hover {
  opacity: 1;
}

/* =============================================
   6. CARDS & GRIDS (FLAT & CLEAN)
   ============================================= */
.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  /* Larger gap */
}

/* Feature/Service Card - Minimal */
.feature-card {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  /* remove shadow */
  text-align: center;
  /* Center align like Salonia features */
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: transparent;
  padding: 0;
  filter: grayscale(100%);
  /* B&W Icons */
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin: 0 auto;
}

/* Team Card - Clean Image + Text */
.team-card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  border: 1px solid #f0f0f0;
  /* Very subtle border */
  padding: 2rem;
}

.team-content {
  padding: 0;
  text-align: center;
}

.team-role {
  display: block;
  background: transparent;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  padding: 0;
}

/* =============================================
   7. TIMELINE (Simplified List)
   ============================================= */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  border-left: 1px solid #eee;
  /* Thin hairline */
  padding-left: 2rem;
}

.timeline::after {
  display: none;
}

/* Remove center line */
.timeline-item {
  width: 100%;
  padding: 0 0 3rem 0;
  left: 0 !important;
  text-align: left !important;
}

.timeline-item::after {
  left: -2.35rem;
  width: 10px;
  height: 10px;
  background: #000;
  border: none;
}

.timeline-content {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* =============================================
   8. CONTACT (Minimal)
   ============================================= */
.contact-section {
  text-align: center;
  background-color: #111111;
  /* Signal Pattern: Concentric circles */
  background-image: repeating-radial-gradient(circle at center,
      #222 0px,
      #222 1px,
      #111 1px,
      #111 40px);
  color: #ffffff;
  margin: 4rem auto;
  padding: 6rem 1rem;
  /* Increased padding for more presence */
  border-top: none;
  border-bottom: none;
  border-radius: 0;
}

.contact-section h2 {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.contact-section p {
  color: #cccccc;
  position: relative;
  z-index: 1;
}

.contact-actions {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  /* NEW: Allow wrapping */
  justify-content: center;
  gap: 1.5rem;
  /* NEW: Ensure consistent gap */
}

.btn-white {
  background: #ffffff;
  color: var(--brand-black);
  padding: 1rem 3rem;
  border-radius: 0;
  /* Square buttons */
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.btn-white:hover {
  background: #e5e5e5;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =============================================
   9. FOOTER
   ============================================= */
footer {
  background: #fff;
  /* Dot Grid Pattern */
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-main);
  padding: 4rem 0;
  border-top: 1px solid #eee;
}

footer a {
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

footer a:hover {
  color: var(--brand-black);
  text-decoration: underline;
}

/* Back to Top - Square */
/* Back to Top - Square */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--brand-black);
  color: #fff;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--text-main);
  transform: translateY(-5px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

/* =============================================
   10. RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .grid-cols-3 {
    gap: 2rem;
  }
}

@media (max-width: 768px) {

  nav.primary-nav,
  .header-inner .cta-btn {
    /* Only hide the CTA in the header */
    display: none;
  }

  /* Reset section spacing for mobile */
  .section {
    padding: 60px 0;
  }

  .section-sm {
    padding: 40px 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}