/* ============================================================
   Tagusoft — style.css
   Design tokens → reset → layout → components → sections
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --navy:      #0D2137;
  --navy-mid:  #152D48;
  --blue:      #1A5F7A;
  --teal:      #3DB4E0;
  --teal-light:#5ECEF5;
  --gold:      #F5A623;
  --gold-light:#FBBF45;

  --bg:        #F0F4F8;
  --surface:   #FFFFFF;
  --border:    #DDE3EA;

  --text:      #1E2D3D;
  --text-mid:  #4A5C6E;
  --text-light:#718394;

  --font:      'Inter', system-ui, -apple-system, sans-serif;

  --radius:    12px;
  --radius-sm: 6px;
  --shadow:    0 2px 12px rgba(13, 33, 55, 0.08);
  --shadow-md: 0 8px 32px rgba(13, 33, 55, 0.12);

  --max-w:     1120px;
  --section-gap: 100px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ── Utilities ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.section {
  padding-block: var(--section-gap);
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section__sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 56ch;
  margin-bottom: 3rem;
}

.accent { color: var(--teal); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--primary {
  background: var(--teal);
  color: #fff;
}
.btn--primary:hover { background: var(--teal-light); }

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn--outline-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.btn--outline-sm:hover {
  background: var(--teal);
  color: #fff;
  box-shadow: none;
  transform: none;
}

.btn--full { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 33, 55, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.85rem clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}


.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover { color: #fff; }
.nav__links .btn--outline-sm { margin-left: 0.5rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #0E3254 55%, #1A5F7A 100%);
  color: #fff;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 60px) 0;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(61,180,224,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 70%, rgba(245,166,35,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: clamp(60px, 8vw, 100px);
}

.hero__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero__logo {
  width: clamp(72px, 10vw, 96px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(61,180,224,0.4));
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__wave {
  position: relative;
  margin-top: -2px;
  margin-bottom: -3px;
  margin-left: calc(-1 * clamp(20px, 5vw, 60px));
  margin-right: calc(-1 * clamp(20px, 5vw, 60px));
  line-height: 0;
}
.hero__wave svg { width: 100%; display: block; }

/* ── Services ────────────────────────────────────────────── */
.services {
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.card__body {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.7;
}

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

.about__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: center;
}

.about__text p {
  color: var(--text-mid);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
  line-height: 1.75;
}
.about__text strong { color: var(--navy); font-weight: 600; }

.about__values {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about__values li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.accent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__river {
  width: 100%;
  max-width: 280px;
  opacity: 0.85;
}
.about__river svg { width: 100%; }

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  background: var(--bg);
}

.contact__inner {
  max-width: 640px;
}


.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form__field input,
.form__field select,
.form__field textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5C6E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,180,224,0.15);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--text-light);
}

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

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem clamp(20px, 5vw, 60px);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.footer__brand {
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.9rem;
}

.footer__legal {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-gap: 64px; }

  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 33, 55, 0.98);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0 1rem;
  }
  .nav--open .nav__links { display: flex; }

  .nav__links li { display: block; }
  .nav__links a {
    display: block;
    padding: 0.85rem clamp(20px, 5vw, 60px);
    font-size: 1rem;
  }
  .nav__links .btn--outline-sm {
    margin: 0.25rem clamp(20px, 5vw, 60px) 0;
    text-align: center;
  }

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

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about__visual { display: none; }

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

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 300px; }
}
