/* ============================================================
   ZIMMERMANN CONSTRUCTION — "The Architectural Monolith"
   Design System v1.0
   ============================================================ */

/* --- Google Fonts are loaded in each HTML file --- */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Surface Hierarchy */
  --surface:              #131313;
  --surface-low:          #1C1B1B;
  --surface-card:         #353534;
  --surface-footer:       #0E0E0E;

  /* Primary / Accent */
  --primary:              #FFB4AC;
  --primary-container:    #D42D2B;
  --on-primary-container: #FFFFFF;
  --gradient-cta:         linear-gradient(135deg, #FFB4AC 0%, #D42D2B 100%);

  /* Text */
  --on-surface:           #E5E2E1;
  --on-surface-muted:     rgba(229, 226, 225, 0.55);

  /* Outlines */
  --outline-variant:      rgba(229, 226, 225, 0.15);

  /* Nav glassmorphism */
  --nav-bg:               rgba(19, 19, 19, 0.80);
  --nav-blur:             20px;

  /* Elevation */
  --shadow-float:         0 20px 50px rgba(0, 0, 0, 0.50);

  /* Shape */
  --radius-btn:           0.125rem;
  --radius-card:          0.375rem;

  /* Spacing */
  --section-gap:          8.5rem;
  --page-padding:         5rem;

  /* Typography */
  --font-display:         'Manrope', sans-serif;
  --font-body:            'Inter', sans-serif;

  --size-display-lg:      3.5rem;
  --size-display-md:      2.25rem;
  --size-title-lg:        1.5rem;
  --size-title-md:        1.125rem;
  --size-label-md:        0.875rem;
  --size-body:            1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ============================================================
   3. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--page-padding);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  overflow: hidden;
  max-height: 2.5rem;
}

.nav__logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary-container);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  border-radius: 0.125rem;
}

.nav__logo-img {
  display: block;
  width: auto;
  height: 2rem;
  max-height: 2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: var(--size-label-md);
  font-weight: 500;
  color: var(--on-surface-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--on-surface);
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-label-md);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-btn);
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-label-md);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--on-surface-muted);
  color: var(--on-surface);
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--page-padding) 6rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(19, 19, 19, 0.92) 0%,
    rgba(19, 19, 19, 0.45) 50%,
    rgba(19, 19, 19, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-label-md);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-display-lg);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: var(--size-body);
  color: var(--on-surface-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}


/* ============================================================
   6. SECTION WRAPPER
   ============================================================ */
.section {
  padding: var(--section-gap) var(--page-padding);
}

.section--low {
  background: var(--surface-low);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-display-md);
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}

.section-header p {
  color: var(--on-surface-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-label-md);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: 1rem;
  display: block;
}

/* ============================================================
   7. PROJECT CARDS (index.html showcase — handled in §14)
   ============================================================ */

/* ============================================================
   8. ABOUT — STORY SECTION
   ============================================================ */
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.story__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story__left p {
  color: var(--on-surface-muted);
  line-height: 1.8;
}

.story__left-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.story__right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 2.75rem;
}

.story__founder-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.story__founder-img-sm {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-card);
  object-fit: cover;
  flex-shrink: 0;
}

.story__founder-text h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-title-md);
  margin-bottom: 0.25rem;
}

.story__founder-text p {
  font-size: var(--size-label-md);
  color: var(--on-surface-muted);
}

/* ============================================================
   9. TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  display: flex;
  padding: 3.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--outline-variant);
  transform: translateY(-50%);
}

.timeline__node {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--primary-container);
  border: 2px solid var(--surface-low);
  z-index: 1;
}

.timeline__node:nth-child(odd) .timeline__content {
  position: absolute;
  bottom: calc(50% + 0.875rem);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: 100px;
}

.timeline__node:nth-child(even) .timeline__content {
  position: absolute;
  top: calc(50% + 0.875rem);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: 100px;
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-label-md);
  color: var(--on-surface);
  margin-bottom: 0.3rem;
}

.timeline__label {
  font-size: 0.75rem;
  color: var(--on-surface-muted);
  line-height: 1.4;
}

/* ============================================================
   10. TEAM CARDS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-card__initial {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(212, 45, 43, 0.15);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-container);
}

.team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-title-md);
}

.team-card__role {
  font-size: var(--size-label-md);
  color: var(--on-surface-muted);
}

/* ============================================================
   12. CONTACT
   ============================================================ */
.contact-simple {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--section-gap) var(--page-padding);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--outline-variant);
}

.contact-card h4 {
  font-size: var(--size-label-md);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: 0.25rem;
}

.contact-card p,
.contact-card a {
  color: var(--on-surface-muted);
  font-size: var(--size-body);
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--on-surface);
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
  background: var(--surface-footer);
  padding: 4rem var(--page-padding) 2rem;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  gap: 5rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--outline-variant);
}

