/* ==========================================================================
   EasyTrial.net — Design System & Layout
   Faithful recreation of easytrial.net Wix theme tokens
   ========================================================================== */

:root {
  --teal-dark: #0b5f59;
  --teal-mid: #2b7c74;
  --teal-light: #e9f4f6;
  --mint-border: #38c68b;
  --peach-bg: #fff5f0;
  --text-dark: #2f2e2e;
  --text-black: #000000;
  --text-muted: #605e5e;
  --white: #ffffff;
  --border-light: #e2e8ea;
  --container-width: 980px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Sarabun', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.3s ease;
}

a:hover {
  color: var(--teal-mid);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-black);
  flex-shrink: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--teal-dark);
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

.main-nav {
  background-color: var(--teal-light);
  border-radius: 10px;
  padding: 4px 8px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-black);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item.active > .nav-link,
.nav-link:hover {
  background-color: var(--teal-dark);
  color: var(--white);
}

.has-dropdown .nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 190px;
  background-color: var(--teal-light);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 200;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown.dropdown-open .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-black);
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-dropdown li a:hover {
  background-color: var(--teal-dark);
  color: var(--white);
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--teal-dark);
  border-radius: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, #e9f4f6 0%, #f7fbfc 100%);
  overflow: hidden;
}

.hero-banner-wrap {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px 0;
}

.hero-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border-left: 5px solid var(--teal-dark);
  border-radius: 8px;
  padding: 32px 36px;
  max-width: 780px;
  box-shadow: 0 8px 24px rgba(11, 95, 89, 0.08);
}

.hero-card h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.25;
  color: var(--teal-dark);
  margin: 0 0 12px;
}

.hero-lead {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   CTA Bar & Buttons
   ========================================================================== */

.cta-bar-section {
  padding: 28px 0;
  background-color: var(--white);
}

.cta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.et-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--teal-dark);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  padding: 14px 20px;
  border-radius: 8px;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: background-color 0.35s ease, transform 0.15s ease;
}

.et-btn:hover {
  background-color: var(--teal-mid);
  color: var(--white);
  transform: translateY(-1px);
}

.et-btn-sm {
  font-size: 16px;
  padding: 10px 24px;
}

/* ==========================================================================
   New Article Strip
   ========================================================================== */

.article-strip-section {
  background-color: var(--peach-bg);
  padding: 28px 0;
  border-top: 1px solid #f5e2d8;
  border-bottom: 1px solid #f5e2d8;
}

.article-strip {
  display: flex;
  align-items: center;
  gap: 24px;
}

.article-thumb {
  flex-shrink: 0;
  width: 150px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-thumb img {
  width: 150px;
  height: 94px;
  object-fit: cover;
}

.article-body {
  flex: 1;
}

.article-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-dark);
  margin-bottom: 4px;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.article-body p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.article-action {
  flex-shrink: 0;
}

/* ==========================================================================
   Section Headings
   ========================================================================== */

.section-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.3;
  color: var(--teal-dark);
  text-align: center;
  margin: 0 0 8px;
}

.section-subheading {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 28px;
}

/* ==========================================================================
   Audiences Grid ("How do you perform clinical trials?")
   ========================================================================== */

.audiences-section {
  padding: 48px 0 24px;
  background-color: var(--white);
}

.audiences-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--teal-light);
  border: 1px solid #d2e7eb;
  border-top: 4px solid var(--teal-dark);
  border-radius: 8px;
  padding: 22px;
  color: var(--text-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(11, 95, 89, 0.12);
  border-color: var(--teal-mid);
  color: var(--text-dark);
}

.audience-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--teal-dark);
  margin: 0 0 8px;
}

.audience-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.audience-more {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-dark);
}

/* ==========================================================================
   Videos Section
   ========================================================================== */

.videos-section {
  padding: 36px 0;
  background-color: #f7fafb;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.video-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--teal-dark);
  text-align: center;
  margin: 0 0 14px;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Key Features Grid
   ========================================================================== */

.key-features-section {
  padding: 48px 0;
  background-color: var(--white);
}

.key-features-section .section-heading {
  margin-bottom: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 18px;
}

.feature-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-dark);
  padding: 10px 6px;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.feature-tile:hover {
  transform: translateY(-3px);
  background-color: var(--teal-light);
  color: var(--teal-dark);
}

