/* ==========================================================================
   MaxSafe Services Ltd — Stylesheet
   Hybrid style: modern layout, traditional/authoritative palette
   ========================================================================== */

:root {
  --navy: #0c2340;
  --navy-dark: #071627;
  --navy-tint: #12345f;
  --gold: #c8973a;
  --gold-dark: #a87b25;
  --teal: #1f6f78;
  --off-white: #f7f6f2;
  --white: #ffffff;
  --text: #1c2833;
  --text-light: #566072;
  --border: #e3e2dc;
  --shadow: 0 10px 30px rgba(12, 35, 64, 0.08);
  --radius: 6px;
  --max-width: 1160px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--text); }
.lede { font-size: 1.15rem; color: var(--text-light); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--off { background: var(--off-white); }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn--navy-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--navy-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
}
.nav__brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
}
.nav__brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
}
.nav__brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 2px;
}
.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav__links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--gold-dark); }
.nav__links .btn { padding: 10px 20px; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    transition: max-height 0.25s ease;
  }
  .nav__links.is-open { max-height: 480px; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 24px; width: 100%; border-top: 1px solid var(--border); }
  .nav__links .btn { margin: 14px 24px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero__eyebrow {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 44px;
}
.hero__stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 700;
}
.hero__stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  fill: var(--off-white);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header > .container {
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(12,35,64,0.12); }
.card__icon { color: var(--gold); margin-bottom: 16px; }
.card__icon svg { width: 40px; height: 40px; }
.card h3 { margin-bottom: 10px; }
.card a.card__link { font-weight: 600; }

.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(12,35,64,0.12); border-color: var(--gold); }
.service-card h3 { color: var(--navy); }
.service-card p { color: var(--text-light); margin-bottom: 0; }
.service-card__more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--gold-dark); }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: center;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.side-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.side-box h3 { font-size: 1.1rem; margin-bottom: 14px; }
.side-box ul { margin: 0; padding-left: 20px; }
.side-box li { margin-bottom: 8px; }

/* ---------- Founder / about blocks ---------- */
.timeline {
  border-left: 3px solid var(--gold);
  padding-left: 28px;
  margin: 32px 0;
}
.timeline__item { margin-bottom: 28px; }
.timeline__item h4 { margin-bottom: 6px; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--gold-dark);
  font-family: var(--font-body);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 18px; margin: 0; color: var(--text-light); }

/* ---------- Service illustration ---------- */
.header-watermark {
  position: absolute;
  top: 0;
  right: -40px;
  height: 100%;
  width: 55%;
  max-width: 620px;
  object-fit: cover;
  object-position: right center;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 22%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}
@media (max-width: 720px) {
  .header-watermark { display: none; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,111,120,0.15);
}
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.82rem; color: var(--text-light); margin-top: 10px; }
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  display: none;
}
.form-status.is-success { display: block; background: #e7f4e8; color: #1e6b2a; }
.form-status.is-error { display: block; background: #fbe9e7; color: #a3311c; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Contact info blocks ---------- */
.contact-info { display: grid; gap: 22px; }
.contact-info__item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info__icon { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-info__label { font-weight: 700; color: var(--navy); margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer p { color: rgba(255,255,255,0.75); }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gold); }
.site-footer li { color: rgba(255,255,255,0.75); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-name {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.3rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
