/* =====================================================================
   Lodoss Energy — Brand Stylesheet
   Brand palette: deep navy / champagne gold / teal — luxurious, maritime
   ===================================================================== */

:root {
  --navy-900: #0A1628;
  --navy-800: #0F1F36;
  --navy-700: #16294A;
  --navy-600: #1E3658;
  --gold:     #C9A86A;
  --gold-dim: #B89766;
  --gold-light: #E0C58F;
  --teal:     #1B6E7A;
  --teal-light:#2C8E9C;
  --cream:    #F4EFE6;
  --ink:      #0A1628;
  --muted:    #6B7A8C;
  --line:     rgba(201, 168, 106, 0.25);
  --line-soft:rgba(255, 255, 255, 0.08);
  --bg:       #FAF8F4;
  --white:    #FFFFFF;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --container-wide: 1360px;
  --radius: 4px;

  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.18);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-dim); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--navy-900);
}
h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0.02em; }
p  { margin: 0 0 1rem; color: #243349; }

.serif { font-family: var(--serif); }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.2rem;
}
.eyebrow.on-dark { color: var(--gold-light); }

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

section { padding: 6rem 0; }
@media (max-width: 720px) { section { padding: 4rem 0; } }

/* ---------- Top navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(201, 168, 106, 0.18);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--container-wide);
  margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-brand img { height: 44px; width: auto; }
.nav-brand-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1;
}
.nav-brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-top: 4px;
}
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: var(--navy-900) !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: background .25s ease, transform .25s ease;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 3px;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute; top: 100%; right: 1rem; left: 1rem;
    flex-direction: column;
    background: var(--navy-800);
    border: 1px solid rgba(201,168,106,0.2);
    padding: 1rem 1.25rem; gap: 0.85rem;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero-content { padding: 6rem 0 8rem !important; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.78) 60%, rgba(10,22,40,0.92) 100%),
                    url("../img/hero-offshore.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-arc {
  position: absolute; bottom: -1px; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-arc svg { width: 100%; height: auto; display: block; }
.hero-content {
  position: relative; z-index: 1;
  padding: 8rem 0 11rem;
  max-width: 880px;
}
.hero h1 {
  color: var(--white);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  margin-bottom: 1.5rem;
  line-height: 1.08;
}
.hero h1 .gold { color: var(--gold); font-style: italic; }
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--navy-900); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); color: var(--white); }

/* ---------- Section intro ---------- */
.section-intro { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }
.section-intro p { color: #44546a; font-size: 1.08rem; }

/* ---------- Services / cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  padding: 2.5rem 2rem 2.25rem;
  border: 1px solid #eee5d3;
  border-top: 3px solid var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 52px; height: 52px;
  margin-bottom: 1.25rem;
  color: var(--teal);
}
.service-card h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.service-card p { color: #4a5a72; font-size: 0.96rem; line-height: 1.6; margin: 0; }

/* ---------- Dark section ---------- */
.dark-section {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}
.dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section p { color: rgba(255,255,255,0.78); }
.dark-section .eyebrow { color: var(--gold-light); }
.dark-section .arc-decoration {
  position: absolute; pointer-events: none;
}

/* ---------- Two column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ---------- Principle blocks (How Big Things Get Done) ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.principle {
  padding: 2rem 1.5rem 2rem 1.5rem;
  border-left: 2px solid var(--gold);
  background: rgba(255,255,255,0.03);
}
.principle .num {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}
.principle h4 {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

/* ---------- Chasm visual ---------- */
.chasm-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,106,0.2);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
}
.chasm-segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin: 1.5rem 0 1rem;
}
.chasm-segments div {
  text-align: center;
  padding: 0.85rem 0.4rem;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  border: 1px solid transparent;
}
.chasm-segments div.chasm { color: var(--gold); border-color: var(--gold); background: rgba(201,168,106,0.08); position: relative; }
.chasm-segments div.us { background: var(--gold); color: var(--navy-900); font-weight: 700; }
@media (max-width: 720px) {
  .chasm-segments { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- About / team ---------- */
.about-card {
  background: var(--white);
  padding: 3rem;
  border: 1px solid #eee5d3;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-monogram {
  width: 240px; height: 240px;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
}
.about-monogram .mono {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gold);
  font-weight: 500;
}
@media (max-width: 720px) {
  .about-card { grid-template-columns: 1fr; padding: 2rem; text-align: center; }
  .about-monogram { margin: 0 auto; width: 180px; height: 180px; }
  .about-monogram .mono { font-size: 4rem; }
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.expertise-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.95rem;
}
.expertise-item::before {
  content: ""; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  margin-top: 0.55rem; flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-info p { color: rgba(255,255,255,0.78); }
.contact-info .info-row {
  display: flex; gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(201,168,106,0.18);
}
.contact-info .info-row:last-child { border-bottom: none; }
.contact-info .label {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  min-width: 90px;
}
.contact-info .value { color: var(--white); }
.contact-info .value a { color: var(--white); border-bottom: 1px dotted var(--gold); }
.contact-info .value a:hover { color: var(--gold); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,106,0.25);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

.contact-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.1rem;
}
.contact-form label:first-of-type, .form-row label { margin-top: 0; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  border-radius: 2px;
  transition: border-color .25s ease, background .25s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button {
  margin-top: 1.5rem;
  width: 100%;
}
.form-note { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 1rem; }
.form-message {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-size: 0.92rem;
  display: none;
}
.form-message.success { background: rgba(27, 110, 122, 0.25); border: 1px solid var(--teal-light); color: #c9e9ee; display: block; }
.form-message.error   { background: rgba(180, 60, 60, 0.18); border: 1px solid #b45a5a; color: #ffd7d7; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #06101F;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(201,168,106,0.15);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 60px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.6); }
.site-footer h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer ul a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 1rem;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(10,22,40,0.78) 0%, rgba(10,22,40,0.92) 100%),
                    url("../img/windfarm-aerial.jpg");
  background-size: cover; background-position: center;
  opacity: 0.9;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--white);
  font-weight: 400;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
}
.page-hero .lead {
  max-width: 680px; margin: 1.2rem auto 0;
  font-size: 1.1rem; color: rgba(255,255,255,0.82);
  font-weight: 300;
}
.page-hero.floating::before {
  background-image: linear-gradient(180deg, rgba(10,22,40,0.78) 0%, rgba(10,22,40,0.92) 100%),
                    url("../img/floating-wind.jpg");
}
.page-hero.contact-hero::before {
  background-image: linear-gradient(180deg, rgba(10,22,40,0.82) 0%, rgba(10,22,40,0.94) 100%),
                    url("../img/turbine-vertical.jpg");
}

/* ---------- Quote block ---------- */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 0.8rem 0 0.8rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: #2c3a52;
  line-height: 1.5;
}
.quote-block cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-style: normal;
  font-family: var(--sans);
}
.dark-section .quote-block { color: rgba(255,255,255,0.92); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }

/* ---------- Decorative arcs (brand signature) ---------- */
.brand-arc {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.brand-arc svg { display: block; }

/* ==========================================================================
   Language Switcher  (.lang-switch)
   ========================================================================== */

.lang-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.lang-switch button {
  background: transparent;
  border: 1px solid #C9A86A;
  color: var(--navy-900);
  padding: 0.28rem 0.55rem;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

/* On dark/transparent header (when scrolled or on dark-hero pages) */
.site-header.scrolled .lang-switch button,
.site-header.transparent .lang-switch button {
  color: #fff;
  border-color: rgba(201, 168, 106, 0.7);
}

.lang-switch button:hover {
  background: rgba(201, 168, 106, 0.15);
  border-color: #C9A86A;
}

.lang-switch button.active {
  background: #C9A86A;
  color: var(--navy-900);
  border-color: #C9A86A;
}

.lang-switch button.active:hover {
  background: #b8964f;
  border-color: #b8964f;
}

/* Mobile — keep visible on header bar, shrink slightly */
@media (max-width: 900px) {
  .lang-switch {
    margin-right: 0.5rem;
    gap: 0.2rem;
    order: -1;          /* sit before nav-toggle on small screens */
  }

  .lang-switch button {
    font-size: 0.7rem;
    padding: 0.25rem 0.45rem;
  }
}
