:root {
  --navy: #072446;
  --gold: #BE9136;
  --light-gold: #D9B253;
  --slate: #686D74;
  --off-white: #F5F7FA;
  --white: #ffffff;
  --ink: #091521;
  --line: rgba(7, 36, 70, 0.12);
  --shadow: 0 18px 48px rgba(7, 36, 70, 0.13);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(7, 36, 70, 0.1);
  box-shadow: 0 12px 32px rgba(7, 36, 70, 0.08);
}
.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand img,
.footer-brand img {
  width: 172px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}
.brand img { filter: drop-shadow(0 8px 18px rgba(0,0,0,0.16)); }
.site-header.scrolled .brand img,
.site-header.menu-open .brand img { filter: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}
.site-header.scrolled .nav-links,
.site-header.menu-open .nav-links { color: var(--navy); }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(7, 36, 70, 0.14);
}
.site-header.scrolled .nav-cta,
.site-header.menu-open .nav-cta {
  background: var(--navy);
  color: var(--white);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
}
.site-header.scrolled .nav-toggle,
.site-header.menu-open .nav-toggle {
  border-color: rgba(7,36,70,0.12);
  background: var(--off-white);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}
.site-header.scrolled .nav-toggle span,
.site-header.menu-open .nav-toggle span { background: var(--navy); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 86px;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/main-background.png") center/cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,36,70,0.94) 0%, rgba(7,36,70,0.72) 42%, rgba(7,36,70,0.16) 100%),
    linear-gradient(0deg, rgba(7,36,70,0.5), transparent 40%);
}
.hero-content {
  position: relative;
  padding: 72px 0;
  max-width: 1160px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--light-gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; line-height: 1.08; }
h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.06em;
}
h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.045em;
}
h3 { margin: 0 0 10px; color: var(--navy); }
.hero-copy {
  max-width: 540px;
  margin: 20px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 17px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--white); box-shadow: 0 16px 32px rgba(190,145,54,0.28); }
.btn-primary.light { background: var(--white); color: var(--navy); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.38); color: var(--white); background: rgba(255,255,255,0.08); }

.intro, .portfolio, .contact { padding: 110px 0; }
.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 62px;
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.intro-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--off-white);
}
.intro-grid span,
.timeline-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(190,145,54,0.14);
  color: var(--gold);
  font-weight: 900;
}
.muted { color: var(--slate); margin: 18px 0 0; }

.services, .process {
  padding: 110px 0;
  background: var(--off-white);
}
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.service-list { display: grid; gap: 14px; }
.service-item {
  padding: 28px 30px;
  border-radius: 14px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  box-shadow: 0 14px 32px rgba(7,36,70,0.07);
}
.service-item p { margin: 0; color: var(--slate); }

