/* =========================================================
   SheepiesLab — Base Stylesheet
   ========================================================= */

/* ----- Custom properties ----- */
:root {
  --color-bg:         #ffffff;
  --color-bg-alt:     #f7f7f7;
  --color-text:       #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent:     #ffd000;   /* logo yellow */
  --color-accent-dark:#e0b800;
  --color-border:     #e0e0e0;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-size-base: 1rem;
  --line-height: 1.6;

  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --transition: 200ms ease;

  --container-max: 1100px;
  --container-pad: 1.5rem;

  --hero-gradient: linear-gradient(135deg, #fff9d6 0%, #f7f7f7 65%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ----- Layout helpers ----- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-text);  /* dark text on yellow for contrast */
}
.btn--primary:hover {
  background: var(--color-accent-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn--ghost:hover {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}

.btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   Header & Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav__logo img {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--color-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: var(--hero-gradient);
}

.hero__logo {
  width: clamp(320px, 70vw, 680px);
  height: auto;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section__body {
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* =========================================================
   Cards
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card__body {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* Placeholder / coming-soon card */
.card--placeholder {
  background: var(--color-bg-alt);
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}
.card--placeholder:hover {
  transform: none;
  box-shadow: none;
}
.card--placeholder .card__title,
.card--placeholder .card__body {
  color: var(--color-border);
  background: var(--color-border);
  border-radius: 4px;
  user-select: none;
}
.card--placeholder .btn {
  visibility: hidden;
}
.card--placeholder .card__image-placeholder {
  background: var(--color-border);
}

/* Project card image placeholder */
.card__image-placeholder {
  width: 100%;
  height: 160px;
  background: var(--color-bg-alt);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1rem;
}

/* =========================================================
   Shared components
   ========================================================= */
.back-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--color-text); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 2rem var(--container-pad);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-accent);
}
.site-footer a:hover { color: var(--color-text); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 640px) {
  .nav__links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem var(--container-pad);
  }

  .nav__links.is-open { display: flex; }

  .nav__toggle { display: flex; }

  .hero { padding: 4rem 0; }

  .section { padding: 3.5rem 0; }
}
