/* ON-KAR Gümrük Müşavirliği - Main Stylesheet */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5298;
  --accent: #fed10a;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f5f7fa;
  --bg-dark: #0f2340;
  --border: #e0e4ea;
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── LOGO IMAGE ── */
.logo-img {
  max-height: 50px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

/* ── HEADER / NAV ── */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  flex-direction: column;
  color: var(--primary);
  text-decoration: none;
}

.logo-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  color: var(--text-light);
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
}

nav ul li a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--bg-light);
  color: var(--primary);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO ── */
.hero {
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(135deg, rgba(15,35,64,0.88) 0%, rgba(26,58,92,0.82) 60%, rgba(42,82,152,0.78) 100%),
    url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── PAGE HERO (inner pages) with optional background image ── */

.hero-content {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--accent);
}

.hero .tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  font-style: italic;
}

.hero .subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  margin-left: 12px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── SECTION COMMON ── */
section {
  padding: 64px 20px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 44px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SERVICES GRID ── */
.services-section {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 20px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-top: 3px solid var(--primary-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── WHY US ── */
.why-us-section {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── CUSTOMS OFFICES BANNER ── */
.offices-section {
  background: var(--primary);
  color: #fff;
  padding: 40px 20px;
}

.offices-section .section-title {
  color: #fff;
}

.offices-section .section-title::after {
  background: var(--accent);
}

.offices-section .section-lead {
  color: rgba(255,255,255,0.75);
}

.offices-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.office-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ── ABOUT SNIPPET ── */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-snippet .text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-snippet .text p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.stat-row {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.about-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  padding: 48px 32px;
  color: #fff;
  text-align: center;
}

.about-visual .big-text {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

.about-visual .big-text strong {
  color: var(--accent);
  font-style: normal;
}

/* ── CTA STRIP ── */
.cta-section {
  background: var(--accent);
  color: var(--bg-dark);
  text-align: center;
  padding: 48px 20px;
}

.cta-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 1rem;
  margin-bottom: 28px;
  opacity: 0.85;
}

.btn-dark {
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 30px;
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-item-text span,
.contact-item-text a {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-map {
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  min-height: 380px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
}

/* ── TIMELINE ── */
.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin: 36px 0 40px;
  padding: 0 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.timeline-item:last-child .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-dot-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.timeline-year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.timeline-item:last-child .timeline-year {
  color: var(--accent);
}

.timeline-label {
  font-size: 0.78rem;
  color: var(--text-light);
  max-width: 90px;
  line-height: 1.3;
}

@media (max-width: 560px) {
  .timeline {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .timeline::before {
    top: 18px;
    bottom: 18px;
    left: 17px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-item {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    padding: 0 0 24px 0;
    align-items: flex-start;
  }
  .timeline-dot { margin-bottom: 0; flex-shrink: 0; }
  .timeline-label { max-width: none; }
}

/* ── PROFILE SECTION ── */
.profile-section {
  background: var(--bg);
}

.profile-content {
  max-width: 820px;
  margin: 0 auto;
}

.profile-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

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

.profile-content p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.75;
}

.profile-content ul {
  list-style: none;
  margin: 0 0 20px 0;
}

.profile-content ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.profile-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-light);
}

.founder-card {
  display: flex;
  gap: 28px;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 28px;
  margin: 28px 0;
  border-left: 4px solid var(--primary-light);
}

.founder-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.founder-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.founder-info .title {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.founder-info p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0 0 10px 0;
}

.founder-info p:last-child {
  margin-bottom: 0;
}

.page-hero {
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(135deg, rgba(15,35,64,0.92) 0%, rgba(26,58,92,0.88) 100%),
    var(--page-hero-bg, none);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 52px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-light);
  color: var(--text);
  padding: 48px 20px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand .logo-name {
  font-size: 1.3rem;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  width: 32px;
  height: 32px;
  background: #0077b5;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.footer-linkedin:hover {
  background: #005983;
  color: #fff;
  text-decoration: none;
}

.footer-linkedin svg {
  flex-shrink: 0;
}

.footer-brand address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-top: 16px;
}

.footer-brand address a {
  color: var(--text-light);
}

.footer-brand address a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-light);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-map {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 200px;
}

.footer-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  transition: filter 0.3s ease;
}

.footer-map:hover img {
  filter: grayscale(1) contrast(0.88) brightness(1.05);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }

  .nav-toggle { display: flex; }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    padding: 12px 20px 20px;
    gap: 4px;
  }

  nav ul.open { display: flex; }

  .about-snippet,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map { display: none; }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-visual { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; }
  .footer-map { display: none; }
}