.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}
.section-header.narrow { max-width: 720px; text-align: center; margin: 0 auto 44px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.project-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--navy);
}
.project-card.large { grid-column: span 2; grid-row: span 2; min-height: 638px; }
.project-card.wide { grid-column: span 2; }
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,36,70,0.82), rgba(7,36,70,0.05) 58%);
}
.project-card:hover img { transform: scale(1.06); }
.project-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  color: var(--white);
}
.project-content p {
  margin: 0 0 8px;
  color: var(--light-gold);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.project-content h3 { color: var(--white); font-size: 26px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.timeline-step {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.timeline-step p { color: var(--slate); margin: 0; }

.quote-band {
  padding: 70px 0;
  background: var(--navy);
  color: var(--white);
}
.quote-band h2 { color: var(--white); }
.quote-band p:not(.section-kicker) { color: rgba(255,255,255,0.78); }
.quote-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.quote-inner a {
  min-width: 200px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  padding: 46px;
  border-radius: 18px;
  background: var(--off-white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--navy);
  font-weight: 800;
}
.estimate-form { display: grid; gap: 16px; }
.estimate-form button:disabled { cursor: wait; opacity: 0.72; transform: none; }
.estimate-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}
input, textarea {
  width: 100%;
  border: 1px solid rgba(7,36,70,0.14);
  border-radius: 10px;
  padding: 15px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(190,145,54,0.14); }
.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.form-status:empty { min-height: 0; }
.form-status.success { color: #237147; }
.form-status.error { color: #a52b2b; }

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--slate);
  font-size: 14px;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 86px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .intro, .split, .contact-card { grid-template-columns: 1fr; }
  .intro-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.large, .project-card.wide { grid-column: span 2; min-height: 430px; }
  .quote-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .brand img { width: 142px; }
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-overlay { background: linear-gradient(90deg, rgba(7,36,70,0.96), rgba(7,36,70,0.72)); }
  .intro, .portfolio, .contact, .services, .process { padding: 76px 0; }
  .intro-grid, .timeline, .portfolio-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.large, .project-card.wide { grid-column: auto; min-height: 360px; }
  .contact-card { padding: 24px; border-radius: 16px; }
}


/* Apartment cards and detail pages */
.apartments-grid {
  column-count: 3;
  column-gap: 20px;
}
.apartment-card {
  position: relative;
  display: block;
  height: 420px;
  margin: 0 0 20px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}
.apartment-card.featured { height: 560px; }
.apartment-card:nth-child(2) { height: 360px; }
.apartment-card:nth-child(3) { height: 500px; }
.apartment-card:nth-child(4) { height: 390px; }
.apartment-card:nth-child(5) { height: 540px; }
.apartment-card:nth-child(6) { height: 430px; }
.apartment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.apartment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,36,70,0.86), rgba(7,36,70,0.06) 62%);
}
.apartment-card:hover img { transform: scale(1.06); }
.apartment-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  color: var(--white);
}
.apartment-content p {
  margin: 0 0 10px;
  color: var(--light-gold);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.apartment-content h3 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: 27px;
}
.apartment-content span {
  display: inline-flex;
  color: var(--white);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
}
.apartment-hero {
  padding: 156px 0 72px;
  background: linear-gradient(135deg, var(--navy), #0d345f);
  color: var(--white);
}
.apartment-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 6vw, 76px);
}
.apartment-hero .muted { color: rgba(255,255,255,0.78); max-width: 720px; }
.breadcrumb {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--light-gold);
  font-weight: 800;
}
.apartment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.apartment-meta span {
  padding: 10px 14px;
  border: 1px solid rgba(217,178,83,0.38);
  border-radius: 10px;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  font-weight: 700;
}
.apartment-detail { padding: 90px 0; }
.detail-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
  align-items: start;
}
.detail-panel {
  position: sticky;
  top: 118px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--line);
}
.detail-panel ul {
  padding-left: 20px;
  margin: 18px 0 0;
  color: var(--slate);
}
.image-list {
  display: grid;
  gap: 22px;
}
.image-list figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--off-white);
  box-shadow: var(--shadow);
}
.image-list img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.image-list figcaption {
  padding: 18px 22px;
  color: var(--navy);
  font-weight: 800;
  border-top: 3px solid var(--gold);
}
.detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
@media (max-width: 960px) {
  .apartments-grid { column-count: 2; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
}
@media (max-width: 640px) {
  .apartments-grid { column-count: 1; }
  .apartment-card,
  .apartment-card.featured,
  .apartment-card:nth-child(n) { height: 380px; }
  .apartment-hero { padding-top: 132px; }
  .image-list img { height: 340px; }
}


/* Language switch and footer contact details */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(190, 145, 54, 0.35);
  border-radius: 10px;
  background: rgba(7, 36, 70, 0.04);
}
.lang-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}
.footer-inner {
  gap: 28px;
}
.footer-copy {
  display: grid;
  gap: 10px;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer-contact a {
  color: var(--light-gold);
  font-weight: 800;
}
@media (max-width: 820px) {
  .language-switch {
    margin-top: 8px;
    width: max-content;
  }
}
