/* ============================================
   CAWSAM BIO — "The Authority"
   B2B Bioprocess Consulting
   ============================================ */

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

:root {
  --navy: #0D1F3C;
  --navy-light: #142B50;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --gold: #C9A84C;
  --gold-dark: #B8953A;
  --mid-grey: #6B7A99;
  --light-border: #E2E8F0;
  --text-dark: #1A2332;
  --text-medium: #4A5568;
  --text-light: #8896AB;
  --shadow: 0 1px 3px rgba(13, 31, 60, 0.08);
  --shadow-hover: 0 8px 24px rgba(13, 31, 60, 0.12);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', serif;
  color: var(--navy);
  line-height: 1.3;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--light-border);
}
.btn-outline-dark:hover {
  border-color: var(--navy);
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-medium);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 700;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--mid-grey);
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.nav a:hover { color: var(--white); }

.nav .btn-gold {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
}

.hero-photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px var(--gold);
  flex-shrink: 0;
}

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

.hero-content {
  max-width: 780px;
}

.hero h1 {
  font-size: 3.25rem;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--mid-grey);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-footnote {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-style: italic;
}

/* --- Credibility Bar --- */
.credibility {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
}

.credibility-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.cred-icon {
  color: var(--gold);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cred-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* --- Expertise / Services --- */
.expertise {
  padding: 5rem 0;
  background: var(--white);
}

.expertise-header {
  margin-bottom: 48px;
}

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

.expertise-card {
  border: 1px solid var(--light-border);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.expertise-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.expertise-card-icon {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.expertise-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.expertise-card p {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* --- Modalities --- */
.modalities {
  padding: 5rem 0;
  background: var(--navy);
}

.modalities-header {
  margin-bottom: 40px;
}

.modalities-header .section-title { color: var(--white); }
.modalities-header .section-subtitle { color: var(--mid-grey); }

.modalities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modality-pill {
  padding: 10px 22px;
  border: 1px solid var(--gold);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.modality-pill:hover {
  background: var(--gold);
  color: var(--navy);
}

/* --- Career Timeline --- */
.timeline-section {
  padding: 5rem 0;
  background: var(--white);
}

.timeline-header {
  margin-bottom: 48px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.timeline-entry {
  position: relative;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--light-border);
}

.timeline-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-company {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 4px;
}

.timeline-role {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-dates {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.timeline-bullets {
  list-style: none;
}

.timeline-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 8px;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* --- About --- */
.about {
  padding: 5rem 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--navy);
  box-shadow: 0 0 0 4px var(--gold);
  flex-shrink: 0;
}

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

.about-content .section-title {
  margin-top: 8px;
}

.about-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.8;
}

.credential-card {
  margin-top: 32px;
  border: 1px solid var(--light-border);
  background: var(--white);
  padding: 28px;
}

.credential-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.credential-list {
  list-style: none;
}

.credential-list li {
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.credential-list li:last-child { border-bottom: none; }

.credential-list i {
  color: var(--gold);
  font-size: 1rem;
}

/* --- FAQ --- */
.faq {
  padding: 5rem 0;
  background: var(--off-white);
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-item {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--light-border);
  border-radius: 8px;
  margin-bottom: 12px;
}

.faq-question {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* --- Contact --- */
.contact {
  padding: 5rem 0;
  background: var(--navy);
}

.contact-header {
  margin-bottom: 48px;
}

.contact-header .section-title { color: var(--white); }
.contact-header .section-subtitle { color: var(--mid-grey); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-aside h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail a,
.contact-detail span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.contact-detail a:hover {
  color: var(--white);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0 24px;
}

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

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

.footer-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

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

.footer-right a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-right a:hover { color: var(--white); }

.footer-right .social-icon {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
}
.footer-right .social-icon:hover { color: var(--gold); }

.footer-credit {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-credit a {
  color: rgba(255,255,255,0.3);
}
.footer-credit a:hover { color: rgba(255,255,255,0.6); }

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 992px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    width: 320px;
    height: 320px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .credibility-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cred-item {
    flex: 0 1 auto;
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav.active { display: flex; }

  .nav-toggle { display: block; }

  .hero { min-height: auto; padding: 60px 0 48px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-photo {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    order: -1;
  }

  .hero h1 { font-size: 2.25rem; }

  .hero-sub { font-size: 1rem; }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn { width: 100%; text-align: center; }

  .section-title { font-size: 1.6rem; }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .credibility-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cred-item { justify-content: flex-start; }

  .timeline { padding-left: 32px; }

  .timeline-dot { left: -32px; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .expertise, .modalities, .timeline-section,
  .about, .contact {
    padding: 3rem 0;
  }

  .logo-tagline { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }

  .modalities-grid { gap: 8px; }

  .modality-pill {
    font-size: 0.78rem;
    padding: 8px 16px;
  }
}
