/* ==========================================================================
   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);
}

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

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

.container {
  max-width: 1180px;
  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: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(16, 60, 87, 0.08);
}

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

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

.brand img { height: 54px; width: auto; }

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

.brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--teal);
  text-transform: uppercase;
}

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

.nav-links a {
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  border-radius: var(--radius);
  transition: var(--transition);
}

.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: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 110px 0 130px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

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

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

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal-light);
  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-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  padding: 80px 0 90px;
}

.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 ---------- */
.services-section { background: var(--off-white); }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

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

/* ---------- 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 ---------- */
.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 {
  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 {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(92, 171, 178, 0.15);
}

.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: 46px; 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;
}

/* ---------- 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); }
}

@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); }
  section { padding: 56px 0; }
}