.footer__brand {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__nav-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer__brand p {
  font-size: var(--size-label-md);
  color: var(--on-surface-muted);
  line-height: 1.7;
  max-width: 240px;
}

.footer__col h4 {
  font-size: var(--size-label-md);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col ul li a,
.footer__col ul li {
  font-size: var(--size-label-md);
  color: var(--on-surface-muted);
  transition: color 0.2s;
}

.footer__col ul li a:hover {
  color: var(--on-surface);
}

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

.footer__bottom p {
  font-size: var(--size-label-md);
  color: var(--on-surface-muted);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  font-size: var(--size-label-md);
  color: var(--on-surface-muted);
  transition: color 0.2s;
}

.footer__bottom-links a:hover {
  color: var(--on-surface);
}

/* ============================================================
   14. PROJECT SHOWCASE (index.html — 2 large cards)
   ============================================================ */
.projects-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card__img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.project-card:hover .project-card__img {
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.10) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: background 0.3s ease;
}

.project-card:hover .project-card__overlay {
  background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.20) 55%, transparent 100%);
}

.project-card__location {
  font-size: var(--size-label-md);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-display-md);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.project-card__desc {
  font-size: var(--size-label-md);
  color: var(--on-surface-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 380px;
}

/* ============================================================
   15. PROJECT GALLERY (conchita.html / vista-marina.html)
   ============================================================ */
.project-hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
}

.project-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(19,19,19,0.90) 0%,
    rgba(19,19,19,0.25) 50%,
    rgba(19,19,19,0.10) 100%
  );
}

.project-hero__content {
  position: absolute;
  bottom: 5rem;
  left: var(--page-padding);
  right: var(--page-padding);
  z-index: 2;
  max-width: 700px;
}

.project-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--size-label-md);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-surface-muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.project-hero__back:hover { color: var(--on-surface); }

.project-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-display-lg);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.875rem;
}

.project-hero__sub {
  font-size: var(--size-body);
  color: var(--on-surface-muted);
  line-height: 1.7;
}

/* Gallery grid */
.gallery {
  padding: 0 var(--page-padding) var(--section-gap);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery__row {
  display: grid;
  gap: 0.5rem;
}

.gallery__row--1 { grid-template-columns: 1fr; }
.gallery__row--2 { grid-template-columns: 1fr 1fr; }
.gallery__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.gallery__row--2-1 { grid-template-columns: 2fr 1fr; }
.gallery__row--1-2 { grid-template-columns: 1fr 2fr; }

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-low);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery__item:hover img {
  transform: scale(1.025);
}

.gallery__item--tall    { height: 640px; }
.gallery__item--medium  { height: 480px; }
.gallery__item--short   { height: 360px; }
.gallery__item--square  { aspect-ratio: 1; height: auto; }

/* ============================================================
   16. RESPONSIVE
   ============================================================ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  :root {
    --page-padding: 2.5rem;
    --section-gap: 5rem;
  }

  .nav__links { gap: 1.5rem; }

  .projects-showcase { grid-template-columns: 1fr; }
  .project-card__img { height: 420px; }

  .story-inner { grid-template-columns: 1fr; gap: 3rem; }
  .story__right { padding-top: 0; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-cards { grid-template-columns: 1fr; }

  .footer__top { flex-direction: column; gap: 3rem; }
  .footer__brand { flex: none; }

  .gallery__row--3 { grid-template-columns: 1fr 1fr; }
  .gallery__row--2-1,
  .gallery__row--1-2 { grid-template-columns: 1fr; }
  .gallery__item--tall   { height: 480px; }
  .gallery__item--medium { height: 360px; }

  .project-hero__title { font-size: var(--size-display-md); }
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav__mobile-menu.is-open {
  display: flex;
}

.nav__mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-display-md);
  letter-spacing: -0.01em;
  color: var(--on-surface-muted);
  transition: color 0.2s;
}

.nav__mobile-menu a:hover,
.nav__mobile-menu a.active {
  color: var(--on-surface);
}

.nav__mobile-menu .btn-primary {
  font-size: var(--size-title-md);
  padding: 0.875rem 2.5rem;
}

/* Mobile ≤ 640px */
@media (max-width: 640px) {
  :root {
    --page-padding: 1.25rem;
    --section-gap: 3.5rem;
  }

  .nav { padding: 1rem var(--page-padding); }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__headline { font-size: var(--size-display-md); }

  .projects-showcase { grid-template-columns: 1fr; }
  .project-card__img { height: 340px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .footer__nav-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .gallery__row--2,
  .gallery__row--3,
  .gallery__row--2-1,
  .gallery__row--1-2 { grid-template-columns: 1fr; }
  .gallery__item--tall   { height: 320px; }
  .gallery__item--medium { height: 280px; }
  .gallery__item--short  { height: 240px; }

  .project-hero { height: 70vh; min-height: 480px; }
  .project-hero__title { font-size: var(--size-display-md); }
}
