/* ==========================================================
   3S MARS – static website styles
   Brand colors are taken from the logo (navy + gold).
   ========================================================== */

@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-italic-var.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #094b6b;
  --navy-deep: #06344b;
  --gold: #976f04;
  --gold-text: #7a5a00;
  --gold-soft: #f7f0de;
  --ink: #17313f;
  --muted: #4d6473;
  --line: #e2e9ee;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(9, 75, 107, 0.25);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 700px) { .container { padding-inline: 32px; } }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & small elements ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 500 0.95rem/1 var(--sans);
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 10px 22px; font-size: 0.9rem; }

.eyebrow {
  font: 500 0.78rem/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.eyebrow-light { color: #e7c874; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 20px -14px rgba(9, 75, 107, 0.4);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-block; line-height: 0; }
.brand img { height: 44px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--navy); background: var(--bg-alt); }
.site-nav a.active:not(.btn) { color: var(--navy); background: var(--gold-soft); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(9, 75, 107, 0.35);
    padding: 12px 20px 20px;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 14px 16px; font-size: 1rem; }
  .site-nav .btn { margin: 10px 0 0; width: 100%; padding: 15px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 0;
  background:
    radial-gradient(900px 500px at 92% -10%, var(--gold-soft) 0%, rgba(247, 240, 222, 0) 60%),
    linear-gradient(#fff, #fff);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-block: 24px 56px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--gold-text);
  margin-bottom: 20px;
}
.hero-text {
  max-width: 34rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}
.hero-orb {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #ffffff 0%, var(--gold-soft) 55%, #efe3c2 100%);
  box-shadow: 0 30px 60px -30px rgba(9, 75, 107, 0.35), inset 0 0 0 1px rgba(151, 111, 4, 0.12);
}
.hero-visual img {
  position: relative;
  width: 84%;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .hero-visual { order: -1; max-width: 250px; }
}

/* MARS strip */
.mars-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  transform: translateY(50%);
}
.mars-strip a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s;
}
.mars-strip a:hover { transform: translateY(-3px); border-color: var(--gold); }
.mars-letter {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font: 600 1.25rem/1 var(--serif);
}
.mars-name { font-weight: 500; font-size: 0.92rem; line-height: 1.35; }

@media (max-width: 860px) {
  .mars-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; transform: translateY(35px); }
  .mars-strip a { padding: 14px; gap: 10px; }
  .mars-letter { width: 38px; height: 38px; font-size: 1.1rem; }
  .mars-name { font-size: 0.82rem; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0 40px; }
#about { padding-top: 150px; }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text .lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 20px;
}

.values { display: grid; gap: 12px; }
.values li {
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.value-word { font: 600 1.35rem/1.3 var(--serif); color: var(--navy); }
.value-meaning { font-size: 0.9rem; color: var(--gold-text); font-weight: 500; letter-spacing: 0.04em; }

.mars-explain { margin-top: 56px; }
.mars-explain h3 { font-size: 1.3rem; margin-bottom: 18px; }
.pillars-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillars-row li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.93rem;
  line-height: 1.35;
}