.feature-icon-wrap {
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.feature-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

/* ==========================================================================
   Partner Logos Strip
   ========================================================================== */

.partners-section {
  padding: 28px 0;
  background-color: #f7fafb;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.partner-logo-item img {
  max-height: 76px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   Testimonials Section ("What do users say?")
   ========================================================================== */

.testimonials-section {
  padding: 48px 0 60px;
  background-color: var(--white);
}

.testimonials-section .section-heading {
  margin-bottom: 32px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.testimonial-accent-bar {
  height: 6px;
  background-color: var(--teal-mid);
}

.testimonial-photo-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f3f7f8;
}

.testimonial-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.testimonial-quote {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
}

.testimonial-author {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--teal-dark);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Subpages
   ========================================================================== */

.subpage-banner {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  color: var(--white);
  padding: 40px 0;
}

.subpage-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  margin: 0;
  color: var(--white);
}

.subpage-body {
  padding: 40px 0 24px;
}

.subpage-content {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-dark);
}

.subpage-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--teal-dark);
  margin: 28px 0 12px;
}

.subpage-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--teal-dark);
  margin: 24px 0 6px;
}

.subpage-content p.lead-teal {
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 500;
}

.subpage-content p {
  margin: 0 0 14px;
}

.subpage-content ul {
  margin: 0 0 18px;
  padding-left: 24px;
}

.subpage-content li {
  margin-bottom: 6px;
}

.subpage-cta-prompt {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.cta-prompt-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--teal-dark);
  margin: 0 0 6px;
}

/* Forms (Request Quote / Free Demo / Contact) */
.et-form {
  max-width: 620px;
  background: var(--teal-light);
  padding: 28px;
  border-radius: 8px;
  border: 1px solid #d2e7eb;
  margin-top: 20px;
}

.et-form-group {
  margin-bottom: 16px;
}

.et-form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.et-form-group input,
.et-form-group select,
.et-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bdd4d8;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
}

.et-form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.et-form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   Licensing Page (3 License Cards + 26-Row Comparison Table)
   ========================================================================== */

.license-section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  color: var(--teal-dark);
  text-align: center;
  margin: 36px 0 24px;
}

.license-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.license-card {
  background-color: var(--teal-dark);
  color: var(--white);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  box-shadow: 0 6px 18px rgba(11, 95, 89, 0.14);
}

.license-card-arrow {
  width: 34px;
  height: 27px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.license-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--white);
  text-align: center;
  margin: 0 0 18px;
}

.license-card p {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--white);
  margin: 0 0 12px;
  width: 100%;
}

.license-card p:last-child {
  margin-bottom: 0;
}

.license-table-wrap {
  max-width: 820px;
  margin: 16px auto 32px;
  overflow-x: auto;
  border: 3px solid var(--teal-mid);
  background: var(--white);
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 16px;
}

.license-table thead th {
  background-color: var(--teal-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  padding: 18px 14px;
  text-align: center;
  border-bottom: 2px solid var(--teal-mid);
}

.license-table thead th:first-child {
  text-align: left;
  padding-left: 20px;
}

.license-table tbody tr {
  border-bottom: 1px solid #d5e4e2;
  transition: background-color 0.15s ease;
}

.license-table tbody tr:nth-child(even) {
  background-color: #f6fbfa;
}

.license-table tbody tr:hover {
  background-color: var(--teal-light);
}

.license-table tbody td {
  padding: 20px 14px;
  text-align: center;
  vertical-align: middle;
}

.license-table tbody td:first-child {
  text-align: left;
  padding-left: 20px;
  font-weight: 500;
  color: var(--text-dark);
}

.license-check-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

@media (max-width: 860px) {
  .license-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--teal-dark);
  margin: 0 0 8px;
}

.footer-line,
.footer-cvr {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text-dark);
}

.footer-meta {
  text-align: right;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-social a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.8;
}

.footer-copyright {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .audiences-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .mobile-nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  }
  .main-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .has-dropdown .nav-dropdown {
    position: static;
    box-shadow: none;
    margin-top: 4px;
  }
  .article-strip {
    flex-direction: column;
    text-align: center;
  }
  .videos-grid,
  .testimonials-grid,
  .audiences-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-meta {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}
