/* ── CSS VARIABLES ── */
:root {
  --bg: #f5f2eb;
  --surface: #ffffff;
  --text: #111111;
  --muted: #666666;
  --accent: #ffcf68;
  --border: #e0dbd0;
  --card-bg: #f5f2eb;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --surface: #161616;
  --text: #f0ece4;
  --muted: #888888;
  --accent: #ffcf68;
  --border: #2a2a2a;
  --card-bg: #1a1a1a;
}

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

body {
  font-family: sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);

  /* Sticky Navbar */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ── TOGGLE BUTTON ── */
#theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.4rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s;
}

#theme-toggle:hover {
  border-color: var(--accent);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

/* ── MOBILE MENU ── */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: fixed;
  top: 0;
  right: -450px;
  height: 100vh;
  width: 100%;
  max-width: 450px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%;
  gap: 1.2rem;
  z-index: 99;
  transition: right 0.3s ease;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
  background: var(--bg);
  overflow: hidden;
}

.hero-content {
  max-width: 750px;
}

.hero h1 {
  font-size: clamp(1.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--text);
  word-break: break-word;
}

.hero h1 span {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 207, 104, 0.4);
}

/* ── SERVICES ── */
.services {
  padding: 80px 5%;
  background: var(--surface);
}

.services h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.services-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.2rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  background: #111111;
  color: var(--surface);
  padding: 2.5rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left .logo {
  color: #f0ece4;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--accent);
}

/* ── MEDIA QUERIES ── */
@media (max-width: 640px) {
  /* hide desktop links, show hamburger */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* hero text smaller */
  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
    letter-spacing: -1px;
  }

  /* cards stack to 1 column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* footer stacks */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
