/* ============================================
   FERRETERÍA CAMBIL — Editorial Bold Style
   Palette: Plum (#5B2C6F / #7D3C98) + Amber (#D4920B / #F0B429)
   Fonts: Playfair Display (headlines) + Inter (body)
============================================ */

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

:root {
  --plum-900: #2D1233;
  --plum-800: #3D1A47;
  --plum-700: #5B2C6F;
  --plum-600: #7D3C98;
  --plum-500: #9B59B6;
  --plum-100: #F4ECF7;
  --plum-50:  #FBF5FD;

  --amber-700: #B37700;
  --amber-600: #D4920B;
  --amber-500: #F0B429;
  --amber-400: #F5C563;
  --amber-100: #FEF3CD;
  --amber-50:  #FFFBF0;

  --neutral-900: #1A1A2E;
  --neutral-800: #2D2D44;
  --neutral-700: #4A4A5A;
  --neutral-600: #6B6B7B;
  --neutral-400: #9E9EAE;
  --neutral-300: #C4C4D0;
  --neutral-200: #E2E2EA;
  --neutral-100: #F0F0F5;
  --neutral-50:  #FAFAFC;

  --white: #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ── Layout ── */
.layout {
  display: flex;
  min-height: 100vh;
}

.content {
  flex: 1;
  margin-left: 280px;
  background: var(--white);
}

/* ── Side Navigation ── */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--plum-900);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 40px 0;
  overflow-y: auto;
}

.side-nav-inner {
  width: 100%;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.side-nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark svg {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-500);
}

.brand-sub {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.side-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--amber-500);
  border-radius: 0 3px 3px 0;
  transition: height 0.3s var(--ease-out);
}

.side-nav-link:hover,
.side-nav-link.active {
  background: rgba(255, 255, 255, 0.08);
}

.side-nav-link:hover::before,
.side-nav-link.active::before {
  height: 24px;
}

.nav-num {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--plum-500);
  transition: color 0.3s ease;
  min-width: 20px;
}

.side-nav-link:hover .nav-num,
.side-nav-link.active .nav-num {
  color: var(--amber-500);
}

.nav-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s ease;
}

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

.side-nav-contact {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.side-nav-phone:hover {
  color: var(--amber-500);
}

/* ── Mobile Header ── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--plum-900);
  z-index: 200;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(45, 18, 51, 0.3);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo-icon {
  font-size: 1.4rem;
}

.mobile-logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.menu-toggle {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 18, 51, 0.97);
  z-index: 150;
  align-items: center;
  justify-content: center;
}

.mobile-menu-overlay.open {
  display: flex;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: var(--amber-500);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Sections ── */
.section {
  padding: 100px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.eyebrow-line {
  width: 40px;
  height: 2px;
  background: var(--amber-600);
  flex-shrink: 0;
}

.eyebrow-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--plum-600);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--plum-900);
  margin-bottom: 24px;
}

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

.serif-accent {
  font-style: italic;
  color: var(--amber-700);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(91, 44, 111, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 146, 11, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-right: 20px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-eyebrow .eyebrow-line {
  width: 60px;
}

.hero-eyebrow-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--plum-600);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--plum-900);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--neutral-700);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--plum-700);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.3);
}

.btn-primary:hover {
  background: var(--plum-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(91, 44, 111, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--plum-700);
  border: 2px solid var(--plum-700);
}

.btn-outline:hover {
  background: var(--plum-700);
  color: var(--white);
  transform: translateY(-2px);
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--plum-700);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--neutral-600);
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--neutral-200);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(45, 18, 51, 0.2);
}

.hero-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--amber-500);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 48px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--neutral-700);
  margin-bottom: 20px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--plum-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum-700);
  flex-shrink: 0;
}

.value-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.value-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--plum-900);
}

.value-text span {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.5;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(45, 18, 51, 0.15);
}

.about-image-frame {
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--amber-500);
  border-radius: 20px;
  opacity: 0.4;
  z-index: -1;
}

/* ── Services ── */
.services {
  background: var(--plum-900);
  max-width: 100%;
  padding: 100px 64px;
}

.services .section-eyebrow {
  justify-content: center;
}

.services .eyebrow-line {
  background: var(--amber-500);
}

.services .eyebrow-text {
  color: var(--amber-400);
}

.services .section-title {
  color: var(--white);
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--plum-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-600);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(240, 180, 41, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-500);
  margin-bottom: 24px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Products ── */
.products-grid {
  margin-top: 48px;
}

.products-header {
  margin-bottom: 48px;
}

.products-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--neutral-700);
  max-width: 560px;
}

.products-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 18, 51, 0.85) 0%, rgba(45, 18, 51, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(45, 18, 51, 0.9) 0%, rgba(45, 18, 51, 0.2) 60%);
}

.category-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--amber-400);
}

/* ── Projects ── */
.projects {
  background: var(--neutral-50);
  max-width: 100%;
  padding: 100px 64px;
}

.projects .section-title {
  margin-bottom: 64px;
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.project-item--large {
  grid-column: 1 / 8;
  grid-row: 1 / 2;
}

.project-item:not(.project-item--large):not(.project-item--wide) {
  grid-column: span 6;
}

.project-item--wide {
  grid-column: 1 / 13;
  grid-row: 2 / 3;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  min-height: 250px;
}

.project-item--large img {
  min-height: 400px;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(45, 18, 51, 0.85) 0%, transparent 100%);
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-400);
  background: rgba(240, 180, 41, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.project-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
  align-items: start;
}

.contact-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--neutral-700);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: var(--plum-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum-700);
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-600);
  margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
  font-size: 0.95rem;
  color: var(--neutral-700);
  line-height: 1.6;
}

.contact-detail a:hover {
  color: var(--plum-700);
  text-decoration: underline;
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Contact Form ── */
.contact-form-wrap {
  background: var(--neutral-50);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--neutral-200);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum-900);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--neutral-900);
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  border-radius: 10px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--plum-500);
  box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.1);
}

.form-input::placeholder {
  color: var(--neutral-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.show {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--plum-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--plum-700);
}

.form-success h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum-900);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--plum-900);
  padding: 64px 64px 40px;
  margin-left: 280px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 64px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-mark {
  font-size: 1.5rem;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--amber-500);
}

.footer-contact span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 16px;
}

.footer-bottom span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .hero {
    gap: 40px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .side-nav {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .content {
    margin-left: 0;
  }

  .footer {
    margin-left: 0;
  }

  .section {
    padding: 80px 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding-top: 100px;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    border-radius: 16px;
    max-height: 400px;
  }

  .hero-content {
    padding-right: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    max-width: 500px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }

  .projects-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .project-item--large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .project-item--wide {
    grid-column: 1 / -1;
  }

  .projects {
    padding: 80px 32px;
  }

  .services {
    padding: 80px 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 20px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .products-categories {
    grid-template-columns: 1fr 1fr;
  }

  .projects-gallery {
    grid-template-columns: 1fr;
  }

  .project-item:not(.project-item--large):not(.project-item--wide) {
    grid-column: 1 / -1;
  }

  .footer {
    padding: 48px 20px 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .products-categories {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }
}
