/* ================================================
   ODE COMMUNICATIONS — STYLES
   ================================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,700;9..40,800&family=Fraunces:opsz,wght@9..144,400;9..144,700&family=Lexend+Exa:wght@400;700&display=swap");

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
}

/* ================================================
   HOMEPAGE
   ================================================ */

body.page-home {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: #1b4db3;
  color: #7cbcd4;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Watermark */
#ode-watermark {
  position: absolute;
  right: 5%;
  top: -5%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.17;
  width: 40vw;
}

/* ---- Header ---- */
.home-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 60px 0;
  z-index: 2;
  position: relative;
}

.home-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

#ode-logo {
  height: 60px;
  width: auto;
}

.home-services {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-services a {
  font-family: "Lexend Exa", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #7cbcd4;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.home-services a:hover {
  color: #ffffff;
}

/* ---- Language Toggle ---- */
.lang-toggle {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.lang-btn {
  font-family: "Lexend Exa", sans-serif;
  font-size: 14px;
  color: #7cbcd4;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: #ffffff;
}

.home-lang-sep {
  font-family: "Lexend Exa", sans-serif;
  color: #7cbcd4;
  font-size: 14px;
  opacity: 0.5;
}

/* ---- Main ---- */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 1;
  position: relative;
  min-height: 0;
}

/* Hero Copy */
.hero-copy {
  max-width: 55%;
  margin-block: auto;
}

.hero-text {
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.65;
  color: #ffffff;
}

.hero-text strong {
  font-weight: 700;
}

/* Inline highlights */
.highlight {
  color: #ffffff;
  padding: 0 3px;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Keep the highlight block beneath the heading text so a tall accent box
   on one line can't cover descenders (e.g. the "g" in "Bilingual") above it */
.inner-hero-heading .highlight {
  position: relative;
  z-index: -1;
}

.highlight-strategy {
  background-color: #b08550;
}
.highlight-content {
  background-color: #7cbcd4;
}
.highlight-emceeing {
  background-color: #1a7a50;
}

/* ---- Service Cards ---- */
.cards-container {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  padding-bottom: 2vh;
}

.service-card {
  flex: 0 0 300px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.service-card:nth-child(1) { box-shadow: 6px 6px 0 #B08550; }
.service-card:nth-child(2) { box-shadow: 6px 6px 0 #7CBCD4; }
.service-card:nth-child(3) { box-shadow: 6px 6px 0 #1A7A50; }

.service-card:hover {
  transform: translateY(-4px);
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  overflow: hidden;
  position: relative;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-label {
  position: absolute;
  bottom: 12px;
  left: 8px;
  right: 8px;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(16px, 5vw, 26px);
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.65);
  text-align: center;
}

/* ---- Footer ---- */
.home-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 60px 20px;
  z-index: 2;
  position: relative;
}

.home-footer-company {
  font-family: "Lexend Exa", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #7cbcd4;
}

.home-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-footer-email {
  font-family: "Lexend Exa", sans-serif;
  font-size: 14px;
  color: #7cbcd4;
  transition: color 0.2s ease;
}

.home-footer-email:hover {
  color: #ffffff;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7cbcd4;
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: #ffffff;
}

/* ================================================
   INNER PAGES — shared chrome
   ================================================ */

body.inner-page {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #1b4db3;
  --page-accent: #7cbcd4;
  --on-accent-soft: #7cbcd4;
  --on-accent-muted: rgba(255, 255, 255, 0.45);
  --hairline: rgba(255, 255, 255, 0.18);
}

body.page-strategy  { --page-accent: #b08550; }
body.page-content   { --page-accent: #7cbcd4; }
body.page-emceeing   { --page-accent: #1a7a50; }

/* On inner pages, the homepage header is reused but stays fixed on scroll */
body.inner-page .home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(27, 77, 179, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding-bottom: 18px;
}

/* Reserve space for the fixed nav so hero doesn't slide under it */
body.inner-page .page-wrapper {
  padding-top: 120px;
}

@media (max-width: 768px) {
  body.inner-page .page-wrapper {
    padding-top: 110px;
  }
}

/* Active page pill in the header nav */
body.inner-page .home-services a.active {
  color: #ffffff;
  background: var(--page-accent);
  padding: 1px 8px;
  margin-left: -8px;
}

/* Content's sky accent needs darker text for contrast */
body.page-content .home-services a.active,
body.page-content .inner-hero-heading .highlight-content {
  color: #1b4db3;
}

/* Watermark — mirrors the homepage placement and treatment */
.inner-watermark {
  position: absolute;
  right: 5%;
  top: -5vh;
  width: 40vw;
  opacity: 0.17;
  pointer-events: none;
  z-index: 0;
}

/* ---- Page shell ---- */
.page-wrapper {
  position: relative;
  z-index: 1;
}

.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 60px 0;
}

/* ---- Hero ---- */
.inner-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: end;
  padding: 60px 0 8px;
}

.inner-hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.inner-hero-text > p {
  max-width: 52ch;
}

.inner-hero-heading {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.inner-hero-body {
  font-family: "DM Sans", sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-accent-soft);
  max-width: 48ch;
}

/* ---- Section scaffolding ---- */
.capabilities-section,
.why-section {
  padding: 32px 0 20px;
}

/* ---- Why grid (Hosting) ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 48px;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.why-title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
}

.why-desc {
  font-family: "DM Sans", sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--on-accent-soft);
}

/* ---- CTA ---- */
.cta-section {
  margin-top: 60px;
  padding: 50px 0 30px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta-heading {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid var(--page-accent);
  font-family: "Lexend Exa", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-btn:hover {
  background: var(--page-accent);
  border-color: var(--page-accent);
  color: #ffffff;
}

/* ---- Contact page ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  padding: 60px 0 40px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-heading {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.contact-intro {
  font-family: "DM Sans", sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-accent-soft);
  max-width: 50ch;
}

.contact-intro a {
  color: inherit;
  transition: color 0.2s ease;
}

.contact-intro a:hover {
  color: #ffffff;
}

/* ---- Form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: "Lexend Exa", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-accent-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: #ffffff;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: #ffffff;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--on-accent-muted);
}

.form-field select option {
  background: #1b4db3;
  color: #ffffff;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: "DM Sans", sans-serif;
}

.form-submit {
  align-self: flex-start;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border: 1px solid #ffffff;
  font-family: "Lexend Exa", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.form-submit:hover {
  background: #ffffff;
  color: #1b4db3;
}

/* ================================================
   INNER PAGES — responsive
   ================================================ */

@media (max-width: 900px) {
  .page-main { padding: 20px 24px 0; }

  .inner-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 20px 0 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .capabilities-section,
  .why-section {
    padding: 32px 0 16px;
  }

  .cta-section { margin-top: 40px; padding: 40px 0 20px; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 20px 0 30px;
  }

  .inner-watermark { width: 80vw; top: 0; right: -10vw; }
}

/* Mobile-only: hide hero heading per design (kept on desktop) */
@media (max-width: 768px) {
  .inner-hero-heading { display: none; }
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
  body.page-home {
    height: 100vh;
    overflow: hidden;
  }

  .home-header {
    padding: 20px 24px 0;
  }

  .home-services a,
  .lang-btn,
  .home-lang-sep {
    font-size: 14px;
  }

  .home-services {
    gap: 0;
  }

  .home-services a {
    padding: 2px 0;
    line-height: 1.3;
  }

  #ode-logo {
    height: 56px;
  }

  .home-main {
    padding: 0 24px;
  }

  .hero-copy {
    max-width: 100%;
    margin: 0;
    padding: 20px 0 16px;
  }

  .hero-text {
    font-size: 18px;
    line-height: 1.75;
  }

  .cards-container {
    flex-direction: row;
    gap: 8px;
    padding: 0;
    justify-content: center;
    flex: 0.92;
    min-height: 0;
    margin: auto 0;
  }

  .service-card {
    flex: 1 1 0;
    min-width: 0;
  }

  .card-img-placeholder {
    aspect-ratio: auto;
    height: 100%;
  }

  .card-label {
    bottom: 8px;
  }

  #ode-watermark {
    width: 65vw;
    top: 8%;
  }

  .home-footer {
    padding: 16px 24px 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .home-footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
  }

  .home-footer-email {
    flex-basis: 100%;
    text-align: center;
  }

  .home-footer-company,
  .home-footer-email {
    font-size: 12px;
  }
}