@media (max-width: 860px) {
  #about { padding-top: 110px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .pillars-row { grid-template-columns: 1fr; } }

/* Philosophy band */
.philosophy {
  margin-top: 72px;
  padding: 72px 0;
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(151, 111, 4, 0.35), rgba(151, 111, 4, 0) 70%),
    var(--navy);
  color: #fff;
}
.philosophy-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 48px;
  font: 600 clamp(1.5rem, 3.4vw, 2.5rem)/1.25 var(--serif);
}
.philosophy-line span { display: block; }
.philosophy-line span:nth-child(even) { color: #f0d585; }
@media (max-width: 520px) { .philosophy-line { grid-template-columns: 1fr; gap: 8px; } .philosophy { padding: 52px 0; } }

/* Mission / Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}
.mv-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, var(--bg-alt));
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}
.mv-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.mv-card p { color: var(--muted); }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; margin-top: 40px; } .mv-card { padding: 28px; } }

/* ---------- Services ---------- */
.section-services { background: #fff; padding-bottom: 0; }
.pillar { padding: 72px 0; border-top: 1px solid var(--line); }
.pillar-alt { background: var(--bg-alt); }
.pillar-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.pillar-letter {
  display: block;
  font: 600 6rem/0.9 var(--serif);
  color: var(--gold);
  opacity: 0.9;
  margin-bottom: 8px;
}
.pillar-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.pillar-kicker { font-style: italic; font-family: var(--serif); color: var(--gold-text); font-size: 1.1rem; margin-bottom: 16px; }
.pillar-head p { color: var(--muted); margin-bottom: 14px; }
.pillar-head .pillar-kicker { color: var(--gold-text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px !important; }
.chips span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.pillar-alt .chips span { background: #fff; border: 1px solid #ecdcae; }

.offers-title {
  font: 500 0.78rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.offers ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.offers li {
  position: relative;
  padding: 22px 22px 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.offers li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
}
.offers li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4dfe6; }
.offers h5 { font: 600 1rem/1.35 var(--sans); color: var(--navy); margin-bottom: 8px; }
.offers li p { font-size: 0.92rem; line-height: 1.65; color: var(--muted); }

@media (max-width: 960px) {
  .pillar { padding: 56px 0; }
  .pillar-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillar-letter { font-size: 4.5rem; }
}
@media (max-width: 560px) { .offers ul { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.section-contact {
  padding: 96px 0;
  background:
    radial-gradient(800px 400px at 0% 100%, var(--gold-soft), rgba(247, 240, 222, 0) 65%),
    #fff;
  border-top: 1px solid var(--line);
}
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.contact-intro p:not(.eyebrow) { color: var(--muted); max-width: 30rem; }

.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact-actions:empty { display: none; }
.contact-lead {
  width: 100%;
  font: 500 0.78rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}
.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-whatsapp { background: #0f7d6f; border-color: #0f7d6f; }
.btn-whatsapp:hover { background: #0b6155; border-color: #0b6155; }
.contact-actions + .contact-list:not(:empty) { margin-top: 24px; }
.contact-list:empty { display: none; }
.contact-list { display: grid; gap: 14px; }
@media (max-width: 560px) { .contact-actions .btn { width: 100%; } }
.contact-list li a,
.contact-list li > span.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.contact-list li a:hover { border-color: var(--gold); background: var(--gold-soft); }
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
}
.contact-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; line-height: 1.4; }
.contact-value { display: block; font-weight: 500; overflow-wrap: anywhere; }
.contact-empty { color: var(--muted); }

.contact-form { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.contact-form[hidden] { display: none; }
.contact-form h3 { font-size: 1.3rem; }
.contact-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.contact-form input,
.contact-form textarea {
  font: 400 1rem/1.5 var(--sans);
  padding: 13px 14px;
  border: 1px solid #cfdbe2;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 3px solid rgba(151, 111, 4, 0.35); border-color: var(--gold); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.8rem; color: var(--muted); }

/* Hidden spam-trap field and screen-reader-only text */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form messages */
.form-status { font-weight: 500; font-size: 0.92rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.ok { color: #0d6b3a; }
.form-status.error { color: #b3261e; }

/* ---------- Newsletter ---------- */
.newsletter {
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(151, 111, 4, 0.4), rgba(151, 111, 4, 0) 70%),
    var(--navy);
}
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.newsletter-copy p:not(.eyebrow) { color: #d3e3ec; max-width: 30rem; }
.nl-row { display: flex; gap: 10px; }
.nl-row input {
  flex: 1;
  min-width: 0;
  font: 400 1rem/1.5 var(--sans);
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: #fff;
  color: var(--ink);
}
.nl-row input:focus { outline: 3px solid #f0d585; outline-offset: 2px; }
.btn-gold { background: #f0d585; border-color: #f0d585; color: var(--navy-deep); }
.btn-gold:hover { background: #e7c874; border-color: #e7c874; color: var(--navy-deep); }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }
.newsletter .form-status { margin-top: 12px; }
.newsletter .form-status.ok { color: #bff0d0; }
.newsletter .form-status.error { color: #ffd2cd; }
.nl-note { margin-top: 12px; font-size: 0.8rem; line-height: 1.6; color: #b9d0dc; }

@media (max-width: 860px) {
  .newsletter { padding: 56px 0; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .nl-row { flex-direction: column; }
  .nl-row .btn { width: 100%; }
}

@media (max-width: 860px) {
  .section-contact { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-panel { padding: 22px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 44px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--gold-text); }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--navy); text-decoration: underline; }
.footer-base { margin-top: 28px; font-size: 0.85rem; color: var(--muted); }
.footer-base p { padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
