/* =============================================
   CORNERSTONE CARPENTRY — STYLESHEET
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark:        #0B1628;
  --dark-2:      #10213E;
  --dark-3:      #182E52;
  --gold:        #C9963A;
  --gold-light:  #DEB860;
  --gold-dim:    #806820;
  --cream:       #F2F5FA;
  --cream-2:     #E0E8F5;
  --text:        #0D1B38;
  --text-light:  #4A618A;
  --navy:        #2D3A6E;
  --white:       #FFFFFF;
  --nav-h:       70px;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 92%;
  max-width: 1240px;
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--dark-2);
  color: var(--white);
}

.section--cream {
  background: var(--cream-2);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 64px;
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section__eyebrow--gold { color: var(--gold); }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section__title--light { color: var(--white); }

.section__desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin-inline: auto;
}

.section__desc--light { color: rgba(255,255,255,0.65); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s var(--ease-out);
}

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

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 150, 62, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 32px rgba(0,0,0,0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 92%;
  max-width: 1240px;
  margin-inline: auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav__logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.nav__logo em {
  font-style: normal;
  color: var(--gold);
}

.nav__logo-icon {
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav__links a:not(.nav__cta):hover {
  color: var(--white);
}

.nav__links a:not(.nav__cta):hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav__cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

.nav__cta::after { display: none !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  position: relative;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/WhatsApp%20Image%202026-04-04%20at%2013.07.52%20(7).jpeg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero__bg.loaded {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15,10,5,0.88) 0%,
    rgba(15,10,5,0.55) 60%,
    rgba(15,10,5,0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 1240px;
  margin-inline: auto;
  padding-top: var(--nav-h);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 720px;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.5;
}

.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   ABOUT
   ============================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: visible;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  color: var(--dark);
  padding: 24px;
  border-radius: 2px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(200,150,62,0.3);
}

.about__badge-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.about__badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.about__content {
  padding-right: 20px;
}

.about__body {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.85;
}

.about__pillars {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__pillars li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pillar__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.5rem;
  margin-top: 4px;
}

.about__pillars strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.about__pillars span {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* =============================================
   SERVICES
   ============================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--dark-3);
  overflow: hidden;
  position: relative;
  cursor: default;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  z-index: 2;
}

.service-card__image {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.service-card__image img {
  transition: transform 0.7s var(--ease-out);
}

.service-card:hover .service-card__image img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 28px 24px 32px;
}

.service-card__num {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.25;
}

.service-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.service-card__link:hover { color: var(--gold-light); }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.portfolio__item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1;
  cursor: pointer;
}

.portfolio__item--tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.portfolio__item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.portfolio__item img {
  transition: transform 0.7s var(--ease-out);
}

.portfolio__item:hover img {
  transform: scale(1.06);
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,10,5,0.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio__item:hover .portfolio__overlay {
  opacity: 1;
}

.portfolio__overlay span {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
}

/* =============================================
   STATS
   ============================================= */
.stats {
  padding: 80px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.stat {
  text-align: center;
  padding: 56px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.stat:last-child { border-right: none; }

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
}

.stat__unit {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}

.stat p {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials__slider {
  max-width: 780px;
  margin-inline: auto;
}

.testimonials__track {
  overflow: hidden;
  position: relative;
}

.testimonial {
  display: none;
  text-align: center;
  padding: 0 20px;
  animation: fadeSlide 0.5s var(--ease-out);
}

.testimonial.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.testimonial__stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 4px;
  margin-bottom: 28px;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 36px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial__author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.testimonial__author div {
  text-align: left;
}

.testimonial__author strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial__author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 44px;
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cream-2);
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.testimonials__btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.testimonials__dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__body {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 16px 0 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Form */
.contact__form {
  background: var(--white);
  padding: 44px 40px;
  border-radius: 4px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--cream-2);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5F52' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,150,62,0.12);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__success {
  display: none;
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2E7D32;
  padding: 12px;
  background: #E8F5E9;
  border-radius: 2px;
}

.form__success.visible { display: block; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.nav__logo--footer {
  margin-bottom: 4px;
}

.footer__links h4,
.footer__social h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}

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

.footer__social-links {
  display: flex;
  gap: 12px;
}

.footer__social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s ease;
}

.footer__social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   GALLERY (Scrolling)
   ============================================= */
.gallery {
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

.gallery .section__header {
  margin-bottom: 48px;
}

.gallery__wrapper {
  overflow: hidden;
  position: relative;
}

.gallery__wrapper::before,
.gallery__wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.gallery__wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--dark-2), transparent);
}

.gallery__wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--dark-2), transparent);
}

.gallery__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: galleryScroll 55s linear infinite;
}

.gallery__track:hover {
  animation-play-state: paused;
}

.gallery__item {
  width: 300px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

@keyframes galleryScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid    { grid-template-columns: repeat(3, 1fr); }
  .footer__top    { grid-template-columns: 1fr 1fr; }
  .about__grid    { gap: 48px; }
  .contact__grid  { gap: 48px; }
}

@media (max-width: 768px) {
  .gallery__item {
    width: 240px;
    height: 180px;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-out);
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__hamburger { display: flex; }
  .nav__logo-img  { height: 38px; }

  .about__grid    { grid-template-columns: 1fr; }
  .about__content { padding-right: 0; }
  .about__image-wrap { max-height: 420px; }
  .about__badge   { right: 12px; bottom: -12px; }

  .services__grid { grid-template-columns: 1fr; gap: 4px; }

  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio__item--tall { grid-row: span 1; aspect-ratio: 1; }
  .portfolio__item--wide { grid-column: span 2; }

  .stats__grid   { grid-template-columns: repeat(2, 1fr); }
  .stat          { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__form { padding: 32px 24px; }
  .form__row     { grid-template-columns: 1fr; }

  .footer__top     { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom  { flex-direction: column; gap: 8px; text-align: center; }

  .hero__actions { flex-direction: column; }
  .btn           { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .section       { padding: 72px 0; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__item--wide { grid-column: span 1; aspect-ratio: 1; }
  .portfolio__overlay { opacity: 1; }
  .stats__grid   { grid-template-columns: 1fr; }
  .stat          { border-right: none; }
}
