/* Lamma Consulting Engineers — homepage system
   Layout language modeled on Aker Solutions' corporate site: pale sky-blue
   sections, real photography, editorial serif headlines, plain text links.
   Brand colors (navy + orange) come from the actual Lamma logo. */

:root{
  --navy:#0B1F33;
  --navy-soft:#16283B;
  --sky:#D3ECF9;
  --sky-deep:#BFE1F2;
  --white:#FFFFFF;
  --orange:#E07B39;
  --orange-dark:#A8500F;
  --slate:#45535E;
  --slate-light:#7C8B95;
  --border:rgba(11,31,51,.14);
  --font-serif:'IBM Plex Serif', Georgia, serif;
  --font-body:'IBM Plex Sans', system-ui, sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);
  --max:1320px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
[id]{ scroll-margin-top:100px; }
body{
  font-family:var(--font-body);
  color:var(--navy);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 40px; }
@media (max-width:700px){ .wrap{ padding:0 22px; } }

h1,h2,h3{ font-family:var(--font-serif); font-weight:500; letter-spacing:-.01em; color:var(--navy); }

.eyebrow{
  font-family:var(--font-body); font-weight:600; font-size:11.5px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--navy);
  margin-bottom:14px; opacity:.6;
}

/* ---------- links ---------- */
.link-arrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:14.5px; font-weight:500; color:var(--navy);
  padding-bottom:4px; border-bottom:1px solid var(--navy);
}
.link-arrow svg{ width:13px; height:13px; transition:transform .2s var(--ease); }
.link-arrow:hover{ color:var(--orange-dark); border-color:var(--orange-dark); }
.link-arrow:hover svg{ transform:translateX(3px); }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-size:14px; font-weight:500; color:var(--navy);
  padding:12px 22px; border:1px solid var(--navy); background:transparent;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ background:var(--navy); color:var(--white); }
.btn.solid{ background:var(--navy); color:var(--white); }
.btn.solid:hover{ background:var(--orange-dark); border-color:var(--orange-dark); }

.btn-circle{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--navy);
  background:transparent; display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background .2s ease, border-color .2s ease;
  flex:none;
}
.btn-circle svg{ width:16px; height:16px; }
.btn-circle:hover{ background:var(--navy); color:var(--white); }

/* ---------- header / nav ---------- */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.95); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
nav.wrap{ display:flex; align-items:center; justify-content:space-between; height:82px; }
.logo{ display:flex; align-items:center; }
.logo img{ height:26px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:6px; height:100%; }
.nav-links > li{ position:relative; height:100%; display:flex; align-items:center; }
.nav-links > li > a, .nav-links > li > button.nav-top{
  font-size:14.5px; font-weight:500; color:var(--navy);
  padding:10px 16px; display:flex; align-items:center; gap:6px;
  background:none; border:none; cursor:pointer; border-bottom:2px solid transparent;
  transition:border-color .18s ease, color .18s ease;
}
.nav-links > li > a:hover, .nav-links > li.open > button.nav-top{ border-bottom-color:var(--orange); }
.nav-top svg{ width:10px; height:10px; transition:transform .2s var(--ease); }
.nav-links > li.open .nav-top svg{ transform:rotate(180deg); }
.dropdown{
  position:absolute; top:100%; left:0; min-width:230px;
  background:var(--white); border:1px solid var(--border);
  box-shadow:0 20px 40px rgba(11,31,51,.12); padding:10px;
  display:flex; flex-direction:column;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  pointer-events:none;
}
.nav-links > li.open .dropdown{ opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; }
.dropdown a{ font-size:14px; color:var(--slate); padding:11px 14px; transition:background .15s ease, color .15s ease; }
.dropdown a:hover{ background:var(--sky); color:var(--navy); }
.nav-active > a{ border-bottom-color:var(--orange-dark) !important; color:var(--orange-dark); }
.nav-toggle{ display:none; background:none; border:1px solid var(--navy); padding:8px 10px; cursor:pointer; }
.nav-toggle svg{ width:18px; height:18px; }
.nav-toggle .icon-close{ display:none; }
.nav-toggle.active .icon-open{ display:none; }
.nav-toggle.active .icon-close{ display:block; }

/* ---------- section rhythm ---------- */
section{ padding:76px 0; }
.bg-sky{ background:var(--sky); }
.bg-sky-deep{ background:var(--sky-deep); }
.bg-white{ background:var(--white); }
.bg-navy{ background:var(--navy); color:var(--white); }

