/* ---------- Variables: cream & orange palette ---------- */
:root {
  --cream: #fdf6ec;
  --cream-dark: #f3e7d3;
  --orange: #e8743b;
  --orange-dark: #c85a28;
  --orange-light: #f7b998;
  --text-dark: #3a2e22;
  --text-muted: #6b5d4f;
  --white: #ffffff;
  --max-width: 1080px;
  --radius: 12px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}

video {
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper {
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;       /* forces a proper clipping context */
  background: #000;         /* or whatever colour you want behind it */
}

.video-wrapper video {
  display: block;
  width: 100%;
  border-radius: inherit;
  background: transparent;
}

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

a {
  color: var(--orange-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding-bottom: 4em
}

h1,
h2,
h3 {
  color: var(--text-dark);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

code {
  background: var(--cream-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95em;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background-color: var(--orange);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 1rem;
  transition: background-color var(--transition), transform var(--transition);
}

.button:hover {
  background-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--orange-dark);
}

.primary-nav {
  display: flex;
  gap: 1.5rem;
}

.primary-nav a {
  font-weight: 600;
  color: var(--text-dark);
}

.primary-nav a:hover {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding-top: 4rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---------- About ---------- */
.about p {
  max-width: 700px;
  color: var(--text-muted);
}

/* ---------- Projects ---------- */
.projects {
  background-color: var(--cream-dark);
}

.section-intro {
  color: var(--text-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(58, 46, 34, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(58, 46, 34, 0.1);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: var(--orange-dark);
}

.project-card p {
  color: var(--text-muted);
}

.project-link {
  font-weight: 600;
  margin-right: 1em;
  margin-bottom: 1em;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact p {
  color: var(--text-muted);
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--text-dark);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem 0;
}

.site-footer a {
  color: var(--orange-light);
}

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--cream-dark);
  }

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