/* nSynthesis.com — Clean Static + Cloudflare Worker Replacement Site */
:root {
  --brand-red: #ed1c24;
  --brand-red-dark: #c9141b;
  --brand-black: #000000;
  --brand-white: #ffffff;
  --text-light: #d4d4d4;
  --text-muted: #9c9c9c;
  --font-serif: Georgia, Palatino, "Book Antiqua", "Palatino Linotype", serif;
  --font-sans: Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--brand-white);
  color: var(--brand-black);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  background: var(--brand-black);
  color: var(--brand-white);
  border-bottom: 4px solid var(--brand-black);
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo img {
  display: block;
  width: 340px;
  max-width: 100%;
  height: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--brand-white);
  transition: color 0.2s ease;
  padding: 4px 2px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-red);
}

/* Red Hero Band (Home, About, Services) */
.red-band {
  background: var(--brand-red);
  border-top: 6px solid var(--brand-black);
  border-bottom: 6px solid var(--brand-black);
  position: relative;
}

.red-band-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Home Hero Slideshow */
.hero-slideshow {
  position: relative;
  width: 465px;
  max-width: 100%;
  height: 310px;
  background: #000;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #0088cb;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-sublogo {
  position: absolute;
  right: 12%;
  bottom: 14px;
  width: 96px;
  height: auto;
  pointer-events: none;
}

/* Home Main Content */
.home-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-map-bg {
  position: relative;
  width: 645px;
  max-width: 100%;
  min-height: 337px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-map-bg img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
}

.home-mission-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
}

.home-mission-text p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.28;
  color: var(--brand-black);
  text-align: left;
}

/* About Page */
.about-hero-photo {
  width: 185px;
  height: 290px;
  border: 1px solid rgba(255,255,255,0.25);
  overflow: hidden;
}

.about-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.about-copy h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: normal;
  font-size: 34px;
  margin: 0 0 18px;
}

.about-copy p {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.35;
  margin: 0;
}

.about-safety {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-safety img {
  width: 280px;
  max-width: 100%;
  height: auto;
  display: block;
}

.safety-caption {
  margin-top: -12px;
  border-bottom: 1px solid #9c9c9c;
  padding-bottom: 6px;
}

.safety-caption .safety-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 34px;
}

.safety-caption .safety-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  margin-left: 6px;
}

/* Services Page */
.services-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 58px 24px;
  text-align: center;
}

.services-hero-inner p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.35;
  color: #fdfdfe;
}

.services-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 20px 72px;
}

.services-focus-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: normal;
  font-size: 24px;
  margin: 0 0 28px 60px;
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.services-list li {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 2.05;
  color: var(--brand-red);
}

/* Contact Page */
.contact-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 20px 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.contact-graphic {
  position: relative;
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-graphic .map-img {
  width: 100%;
  max-width: 545px;
  height: auto;
  display: block;
}

.contact-graphic .red-n-overlay {
  position: absolute;
  width: 240px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-55%, -44%);
}

.contact-right h1 {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 60px;
  line-height: 1.05;
  margin: 0 0 18px;
}

.contact-company {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: normal;
  font-size: 34px;
  color: var(--brand-red);
  margin: 0 0 8px;
}

.contact-address {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 22px;
}

.contact-address p {
  margin: 0;
}

.contact-address .spacer {
  height: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 14px;
  border-radius: 0;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.form-status {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #4a7c0f;
}

.btn-send {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  font-family: var(--font-serif);
  font-size: 15px;
  cursor: pointer;
  margin-left: auto;
}

.btn-send:hover {
  background: var(--brand-red);
}

/* Message Opt-in Strip on Contact Page */
.optin-banner {
  position: relative;
  background: url('/assets/business-meeting-bg.jpg') center center / cover no-repeat;
  padding: 64px 20px 72px;
  text-align: center;
  color: #ffffff;
}

.optin-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.optin-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.optin-banner h2 {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 60px;
  margin: 0 0 12px;
  color: #ffffff;
}

.optin-banner p {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 32px;
  color: #ffffff;
}

.optin-buttons {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.btn-opt {
  background: var(--brand-red);
  color: #ffffff;
  border: 1px solid #ffffff;
  min-width: 190px;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.btn-opt:hover {
  background: var(--brand-red-dark);
}

/* Privacy Policy Page */
.privacy-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.privacy-title {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 56px;
  text-align: center;
  margin: 0 0 36px;
}

.privacy-content {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.55;
  color: #111111;
}

.privacy-content h1 {
  font-size: 28px;
  margin-top: 0;
}

.privacy-content h2 {
  font-size: 22px;
  margin-top: 28px;
}

.privacy-content h3 {
  font-size: 18px;
  margin-top: 20px;
}

/* Modal Lightboxes (Opt in / Opt out) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #000000;
  color: #ffffff;
  border: 2px solid var(--brand-red);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 40px;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.modal-logo {
  width: 240px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}

.modal-card h3 {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 48px;
  margin: 0 0 10px;
}

.modal-card p.modal-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  color: #f0f0f0;
  margin: 0 0 22px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.modal-form input[type="email"],
.modal-form input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
}

.modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #e0e0e0;
  line-height: 1.4;
}

.modal-submit {
  background: var(--brand-red);
  color: #ffffff;
  border: none;
  padding: 11px 24px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 6px;
}

.modal-feedback {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #bada55;
  min-height: 20px;
  margin-top: 6px;
}

/* Footer */
.site-footer {
  background: var(--brand-black);
  color: var(--text-light);
  border-top: 4px solid var(--brand-red);
  padding: 36px 20px 48px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: normal;
  font-size: 24px;
  color: var(--text-light);
  margin: 0 0 18px;
}

.footer-contact-details {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--brand-white);
  margin-bottom: 26px;
}

.footer-contact-details p {
  margin: 0;
}

.footer-contact-details .email-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand-white);
}

.footer-contact-details .email-link:hover {
  color: var(--brand-red);
}

.footer-legal {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-light);
  margin: 0 0 10px;
}

.footer-privacy-link {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--brand-white);
  text-decoration: underline;
}

.footer-markets-grid {
  display: grid;
  grid-template-columns: repeat(2, 145px);
  gap: 10px;
}

.market-tile {
  position: relative;
  width: 145px;
  height: 98px;
  overflow: hidden;
  border: 1px solid #333;
  display: block;
}

.market-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.market-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  background: rgba(15, 76, 129, 0.65);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-main,
  .contact-main,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .home-mission-text p {
    font-size: 21px;
  }
  .services-focus-heading {
    margin-left: 0;
    text-align: center;
  }
}