/* ---------- hero ---------- */
.hero{ padding-top:56px; padding-bottom:64px; }
.hero-grid{
  display:grid; grid-template-columns:.95fr 1.05fr; gap:56px; align-items:center;
}
.hero-grid h1{ font-size:clamp(32px,4vw,52px); line-height:1.12; margin-bottom:20px; max-width:520px; }
.hero-grid p.lead{ font-size:16px; color:var(--slate); max-width:440px; margin-bottom:26px; }
.hero-photo{
  position:relative; aspect-ratio:4/3; overflow:hidden;
  clip-path:polygon(0 0, 100% 0, 100% 100%, 26% 100%, 26% 78%, 0 78%);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; opacity:0; transition:opacity .6s ease; }
.hero-photo img.active{ opacity:1; }
.hero-controls{ display:flex; align-items:center; gap:18px; margin-top:28px; }
.hero-dots{ display:flex; gap:8px; }
.hero-dots button{
  width:8px; height:8px; border-radius:50%; border:none; background:rgba(11,31,51,.25); cursor:pointer; padding:0;
  transition:background .2s ease, transform .2s ease;
}
.hero-dots button.active{ background:var(--navy); transform:scale(1.2); }
.hero-arrow{ background:none; border:none; cursor:pointer; color:var(--navy); opacity:.6; transition:opacity .2s ease; padding:4px; }
.hero-arrow:hover{ opacity:1; }
.hero-arrow svg{ width:18px; height:18px; }

/* ---------- news / stories ---------- */
.section-top{
  display:flex; align-items:baseline; justify-content:space-between; gap:24px; margin-bottom:38px; flex-wrap:wrap;
}
.section-top h2{ font-size:clamp(22px,2.4vw,28px); }
.news-scroller{ display:flex; gap:28px; overflow-x:auto; scroll-snap-type:x proximity; padding-bottom:6px; scrollbar-width:none; }
.news-scroller::-webkit-scrollbar{ display:none; }
.news-card{ flex:0 0 260px; scroll-snap-align:start; }
.news-card .thumb{ aspect-ratio:4/3; overflow:hidden; margin-bottom:16px; background:var(--sky-deep); }
.news-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.news-card:hover .thumb img{ transform:scale(1.05); }
.news-card .label{ font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--orange-dark); margin-bottom:8px; }
.news-card h3{ font-family:var(--font-body); font-weight:600; font-size:15.5px; line-height:1.4; margin-bottom:8px; }
.news-card .date{ font-size:12.5px; color:var(--slate-light); }

/* ---------- full-bleed feature photo ---------- */
.feature-photo{ position:relative; }
.feature-photo img{ width:100%; height:min(72vh,640px); object-fit:cover; }
.feature-card{
  position:absolute; left:0; bottom:56px; background:var(--sky);
  padding:36px 40px; max-width:400px;
}
.feature-card h3{ font-size:24px; line-height:1.2; margin-bottom:14px; }
.feature-card p{ font-size:14.5px; color:var(--slate); margin-bottom:18px; }
@media (max-width:700px){ .feature-card{ position:static; max-width:none; } }

/* ---------- text band (What We Do style) ---------- */
.text-band .wrap{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.text-band h2{ font-size:clamp(26px,3vw,36px); line-height:1.18; }
.text-band p{ font-size:15.5px; color:var(--slate); margin-bottom:22px; max-width:440px; }

/* ---------- generic two-column grid ---------- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:56px; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head h2{ font-size:clamp(24px,2.8vw,32px); }
.section-head p{ color:var(--slate); font-size:15.5px; margin-top:12px; }

/* ---------- banner photo ---------- */
.banner-photo{ position:relative; }
.banner-photo img{ width:100%; height:min(60vh,520px); object-fit:cover; }
.banner-tag{
  position:absolute; left:32px; bottom:28px; display:flex; align-items:center; gap:12px;
  color:var(--white); font-weight:600; font-size:14px;
}
.banner-tag img{ height:20px; width:auto; filter:brightness(0) invert(1); }
.banner-link{
  position:absolute; right:32px; bottom:28px; color:var(--white); font-size:14px; font-weight:500;
  display:flex; align-items:center; gap:8px; border-bottom:1px solid rgba(255,255,255,.6); padding-bottom:4px;
}
.banner-link svg{ width:13px; height:13px; }

/* ---------- about ---------- */
.about-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:64px; align-items:center; }
.about-photo{ position:relative; }
.about-photo .p1{ width:78%; }
.about-photo .p1 img{ width:100%; aspect-ratio:3/4; object-fit:cover; object-position:top; }
.about-photo .accent{
  position:absolute; right:0; bottom:-24px; width:46%; aspect-ratio:1/1;
  background:var(--orange); z-index:-1;
}
.about-text h2{ font-size:clamp(24px,2.8vw,32px); margin-bottom:16px; }
.about-text p{ font-size:15.5px; color:var(--slate); max-width:460px; margin-bottom:24px; }
.about-links{ margin-top:32px; display:flex; flex-direction:column; }
.about-links a{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0; border-top:1px solid var(--border); font-size:15px; font-weight:500;
  transition:padding-left .2s ease, color .2s ease;
}
.about-links a:last-child{ border-bottom:1px solid var(--border); }
.about-links a svg{ width:14px; height:14px; transition:transform .2s var(--ease); }
.about-links a:hover{ padding-left:8px; color:var(--orange-dark); }
.about-links a:hover svg{ transform:translateX(3px); }

