/* ===========================================================
   Tripgrid Corporate Site — styles.css
   Brand font: Silka (self-hosted, see assets/fonts/)
   NOTE: .otf files are not yet in assets/fonts/ — upload the 6 Silka
   files (Regular/RegularItalic/Medium/MediumItalic/SemiBold/SemiBoldItalic)
   with the exact filenames below and the page will pick them up automatically.
   =========================================================== */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Silka';
  src: url('assets/fonts/Silka-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Silka';
  src: url('assets/fonts/Silka-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Silka';
  src: url('assets/fonts/Silka-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Silka';
  src: url('assets/fonts/Silka-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Silka';
  src: url('assets/fonts/Silka-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Silka';
  src: url('assets/fonts/Silka-SemiBoldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --orange: #F95A2C;
  --blue: #4A71FB;
  --dark: #191A22;
  --muted: #626784;
  --bg-light: #F6F6F8;
  --white: #FFFFFF;
  --green: #32B366;
  --teal: #53D0C1;
  --gold: #FFCE4D;

  /* section accent colors (2a-2d image panels) — muted/lightened versions
     of the brand accents, closer to the softer palette on tripgrid.com */
  --accent-green: #B8DA70;
  --accent-pink: #FF9FC8;
  --accent-teal: #8FE0D7;
  --accent-yellow: #FFDF8B;

  /* light blue used for the Travel Managers section, echoing tripgrid.com */
  --blue-light: #AEBFFD;

  --border: rgba(25, 26, 34, 0.28);

  --font: 'Silka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --container: 1280px;
  --gutter: 40px;
  /* Larger left indent for Hero / How It Works intro / Travel Managers —
     deliberately more pronounced than the nav's --gutter, echoing the
     indent used on tripgrid.com's live marketing site. */
  --indent: clamp(64px, 9vw, 160px);
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
/* Fluid variant — no fixed max-width cap, so children set to a
   percentage width (e.g. 80%) scale with the actual viewport,
   not a capped 1280px container. */
.container-fluid {
  max-width: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.6); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
/* Logo sized to match the live tripgrid.com nav (an estimate — no
   pixel-exact reference available; adjust if it doesn't match). */
.logo img { height: 34px; width: auto; }

/* ---- Hero (left aligned, full width) ---- */
.hero {
  padding: 96px 0 88px;
  width: 100%;
}
.hero .container-fluid {
  padding-left: var(--indent);
}
.hero .inner {
  text-align: left;
}
.hero h1 {
  width: 80%;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
}
.hero p .line {
  display: block;
}
.hero p .line + .line {
  margin-top: 8px;
}
.hero p .line-accent {
  font-size: 17px;
  color: var(--orange);
}

/* ---- How It Works ---- */
.how-it-works {
  width: 100%;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding-bottom: 0;
}
.how-it-works .section-intro-wrap {
  padding: 64px var(--gutter) 56px var(--indent);
  width: 100%;
}
.how-it-works .section-heading {
  width: 80%;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 16px;
}
.how-it-works .section-intro {
  width: 80%;
  text-align: left;
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }

.feature-media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.feature-media.bg-green  { background: var(--accent-green); }
.feature-media.bg-pink   { background: var(--accent-pink); }
.feature-media.bg-teal   { background: var(--accent-teal); }
.feature-media.bg-yellow { background: var(--accent-yellow); }

.feature-media img.base-img {
  /* ~25% larger than before (440px -> 550px), cutting into the
     colored space around it; padding above was also reduced to match. */
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(25,26,34,0.18);
}
.feature-copy {
  background: var(--bg-light);
  padding: 56px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.feature-copy .inner { max-width: 460px; }
.feature-copy h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.feature-copy p.body {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 22px;
}
.feature-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--dark);
}
.feature-points li::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
}
/* Bullet dot color matches each row's own accent color. */
.feature-row.accent-green .feature-points li::before  { background: var(--accent-green); }
.feature-row.accent-pink .feature-points li::before   { background: var(--accent-pink); }
.feature-row.accent-teal .feature-points li::before   { background: var(--accent-teal); }
.feature-row.accent-yellow .feature-points li::before { background: var(--accent-yellow); }

/* ---- For Travel Managers (left aligned, full bleed muted teal) ---- */
.travel-managers {
  width: 100%;
  background: var(--accent-teal);
  color: var(--dark);
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.travel-managers .container-fluid {
  padding-left: var(--indent);
}
.travel-managers h2 {
  width: 80%;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 24px;
}
.travel-managers .inner {
  max-width: none;
  width: 80%;
  text-align: left;
}
.travel-managers .subhead {
  /* Halfway between the old 18px subhead and the h2 (clamp(28px, 4vw, 40px)) */
  font-size: clamp(23px, 2vw, 29px);
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 40px;
}
.tm-lines {
  display: grid;
  gap: 20px;
  text-align: left;
  margin-bottom: 44px;
}
.tm-lines .tm-line {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid rgba(25,26,34,0.1);
  border-radius: 12px;
}
.tm-lines .num {
  font-weight: 600;
  color: var(--dark);
  font-size: 15px;
  flex: 0 0 auto;
}
.tm-lines p {
  color: var(--muted);
  font-size: 16px;
}

/* ---- Proof / Why Tripgrid (left aligned, full bleed) ---- */
.proof {
  width: 100%;
  background: var(--bg-light);
  color: var(--dark);
  padding: 64px 0 56px;
  border-top: 1px solid var(--border);
}
.proof .container-fluid {
  padding-left: var(--indent);
}
.proof .inner {
  max-width: none;
  width: 100%;
  text-align: left;
}
.proof-lead {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 24px;
}
.proof-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  /* Matches the Travel Managers subhead size */
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 600;
  color: var(--dark);
}
.proof-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dark);
  margin-top: 0.55em;
}

/* ---- Footer ---- */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a,
.footer-links button {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--dark); }

/* ---- Contact Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25,26,34,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 44px 40px 36px;
  position: relative;
  box-shadow: 0 30px 80px rgba(25,26,34,0.35);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  color: var(--dark);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}
.modal .lede {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.contact-form {
  display: grid;
  gap: 14px;
  text-align: left;
}
.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(25,26,34,0.18);
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--bg-light);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form .btn { margin-top: 4px; width: 100%; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  min-height: 18px;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #991F1F; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .feature-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-copy { order: initial; }
  .feature-media { border-left: none; border-right: none; border-top: 1px solid var(--border); padding: 36px 24px; }
  .feature-copy { padding: 40px 24px; }
  .feature-copy .inner { max-width: none; }
  .hero { padding: 64px 0 56px; }
  .how-it-works .section-intro-wrap { padding: 44px 24px 40px; }
  .travel-managers, .proof { padding: 64px 0; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
  .modal { padding: 36px 24px 28px; }
}
