/* ============================================
   GALEAS ARQUITECTOS — Landing Page
   Light luxury theme · Refined architecture
   ============================================ */

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

:root {
  --bg-primary: #faf9f6;
  --bg-secondary: #f2f0ec;
  --bg-card: #ffffff;
  --bg-dark: #1a1a1a;
  --accent: #8b734a;
  --accent-hover: #725e3a;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --border: rgba(139, 115, 74, 0.2);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --font: 'Montserrat', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

em {
  font-style: italic;
  color: var(--accent);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Section Labels --- */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  transition: color 0.3s;
}

.hero .logo-text,
.nav:not(.scrolled) .logo-text {
  color: #ffffff;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  color: var(--accent);
  margin-top: 2px;
}

.nav:not(.scrolled) .logo-sub {
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.7);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav:not(.scrolled) .nav-links a:hover {
  color: #ffffff;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.nav:not(.scrolled) .nav-toggle span {
  background: #ffffff;
}

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

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

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

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url('images/hero.jpg')
    center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.35) 0%,
    rgba(26, 26, 26, 0.55) 60%,
    rgba(250, 249, 246, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.3s forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-line {
  display: block;
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.5s; }
.hero-line:nth-child(2) { animation-delay: 0.7s; }
.hero-line:nth-child(3) { animation-delay: 0.9s; }

.hero-line--accent {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  font-style: italic;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.1s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.3s forwards;
}

.hero-cta:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #ffffff;
}

.hero-scroll {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.6s forwards;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Rebrand Banner --- */
.rebrand {
  padding: 1.75rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.rebrand-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
}

.rebrand-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.rebrand-inner p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* --- About --- */
.about {
  padding: 8rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Services --- */
.services {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.5s var(--ease);
  position: relative;
  cursor: default;
  border-radius: 3px;
}

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

.service-card:hover .service-number {
  color: var(--accent);
}

.service-card:hover .service-line {
  width: 60px;
  background: var(--accent);
}

.service-number {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.service-line {
  width: 30px;
  height: 1px;
  background: var(--text-muted);
  transition: all 0.5s var(--ease);
}

/* --- Projects --- */
.projects {
  padding: 8rem 0;
  overflow: hidden;
}

.projects .container {
  margin-bottom: 3rem;
}

.projects-marquee {
  width: 100%;
  overflow: hidden;
  cursor: grab;
}

.projects-marquee:active {
  cursor: grabbing;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 2rem;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.project-card {
  flex-shrink: 0;
  width: 380px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: var(--shadow-md);
}

.project-image {
  width: 100%;
  height: 480px;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, transparent 100%);
}

.project-category {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
  display: block;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #ffffff;
}

/* --- Contact --- */
.contact {
  padding: 8rem 0;
  background: var(--bg-dark);
  color: #ffffff;
}

.contact .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.contact .section-label::before {
  background: rgba(255, 255, 255, 0.3);
}

.contact .section-title {
  color: #ffffff;
}

.contact .section-title em {
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
}

.contact-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
  line-height: 1.6;
}

a.contact-value:hover {
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  padding: 2.5rem 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer .logo-text {
  color: #ffffff;
  font-size: 1rem;
}

.footer .logo-sub {
  color: rgba(255, 255, 255, 0.4);
}

.footer-copy {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-380px * 4 - 1.5rem * 4)); }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.5s var(--ease);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--text-primary) !important;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .rebrand-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .project-card {
    width: 300px;
  }

  .project-image {
    height: 380px;
  }

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

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .about,
  .services,
  .projects,
  .contact {
    padding: 5rem 0;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  @keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 4 - 1.5rem * 4)); }
  }
}
