@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Fragua Pro';
  src: url('assets/fonts/FraguaPro-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
}

:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --brand: #0564d8;
  --brand-dark: #0564d8;
  --brand-accent: #0564d8;
  --brand-light: #e0e7ff;
  --card: #ffffff;
  --line: #e2e8f0;
  --hero-bg: #0564d8;
  --nav-bg: rgba(255, 255, 255, 0.85);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Fragua Pro', "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
  position: relative;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
.brand {
  font-family: 'Fragua Pro', "Montserrat", sans-serif;
  font-weight: 700;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.hero {
  position: relative;
  background: var(--hero-bg);
  color: #ffffff;
  padding: 11rem 0 10rem;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('corporate_integrity_illustration.png') no-repeat center right;
  background-size: contain;
  opacity: 1;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent, black 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: left;
  margin-left: 100px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px,
      transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: -2;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
}

.top-bar {
  background-color: var(--brand-accent);
  color: #fff;
  padding: 0.6rem 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.2s;
}

.top-bar-item:hover {
  opacity: 0.8;
}

.top-bar-social {
  color: #fff;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.top-bar-social:hover {
  transform: translateY(-2px);
}

.nav {
  position: relative;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(5, 100, 216, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav.is-menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.is-menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-link {
  color: #002366;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: #fff;
  color: var(--brand-dark);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p.lead {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 2rem;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0ea371;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--brand-dark);
}

.btn-outline:hover {
  background: rgba(5, 100, 216, 0.05);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.section {
  padding: 8rem 0;
}

.section-soft {
  background: #f8fafc;
}

.section-strong {
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
  padding: 6rem 0;
}

h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}

h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card);
  padding: 2.5rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border-color: var(--brand);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card:hover .card-icon {
  background: var(--brand);
  color: #fff;
  transform: rotate(5deg) scale(1.1);
}

.card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(auto, 1fr);
  gap: 1.5rem;
}

.bento-1 {
  grid-column: span 2;
}

.bento-2 {
  grid-column: span 1;
}

.bento-3 {
  grid-column: span 1;
}

.bento-4 {
  grid-column: span 1;
}

.bento-5 {
  grid-column: span 1;
}

.bento-6 {
  grid-column: span 3;
}

.card-icon-small {
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.card-icon-small svg {
  width: 22px;
  height: 22px;
}

.card:hover .card-icon-small {
  background: var(--brand);
  color: #fff;
  transform: scale(1.1);
}

/* Overlap Effect */
.overlap-container {
  margin-top: -8rem;
  position: relative;
  z-index: 10;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-row-wide {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  font: inherit;
  transition: all 0.2s ease;
}

.contact-form input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 54, 153, 0.1);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.steps li {
  position: relative;
  padding-left: 4.5rem;
  color: var(--brand-dark);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 2;
}

.footer {
  background-color: #343434f0;
  color: #fff;
  padding: 6rem 0 3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.8;
}

.whatsapp-fab {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

.whatsapp-fab svg {
  width: 2rem;
  height: 2rem;
  fill: #fff;
}

/* Media Queries */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 8rem 0 6rem;
    min-height: auto;
    text-align: center;
  }

  .hero::before {
    opacity: 0.15;
    width: 100%;
    height: 100%;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    background-position: center bottom;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  .btn {
    width: 100%;
    margin: 0;
  }

  .overlap-container {
    margin-top: -4rem;
    padding-bottom: 4.5rem;
  }

  .whatsapp-fab {
    left: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    width: 3.5rem;
    height: 3.5rem;
  }

  .cards,
  .bento-grid {
    grid-template-columns: 1fr !important;
  }

  .bento-1,
  .bento-2,
  .bento-3,
  .bento-4,
  .bento-5,
  .bento-6 {
    grid-column: span 1 !important;
  }

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

  .top-bar {
    display: none;
    /* Hide topbar on small mobile to keep focus on main action */
  }

  .nav .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    margin: 0;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-radius: 0 0 18px 18px;
    z-index: 1001;
  }

  .nav.is-menu-open .nav-links {
    display: flex;
  }

  .nav-links .nav-link {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    text-align: center;
  }

  .nav-links .nav-link+.nav-link {
    border-top: 1px solid var(--line);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .steps li {
    padding-left: 3.5rem;
  }

  .steps li::before {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem !important;
  }

  .hero {
    padding: 6.5rem 0 6.5rem;
  }

  .hero p.lead {
    font-size: 1.05rem;
    max-width: 100%;
  }

  .overlap-container {
    padding-bottom: 5.5rem;
  }

  .whatsapp-fab {
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 3.25rem;
    height: 3.25rem;
  }

  .whatsapp-fab svg {
    width: 1.65rem;
    height: 1.65rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Multi-page Layouts */
.inner-page {
  padding-top: 13rem;
  padding-bottom: 6rem;
  min-height: 80vh;
  background: var(--bg);
}

.inner-container {
  max-width: 900px;
  margin-inline: auto;
}

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

.inner-header h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: var(--brand-dark);
}

.inner-header p {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin-inline: auto;
}

/* Contact Cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--brand-accent);
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
}

.contact-icon-wrapper {
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wrapper svg {
  width: 2.2rem;
  height: 2.2rem;
  stroke: #fff;
}

.contact-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.contact-details p,
.contact-details a {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  text-decoration: none;
}

/* About Section */
.about-content {
  background: #fff;
  padding: 4rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  color: var(--muted);
  font-size: 1.1rem;
}

.about-content h2 {
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
}

/* Form Styles & Fixes */
.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--muted);
  cursor: pointer;
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
  line-height: 1.4;
}

.checkbox-row input {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.1rem;
  accent-color: var(--brand-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-submit-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-form {
  min-width: 260px;
  padding: 1.15rem 3rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* Document Section Styles */
#belgeler .btn-secondary:hover {
  background: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
  color: white !important;
}

#belgeler .btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.brand img {
  height: 80px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .inner-page {
    padding-top: 10rem;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
  }

  .about-content {
    padding: 2rem;
  }

  .btn-form {
    width: 100%;
    min-width: unset;
  }

  .brand img {
    height: 38px;
  }
}