:root {
  --ink: #13201f;
  --ink-2: #263332;
  --muted: #66706f;
  --paper: #f8f4ec;
  --white: #ffffff;
  --line: #d9d2c4;
  --gold: #c99a59;
  --teal: #1d6b67;
  --teal-dark: #0f4543;
  --shadow: 0 24px 70px rgba(18, 32, 31, .16);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section { scroll-margin-top: 160px; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: rgba(8, 20, 19, .82);
  transition: background .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 244, 236, .94);
  box-shadow: 0 10px 30px rgba(19, 32, 31, .1);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  padding: 10px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  min-width: 0;
}

.is-scrolled .brand { color: var(--ink); }

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  font-size: 12px;
  opacity: .82;
}

.nav {
  order: 3;
  width: 100%;
  min-height: 40px;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.14);
  overflow: visible;
}

.is-scrolled .nav { color: var(--ink-2); }

.is-scrolled .nav { border-top-color: rgba(19,32,31,.1); }

.nav > a,
.nav-group > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: var(--radius);
}

.nav a:hover { color: var(--gold); }

.nav > a:hover,
.nav-group:hover > a,
.nav-group:focus-within > a {
  background: rgba(255,255,255,.1);
}

.is-scrolled .nav > a:hover,
.is-scrolled .nav-group:hover > a,
.is-scrolled .nav-group:focus-within > a {
  background: rgba(17, 69, 67, .08);
}

.nav-group {
  position: relative;
  padding: 0;
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 520px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.mega-menu.menu-wide {
  width: 760px;
  grid-template-columns: repeat(3, 1fr);
}

.mega-menu.menu-narrow {
  width: 420px;
}

.nav-group:hover .mega-menu,
.nav-group:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-menu a {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--teal-dark);
  font-weight: 700;
}

.mega-menu a:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.header-call {
  margin-left: auto;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.42);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}

.header-whatsapp {
  color: var(--white);
  background: var(--teal);
  border: 1px solid rgba(255,255,255,.2);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
}

.is-scrolled .header-call {
  color: var(--teal-dark);
  border-color: var(--line);
}

.is-scrolled .header-whatsapp {
  color: var(--white);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.is-scrolled .menu-toggle span { background: var(--ink); }

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .85s ease, opacity .85s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

.hero-slide.is-prev {
  opacity: 1;
  visibility: visible;
  transform: translateX(-100%);
  z-index: 1;
}

.hero-img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10,18,17,.9) 0%, rgba(10,18,17,.72) 40%, rgba(10,18,17,.22) 76%),
    linear-gradient(0deg, rgba(10,18,17,.55), rgba(10,18,17,.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 218px 0 92px;
  color: var(--white);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.36);
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--gold);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 13px;
}

h1, h2, h3, p { margin-top: 0; }

h1,
.hero-title {
  max-width: 900px;
  margin-bottom: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

.hero-text {
  max-width: 670px;
  color: rgba(255,255,255,.84);
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 1px solid transparent;
}

.btn.primary { background: var(--gold); color: #15120d; }
.btn.secondary { background: var(--teal); color: var(--white); }
.btn.ghost { border-color: rgba(255,255,255,.35); color: var(--white); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  padding: 9px 12px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.86);
  font-size: 14px;
}

.contact-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.strip-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.4fr;
  gap: 1px;
  background: var(--line);
}

.strip-grid > div {
  background: var(--white);
  padding: 22px;
}

.strip-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}

.strip-grid a,
.strip-grid p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.section { padding: 88px 0; }

.two-col {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.prose p { color: var(--ink-2); font-size: 17px; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.principle-grid article {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(19,32,31,.05);
}

.principle-grid article::before {
  content: "";
  width: 34px;
  height: 3px;
  display: block;
  margin-bottom: 22px;
  background: var(--gold);
  border-radius: 999px;
}

.principle-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 19px;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.compact { max-width: 650px; }

.section-head p { color: var(--muted); font-size: 17px; }

.services {
  background: #fffaf1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 248px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(19,32,31,.05);
}

.service-card span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
}

.service-card p { color: var(--muted); margin-bottom: 0; }

.all-services {
  margin-top: 44px;
}

.square-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.square-service-grid .service-square {
  min-height: 258px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(19,32,31,.05);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.square-service-grid .service-square:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(19,32,31,.1);
}

.square-service-grid .service-square::before {
  content: "";
  width: 34px;
  height: 3px;
  display: block;
  background: var(--gold);
  border-radius: 999px;
}

.square-service-grid h3 {
  margin: 12px 0 8px;
  font-size: 17px;
}

.square-service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.square-service-grid ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.square-service-grid li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.35;
}

