/* Core design tokens */
:root {
  --bg: #f5f5f5;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #ffffff;
  --text: #111111;
  --muted: #5f6268;
  --line: rgba(255, 255, 255, 0.18);
  --line-dark: rgba(14, 14, 14, 0.1);
  --accent: #d7e7f5;
  --header-orange: #f27c22;
  --parliament-blue: #1f4ea3;
  --latin-line: #d8c3a5;
  --gold-line: rgba(216, 195, 165, 0.9);
  --shadow: 0 24px 70px rgba(8, 15, 30, 0.12);
  --shadow-soft: 0 10px 30px rgba(8, 15, 30, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1240px;
  --section-space: clamp(5rem, 8vw, 8rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #2e63bf 0%, var(--parliament-blue) 24%, #f3f5f8 24%, #eceef1 100%);
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page-about {
  background:
    radial-gradient(circle at top left, rgba(215, 231, 245, 0.8), transparent 32%),
    linear-gradient(180deg, #f7f7f8 0%, #eceef1 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

/* Sticky navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(242, 124, 34, 0.96);
  border-bottom: 1px solid var(--latin-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1rem;
}

.logo {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.nav-menu {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(100% + 0.8rem);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid rgba(216, 195, 165, 0.45);
  border-radius: 24px;
  background: rgba(242, 124, 34, 0.98);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: 0.3s ease;
}

.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.75rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.lang-btn {
  min-width: 48px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lang-btn.is-active,
.lang-btn:hover {
  background: #fff;
  color: #111;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.35rem;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.25s ease;
}

.section-dark {
  color: #fff;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: end;
}

.page-hero-small {
  min-height: 48vh;
  display: grid;
  align-items: end;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: slow-zoom 18s ease-out forwards;
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.18) 0%, rgba(8, 8, 8, 0.75) 100%),
    linear-gradient(120deg, rgba(31, 78, 163, 0.34), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 6rem;
  max-width: 56rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8da3b8;
}

.hero-eyebrow {
  font-size: 0.98rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

h1,
h2,
h3,
strong {
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 9vw, 7.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

h2 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero .hero-text,
.page-hero p,
.section-dark p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.hero-text {
  max-width: 37rem;
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 56px;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  background: #fff;
  color: #111;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.section {
  position: relative;
  padding: var(--section-space) 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.section-heading p:last-child {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.card-grid,
.project-grid,
.two-column-grid,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.info-card,
.stats-panel,
.service-panel,
.contact-card,
.form-card,
.cta-panel,
.image-panel,
.feature-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.info-card,
.service-panel,
.contact-card,
.form-card,
.feature-item {
  padding: 2rem;
}

.info-card::before,
.service-panel::before,
.contact-card::before,
.form-card::before,
.cta-panel::before,
.feature-item::before,
.stats-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.info-card,
.service-panel,
.contact-card,
.form-card,
.feature-item,
.stats-panel,
.cta-panel,
.project-card,
.gallery-trigger {
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.info-card:hover,
.service-panel:hover,
.feature-item:hover,
.contact-card:hover,
.form-card:hover,
.project-card:hover,
.gallery-trigger:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(12, 22, 38, 0.16);
}

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

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.96), rgba(55, 55, 55, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.icon-box svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #d9ebfb;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card,
.gallery-trigger {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  background: #111;
  box-shadow: var(--shadow);
  text-align: left;
}

.project-card img,
.gallery-trigger img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.35s ease;
}

.project-card {
  min-height: 420px;
}

.gallery-item {
  min-height: 360px;
}

.gallery-trigger {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.project-card::after,
.gallery-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78) 100%);
}

.project-card:hover img,
.gallery-trigger:hover img {
  transform: scale(1.06);
}

.project-card-content,
.gallery-caption {
  position: absolute;
  z-index: 1;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
}

.project-card-content span,
.gallery-caption {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-card-content strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.split-layout,
.service-panel {
  display: grid;
  gap: 1.2rem;
}

.stats-panel {
  position: relative;
  padding: 2.2rem;
  display: grid;
  gap: 1.2rem;
}

.stats-panel strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.6rem;
  margin-bottom: 0.15rem;
}

.stats-panel span {
  color: var(--muted);
}

.text-link {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link:hover {
  opacity: 0.7;
}

.image-panel img {
  min-height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.feature-list {
  display: grid;
  gap: 1.25rem;
}

.service-panel {
  grid-template-columns: 1fr;
  align-items: start;
}

.services-stack {
  display: grid;
  gap: 1.2rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.gallery-item.is-hidden {
  display: none;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.contact-list a,
.contact-list p {
  margin: 0;
}

.map-frame {
  overflow: hidden;
  min-height: 320px;
  border-radius: 20px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(14, 14, 14, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(141, 163, 184, 0.35);
  border-color: rgba(14, 14, 14, 0.22);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.92rem;
}

.section-cta {
  padding-top: 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 2.6rem;
  display: grid;
  gap: 1rem;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(31, 78, 163, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.7));
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 124, 34, 0.12), transparent 68%);
  pointer-events: none;
}

.site-footer {
  padding: 2.6rem 0 2rem;
  background: #0b0b0c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-inner > div:first-child {
  text-align: left;
}

.footer-inner p,
.footer-links a {
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: min(100%, 980px);
}

.lightbox-content img {
  max-height: 80vh;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.lightbox-title {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.8rem;
}

.quote-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 35;
  min-height: 58px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(242, 124, 34, 0.96), rgba(223, 98, 14, 0.96));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 24px 50px rgba(20, 20, 24, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.quote-fab:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(20, 20, 24, 0.28);
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.quote-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(242, 124, 34, 0.12), transparent 28%),
    rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(16px);
}

.quote-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.92));
  box-shadow: 0 30px 100px rgba(4, 8, 16, 0.3);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-modal.is-open .quote-modal-panel {
  transform: translateY(0) scale(1);
}

.quote-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.quote-modal-header {
  margin-bottom: 1.8rem;
  padding-right: 3.5rem;
}

.quote-modal-header h2 {
  margin-bottom: 0.5rem;
}

.quote-modal-header p:last-child {
  max-width: 36rem;
  line-height: 1.8;
}

.quote-form {
  display: grid;
  gap: 1rem;
}

.quote-form-grid {
  display: grid;
  gap: 1rem;
}

.quote-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(31, 78, 163, 0.15);
  border-color: rgba(31, 78, 163, 0.3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.quote-form-actions {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.quote-note {
  margin: 0;
  font-size: 0.95rem;
}

/* IntersectionObserver reveals elements as they enter the viewport. */
.fade-in {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fade-in[data-delay="1"] {
  transition-delay: 0.08s;
}

.fade-in[data-delay="2"] {
  transition-delay: 0.16s;
}

.fade-in[data-delay="3"] {
  transition-delay: 0.24s;
}

.fade-in[data-delay="4"] {
  transition-delay: 0.32s;
}

@keyframes slow-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.02);
  }
}

/* Tablet layout adjustments */
@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
  }

  .card-grid.services-preview,
  .feature-list,
  .project-grid-featured,
  .gallery-grid,
  .two-column-grid,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
  }

  .service-panel {
    grid-template-columns: 90px 1fr;
  }

  .cta-panel,
  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .project-grid-featured {
    align-items: stretch;
  }

  .quote-form-grid,
  .quote-form-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-form-actions .btn {
    justify-self: end;
  }
}

/* Desktop navigation and grid scaling */
@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .language-switcher {
    margin-top: 0;
    margin-left: 0.6rem;
    padding-top: 0;
  }

  .nav-menu a {
    padding: 0;
  }

  .card-grid.services-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .project-grid-featured {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
