:root {
  --cyan: #10a9d5;
  --cyan-dark: #057bb5;
  --navy: #12384b;
  --ink: #162532;
  --muted: #61717d;
  --line: #dbe7ec;
  --surface: #f5f8f9;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(18, 56, 75, .12);
}

/* Final header controls */
.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-phone {
  margin-right: 6px;
}

.social-link {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.social-link svg {
  width: 15px;
  height: 15px;
  display: block;
}

.appointment-btn {
  width: 148px;
  height: 52px;
  border-radius: 8px;
  background: var(--cyan);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(16, 169, 213, .22);
  transition: width .28s ease, transform .22s ease, background .22s ease;
}

.appointment-btn:hover {
  width: 230px;
  transform: translateY(-2px);
  background: var(--navy);
}

.appointment-label,
.appointment-phone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .28s ease, opacity .2s ease;
}

.appointment-phone {
  opacity: 0;
  transform: translateX(26px);
}

.appointment-btn:hover .appointment-label {
  opacity: 0;
  transform: translateX(-26px);
}

.appointment-btn:hover .appointment-phone {
  opacity: 1;
  transform: translateX(0);
}

.page-title h1 {
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.18;
}

@media (max-width: 640px) {
  .top-strip {
    display: block;
  }

  .top-strip-inner {
    width: min(100% - 24px, 1160px);
    min-height: 44px;
    gap: 10px;
  }

  .top-address {
    display: none;
  }

  .top-links {
    width: 100%;
    justify-content: space-between;
  }

  .appointment-btn,
  .appointment-btn:hover {
    width: 100%;
  }

  .page-title h1 {
    font-size: 24px;
  }
}

/* Mobile hardening */
@media (max-width: 900px) {
  .site-header {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  nav {
    display: flex !important;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding: 6px 0 10px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .actions {
    width: 100%;
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .top-strip-inner {
    width: calc(100% - 28px);
  }

  .top-address {
    display: none;
  }

  .top-links {
    width: 100%;
    justify-content: space-between;
  }

  .brand img {
    width: min(250px, 72vw) !important;
  }

  .page-title {
    padding: 42px 18px 30px !important;
  }

  .content-grid,
  .contact-page,
  .team-section {
    width: calc(100% - 28px) !important;
    padding: 34px 0 !important;
  }

  .content-card,
  .team-copy {
    padding: 22px !important;
  }

  .contact-page iframe {
    min-height: 340px;
  }

  .footer-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

/* Hakkımızda alt menü ve uzman kadro alanı */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(16, 169, 213, .28);
  background: #ffffff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
}

.team-section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 58px;
  display: none;
}

.team-section {
  gap: 22px;
}

body.show-team .team-section {
  display: grid;
}

body.show-team #hakkimizda {
  display: none;
}

.location-photo {
  background: #ffffff;
  padding: 58px 0 12px;
}

.location-photo .section-inner {
  width: min(1160px, calc(100% - 40px));
}

.location-photo img {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 55px rgba(18, 56, 75, .12);
}

.team-profile {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
  min-height: 420px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(18, 56, 75, .08);
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
}

.team-profile::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: min(42%, 430px);
  height: 24px;
  background: #144aa8;
}

.team-profile::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 24px;
  height: min(78%, 430px);
  background: #144aa8;
}

.team-copy {
  position: relative;
  z-index: 1;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.team-name {
  margin: 0 0 18px;
  color: #09233a;
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.12;
  font-weight: 900;
}

.team-education {
  margin: 0 0 28px;
  color: #0b4a91;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.45;
  font-weight: 600;
  white-space: pre-line;
}

.team-education:empty {
  display: none;
}

.team-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.team-contact a {
  color: inherit;
  text-decoration: none;
}

.team-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  width: min(100%, 280px);
  justify-self: center;
  aspect-ratio: 4 / 5;
  background: #f7fbfc;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

.team-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
}

