/* =========================
   Variables
========================= */
:root {
  --dark-charcoal: #1D1D1D;
  --burnt-orange: #D55000;
  --sunset-orange: #F28C28;
  --golden-amber: #FFA940;
  --ash-gray: #888888;
  --white: #FFFFFF;
}

/* Hide empty homepage main so it doesn’t leave a gap */
.home-main:empty {
  display: none;
}

/* Remove extra gap if main follows hero */
.hero + .home-main {
  margin-top: 0;
}

/* =========================
   Header / Branding
========================= */
.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-branding .site-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.site-branding .site-link:hover {
  opacity: 0.85;
}

.site-logo img {
  height: 50px;
  display: block;
}

.site-name {
  font-family: 'Plaster', system-ui;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--burnt-orange);
  margin: 0;
}

/* =========================
   Buttons
========================= */
.button, .btn, .wp-block-button__link{
  background-color:var(--burnt-orange);
  color:var(--white);
  padding:10px 20px;
  border:none;
  border-radius:8px;
  font-size:1rem;
  cursor:pointer;
  transition:transform .15s ease, opacity .15s ease;
  display:inline-flex; align-items:center; gap:.5rem;
  text-decoration:none;
}
.button:hover, .btn:hover, .wp-block-button__link:hover{ opacity:.92; }
.button:active, .btn:active, .wp-block-button__link:active{ transform:translateY(1px); }
/* =========================
   Cards / Projects
========================= */
/* Generic card */
.card{
  background:#121212;             /* dark card */
  color:var(--white);
  border-radius:12px;
  padding:1rem;
  box-shadow:0 6px 20px rgba(0,0,0,.12);
}

.card h3, .card h2, .card-title{
  color:var(--burnt-orange);      /* orange heading */
  margin-top:0;
}

/* =========================
   Page Content
========================= */
.page-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-charcoal);
}

.page-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--dark-charcoal);
}

/* =========================
   Project Grid + GitHub Repo Cards
========================= */
.project-grid.github-repos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-grid .github-repo {
  background-color: var(--dark-charcoal);
  color: var(--white) !important;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
}

.project-grid .github-repo:hover {
  transform: translateY(-5px);
}

.project-grid .github-repo h1,
.project-grid .github-repo h2,
.project-grid .github-repo h3,
.project-grid .github-repo .project-title {
  color: var(--burnt-orange) !important;
  margin-top: 0;
}

.project-grid .github-repo * {
  color: var(--white) !important;
}

.project-grid .github-repo a {
  color: var(--burnt-orange) !important;
  text-decoration: none;
}

.project-grid .github-repo a:hover {
  text-decoration: underline;
}

/* =========================
   Homepage Hero
========================= */

/* Hero, headings, etc. */
h1,h2,h3{ line-height:1.25; margin:0 0 .6rem; }
h1{ font-size:clamp(1.6rem, 2vw + 1rem, 2.25rem); }
h2{ font-size:clamp(1.25rem, 1vw + 1rem, 1.5rem); }

.hero {
  position: relative;
  color: var(--white);
  padding: clamp(56px, 8vw, 120px) 0;
  background:
    radial-gradient(1200px 600px at 90% -20%, rgba(213, 80, 0, 0.25), transparent 60%),
    radial-gradient(900px 600px at -20% 120%, rgba(242, 140, 40, 0.20), transparent 60%),
    linear-gradient(180deg, #141414 0%, #0e0e0e 100%);
  overflow: hidden;
}

.hero__inner.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 16px;
  display: grid;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: 1fr;
}

.hero__title {
  margin: 0 0 14px;
  color: var(--burnt-orange);
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: 0.2px;
  position: relative;
}

.hero__title::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--burnt-orange), var(--golden-amber));
  opacity: 0.9;
}

.hero__subtitle {
  margin: 0 0 28px;
  color: var(--white);
  opacity: 0.92;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
  max-width: 60ch;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--burnt-orange);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(213, 80, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(213, 80, 0, 0.45);
  background: #e45a08;
}

.hero__button:active {
  transform: translateY(0);
}

.hero__media {
  display: grid;
  place-items: center;
}

.hero__image {
  width: min(420px, 90vw);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 10px rgba(255, 255, 255, 0.02) inset;
  background: #222;
}

@media (min-width: 900px) {
  .hero__inner.container {
    grid-template-columns: 1.25fr 0.9fr;
  }

  .hero__subtitle {
    max-width: 56ch;
  }
}

.home-main.container {
  max-width: 1100px;
  margin: clamp(28px, 6vw, 64px) auto;
  padding-inline: 16px;
}

.button {
  color: var(--white);
}

/* =========================
   Layout Helper
========================= */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* =========================
   Contact Page
========================= */
.contact {
  padding: clamp(56px, 7vw, 96px) 0 80px;
}

.contact__inner {
  padding-inline: 16px;
  max-width: 1100px;
  margin-inline: auto;
}

.contact__title {
  color: var(--burnt-orange);
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px);
  margin: 0 0 8px;
}

.contact__tagline {
  margin: 0 0 28px;
  opacity: 0.9;
}

.contact__form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field > span {
  font-size: 0.95rem;
  opacity: 0.9;
}

.input,
.textarea {
  width: 100%;
  background: #161616;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 14px;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--golden-amber);
  box-shadow: 0 0 0 3px rgba(255, 169, 64, 0.18);
}

.is-invalid {
  border-color: rgba(220, 53, 69, 0.75) !important;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 6px 0 18px;
}

.checkbox input {
  transform: translateY(1px);
}

.contact__submit {
  background: var(--burnt-orange);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(213, 80, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.contact__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(213, 80, 0, 0.45);
  background: #e45a08;
}

.contact__aside .card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.contact__aside h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--golden-amber);
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.map-embed {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Honeypot hidden */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==== Project cards: dark background, white text, orange headings ==== */
/* If your Projects page is powered by [github_repos] shortcode, style its cards */
.github-repos, .project-grid{ /* container already handled in layout.css */ }
.github-repos .github-repo{
  background:#121212;
  border-radius:12px;
  padding:1rem;
  box-shadow:0 6px 20px rgba(0,0,0,.12);
}
.github-repos .github-repo h3,
.github-repos .github-repo h2,
.github-repos .github-repo .title{
  color:var(--burnt-orange);
}
.github-repos .github-repo,
.github-repos .github-repo p,
.github-repos .github-repo li,
.github-repos .github-repo span,
.github-repos .github-repo .meta{
  color:var(--white) !important;
}
.github-repos .github-repo a{
  color:var(--white) !important;
}
.github-repos .github-repo a:hover{
  color:var(--golden-amber) !important;
  text-decoration:underline !important;
}