/* ============================================
   Equisinfo Portfolio - Theme from logo
   Colors: dark green #1a3b30, accent #d6e890, blue #a0c9e8
   ============================================ */

:root {
  --bg-dark: #1a3b30;
  --bg-dark-hover: #234a3d;
  --accent: #d6e890;
  --accent-dim: #b8d06a;
  --accent-blue: #a0c9e8;
  --accent-blue-hover: #7eb8e0;
  --text-on-dark: #e8f0e6;
  --text-muted: #a8c4a8;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(214, 232, 144, 0.2);
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- Navigation ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 59, 48, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-link img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-list a {
  color: var(--text-on-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--card-bg);
  color: var(--accent);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .nav-list.is-open {
    max-height: 280px;
    opacity: 1;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* ----- Main content ----- */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--accent);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* ----- Hero ----- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 3rem 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(160, 201, 232, 0.08) 0%, transparent 55%),
              var(--bg-dark);
}

.hero-inner {
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero .highlight {
  color: var(--accent);
}

.hero .subheadline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-wrap {
  margin-top: 2rem;
}

/* ----- Services grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
}

.service-card h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ----- Tech stack ticker ----- */
.tech-section {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 2.5rem 0;
  overflow: hidden;
}

.tech-ticker-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(160, 201, 232, 0.12);
  color: var(--accent-blue);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(160, 201, 232, 0.25);
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
}

.tech-badge:hover {
  background: rgba(160, 201, 232, 0.2);
  border-color: var(--accent-blue);
}

/* ----- About page ----- */
.about-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.75;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.expertise-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.expertise-card h3 {
  color: var(--accent-blue);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.expertise-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ----- Contact page ----- */
.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header h1 {
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.contact-header p {
  color: var(--text-muted);
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-on-dark);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  align-self: flex-start;
}

.contact-details {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-details h2 {
  color: var(--accent);
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
}

.contact-details dl {
  margin: 0;
}

.contact-details dt {
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.contact-details dd a {
  color: var(--accent);
  text-decoration: none;
}

.contact-details dd a:hover {
  text-decoration: underline;
}

/* ----- Footer ----- */
.site-footer {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--card-border);
  padding: 2rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.site-footer .copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
