/* ============================================================
   Crocfish — Brand Colors & Design Tokens
   ============================================================ */
:root {
  /* BRAND COLORS — edit these to update the palette site-wide */
  --color-bg:          #0b0e17;
  --color-bg-alt:      #10141f;
  --color-surface:     #161b2a;
  --color-border:      #1f2639;
  --color-text:        #e2e6ef;
  --color-text-muted:  #8e95a9;
  --color-heading:     #ffffff;
  --color-accent:      #2ec4a0;
  --color-accent-glow: rgba(46, 196, 160, .25);
  --color-gold:        #e8b83d;

  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);

  --max-width: 1100px;
  --header-h:  64px;
  --radius:    12px;
  --transition: .3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.2;
}

/* ============================================================
   Utility
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(11, 14, 23, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-heading);
  text-decoration: none;
}
.header-logo:hover { color: var(--color-accent); }
.header-logo img { border-radius: 6px; }

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--color-heading); }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(46,196,160,.08), transparent),
    var(--color-bg);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px var(--color-accent-glow));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -.02em;
}

.hero-tagline {
  max-width: 540px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}
.btn-primary:hover {
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 6rem 0;
}
.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
  margin: .75rem auto 0;
}

/* ============================================================
   About
   ============================================================ */
.about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-text p + p {
  margin-top: 1rem;
}

/* ============================================================
   Cards (Services)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: rgba(46, 196, 160, .1);
  color: var(--color-accent);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: .75rem;
}

.card p {
  font-size: .93rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   Company Info
   ============================================================ */
.info-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2.5rem;
}

.info-item dt {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  margin-bottom: .3rem;
}
.info-item dd {
  font-size: .95rem;
  color: var(--color-heading);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-content {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.contact-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

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

.footer-copy {
  font-size: .85rem;
  color: var(--color-text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: .85rem;
  color: var(--color-text-muted);
}
.footer-nav a:hover {
  color: var(--color-heading);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(11, 14, 23, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }

  .main-nav.open {
    max-height: 300px;
  }

  .main-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
  }

  /* Hamburger X state */
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-logo {
    width: 180px;
    height: 180px;
  }

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

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

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

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }

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

  .info-panel {
    padding: 1.5rem 1.2rem;
  }
}
