/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scrollbar-gutter: stable;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #555555;
  background: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scrollbar-gutter: stable;
}

main { flex: 1; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

/* Base typography is set on html above. Page-specific typography lives in each section below. */

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  height: 56px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
}

.header-nav { display: flex; gap: 28px; }

.header-nav a { font-size: 14px; color: #888; text-decoration: none; }

.header-nav a:hover { color: #111; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  display: block;
  transition: all 0.2s ease;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding: 20px 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left { display: flex; align-items: center; gap: 12px; }

.footer-logo { display: flex; align-items: center; text-decoration: none; }

.footer-copy { font-size: 13px; color: #888; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }

.footer-nav a { font-size: 13px; color: #888; text-decoration: none; }

.footer-nav a:hover { color: #111; }

/* ============================================
   HERO — index.html
   ============================================ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: #111111;
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.125rem;
  color: #555555;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.btn-featured {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.btn-featured:hover { opacity: 0.85; }

/* ============================================
   PROJECTS — projects.html
   ============================================ */

.projects-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.projects-header {
  margin-bottom: 48px;
}

.projects-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 12px;
}

.projects-header p {
  font-size: 16px;
  color: #555555;
  margin: 0;
  line-height: 1.6;
}

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

.project-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.project-card:hover {
  border-color: #111111;
}

.project-card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.project-tag {
  font-size: 12px;
  color: #888888;
  background: #f5f5f5;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 500;
}

.project-status {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
}

.project-status.live {
  background: #f0faf0;
  color: #2a7a2a;
}

.project-status.coming-soon {
  background: #f5f5f5;
  color: #888888;
}

.project-name {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.project-desc {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
  transition: gap 0.15s ease;
}

.project-link:hover {
  gap: 10px;
}

.project-arrow {
  transition: transform 0.15s ease;
}

.project-link:hover .project-arrow {
  transform: translateX(3px);
}

/* ============================================
   CONTENT PAGES — about, contact, privacy, terms
   ============================================ */

/* Shared layout — max-width 640px applies to about, privacy, terms */
.page-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

/* Shared h1 base — margin-bottom: 8px applies to privacy + terms */
.page-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
}

.last-updated {
  font-size: 0.875rem;
  color: #555555;
  margin-bottom: 48px;
}

/* about.html — h1 margin and body copy */
.page-about .page-content h1 { margin-bottom: 32px; }

.page-about .page-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: #555555;
  margin-bottom: 20px;
}

/* contact.html — narrower content, different h1 spacing */
.page-contact .page-content { max-width: 560px; }

.page-contact .page-content h1 { margin-bottom: 16px; }

.page-content .intro {
  font-size: 1rem;
  line-height: 1.75;
  color: #555555;
  margin-bottom: 36px;
}

/* privacy-policy.html */
.policy-section { margin-bottom: 36px; }

.policy-section h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 10px;
}

.policy-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: #555555;
}

/* terms.html */
.terms-section { margin-bottom: 36px; }

.terms-section h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 10px;
}

.terms-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: #555555;
  margin-bottom: 10px;
}

.terms-section ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.terms-section ul li {
  font-size: 1rem;
  line-height: 1.75;
  color: #555555;
  margin-bottom: 4px;
}

.terms-section a { color: #111111; }

/* ============================================
   FORMS — contact.html
   ============================================ */

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111111;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #111111;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #111111; }

.form-group textarea { min-height: 140px; }

.btn-submit {
  align-self: flex-start;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.thank-you {
  display: none;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: #111111;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.thank-you.visible { display: block; }

/* ============================================
   404 PAGE
   ============================================ */

.notfound-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notfound-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
}

.notfound-logo {
  display: block;
  text-decoration: none;
}

.notfound-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 400px;
}

.notfound-code {
  font-size: 96px;
  font-weight: 700;
  color: #e5e5e5;
  line-height: 1;
  display: block;
  letter-spacing: -4px;
  margin-bottom: 8px;
}

.notfound-title {
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.notfound-desc {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  margin: 0 0 20px;
}

.notfound-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.notfound-footer {
  font-size: 13px;
  color: #bbbbbb;
}

.btn-primary {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  transition: border-color 0.15s ease;
}

.btn-secondary:hover {
  border-color: #111111;
}

/* ============================================
   UTILITIES
   ============================================ */

/* No utility classes currently defined. */

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (max-width: 640px) {
  /* Header / nav */
  .hamburger { display: flex; }

  .header-nav { display: none; }

  .site-header.nav-open .header-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 24px;
    gap: 16px;
  }

  .site-header.nav-open .header-nav a { font-size: 15px; color: #111; }

  .site-header.nav-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .site-header.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 12px; }

  /* Projects page */
  .projects-main { padding: 40px 16px 64px; }
  .projects-header h1 { font-size: 28px; }
  .projects-grid { grid-template-columns: 1fr; }
}
