/* ============================================================
   TESIS INDUSTRIES — styles.css
   Colors: Navy #152D4E  Teal #2A9D8F  Light #F0F7FA
   ============================================================ */

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

:root {
  --navy:       #152D4E;
  --navy-dark:  #0E1F36;
  --navy-light: #1E3F6A;
  --teal:       #2A9D8F;
  --teal-light: #3DBFAE;
  --teal-pale:  #D4F1EC;
  --slate:      #4A6274;
  --gray:       #7A8D9C;
  --light:      #F0F7FA;
  --lighter:    #F7FAFB;
  --white:      #FFFFFF;
  --text:       #2C3E4F;
  --text-light: #5E7282;
  --shadow-sm:  0 1px 3px rgba(21,45,78,0.08);
  --shadow-md:  0 4px 16px rgba(21,45,78,0.10);
  --shadow-lg:  0 8px 32px rgba(21,45,78,0.12);
  --radius:     8px;
  --radius-lg:  16px;
  --max-width:  1120px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4em; }

.label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }
.section--light { background: var(--light); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .label { color: var(--teal-light); }
.section--navy p { color: rgba(255,255,255,0.82); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21,45,78,0.06);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 0.25rem 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a:hover { color: var(--teal); }
.nav__links a.active { color: var(--teal); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.4rem;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.nav__cta:hover { background: var(--teal-light); transform: translateY(-1px); color: var(--white) !important; }
.nav__cta::after { display: none !important; }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 24px;
  position: relative;
}
.nav__toggle span,
.nav__toggle::before,
.nav__toggle::after {
  display: block;
  width: 100%; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute; left: 0;
}
.nav__toggle::before { content: ''; top: 0; }
.nav__toggle span { top: 50%; transform: translateY(-50%); }
.nav__toggle::after { content: ''; bottom: 0; }
.nav__toggle.open::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav__toggle.open span { opacity: 0; }
.nav__toggle.open::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,157,143,0.3); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,45,78,0.3); }

/* Arrow icon for buttons */
.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

/* --- Hero Section --- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(170deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(42,157,143,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(42,157,143,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero__content p  { color: rgba(255,255,255,0.78); font-size: 1.15rem; max-width: 520px; margin-bottom: 2rem; }
.hero__tagline {
  color: var(--teal-light);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero__buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(21,45,78,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42,157,143,0.2);
}
.card__icon {
  width: 52px; height: 52px;
  background: var(--teal-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 26px; height: 26px; color: var(--teal); }
.card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.65; }

/* Navy variant cards */
.card--navy {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.card--navy:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(42,157,143,0.3);
}
.card--navy h3 { color: var(--white); }
.card--navy p  { color: rgba(255,255,255,0.72); }
.card--navy .card__icon { background: rgba(42,157,143,0.15); }

/* --- Stats Bar --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3.5rem 0;
}
.stat__number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat__label {
  font-size: 0.92rem;
  color: var(--gray);
}

/* --- Section header --- */
.section__header {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* --- Two-column layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

/* --- Position callout --- */
.callout {
  background: var(--light);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.callout p {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.6;
  font-style: italic;
}

/* --- Tech language table --- */
.tech-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tech-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
}
.tech-table tbody td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(21,45,78,0.06);
  font-size: 0.95rem;
}
.tech-table tbody tr:last-child td { border-bottom: none; }
.tech-table tbody tr:nth-child(even) { background: var(--lighter); }
.tech-table .arrow-cell {
  text-align: center;
  color: var(--teal);
  font-size: 1.2rem;
  width: 50px;
}

/* --- Message pills --- */
.message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.message {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(21,45,78,0.06);
}
.message__icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--teal-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.message__icon svg { width: 20px; height: 20px; color: var(--teal); }
.message h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.message p  { font-size: 0.9rem; color: var(--text-light); line-height: 1.55; }

/* --- Contact Form --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.form__group { margin-bottom: 1.25rem; }
.form__label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(21,45,78,0.15);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.12);
}
.form__textarea { resize: vertical; min-height: 140px; }

.contact-info { padding-top: 0.5rem; }
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-info__icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--teal-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.contact-info__icon svg { width: 22px; height: 22px; color: var(--teal); }
.contact-info__item h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-info__item p  { color: var(--text-light); font-size: 0.92rem; }

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer__brand img { height: 36px; margin-bottom: 1rem; }
.footer__brand p  { font-size: 0.9rem; max-width: 320px; line-height: 1.6; }
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer__links a:hover { color: var(--teal-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(170deg, var(--navy-dark) 0%, var(--navy) 100%);
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-header p  { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* --- Values list --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.value-item { text-align: center; padding: 1.5rem; }
.value-item__icon {
  width: 60px; height: 60px;
  background: var(--teal-pale);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.value-item__icon svg { width: 28px; height: 28px; color: var(--teal); }

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__content p { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }
  .hero__image { order: -1; margin-bottom: 1rem; }
  .hero__image img { max-width: 400px; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse { direction: ltr; }
  .form-grid { grid-template-columns: 1fr; }
  .message-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links { 
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--teal);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.75rem 0; }
  .nav__toggle { display: block; }
  .section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding-top: 96px; padding-bottom: 3rem; }
  .stats { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
