/* =========================================================
   Athena Engineering Works Limited — Site Stylesheet
   Palette: Deep teal + cyan + warm amber, off-white surfaces
   ========================================================= */

:root {
  --teal-900: #143A4D;
  --teal-800: #1A4359;
  --teal-700: #1F5066;
  --teal-50:  #E8F0F4;
  --amber:    #E0AB3D;
  --amber-dark: #B88A28;
  --cyan:     #4FC0D0;
  --cyan-light: #87D4DF;
  --ink:      #111418;
  --muted:    #5b6472;
  --line:     #e6e3dc;
  --paper:    #f8f6f1;
  --white:    #ffffff;
  --shadow-sm: 0 1px 2px rgba(20,58,77,.06);
  --shadow-md: 0 8px 24px rgba(20,58,77,.10);
  --shadow-lg: 0 24px 60px rgba(20,58,77,.18);
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--teal-800); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--amber-dark); }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--teal-700);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; color: #2a323d; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.9rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal-700);
}
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand small { display: block; color: var(--muted); font-family: "Inter", sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--teal-700);
}
.nav-links a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.nav-cta {
  background: var(--teal-700);
  color: var(--white) !important;
  padding: 0.55rem 1.15rem !important;
  border-radius: 999px;
  font-weight: 500;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--amber-dark); color: var(--white) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--teal-700);
  margin: 5px 0; transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--amber); color: var(--teal-700); }
.btn-primary:hover { background: var(--amber-dark); color: var(--white); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--teal-700); color: var(--white); }
.btn-dark:hover { background: var(--amber-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--teal-700); color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-700); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(20,58,77,0.86) 0%, rgba(20,58,77,0.55) 60%, rgba(20,58,77,0.30) 100%),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1900&q=80") center/cover no-repeat;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  width: 100%;
}
.hero h1 { color: var(--white); max-width: 17ch; margin-bottom: 1rem; }
.hero h1 em { color: var(--amber); font-style: normal; font-family: inherit; }
.hero p.lead {
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1.8rem;
  max-width: 820px;
}
.hero-meta div strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.hero-meta div span { color: rgba(255,255,255,0.78); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Section base ---------- */
section { padding: 5rem 0; }
section.tight { padding: 3.5rem 0; }
.section-header { max-width: 720px; margin-bottom: 2.8rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-paper { background: var(--paper); }
.bg-teal { background: var(--teal-700); color: rgba(255,255,255,0.92); }
.bg-teal h1, .bg-teal h2, .bg-teal h3 { color: var(--white); }
.bg-teal p { color: rgba(255,255,255,0.84); }
.bg-teal .eyebrow { color: var(--amber); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(224,171,61,0.4);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--amber-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Image card */
.img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--teal-800);
  min-height: 320px;
}
.img-card img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .5s ease;
}
.img-card:hover img { transform: scale(1.05); }
.img-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,58,77,0.92) 0%, rgba(20,58,77,0.30) 55%, rgba(20,58,77,0) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem;
  color: var(--white);
}
.img-card h3 { color: var(--white); margin: 0 0 0.3rem; font-size: 1.15rem; }
.img-card p { color: rgba(255,255,255,0.85); font-size: 0.88rem; margin: 0; }

/* ---------- Two-column feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--teal-50);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.split-img::after {
  content: ""; position: absolute; inset: auto -20px -20px auto;
  width: 140px; height: 140px;
  background: var(--amber);
  border-radius: 12px;
  z-index: -1;
}

/* ---------- Lists ---------- */
.feature-list {
  list-style: none; padding: 0; margin: 1.2rem 0 0;
}
.feature-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 8px; height: 8px;
  border-right: 2px solid var(--amber-dark);
  border-bottom: 2px solid var(--amber-dark);
  transform: rotate(-45deg);
}

