/* ============================================================
   MACORA RENOVATION — styles.css
   1. Variables & Reset
   2. Base Typography
   3. Reusable Components
   4. Navigation
   5. Hero
   6. Marquee Bar
   7. Services Carousel
   8. Projects
   9. About
  10. Estimate Form
  11. Footer
  12. Scroll Reveal & Lightbox
  13. Responsive (Mobile)
   ============================================================ */


/* ── 1. VARIABLES & RESET ── */

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

:root {
  --navy:       #1B2A4A;
  --navy-light: #253660;
  --red:        #C8102E;
  --red-dark:   #A50D26;
  --cream:      #F8F6F2;
  --warm-gray:  #E8E4DC;
  --text-dark:  #1B2A4A;
  --text-mid:   #5A6478;
  --text-light: #8A919E;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

img { display: block; }

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


/* ── 2. BASE TYPOGRAPHY ── */

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

em { font-style: italic; }


/* ── 3. REUSABLE COMPONENTS ── */

.section-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-h2 {
  font-size: 38px;
  line-height: 1.2;
  color: var(--navy);
}

.section-h2.small { font-size: 30px; }

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 14px 30px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--red-dark); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  transition: gap 0.2s;
}
.btn-ghost::after { content: '→'; font-size: 15px; }
.btn-ghost:hover { gap: 14px; }


/* ── 4. NAVIGATION ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 60px;
  background: #fff;
  border-bottom: 1px solid var(--warm-gray);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  width: auto;
  height: 56px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 11px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy-light); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--navy);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }

.mobile-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-link {
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  color: var(--navy);
}


/* ── 5. HERO ── */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  align-items: center;
  padding: 40px 60px;
  gap: 60px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  height: 480px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 20px 20px 60px rgba(27, 42, 74, 0.15),
              -6px -6px 20px rgba(27, 42, 74, 0.04);
  cursor: pointer;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; }

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

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
  display: block;
}

.hero-h1 {
  font-size: 52px;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero-p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 400px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-phones {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--warm-gray);
  display: flex;
  gap: 36px;
}

.phone-lang {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.phone-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.phone-num a:hover { color: var(--red); }


/* ── 6. MARQUEE BAR ── */

.marquee-bar {
  background: var(--navy);
  padding: 13px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-inner {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}
.marquee-inner .dot { color: var(--red); font-size: 8px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── 7. SERVICES CAROUSEL ── */

.services-section {
  padding: 80px 60px 96px;
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.services-header .section-h2 { margin-top: 12px; }

.carousel-arrows { display: flex; gap: 10px; flex-shrink: 0; padding-bottom: 4px; }

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-gray);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--navy);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.carousel-wrapper { overflow: hidden; position: relative; width: 100%; }

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.service-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  background: var(--cream);
  border-radius: 20px;
  box-shadow: 16px 16px 40px rgba(27, 42, 74, 0.08),
              0px 2px 8px rgba(27, 42, 74, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  cursor: default;
  transition: transform 0.25s;
}
.service-card:hover { transform: translateY(-3px); }

.service-card-top { padding: 28px 28px 0; }

.service-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 10px;
}

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}

.service-desc { font-size: 13px; color: var(--text-mid); line-height: 1.65; }

.service-card-img {
  margin-top: 24px;
  height: 200px;
  border-radius: 0 0 17px 17px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ── 8. PROJECTS ── */

.projects-section {
  padding: 80px 60px 100px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.projects-desc {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 12px;
  max-width: 480px;
  line-height: 1.6;
}

.project-grid-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  height: 440px;
  border-radius: 20px;
  box-shadow: 16px 20px 50px rgba(27, 42, 74, 0.13),
              0 4px 12px rgba(27, 42, 74, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 20px 24px 60px rgba(27, 42, 74, 0.18),
              0 6px 16px rgba(27, 42, 74, 0.08);
}

.project-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.proj-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.proj-slide.active { opacity: 1; }
.proj-slide.fading { opacity: 0.15; transition: opacity 0.4s ease; }

.project-card:hover .project-card-bg img { transform: scale(1.03); transition: transform 0.5s ease; }

.project-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
}

.project-label {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
  width: 100%;
  background: linear-gradient(transparent, rgba(10, 15, 30, 0.82));
  border-radius: 0 0 20px 20px;
}

.project-label-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
}

.project-label-type {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}


/* ── 9. ABOUT ── */

.about-section {
  background: #fff;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-h2 {
  font-size: 40px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 22px;
}

.about-p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-stats { display: flex; gap: 44px; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 6px;
}

.about-image {
  height: 420px;
  overflow: hidden;
  border-radius: 4px 40px 4px 40px;
  box-shadow: 24px 24px 60px rgba(27, 42, 74, 0.15),
              -8px -8px 30px rgba(27, 42, 74, 0.04);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ── 10. ESTIMATE FORM ── */

.form-section {
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  background: var(--cream);
}

.form-intro p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-top: 20px;
}

.contact-info { margin-top: 40px; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--warm-gray);
}

.contact-row i { font-size: 17px; color: var(--red); flex-shrink: 0; }

.contact-row-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-row-val { font-size: 13px; font-weight: 500; color: var(--navy); }
.contact-row-val a:hover { color: var(--red); }

.est-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 500;
}

.form-input {
  border: 1px solid var(--warm-gray);
  padding: 13px 15px;
  font-size: 13px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus { border-color: var(--navy); }
.form-input::placeholder { color: var(--text-light); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B2A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

textarea.form-input { resize: vertical; min-height: 110px; }

.form-submit {
  background: var(--red);
  color: #fff;
  padding: 15px 30px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  border-radius: 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 4px;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--red-dark); }

.form-success {
  display: none;
  font-size: 13px;
  color: #2a7a3b;
  background: #eaf5ec;
  border: 1px solid #b6debb;
  padding: 12px 16px;
  margin-top: 4px;
}


/* ── 11. FOOTER ── */

footer {
  background: #0F151E;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
}

.footer-brand {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.footer-tagline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
  margin-top: 4px;
}

.footer-city {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.65;
}


/* ── 12. SCROLL REVEAL & LIGHTBOX ── */

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }


/* ── 13. RESPONSIVE (MOBILE) ── */

@media (max-width: 900px) {

  nav { padding: 16px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 32px;
    min-height: auto;
  }
  .hero-slider { height: 300px; }
  .hero-h1 { font-size: 36px; }
  .hero-content { padding: 0; }

  .services-section { padding: 60px 24px 72px; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .service-card { flex: 0 0 80vw; }

  .projects-section { padding: 60px 24px; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .project-grid-duo { grid-template-columns: 1fr; }
  .project-card { height: 300px; }

  .about-section { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .about-image { height: 280px; }
  .about-stats { gap: 28px; }

  .form-section { grid-template-columns: 1fr; padding: 60px 24px; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; gap: 12px; }

  .lightbox-content { grid-template-columns: 1fr; }
  .lightbox-caption { display: none; }
}

/* ── FOOTER SOCIAL ── */
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  transition: color 0.2s;
  line-height: 1;
}

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

.project-card-bg {
  background: #fff !important;
}

.proj-slide {
  object-fit: contain !important;
  background: #fff !important;
}