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

:root {
  /* Color Palette */
  --bg-primary: #0d0d0c;       /* Warm black */
  --bg-secondary: #161513;     /* Warm charcoal */
  --text-primary: #f5f4f0;     /* Warm white */
  --text-secondary: #a3a09a;   /* Stone gray */
  --accent-color: #c5a880;     /* Bronze / Muted gold */
  --accent-hover: #d9c09e;     /* Light gold */
  --border-color: #2b2926;     /* Subtle divider */
  --border-accent: #4d4437;    /* Subtle gold border */

  /* Fonts */
  --font-serif: 'Cormorant Garamond', 'Didot', 'Playfair Display', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing & Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

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

.section {
  padding: 10rem 0;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

/* Header & Navigation */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 2.5rem 0;
  background: linear-gradient(to bottom, rgba(13, 13, 12, 0.8) 0%, rgba(13, 13, 12, 0) 100%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo-image {
  max-height: 48px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-top: 0.15rem;
}

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

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: rgba(245, 244, 240, 0.8);
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.cta-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  border: 1px solid var(--border-accent);
  padding: 0.75rem 1.75rem;
  transition: var(--transition-smooth);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  background-color: rgba(13, 13, 12, 0.4);
}

.cta-header:hover {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  border-color: var(--accent-color);
}
/* Prevent scrolling when menu is open */
body.no-scroll {
  overflow: hidden;
}

/* Mobile Toggle Hamburger Button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  flex-direction: column;
  gap: 6px;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Hamburger animations when active */
.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-contact-link {
  display: none;
}

@media (max-width: 990px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(13, 13, 12, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
    display: flex; /* Override display: none */
  }

  .nav-link {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
  }

  .cta-header {
    display: none; /* Hide header button on mobile */
  }

  .mobile-contact-link {
    display: block; /* Show inside overlay list */
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: 6rem;
  background-image: linear-gradient(rgba(13, 13, 12, 0.2), rgba(13, 13, 12, 0.45)), url('assets/facade.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 4.5rem);
  line-height: 1.25;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  font-style: italic;
  color: var(--accent-color);
}

.hero-description {
  max-width: 600px;
  margin-bottom: 3rem;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 300;
}

.hero-image-container {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-accent);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-image-container:hover .hero-image {
  transform: scale(1.02);
}

@media (max-width: 990px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
  }
  .hero {
    min-height: auto;
    padding-top: 10rem;
  }
  .hero-image-container {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 3rem;
  }
}

/* Buttons / CTAs */
.btn-primary {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bg-primary);
  background-color: var(--accent-color);
  padding: 1.25rem 3rem;
  transition: var(--transition-smooth);
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.btn-secondary:hover::after {
  width: 100%;
}

@media (max-width: 990px) {
  .btn-primary {
    align-self: center;
  }
}

/* Feature Grid Section */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.block-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  margin-bottom: 1.5rem;
}

.text-highlight {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  font-weight: 300;
}

.address-block {
  margin-top: 2rem;
  border-left: 2px solid var(--accent-color);
  padding-left: 1.5rem;
}

.address-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Specifications Grid (Residences Page) */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.spec-card {
  background-color: var(--bg-secondary);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-color);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.spec-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.spec-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.spec-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.spec-detail {
  font-size: 0.95rem;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-detail li {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.spec-detail li:last-child {
  border-bottom: none;
}

/* Gallery Styles (Past Projects Page) */
.gallery-section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 1.75rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.gallery-caption h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.gallery-caption p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Video Section */
.video-section {
  background-color: var(--bg-secondary);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  margin-top: 4rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.video-intro .block-title {
  margin-bottom: 1.5rem;
}

/* Gaudí Concept Section */
.concept-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: center;
}

.concept-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sculptural-quote {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--accent-color);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

@media (max-width: 900px) {
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* Builder Profile Section */
.builder-section {
  background-color: var(--bg-secondary);
}

.builder-meta {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.builder-license {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Footer Section */
footer {
  padding: 6rem 0 3rem;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-main {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
  }
  .logo-image {
    max-height: 38px;
  }
}