/* ---------- CTA / contact band ---------- */
.cta-band .wrap{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.cta-band h2{ font-size:clamp(20px,2.4vw,26px); margin-bottom:10px; }
.cta-band p{ font-size:14.5px; color:var(--slate); max-width:380px; }
.cta-form{ display:flex; align-items:center; gap:14px; }
.cta-form input{
  flex:1; border:none; border-bottom:1px solid var(--navy); background:transparent;
  padding:12px 4px; font-size:15px; color:var(--navy); font-family:var(--font-body);
}
.cta-form input::placeholder{ color:var(--slate-light); }
.cta-form input:focus{ outline:none; border-color:var(--orange-dark); }

/* ---------- subpage hero (photo + heading, no carousel) ---------- */
.page-hero{ padding-top:56px; padding-bottom:64px; }
.page-hero .hero-grid{ align-items:center; }
.page-hero .plain-photo{ aspect-ratio:4/3; overflow:hidden; }
.page-hero .plain-photo img{ width:100%; height:100%; object-fit:cover; }

/* ---------- alternating photo + text rows ---------- */
.alt-row .wrap{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.alt-row.reverse .wrap{ direction:rtl; }
.alt-row.reverse .wrap > *{ direction:ltr; }
.alt-row h2{ font-size:clamp(24px,2.6vw,30px); line-height:1.2; margin-bottom:16px; }
.alt-row p{ font-size:15px; color:var(--slate); margin-bottom:18px; }
.alt-row .photo{ aspect-ratio:4/3; overflow:hidden; }
.alt-row .photo img{ width:100%; height:100%; object-fit:cover; }
@media (max-width:820px){ .alt-row .wrap{ grid-template-columns:1fr; } .alt-row .photo{ order:-1; } }

/* ---------- simple data table ---------- */
.simple-table{ width:100%; border-collapse:collapse; font-size:14px; }
.simple-table-wrap{ overflow-x:auto; }
.simple-table thead th{
  text-align:left; font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color:var(--slate-light); padding:0 16px 14px; border-bottom:1px solid var(--navy);
}
.simple-table tbody td{ padding:18px 16px; border-bottom:1px solid var(--border); vertical-align:top; }
.simple-table tbody tr{ transition:background .18s ease; }
.simple-table tbody tr:hover{ background:var(--sky); }
.simple-table .client{ font-family:var(--font-serif); font-size:15.5px; }
.simple-table .num-col{ text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.simple-table .doc-no{ font-size:12.5px; color:var(--orange-dark); white-space:nowrap; }
@media (max-width:700px){ .simple-table-wrap .simple-table{ min-width:720px; } }

/* ---------- tile grid (sectors / stages) ---------- */
.tile-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border:1px solid var(--border); }
.tile{ background:var(--white); padding:32px 28px; aspect-ratio:1/1; display:flex; flex-direction:column; justify-content:space-between; transition:background .2s ease, color .2s ease; }
.tile:hover{ background:var(--navy); color:var(--white); }
.tile .t-num{ font-size:12px; color:var(--slate-light); }
.tile:hover .t-num{ color:rgba(255,255,255,.6); }
.tile .t-name{ font-family:var(--font-serif); font-size:18px; }
@media (max-width:820px){ .tile-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:500px){ .tile-grid{ grid-template-columns:1fr; } }

/* ---------- timeline (history) ---------- */
.timeline li{ display:grid; grid-template-columns:110px 1fr; gap:24px; padding:24px 0; border-bottom:1px solid var(--border); }
.timeline .year{ font-family:var(--font-serif); font-size:19px; color:var(--orange-dark); }
.timeline h4{ font-family:var(--font-serif); font-weight:500; font-size:17px; margin-bottom:4px; }
.timeline p{ color:var(--slate); font-size:14.5px; }
@media (max-width:600px){ .timeline li{ grid-template-columns:1fr; gap:4px; } }

/* ---------- simple value / discipline list ---------- */
.value-list li{ padding:22px 0; border-bottom:1px solid var(--border); display:flex; gap:20px; }
.value-list .vnum{ font-family:var(--font-serif); font-size:15px; color:var(--orange-dark); padding-top:2px; }
.value-list h4{ font-family:var(--font-serif); font-weight:500; font-size:17px; margin-bottom:4px; }
.value-list p{ color:var(--slate); font-size:14.5px; }

/* ---------- generic centered CTA ---------- */
.cta{
  display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap;
  background:var(--sky); padding:44px 48px;
}
.cta h2{ font-size:clamp(20px,2.4vw,26px); max-width:440px; }
.cta-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* ---------- contact card + form (restyled) ---------- */
.contact-card{ padding:26px 0; border-bottom:1px solid var(--border); }
.contact-card:first-child{ padding-top:0; }
.contact-card h4{ font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--slate-light); margin-bottom:10px; }
.contact-card p{ font-size:15px; margin-bottom:4px; }
.contact-card a:hover{ color:var(--orange-dark); }

.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.form-grid .full{ grid-column:1/-1; }
label{ font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--slate-light); display:block; margin-bottom:8px; }
input, textarea{
  width:100%; font-family:var(--font-body); font-size:15px; color:var(--navy);
  background:transparent; border:none; border-bottom:1px solid var(--border); padding:10px 2px;
}
input:focus, textarea:focus{ outline:none; border-color:var(--orange-dark); }
textarea{ resize:vertical; min-height:100px; }

