/* ==========================================================================
   Allesta Maritime Agency — Corporate Stylesheet
   Palette extracted from logo: Navy #103C57 / Teal #5CABB2
   ========================================================================== */

:root {
  --navy: #103c57;
  --navy-dark: #0a2a3d;
  --navy-light: #1c5478;
  --teal: #5cabb2;
  --teal-light: #8fc9ce;
  --white: #ffffff;
  --off-white: #f4f8fa;
  --gray: #6b7b85;
  --border: #e1e8eb;
  --shadow: 0 4px 20px rgba(16, 60, 87, 0.08);
  --shadow-lg: 0 10px 40px rgba(16, 60, 87, 0.15);
  --radius: 6px;
  --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--navy-dark);
  line-height: 1.7;
  background: var(--white);
  padding-top: 0 !important;
  margin-top: 0 !important;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: 'Segoe UI', Arial, sans-serif; color: var(--navy); font-weight: 700; }

h2.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}

.section-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--teal);
  margin: 16px auto 40px;
  border-radius: 2px;
}

section { padding: 80px 0; }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.32) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(16, 60, 87, 0.1) !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1320px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { 
  height: 110px !important;
  width: auto !important; 
}

.brand-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-text span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #196877;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--navy);
  color: var(--white);
}

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

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-dark);
  color: var(--white);
  padding: 160px 0 130px;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 42, 61, 0.55);
  z-index: 2;
}

.hero .hero-inner { position: relative; z-index: 3; }

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(92, 171, 178, 0.25));
  z-index: 3;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 34px;
  color: #d7e6ec;
  font-size: 1.08rem;
}

/* ---------- Hero Buton & Yanındaki Dengeli ISO Rozeti ---------- */
.hero-buttons { 
  display: flex !important; 
  gap: 24px !important; 
  justify-content: center !important; 
  align-items: center !important; 
  flex-wrap: wrap !important; 
}

.hero-btn-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-btn-badge img {
  height: 100px !important;
  max-height: none !important;
  width: auto !important;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.hero-btn-badge:hover {
  opacity: 1;
  transform: scale(1.08);
}

.page-hero {
  padding: 150px 0 90px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  text-align: center;
}

.page-hero h1 { color: var(--white); font-size: 2.4rem; }
.page-hero p { color: #d7e6ec; max-width: 600px; margin: 12px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Intro / About snippet ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-visual {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
}

.intro-visual img { width: 200px; margin: 0 auto; }

.intro h2 { text-align: left; font-size: 1.9rem; margin-bottom: 18px; }
.intro p { color: var(--gray); margin-bottom: 16px; }

.intro-stats {
  display: flex;
  gap: 30px;
  margin-top: 28px;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Services Grid & Hover Image Effect ---------- */
.services-section { background: var(--off-white); }

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

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden !important;
  z-index: 1;
}

/* Arka Plan Görsel Katmanı */
.service-hover-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

/* Karartma Katmanı */
.service-hover-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 42, 61, 0.20) 0%, rgba(10, 42, 61, 0.40) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.service-content {
  position: relative;
  z-index: 3;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card h3 { 
  font-size: 1.1rem; 
  margin-bottom: 10px;
  transition: var(--transition);
}

.service-card p { 
  color: var(--gray); 
  font-size: 0.93rem; 
  transition: var(--transition);
}

/* Hover / Üzerine Gelindiğinde Tetiklenecek Stiller */
.service-hover-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.service-hover-card:hover::before {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.service-hover-card:hover::after {
  opacity: 1 !important;
}

.service-hover-card:hover h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.service-hover-card:hover p {
  color: #ffffff !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

.service-hover-card:hover .service-icon {
  background: var(--teal) !important;
  color: #ffffff !important;
}

/* ---------- Scope / commitment banner ---------- */
.scope-section { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.scope-list { list-style: none; margin-top: 20px; }
.scope-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}
.scope-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

.commitment-box {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
}
.commitment-box h3 { color: var(--white); margin-bottom: 14px; }
.commitment-box p { color: #cfe0e6; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d7e6ec; max-width: 560px; margin: 12px auto 30px; }

/* ---------- About page ---------- */
.about-block { max-width: 860px; margin: 0 auto; }
.about-block p { color: var(--gray); margin-bottom: 18px; }
.about-block h3 { margin: 34px 0 12px; }

.timeline {
  border-left: 3px solid var(--teal);
  margin: 40px 0 0 12px;
  padding-left: 30px;
}
.timeline-item { margin-bottom: 26px; position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-item strong { color: var(--navy); display: block; margin-bottom: 4px; }
.timeline-item span { color: var(--gray); font-size: 0.93rem; }

/* ---------- Contact page & Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-row {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-row h4 { font-size: 1rem; margin-bottom: 4px; color: var(--navy); }
.contact-row p, .contact-row a { color: var(--gray); font-size: 0.95rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(92, 171, 178, 0.15);
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap i {
  position: absolute;
  left: 14px;
  color: var(--teal);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.input-icon-wrap input,
.input-icon-wrap select {
  padding-left: 42px !important;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 40px;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Gallery page ---------- */
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-count { color: var(--gray); font-size: 0.9rem; }

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

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--off-white);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(16, 60, 87, 0.75));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}
.gallery-item:hover .overlay { opacity: 1; }

.gallery-empty,
.gallery-error {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}
.gallery-empty code, .gallery-error code {
  background: var(--off-white);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--navy);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 42, 61, 0.94);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--teal); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9cdd6;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.footer-brand img {
  height: 88px !important;
  width: auto !important;
  max-width: 280px !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand span { color: var(--white); font-weight: 700; font-size: 1.05rem; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b9cdd6; font-size: 0.9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 0.83rem;
  color: #7d94a0;
}

/* ---------- Page Loader ---------- */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 42, 61, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.page-loader.active {
  opacity: 1;
  visibility: visible;
}

.page-loader img {
  width: 360px !important;
  max-width: 80vw;
  height: auto;
  filter: brightness(0) invert(1);
  animation: pulseLogo 1.5s infinite alternate ease-in-out;
}

@keyframes pulseLogo {
  from { 
    transform: scale(0.92); 
    opacity: 0.35; 
  }
  to { 
    transform: scale(1.05); 
    opacity: 0.50; 
  }
}

/* ---------- ISO Certifications Page Styles ---------- */
.iso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.iso-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iso-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.iso-badge-img {
  max-width: 170px !important;
  max-height: 120px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .intro, .scope-section, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .iso-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .iso-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero-btn-badge img { 
    height: 75px !important; 
  }
}