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

:root {
  --charcoal: #1a1a1a;
  --warm-white: #f5f2ed;
  --stone: #d4cdc4;
  --accent: #8b7355;
  --accent-light: #a89175;
  --text-dark: #2c2c2c;
  --text-mid: #5a5a5a;
  --text-light: #8a8a8a;
  --border: #e0dbd4;
  --bg-section: #faf8f5;
}

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

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

body {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── PRELOADER ─── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  animation: preload 1s ease-in-out infinite;
}
@keyframes preload {
  0%, 100% { transform: scaleX(0.3); opacity: 0.3; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 3rem;
  box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 36px;
  transition: height 0.4s ease;
}
.nav.scrolled .nav-logo img {
  height: 28px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 0.4rem 1rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-toggle:hover {
  border-color: var(--accent-light);
  color: #fff;
  background: rgba(139,115,85,0.15);
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(26,26,26,0.97) 0%, rgba(40,35,28,0.92) 50%, rgba(26,26,26,0.97) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(139,115,85,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,115,85,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}
.hero-logo {
  width: 180px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUpNormal 1s ease 0.3s forwards;
}
.hero-title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUpNormal 1s ease 0.6s forwards;
}
.hero-subtitle {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: var(--stone);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUpNormal 1s ease 0.9s forwards;
}
.hero-line {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUpNormal 1s ease 1.1s forwards;
}
.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.4s ease;
  opacity: 0;
  animation: fadeUpNormal 1s ease 1.3s forwards;
}
.hero-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.6s forwards;
  width: auto;
  text-align: center;
}
.hero-scroll span {
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

/* ─── SECTIONS ─── */
section {
  padding: 6rem 3rem;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 2rem;
}

/* ─── ABOUT ─── */
.about {
  background: var(--warm-white);
}
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  max-width: 380px;
  filter: grayscale(0.1);
  display: block;
}
.about-image::before {
  content: "";
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  max-width: 380px;
  height: 100%;
  border: 1px solid var(--accent);
  z-index: -1;
}
.credential-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.credential {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.credential-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── SERVICES ─── */
.services {
  background: var(--bg-section);
}
.services-container {
  max-width: 1100px;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.service-card {
  padding: 2.5rem 2rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.service-card:hover::before {
  width: 100%;
}
.service-number {
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  color: var(--stone);
  margin-bottom: 1.25rem;
  line-height: 1;
}
.service-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── CONTACT ─── */
.contact {
  background: var(--warm-white);
}
.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.contact-info-block {
  margin-top: 2rem;
}
.contact-item {
  margin-bottom: 1.5rem;
}
.contact-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.contact-item-value {
  font-size: 1rem;
  color: var(--text-dark);
}
.contact-item-value a {
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease;
}
.contact-item-value a:hover {
  border-color: var(--accent);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-section);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}
.form-group textarea {
  min-height: 120px;
}
.submit-btn {
  align-self: flex-start;
  padding: 0.85rem 2.5rem;
  background: var(--charcoal);
  color: #fff;
  border: none;
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
}
.submit-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ─── CLIENTS ─── */
.clients {
  background: var(--bg-section);
  padding: 4rem 3rem;
}
.clients-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.clients-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}
.clients-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}
.client-name {
  font-family: "DM Serif Display", serif;
  font-size: 1.15rem;
  color: var(--text-light);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.client-name:hover {
  color: var(--accent);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 3rem;
  text-align: center;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-text {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.footer-logo img {
  height: 24px;
  opacity: 0.4;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MOBILE NAV OVERLAY ─── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.98);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: 0.75rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  section { padding: 4rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image { order: -1; text-align: center; }
  .about-image::before { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-container { grid-template-columns: 1fr; gap: 3rem; }
  .footer-content { flex-direction: column; gap: 1rem; }
  .hero { min-height: 600px; }
  .hero-logo { width: 130px; }
  .clients-row { gap: 1.5rem 2.5rem; }
}