/* ---------- footer ---------- */
footer{ padding:64px 0 0; }
.footer-stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
  padding-bottom:44px; margin-bottom:44px; border-bottom:1px solid rgba(255,255,255,.16);
}
.footer-stats .num{ font-family:var(--font-serif); font-size:clamp(26px,3vw,38px); }
.footer-stats .label{ font-size:12.5px; color:rgba(255,255,255,.6); margin-top:6px; }
.footer-grid{ display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr 1fr; gap:32px; padding-bottom:44px; }
.footer-grid h4{ font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-bottom:18px; font-weight:600; }
.footer-grid li{ margin-bottom:11px; font-size:13.5px; }
.footer-grid li a:hover{ color:var(--orange); }
.footer-brand p{ font-size:13.5px; color:rgba(255,255,255,.6); max-width:260px; margin-top:16px; }
.footer-brand img{ height:22px; filter:brightness(0) invert(1); }
.footer-social{ display:flex; gap:14px; }
.footer-social a{
  width:34px; height:34px; border:1px solid rgba(255,255,255,.3); border-radius:50%;
  display:flex; align-items:center; justify-content:center; transition:background .2s ease, border-color .2s ease;
}
.footer-social a:hover{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.5); }
.footer-social svg{ width:15px; height:15px; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.16); padding:22px 0; font-size:12.5px; color:rgba(255,255,255,.55);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.footer-bottom a:hover{ color:var(--white); }

/* ---------- scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* ---------- responsive ---------- */
@media (max-width:980px){
  .nav-links{
    display:none; position:fixed; top:83px; left:0; right:0; height:calc(100vh - 83px);
    background:var(--white); flex-direction:column; align-items:stretch; padding:20px; overflow:auto;
    border-top:1px solid var(--border);
  }
  .nav-links.mobile-open{ display:flex; }
  .nav-links > li{ height:auto; flex-direction:column; align-items:stretch; }
  .nav-links > li > a, .nav-links > li > button.nav-top{ width:100%; justify-content:space-between; padding:16px 4px; border-bottom:1px solid var(--border); }
  .dropdown{ position:static; border:none; box-shadow:none; padding:0 0 0 14px; opacity:1; visibility:visible; transform:none; pointer-events:auto; display:none; }
  .nav-links > li.open .dropdown{ display:flex; }
  .nav-toggle{ display:inline-flex; }

  .hero-grid, .text-band .wrap, .about-grid, .cta-band .wrap, .grid-2, .alt-row .wrap{ grid-template-columns:1fr; }
  .hero-photo, .page-hero .plain-photo{ order:-1; }
  .footer-stats{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:repeat(2,1fr); }
  .about-photo{ max-width:360px; margin:0 auto; }
  .tile-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  section{ padding:56px 0; }
  .news-card{ flex-basis:220px; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-stats{ grid-template-columns:1fr 1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .cta{ padding:32px; }
  .tile-grid{ grid-template-columns:1fr; }
}
