:root {
  --primary-color: #0000cd;
  --secondary-color: #f4f4f4;
  --highlight-color: #bba53d;
}
body {
  font-family: "Inter", Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
}
h1 {
  color: var(--primary-color);
  text-align: center;
  font-size: 7em;
  margin-bottom: 24px;
  letter-spacing: 2px;
}
h2 {
  font-size: 4.2em;
  margin-bottom: 40px;
  font-weight: 700;
}
h3 {
  font-size: 2.5em;
  margin-bottom: 22px;
  font-weight: 700;
}
p {
  font-size: 1.2em;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  background: transparent;
  box-shadow: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  box-sizing: border-box;
}
.logo-img {
  height: 120px;
  width: auto;
  display: block;
}
.logo {
  display: flex;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-flow: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  text-align: right;
}
.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover {
  color: var(--highlight-color);
  background: rgba(0, 0, 0, 0.04);
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f4f4f4 60%, #fff 100%);
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 35, 66, 0.7);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.hero-content h1,
.hero-content p {
  color: #fff;
}
.hero-content h1 {
  font-size: 7em;
  margin-bottom: 24px;
  letter-spacing: 2px;
}
.hero-content p {
  font-size: 2em;
  max-width: 920px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}
.section {
  padding: 80px 0;
  min-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.intro,
.expertise,
.branches {
  padding: 80px 0;
  min-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.intro {
  background: var(--secondary-color);
  width: 100%;
}
.pre-header {
  color: var(--highlight-color);
  font-weight: bold;
  letter-spacing: 0.18em;
  font-size: 1.1em;
  margin-bottom: 18px;
}
.intro h2 {
  color: var(--primary-color);
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: 700;
}
.intro p {
  color: #333;
  font-size: 1.15em;
  margin-bottom: 16px;
  line-height: 1.6;
}
.intro p:last-child {
  margin-bottom: 0;
}

.expertise {
  width: 100%;
}

.branches {
  width: 100%;
  background: var(--secondary-color);
}

.footer {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  font-size: 1em;
  box-sizing: border-box;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-links a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  color: #222;
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-social svg {
  display: block;
}
@media (max-width: 700px) {
  .footer {
    flex-direction: column;
    gap: 16px;
    padding: 20px 10px;
    font-size: 0.95em;
  }
  .footer-links {
    gap: 16px;
  }
}

.cta {
  background: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
}
.cta-title {
  font-size: 4.2em;
  color: var(--primary-color);
  margin-bottom: 40px;
}
.cta-text {
  font-size: 1.3em;
  margin-bottom: 32px;
  margin-top: 0;
  color: #222;
}
.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  padding: 16px 36px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.cta-button:hover {
  background: var(--highlight-color);
  color: #fff;
}

.section-header {
  display: block;
}

.section-header .pre-header {
  text-align: center;
}

.section-header h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 4.2em;
  margin-bottom: 60px;
  font-weight: 700;
}

/* Subpage Hero Styles */
.hero.subpage {
  height: 40vh;
  min-height: 300px;
}

.hero.subpage .hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 16px;
}

.hero.subpage .hero-content p {
  font-size: 1.5em;
  max-width: 800px;
}

/* Content Section Styles */
.content-section {
  padding: 80px 0;
  width: 100%;
}

.content-section:nth-child(odd) {
  background: var(--secondary-color);
}

.content-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

.content-section .section-header {
  margin-bottom: 40px;
  text-align: left;
}

.content-section .section-header h2 {
  color: var(--primary-color);
  font-size: 2.5em;
  margin-bottom: 16px;
  text-align: left;
}

.content-section .content-block {
  padding: 0;
  margin-bottom: 0;
}

.content-section .content-block p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.content-section .content-block p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero.subpage .hero-content h1 {
    font-size: 2.5em;
  }

  .hero.subpage .hero-content p {
    font-size: 1.2em;
  }

  .content-section {
    padding: 40px 0;
  }
}

/* Unified Teaser Styles for All Sections */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
  margin: 0;
}

.teaser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 250px;
  padding: 24px;
  text-decoration: none;
  background: var(--primary-color);
  color: #fff;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px;
}

.teaser-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
  transition: transform 0.3s;
}

.teaser:hover .teaser-bg {
  transform: scale(1.2);
}

.teaser-icon {
  font-size: 5em;
  margin-bottom: 24px;
  color: #fff;
  display: inline-block;
  position: relative;
  z-index: 2;
}

