/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  color: #3d3d3d;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =====================
   DESIGN TOKENS
   ===================== */
:root {
  --brand:       #6d5371;
  --brand-light: #9b7fa0;
  --brand-pale:  #f0e8f2;
  --dark:        #1a1a1a;
  --text:        #3d3d3d;
  --text-light:  #777;
  --white:       #ffffff;
  --header-h:    72px;
  --max-w:       1200px;
  --t:           0.26s ease;
}

/* =====================
   SKIP LINK
   ===================== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
}

/* =====================
   HEADER
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: var(--header-h);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 0.75rem;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--brand);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.lang-switcher a {
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.45;
  transition: opacity var(--t);
}

.lang-switcher a.lang-active,
.lang-switcher a:hover {
  opacity: 1;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* Slide-in nav (mobile) */
.main-nav {
  position: fixed;
  top: 0;
  right: -110%;
  height: 100%;
  width: min(300px, 82vw);
  background: #fff;
  padding: 1.5rem 1.5rem 2rem;
  z-index: 200;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
}

.main-nav.active {
  right: 0;
}

.nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
  margin-bottom: 2.5rem;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list li a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
  border-bottom: 1px solid var(--brand-pale);
  transition: color var(--t), padding-left var(--t);
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--brand);
  padding-left: 0.5rem;
}

/* Overlay behind nav */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 150;
}

.nav-overlay.active {
  display: block;
}

/* Desktop nav */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    background: transparent;
    right: auto;
    transition: none;
  }

  .nav-close {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 0.1rem;
  }

  .nav-list li a {
    border-bottom: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .nav-list li a:hover,
  .nav-list li a.active {
    padding-left: 0.8rem;
    color: var(--brand);
  }

  .lang-switcher {
    margin-left: 1.25rem;
  }
}

/* =====================
   FLOATING SOCIAL
   ===================== */
.social-floating {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-floating a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  transition: transform var(--t), box-shadow var(--t);
}

.social-floating a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.social-floating img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 22, 0.52);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2.5rem 1.5rem;
  max-width: 680px;
}

.hero-title {
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 1.75rem;
}

.hero-text {
  font-weight: 300;
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.95;
  letter-spacing: 0.035em;
  opacity: 0.9;
  margin-bottom: 2.75rem;
}

.btn-cta {
  display: inline-block;
  padding: 0.85rem 2.75rem;
  border: 1.5px solid rgba(255,255,255,0.85);
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: background var(--t), color var(--t), border-color var(--t);
}

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

/* =====================
   SERVICES GRID
   ===================== */
.services-section {
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover img {
  transform: scale(1.07);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 8, 22, 0.78) 0%,
    rgba(18, 8, 22, 0.4)  50%,
    rgba(0, 0, 0, 0.08)   100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.5rem;
  transition: background var(--t);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(18, 8, 22, 0.88) 0%,
    rgba(18, 8, 22, 0.6)  55%,
    rgba(0, 0, 0, 0.2)    100%
  );
}

.service-card-title {
  font-weight: 400;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.6rem;
}

.service-card-desc {
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.38s ease;
}

.service-card:hover .service-card-desc {
  max-height: 7rem;
  opacity: 1;
}

/* Mobile: single-column or 2-col with no desc */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    aspect-ratio: 1 / 1;
  }

  .service-card-overlay {
    padding: 1rem 0.85rem;
  }

  .service-card-title {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .service-card-desc {
    display: none;
  }
}

/* =====================
   CONTACT SECTION
   ===================== */
.contact-section {
  background: var(--brand-pale);
  padding: 5rem 1.5rem;
  text-align: center;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-weight: 300;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.divider {
  width: 40px;
  height: 1.5px;
  background: var(--brand-light);
  margin: 0 auto 1.5rem;
}

.contact-inner > p {
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color var(--t);
}

.contact-info a:hover {
  color: var(--brand);
}

.contact-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* =====================
   BACK TO TOP
   ===================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--brand);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  transition: color var(--t);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copyright {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
}

.footer-email a {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  transition: color var(--t);
}

.footer-email a:hover {
  color: #fff;
}
