/* =====================================================
   Jiafa Portfolio — Design-to-Code
   Native HTML/CSS/JS, responsive
   ===================================================== */

:root {
  --dark: #171717;
  --orange: #FD853A;
  --orange-light: #FEB273;
  --white: #ffffff;
  --gray-1: #344054;
  --gray-2: #667085;
  --gray-3: #98A2B3;
  --light: #F6F6F7;
  --border: #E5E5E5;
  --glass: rgba(255, 255, 255, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px rgba(23, 23, 23, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: 100%;
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-orange {
  color: var(--orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.8rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(253, 133, 58, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(253, 133, 58, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-sm {
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
}

/* Section typography */
.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title .text-orange {
  font-weight: 700;
}

.section-subtitle {
  color: var(--gray-2);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.text-center {
  text-align: center;
}

/* Stars */
.stars {
  display: flex;
  gap: 0.35rem;
}

.stars svg {
  width: 24px;
  height: 24px;
  fill: var(--orange);
}

.stars.small svg {
  width: 18px;
  height: 18px;
}

/* Dots (carousel) */
.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}

.dot.active {
  background: var(--orange);
  width: 28px;
  border-radius: 999px;
}

/* =====================================================
   Header / Nav
   ===================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2.5rem 0 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.1rem;
  max-width: 1298px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 50%;
  font-size: 0.9rem;
  position: relative;
}

.logo-mark span {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  background: var(--white);
  color: var(--orange);
  border-radius: 50%;
  font-size: 0.55rem;
  display: grid;
  place-items: center;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 0.35rem;
}

.nav-link {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--orange);
  color: var(--white);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
@media (max-width: 991px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0 0.5rem;
  }

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

  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
  }
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
  }
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  position: relative;
}

.hero-top {
  text-align: center;
}

.hello-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--dark);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  position: relative;
}

.sparkle {
  width: 18px;
  height: 18px;
  position: absolute;
  right: -10px;
  top: -10px;
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.hero-title .text-orange {
  font-weight: 500;
}

.hero-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-quote {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 280px;
  color: var(--gray-1);
  font-size: 1rem;
  text-align: left;
  border: none;
}

.hero-quote svg {
  flex-shrink: 0;
  width: 28px;
  height: 24px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
}

.hero-portrait-wrap {
  position: relative;
  width: min(100%, 420px);
}

.hero-arch {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  aspect-ratio: 2 / 1;
  background: var(--orange-light);
  border-radius: 50% 50% 0 0;
  opacity: 1;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 952 / 636;
  object-fit: cover;
  object-position: center 15%;
}

.hero-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.hero-stat span {
  color: var(--gray-2);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions .btn-ghost {
  border-color: var(--dark);
  color: var(--dark);
  background: transparent;
  backdrop-filter: none;
}

@media (min-width: 768px) {
  .hero-quote {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }

  .hero-body {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    align-items: end;
    gap: 1.5rem;
  }

  .hero-quote {
    align-self: center;
    margin: 0;
    max-width: 240px;
  }

  .hero-visual {
    align-self: end;
  }

  .hero-portrait-wrap {
    width: min(100%, 520px);
  }

  .hero-rating {
    align-items: flex-start;
    align-self: center;
  }

  .hero-actions {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
  }

  .hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
  }
}

/* =====================================================
   Services
   ===================================================== */
.services {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.services-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}

.services-shape img {
  width: 100%;
  height: auto;
}

.shape-1 {
  top: -10%;
  left: -10%;
  width: 520px;
}

.shape-2 {
  top: 5%;
  right: 25%;
  width: 200px;
}

.shape-3 {
  bottom: -10%;
  right: -5%;
  width: 360px;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services .section-header {
  flex-direction: column;
  gap: 1rem;
}

.services .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .services .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-shot {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.service-shot img {
  width: 100%;
  object-fit: cover;
}

.service-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--white);
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}

.service-arrow:hover {
  background: var(--orange);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =====================================================
   Experience
   ===================================================== */
.experience {
  padding: 6rem 0;
  background: var(--white);
}

.experience .section-title {
  margin-bottom: 3.5rem;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.45rem;
  top: 0;
  bottom: 0;
  width: 2px;
  border-left: 2px dashed var(--gray-3);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-company {
  margin-bottom: 0.35rem;
}

.timeline-company h3,
.timeline-role h4 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.timeline-company time,
.timeline-role p {
  color: var(--gray-2);
  font-size: 0.95rem;
}

.timeline-node {
  position: absolute;
  left: 1rem;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  background: var(--orange);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
  z-index: 2;
}

.timeline-node.dark {
  background: var(--dark);
  box-shadow: 0 0 0 2px var(--dark);
}

@media (min-width: 768px) {
  .timeline {
    gap: 3rem;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 2rem;
    padding-left: 0;
  }

  .timeline-node {
    position: static;
    margin-top: 0.35rem;
  }

  .timeline-item:nth-child(odd) .timeline-company {
    text-align: right;
    order: 1;
  }

  .timeline-item:nth-child(odd) .timeline-node {
    order: 2;
  }

  .timeline-item:nth-child(odd) .timeline-role {
    order: 3;
  }

  .timeline-item:nth-child(even) .timeline-company {
    order: 3;
    text-align: left;
  }

  .timeline-item:nth-child(even) .timeline-node {
    order: 2;
  }

  .timeline-item:nth-child(even) .timeline-role {
    order: 1;
    text-align: right;
  }
}

/* =====================================================
   Why Hire Me
   ===================================================== */
.why-hire {
  padding: 6rem 0;
  background: var(--light);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.why-visual {
  display: flex;
  justify-content: center;
}

.why-visual img {
  max-width: 460px;
  width: 100%;
}

.why-content {
  text-align: center;
}

.why-content .section-title {
  margin-bottom: 1.25rem;
}

.why-content > p {
  color: var(--gray-2);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.why-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: left;
}

.stat strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  color: var(--gray-2);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-content {
    text-align: left;
  }

  .why-content > p {
    margin-left: 0;
  }

  .why-stats {
    justify-content: flex-start;
  }
}

/* =====================================================
   Portfolio
   ===================================================== */
.portfolio {
  padding: 6rem 0;
  background: var(--white);
}

.portfolio .section-header {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: background var(--transition), color var(--transition);
}

.project-arrow:hover {
  background: var(--orange);
  color: var(--white);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tag {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tag:hover,
.tag.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.project-detail {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.project-detail h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.detail-arrow {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
}

.project-detail p {
  color: var(--gray-2);
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   Testimonials
   ===================================================== */
.testimonials {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: 6rem 0;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 60px
  );
  pointer-events: none;
}

.testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonials .section-header {
  text-align: center;
  align-items: center;
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.testimonial-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  position: relative;
}

.testimonial-card.active {
  background: rgba(255, 255, 255, 0.14);
}

.quote-mark {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  font-family: Georgia, serif;
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-head h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.testimonial-head span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.testimonial-rating strong {
  font-weight: 700;
}

.testimonial-card > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .testimonials-track {
    justify-content: center;
  }

  .testimonial-card {
    flex: 0 0 360px;
  }

  .testimonial-card.active {
    transform: scale(1.05);
  }
}

/* =====================================================
   CTA
   ===================================================== */
.cta {
  padding: 5rem 0;
  background: var(--light);
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-form {
  display: flex;
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.5rem;
  box-shadow: 0 8px 30px rgba(23, 23, 23, 0.06);
}

.input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.75rem;
  padding: 0 0.75rem 0 1rem;
  color: var(--gray-2);
}

.input-wrap input,
.footer-newsletter input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font: inherit;
  color: var(--dark);
}

.input-wrap input::placeholder,
.footer-newsletter input::placeholder {
  color: var(--gray-3);
}

.cta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-1);
  font-size: 0.95rem;
  font-weight: 500;
}

.cta-badge svg {
  color: var(--orange);
}

@media (max-width: 480px) {
  .cta-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .input-wrap {
    padding: 0.75rem 1rem;
  }
}

/* =====================================================
   Ticker
   ===================================================== */
.ticker {
  background: var(--orange);
  padding: 1.1rem 0;
  overflow: hidden;
  transform: rotate(-1.5deg) scale(1.02);
  margin: -0.5rem 0;
}

.ticker-track {
  display: flex;
  width: fit-content;
  animation: ticker 24s linear infinite;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  padding-right: 2.5rem;
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.ticker-content .star {
  color: var(--white);
  font-size: 1.2rem;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* =====================================================
   Blog
   ===================================================== */
.blog {
  padding: 6rem 0 5rem;
  background: var(--dark);
  color: var(--white);
}

.blog .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.blog .section-header {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: transform var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.blog-thumb img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.blog-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--white);
  border-radius: 50%;
}

.blog-arrow:hover {
  background: var(--orange);
}

.blog-tag {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.blog-meta .dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.blog-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 2.5rem;
}

.footer-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1.25rem;
}

.footer-brand > p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 340px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}

.socials a:hover {
  opacity: 1;
  color: var(--orange);
}

.socials svg {
  width: 22px;
  height: 22px;
}

.footer-links h4 {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-newsletter form {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-pill);
  overflow: hidden;
  padding: 0.35rem;
  max-width: 320px;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.6rem 0.8rem;
}

.footer-newsletter button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  color: var(--white);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =====================================================
   Toast
   ===================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--dark);
  color: var(--white);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =====================================================
   Reduced motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
