/* ===================================
   Litera Capital - Styles
   Colors & fonts from original site
   =================================== */

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

:root {
  --primary: #004c8b;
  --primary-light: #0066bb;
  --gold: gold;
  --gold-dark: #d4a800;
  --bg: #f0f8ff;
  --bg-alt: #f0f2f1;
  --bg-card: #ffffff;
  --text: #333333;
  --text-light: #555555;
  --border-light: #cacccb;
  --white: #ffffff;
  --font-body: "Open Sans", sans-serif;
  --font-heading: "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-light);
}

ul {
  list-style: none;
}

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

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  display: block;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-icon img {
  /* Gold triangle: x 22-273, y 42-331 in 920x374 image */
  /* At width 180px: triangle is ~53px wide, 57px tall */
  width: 180px;
  height: auto;
  max-width: none;
  margin-left: -4px;
  margin-top: -8px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 2px;
  color: var(--primary);
}

.logo--footer .logo-text {
  color: var(--white);
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #003562 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0.92;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--text);
  border: 2px solid transparent;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--gold-dark);
  color: var(--text);
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 40px;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* --- About --- */
.about {
  background: var(--white);
}

.about-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* --- Etymology --- */
.etymology {
  background: var(--bg);
}

.etymology-intro {
  text-align: center;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--text-light);
}

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

.etymology-card {
  background: var(--white);
  border: 4px double var(--primary);
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.etymology-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 76, 139, 0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--primary);
}

.etymology-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
}

/* --- Philosophy --- */
.philosophy {
  background: var(--white);
}

.philosophy-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 24px;
}

.philosophy-block h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-align: center;
}

.philosophy-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
  text-align: center;
}

.principles {
  margin-top: 12px;
}

.principles h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-align: center;
}

.principles-list {
  max-width: 700px;
  margin: 0 auto;
}

.principles-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.principles-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

/* --- Company Building --- */
.company-building {
  background: var(--bg-alt);
  padding: 80px 0;
}

.company-building-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.company-building-image img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
}

.company-building-text h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.company-building-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text);
}

/* --- Delta --- */
.delta {
  background: var(--white);
}

.delta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.delta-card {
  background: var(--bg-alt);
  border: 4px double var(--primary);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
}

.delta-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.delta-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.delta-summary {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.delta-fraction {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
}

.delta-numerator,
.delta-denominator {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 300;
  color: #b0b0b0;
  line-height: 1.2;
  letter-spacing: 4px;
}

.delta-divider {
  display: block;
  width: 120px;
  height: 3px;
  background: #b0b0b0;
  margin: 4px 0;
}

/* --- Team / Bios --- */
.team {
  background: var(--bg);
}

.bio-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
  padding: 40px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.bio-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid var(--border-light);
}

.bio-text h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.bio-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.bio-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

.bio-education {
  font-style: italic;
  color: var(--primary) !important;
  font-weight: 500;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: 8px;
}

/* --- Contact --- */
.contact {
  background: linear-gradient(135deg, var(--primary) 0%, #003562 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.contact .section-title {
  color: var(--white);
}

.contact .section-title::after {
  background: var(--gold);
}

.contact-text {
  font-size: 18px;
  opacity: 0.9;
}

/* --- Footer --- */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 32px 0;
}

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

.footer-logo .logo {
  gap: 6px;
}

.footer-logo .logo-icon {
  width: 42px;
  height: 42px;
}

.footer-logo .logo-icon img {
  width: 140px;
  margin-left: -3px;
  margin-top: -6px;
}

.footer-logo .logo-text {
  font-size: 14px;
  letter-spacing: 1.5px;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.7;
}

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

/* Tablet */
@media screen and (max-width: 975px) {
  .hero-tagline {
    font-size: 36px;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .philosophy-grid {
    gap: 32px;
  }

  .company-building-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .company-building-image {
    order: -1;
  }

  .company-building-image img {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
  }

  .delta-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .bio-card {
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 32px;
  }

  .bio-photo img {
    width: 200px;
    height: 200px;
  }
}

/* Mobile */
@media screen and (max-width: 600px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .main-nav a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .hero-tagline {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .etymology-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .bio-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    text-align: center;
  }

  .bio-photo {
    display: flex;
    justify-content: center;
  }

  .bio-photo img {
    width: 200px;
    height: 200px;
  }

  .bio-text h3 {
    font-size: 24px;
  }

  .delta-numerator,
  .delta-denominator {
    font-size: 48px;
  }

  .delta-divider {
    width: 80px;
  }

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

  .company-building-text h2 {
    font-size: 24px;
  }
}

/* Larger mobile - bio stays side by side */
@media screen and (min-width: 601px) and (max-width: 975px) {
  .etymology-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Print styles */
@media print {
  .site-header,
  .mobile-menu-toggle,
  .hero .btn {
    display: none;
  }

  .hero {
    background: none;
    color: var(--primary);
    padding: 20px 0;
  }

  .hero-tagline {
    color: var(--primary);
  }

  .section {
    padding: 20px 0;
  }
}