.square-service-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.keyword-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.keyword-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.keyword-card h3 {
  margin-bottom: 12px;
  color: var(--teal-dark);
}

.keyword-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.landing-links {
  margin-top: 24px;
  padding: 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.landing-links h3 {
  margin-bottom: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
}

.landing-link-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.landing-link-grid a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.06);
  font-size: 14px;
}

.landing-link-grid a:hover {
  color: var(--white);
  border-color: var(--gold);
}

.page-hero {
  position: relative;
  padding: 142px 0 72px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,18,17,.92), rgba(10,18,17,.62)), url("guler-avukatlik-hizmetler.jpg") center/cover;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 68px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.breadcrumb a { color: var(--gold); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.content-panel,
.side-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-panel {
  padding: 34px;
}

.content-panel h2 {
  margin-top: 32px;
  font-size: clamp(26px, 3vw, 38px);
}

.content-panel h2:first-child { margin-top: 0; }

.content-panel p,
.content-panel li {
  color: var(--ink-2);
}

.content-panel ul {
  padding-left: 20px;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.side-panel h2 {
  font-size: 27px;
}

.side-panel a {
  display: block;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--teal-dark);
  font-weight: 700;
}

.side-panel .btn {
  margin-top: 14px;
  width: 100%;
}

.related-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.related-services a {
  padding: 14px;
  min-height: 62px;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 700;
}

.process { background: var(--ink); color: var(--white); }

.process .section-head p,
.process .timeline p { color: rgba(255,255,255,.72); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
}

.timeline div {
  background: var(--ink);
  padding: 26px;
}

.timeline strong {
  color: var(--gold);
  font-size: 13px;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.article-list article {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-list p { color: var(--muted); margin-bottom: 0; }

.local-seo { padding-top: 0; }

.local-box {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 44px;
  padding: 42px;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.local-box p:last-child { color: rgba(255,255,255,.78); margin: 0; }

.faq { background: #fbf7ef; }

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}

summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
}

details p {
  color: var(--muted);
  padding-bottom: 18px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 30px;
}

.address-card {
  display: grid;
  gap: 8px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  font-style: normal;
}

.address-card a {
  color: var(--teal);
  font-weight: 700;
  margin-top: 12px;
}

.footer {
  padding: 34px 0 20px;
  background: #0b1514;
  color: rgba(255,255,255,.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  align-items: start;
}

.footer strong { color: var(--white); }

.footer h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 16px;
}

.footer-brand p {
  max-width: 440px;
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

.legal-note {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  display: none;
  background: var(--gold);
  color: #15120d;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

@media (max-width: 980px) {
  .site-header {
    background: rgba(8, 20, 19, .94);
  }
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    min-height: 74px;
  }
  .header-call,
  .header-whatsapp { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 30;
  }
  .nav.is-open { display: flex; }
  .nav > a,
  .nav-group > a { padding: 12px; min-height: auto; }
  .nav-group { padding: 0; }
  .mega-menu {
    position: static;
    width: auto;
    grid-template-columns: 1fr;
    margin: 0 8px 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
  .strip-grid,
  .two-col,
  .contact-grid,
  .local-box { grid-template-columns: 1fr; }
  .service-grid,
  .keyword-grid,
  .principle-grid,
  .square-service-grid,
  .landing-link-grid,
  .related-services,
  .timeline,
  .article-list { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner {
    min-height: 68px;
    padding: 8px 0;
  }
  .brand { gap: 9px; }
  .brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 11px;
  }
  .brand strong { font-size: 15px; }
  .nav {
    left: 14px;
    right: 14px;
    top: 70px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero-content { padding: 108px 0 82px; }
  h1,
  .hero-title {
    font-size: 36px;
    line-height: 1.04;
  }
  h2 { font-size: 31px; }
  .hero-text { font-size: 17px; }
  .hero-actions,
  .contact-actions { display: grid; }
  .btn { width: 100%; }
  .section { padding: 62px 0; }
  .service-grid,
  .keyword-grid,
  .principle-grid,
  .square-service-grid,
  .landing-link-grid,
  .related-services,
  .timeline,
  .article-list { grid-template-columns: 1fr; }
  .square-service-grid .service-square { aspect-ratio: auto; min-height: 178px; }
  .page-hero { padding: 116px 0 54px; }
  .content-panel { padding: 24px; }
  .keyword-card { padding: 20px; }
  .service-card { min-height: auto; }
  .local-box { padding: 26px; }
  .footer-grid { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-call { display: inline-flex; }
}