@media (max-width: 900px) {
  .team-profile {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .team-section {
    width: calc(100% - 28px);
  }

  .team-profile {
    padding: 28px 22px;
  }

  .team-profile::before {
    left: 16px;
    top: 16px;
    width: 68%;
    height: 16px;
  }

  .team-profile::after {
    left: 16px;
    top: 16px;
    width: 16px;
    height: 220px;
  }

  .team-photo {
    width: min(220px, 76vw);
  }

  .location-photo {
    padding: 36px 0 8px;
  }

  .location-photo .section-inner {
    width: calc(100% - 28px);
  }

  .location-photo img {
    aspect-ratio: 4 / 3;
  }
}

.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-phone {
  margin-right: 6px;
}

.social-link {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.appointment-btn {
  width: 148px;
  height: 52px;
  border-radius: 8px;
  background: var(--cyan);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(16, 169, 213, .22);
  transition: width .28s ease, transform .22s ease, background .22s ease;
}

.appointment-btn:hover {
  width: 230px;
  transform: translateY(-2px);
  background: var(--navy);
}

.appointment-label,
.appointment-phone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .28s ease, opacity .2s ease;
}

.appointment-phone {
  opacity: 0;
  transform: translateX(26px);
}

.appointment-btn:hover .appointment-label {
  opacity: 0;
  transform: translateX(-26px);
}

.appointment-btn:hover .appointment-phone {
  opacity: 1;
  transform: translateX(0);
}

.page-title h1 {
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.18;
}

@media (max-width: 640px) {
  .top-strip {
    display: block;
  }

  .top-strip-inner {
    width: min(100% - 24px, 1160px);
    min-height: 44px;
    gap: 10px;
  }

  .top-address {
    display: none;
  }

  .top-links {
    width: 100%;
    justify-content: space-between;
  }

  .appointment-btn {
    width: 100%;
  }

  .appointment-btn:hover {
    width: 100%;
  }

  .page-title h1 {
    font-size: 24px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

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

.top-strip {
  background: var(--navy);
  color: #eaf8fc;
  font-size: 14px;
}

.top-strip-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-strip a {
  font-weight: 800;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px min(5vw, 58px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand img {
  width: 248px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 800;
  color: #334b5c;
}

nav a {
  position: relative;
}

nav a.active,
nav a:hover {
  color: var(--cyan-dark);
}

nav a.active::after,
nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn,
.quick,
.primary-link,
.secondary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
}

.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease;
}

.btn:hover,
.quick:hover,
.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(18, 56, 75, .18);
}

.quick,
.primary-link {
  background: var(--cyan);
  color: white;
  box-shadow: 0 14px 28px rgba(16, 169, 213, .22);
}

.secondary-link {
  background: white;
  border: 1px solid var(--line);
}

.flip-btn {
  width: 56px;
  min-width: 56px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: width .32s ease, transform .22s ease;
}

.flip-inner {
  width: 184px;
  height: 44px;
  position: relative;
  display: flex;
}

.flip-face {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-weight: 900;
  white-space: nowrap;
}

.flip-face.front {
  width: 56px;
  flex: 0 0 56px;
  border-radius: 8px;
  color: white;
  position: relative;
  z-index: 2;
}

.flip-face.front .flip-icon {
  display: none !important;
}

.flip-face.front::before {
  display: none;
}

.flip-face.front::after {
  display: none;
}

.flip-face.back {
  width: 128px;
  flex: 0 0 128px;
  padding: 0 14px;
  border-radius: 0 8px 8px 0;
  background: #ffffff;
  color: white;
  font-size: 13px;
  transform: translateX(-12px);
  opacity: 0;
  transition: transform .32s ease, opacity .22s ease;
}

.flip-btn:hover {
  width: 184px;
  transform: translateY(-2px);
}

.flip-btn:hover .flip-face.back {
  transform: translateX(0);
  opacity: 1;
}

.flip-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.flip-btn.call .flip-face.front {
  background: var(--navy);
}

.flip-btn.call .flip-face.front::before {
  background-image: url("icon-phone.svg");
}

.flip-btn.call .flip-face.front::after {
  content: "☎";
  display: block;
  font-size: 23px;
  line-height: 1;
}

.flip-btn.call .flip-face.back {
  background: var(--navy);
}

.flip-btn.primary .flip-face.front {
  background: var(--cyan);
}

.flip-btn.primary .flip-face.front::before {
  background-image: url("icon-whatsapp.svg");
}

.flip-btn.primary .flip-face.front::after {
  content: "✆";
  display: block;
  font-size: 24px;
  line-height: 1;
}

.flip-btn.primary .flip-face.back {
  background: var(--cyan);
}

.actions .flip-btn {
  width: 82px !important;
  min-width: 82px !important;
  height: 58px !important;
  border-radius: 16px;
}

.actions .flip-inner {
  width: 218px !important;
  height: 58px !important;
}

.actions .flip-face {
  height: 58px !important;
}

.actions .flip-face.front {
  width: 82px !important;
  flex: 0 0 82px !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 34px rgba(18, 56, 75, .18);
}

.actions .flip-face.front .flip-icon {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  color: #ffffff !important;
}

.actions .flip-face.front::before,
.actions .flip-face.front::after {
  display: none !important;
  content: none !important;
}

.actions .flip-face.back {
  width: 136px !important;
  flex: 0 0 136px !important;
  border-radius: 0 16px 16px 0 !important;
  transform: translateX(-18px);
}

.actions .flip-btn:hover {
  width: 218px !important;
}

.page-title {
  padding: 70px min(5vw, 58px) 44px;
  background: linear-gradient(135deg, #e8f8fc, #ffffff);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  align-content: end;
}

.page-title p {
  margin: 0 0 12px;
  color: var(--cyan-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.page-title h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
}

.content-grid,
.contact-page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.content-card.wide {
  grid-column: 1 / -1;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 12px;
}

.content-card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-page iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

footer {
  background: #071d2b;
  color: #d8e6ec;
  padding: 28px min(5vw, 58px);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-admin {
  color: #8fcfe2;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.footer-admin:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
  }

  nav {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .content-grid,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 204px;
  }

  .site-header {
    padding: 12px 16px;
  }

  nav {
    gap: 16px;
    font-size: 14px;
  }

  .quick {
    width: 100%;
  }

  .actions {
    display: flex;
  }

  .flip-btn {
    width: 56px;
    min-width: 56px;
  }

  .flip-btn:hover {
    width: 168px;
  }

  .flip-face.back {
    font-size: 12px;
    padding: 0 8px;
  }

  .page-title {
    padding: 54px 18px 38px;
  }

  .page-title h1 {
    font-size: 28px;
  }

  .content-grid,
  .contact-page {
    width: calc(100% - 28px);
    padding: 42px 0;
  }
}

/* Final header controls - must stay at the end */
.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-phone {
  margin-right: 6px;
}

.social-link {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.appointment-btn {
  width: 148px;
  height: 52px;
  border-radius: 8px;
  background: var(--cyan);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(16, 169, 213, .22);
  transition: width .28s ease, transform .22s ease, background .22s ease;
}

.appointment-btn:hover {
  width: 230px;
  transform: translateY(-2px);
  background: var(--navy);
}

.appointment-label,
.appointment-phone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .28s ease, opacity .2s ease;
}

.appointment-phone {
  opacity: 0;
  transform: translateX(26px);
}

.appointment-btn:hover .appointment-label {
  opacity: 0;
  transform: translateX(-26px);
}

.appointment-btn:hover .appointment-phone {
  opacity: 1;
  transform: translateX(0);
}

.page-title h1 {
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.18;
}

@media (max-width: 640px) {
  .top-strip {
    display: block;
  }

  .top-strip-inner {
    width: min(100% - 24px, 1160px);
    min-height: 44px;
    gap: 10px;
  }

  .top-address {
    display: none;
  }

  .top-links {
    width: 100%;
    justify-content: space-between;
  }

  .appointment-btn,
  .appointment-btn:hover {
    width: 100%;
  }

  .page-title h1 {
    font-size: 24px;
  }
}


/* Mobile social alignment fix */
@media (max-width: 640px) {
  .top-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .top-phone {
    margin-right: auto !important;
    white-space: nowrap !important;
  }

  .social-link {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    margin-left: 0 !important;
  }
}