.teaser-title {
  font-family: "Playfair Display", serif;
  position: relative;
  z-index: 2;
  font-size: 1.3em;
  font-weight: bold;
  color: #fff;
  text-align: left;
  margin: 0;
}

@media (max-width: 1400px) {
  .teaser {
    min-height: 200px;
    padding: 20px;
  }
  .teaser-title {
    font-size: 1.1em;
  }
  .teaser-icon {
    font-size: 3em;
    margin-bottom: 16px;
  }
}
@media (max-width: 1200px) {
  .teasers {
    flex-wrap: wrap;
  }
  .teaser {
    flex: 0 0 50%;
    min-height: 160px;
    border-right: 2px solid #fff;
  }
  .teaser:nth-child(2n) {
    border-right: none;
  }
}
@media (max-width: 600px) {
  .teaser {
    min-height: 100px;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1400px) {
  h1 {
    font-size: 5em;
  }

  h2 {
    font-size: 3.5em;
  }

  .hero-content h1 {
    font-size: 5em;
  }

  .hero-content p {
    font-size: 1.8em;
  }

  .cta-title {
    font-size: 3.5em;
  }
}

@media (max-width: 1200px) {
  h1 {
    font-size: 4em;
  }

  h2 {
    font-size: 3em;
  }

  .hero-content h1 {
    font-size: 4em;
  }

  .hero-content p {
    font-size: 1.6em;
  }

  .cta-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2.5em;
  }

  .hero-content h1 {
    font-size: 3em;
    padding: 0 20px;
  }

  .hero-content p {
    font-size: 1.4em;
    padding: 0 20px;
  }

  .hero.subpage .hero-content h1 {
    font-size: 2.5em;
  }

  .hero.subpage .hero-content p {
    font-size: 1.2em;
  }

  .content-section .section-header h2 {
    font-size: 2em;
  }

  .cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5em;
  }

  h2 {
    font-size: 2em;
  }

  .hero-content h1 {
    font-size: 2.5em;
  }

  .hero-content p {
    font-size: 1.2em;
  }

  .hero.subpage .hero-content h1 {
    font-size: 2em;
  }

  .hero.subpage .hero-content p {
    font-size: 1.1em;
  }

  .content-section .section-header h2 {
    font-size: 1.8em;
  }

  .cta-title {
    font-size: 2em;
  }
}

/* References Section Styles */
.references {
  background: #fff;
  padding: 60px 0;
  min-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.reference-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 32px;
}
.reference-logo {
  max-height: 60px;
  width: 200px;
  filter: grayscale(1) brightness(0.8);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
}
.reference-logo:hover {
  filter: none;
  opacity: 1;
}

@media (max-width: 600px) {
  .navbar {
    padding: 8px 6px;
  }
  .nav-links {
    gap: 16px;
  }
  .logo-img {
    height: 60px;
    width: auto;
  }
  .branches h2,
  .references h2,
  .expertise h2 {
    font-size: 2em;
  }

  .reference-logo {
    max-height: 40px;
  }
  .reference-logos {
    gap: 20px;
  }
}

.cta-section {
  padding: 80px 0;
  background: var(--secondary-color);
}

.cta-footer {
  min-height: unset;
  height: auto;
  scroll-snap-align: none;
  padding: 80px 0 0 0;
}
.footer-combined {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  font-size: 1em;
  box-sizing: border-box;
}
.footer-combined .footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-combined .footer-links a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  color: #222;
}
.footer-combined .footer-links a:hover {
  color: var(--primary-color);
}
.footer-combined .footer-social svg {
  display: block;
}
@media (max-width: 700px) {
  .footer-combined {
    flex-direction: column;
    gap: 16px;
    padding: 20px 10px;
    font-size: 0.95em;
  }
  .footer-combined .footer-links {
    gap: 16px;
  }
}

.hero,
.intro.section,
.expertise.section,
.branches.section,
.references.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero .container,
.intro.section .container,
.expertise.section .container,
.branches.section .container,
.references.section .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Exclude .cta-footer from centering */
.cta-footer {
  display: block;
}

.hamburger {
  display: none;
}
@media (max-width: 700px) {
  .hamburger {
    display: block;
  }
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    background: transparent;
  }
  .hamburger {
    display: block;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 40;
  }
  .hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 6px auto;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 35, 66, 0.96);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 35;
    gap: 0;
    padding: 0;
    box-shadow: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  .nav-links li a {
    color: #fff;
    font-size: 2em;
    padding: 24px 0;
    display: block;
    border-bottom: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: color 0.2s;
  }
  .nav-links li a:hover {
    color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .hamburger span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}