/* ---------- Stats band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; padding: 3rem 1.5rem;
  background: var(--teal-700);
  color: var(--white);
  border-radius: var(--radius-lg);
}
.stats div { text-align: center; }
.stats strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  color: var(--amber);
  margin-bottom: 0.2rem;
}
.stats span { font-size: 0.88rem; color: rgba(255,255,255,0.78); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(20,58,77,0.92), rgba(20,58,77,0.85)),
    url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Page header (sub pages) ---------- */
.page-head {
  background:
    linear-gradient(120deg, rgba(20,58,77,0.92) 0%, rgba(20,58,77,0.72) 100%),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1900&q=80") center/cover no-repeat;
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: left;
}
.page-head h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-head p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0; }
.crumbs { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,0.7); }
.crumbs a:hover { color: var(--white); }

/* ---------- Service deep blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3.5rem 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-block.reverse { grid-template-columns: 1.2fr 1fr; }
.service-block.reverse .service-img { order: 2; }
.service-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--teal-50);
}
.service-img img { width:100%; height:100%; object-fit:cover; }
.service-block h2 { margin-top: 0; }

/* ---------- Project gallery ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project .thumb {
  aspect-ratio: 16/10;
  background: var(--teal-50) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.project .thumb-art,
.project .thumb-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.project .thumb-art {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 48%, transparent 62%);
          mask-image: linear-gradient(to right, #000 0%, #000 48%, transparent 62%);
}
.project .thumb-photo {
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 40%, #000 58%, #000 100%);
          mask-image: linear-gradient(to right, transparent 40%, #000 58%, #000 100%);
}
.project .thumb-seam {
  position: absolute; inset: 0 auto 0 55.6%;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(224,171,61,0) 0%,
    rgba(224,171,61,0.55) 50%,
    rgba(224,171,61,0) 100%);
  pointer-events: none;
}
.project .body { padding: 1.4rem 1.6rem 1.6rem; }
.project .tag {
  display: inline-block;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-dark); font-weight: 600;
  margin-bottom: 0.45rem;
}
.project h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.project p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Fleet table ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.fleet-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 1rem;
  align-items: center;
}
.fleet-item .num {
  width: 38px; height: 38px;
  background: var(--teal-50);
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 600;
  color: var(--teal-700);
  font-size: 0.85rem;
}
.fleet-item h4 {
  margin: 0 0 0.15rem; font-family: "Inter", sans-serif;
  font-size: 0.98rem; font-weight: 600; color: var(--teal-700);
}
.fleet-item span { color: var(--muted); font-size: 0.85rem; }
.fleet-item em {
  font-style: normal;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber-dark); font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}
.contact-info ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-info li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info li strong { display: block; color: var(--teal-700); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.15rem; }
.contact-info li span { color: var(--ink); }
.contact-info .icn {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--teal-50);
  display: grid; place-items: center;
  color: var(--teal-700);
}
.contact-info .icn svg { width: 18px; height: 18px; fill: none; stroke: var(--amber-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-form {
  background: var(--paper);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  margin-bottom: 1.1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(224,171,61,0.18);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { width: 100%; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-700);
  color: rgba(255,255,255,0.74);
  padding: 4rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 0.3rem 0; }
.footer-grid a { color: rgba(255,255,255,0.74); }
.footer-grid a:hover { color: var(--amber); }
.footer-brand { font-family: "Playfair Display", serif; font-size: 1.25rem; color: var(--white); display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.footer-brand .brand-mark { width: 42px; height: 42px; background: transparent; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 1.5rem; }
.mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s ease forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse .split-img { order: -1; }
  .service-block, .service-block.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .service-block.reverse .service-img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: left; }
  .fleet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 0.6rem; }
  .nav-links a { display: block; padding: 0.85rem 0; }
  .nav-toggle { display: block; }
  section { padding: 3.5rem 0; }
  .hero { min-height: 70vh; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .grid-2, .grid-3, .grid-4, .project-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 2rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
