:root {
  --bg: #f7f7fb;          /* fondo claro */
  --card: #ffffff;        /* tarjetas claras */
  --text: #1a0b2e;        /* texto principal oscuro */
  --muted: #5b5b73;       /* texto secundario */
  --brand: #9a7ff7;       /* púrpura más suave */
  --brand-2: #e3d7ff;     /* púrpura muy claro */
  --secondary: #5fd3d3;   /* turquesa suave complementaria */
  --tertiary: #f59e0b;    /* ámbar cálido para acentos */
  --accent: #8b5cf6;      /* acento púrpura */
  --danger: #e11d48;
  --shadow: 0 8px 24px rgba(17, 12, 28, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(154,127,247,0.12), transparent 60%),
              radial-gradient(800px 400px at 10% 0%, rgba(95,211,211,0.10), transparent 60%),
              var(--bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif; font-weight: 600; }
h1 { font-size: 40px; letter-spacing: -0.01em; }
h2 { font-size: 32px; margin-bottom: 16px; letter-spacing: -0.01em; }
h3 { font-size: 22px; margin-bottom: 8px; font-weight: 500; }
p { margin: 0 0 14px; color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(24,16,38,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  text-decoration: none; 
  transition: transform 0.3s ease, filter 0.3s ease;
}
.brand:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
/* Make img logos align nicely */
.brand img { 
  height: 64px; 
  width: auto; 
  max-width: 220px;
  object-fit: contain;
}
.brand.small img { 
  height: 40px;
  max-width: 240px;
  object-fit: contain;
}
/* Logo image overrides remove previous text-based mark styles */
.brand .brand-mark, .brand .brand-name { display: none; }

.nav { position: relative; }
.nav-list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 600; opacity: 0.9; }
.nav-list a:hover { color: var(--brand); }
.cta-link { background: #efeafd; padding: 8px 14px; border-radius: 999px; border: 1px solid #dbcffc; }

/* Language Selector */
.language-selector {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 20px;
}

.lang-btn {
  background: transparent;
  border: 2px solid rgba(24,16,38,0.12);
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.lang-btn:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(154,127,247,0.2);
}

.lang-btn.active {
  border-color: var(--brand);
  background: rgba(154,127,247,0.1);
  box-shadow: 0 2px 8px rgba(154,127,247,0.3);
}

.lang-btn img {
  border-radius: 50%;
  transition: transform 0.2s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-btn:hover img {
  transform: scale(1.05);
}

.nav-toggle { 
  display: none; 
  flex-direction: column; 
  gap: 5px; 
  background: transparent; 
  border: 0; 
  padding: 8px; 
  cursor: pointer;
  z-index: 100;
  position: relative;
}
.nav-toggle span { 
  width: 26px; 
  height: 2px; 
  background: var(--text); 
  display: block;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Hero */
.hero { 
  position: relative; 
  min-height: 80vh; 
  display: grid; 
  place-items: center; 
  padding: 80px 0;
  background-image: 
    linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)),
    url('https://images.unsplash.com/photo-1581091870622-7f8b61d1f9af?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; background: transparent; transform: translateZ(0); }
.hero-media::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.32); z-index: 2; pointer-events: none; }
.hero-media .hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; image-rendering: -webkit-optimize-contrast; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; -ms-interpolation-mode: bicubic; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(0) scale(1.002); -webkit-transform: translateZ(0) scale(1.002); filter: url(#sharpen) contrast(1.2) brightness(1.06) saturate(1.12); -webkit-filter: contrast(1.2) brightness(1.06) saturate(1.12); will-change: transform; }
.hero-media .hero-bg.active { opacity: 1; }
.hero-content { text-align: center; max-width: 900px; position: relative; z-index: 10; }
.hero h1 { color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero p { font-size: 18px; color: #ffffff; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.trust-badges { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.trust-badges span { background: #f1edff; border: 1px solid #e3d7ff; padding: 6px 10px; border-radius: 999px; color: #3b2f63; font-size: 13px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--text); padding: 12px 24px; border-radius: 6px; border: 2px solid rgba(24,16,38,0.2); transition: all .2s ease; font-weight: 600; background: #ffffff; }
.btn:hover { background: #8b5cf6; color: #ffffff; border-color: #8b5cf6; }
.btn-primary { background: #ffffff; color: var(--text); border: 2px solid rgba(24,16,38,0.2); }
.btn-primary:hover { background: #8b5cf6; color: #ffffff; border-color: #8b5cf6; }
.btn-ghost { background: #ffffff; color: var(--text); border: 2px solid rgba(24,16,38,0.2); }
.btn-ghost:hover { background: #8b5cf6; color: #ffffff; border-color: #8b5cf6; }

/* Sections */
.section { padding: 80px 0; }
.section-intro { margin-bottom: 24px; }
.grid.two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }

/* Services section white background */
.services {
  background: #ffffff;
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}

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

.services h2,
.services .services-value-title {
  color: var(--text);
}

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

/* Sectores and Masterclass section - light gray background */
.sectors,
#masterclass {
  background: #f5f5f7;
}

/* Contact section - white background */
.contact {
  background: #ffffff;
}

/* Background sections */
.about {
  background-image: 
    linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)),
    url('https://images.unsplash.com/photo-1581091014534-8987c1d647b1?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.projects {
  background-image: 
    linear-gradient(rgba(247,247,251,0.9), rgba(247,247,251,0.9)),
    url('https://images.unsplash.com/photo-1581093458791-9d1a40a3a4bb?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cases {
  background-image: 
    linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)),
    url('https://images.unsplash.com/photo-1581093588401-16f8c92c2a09?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.testimonials {
  background-image: 
    linear-gradient(rgba(247,247,251,0.9), rgba(247,247,251,0.9)),
    url('https://images.unsplash.com/photo-1555949963-aa79dcee981d?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about .about-media img,
.cases .cases-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }

/* Masterclass learn section with image */
.masterclass-learn-section {
  margin: 30px 0;
}

.masterclass-learn-section .about-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.masterclass-learn-section .about-media img {
  width: 70%;
  max-width: 70%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(24,16,38,0.08);
}
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--brand-2); }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9)); border: 1px solid rgba(24,16,38,0.08); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-body { padding: 14px; }

/* Cases */
.case + .case { margin-top: 16px; }
.case h3 { color: var(--text); border-left: 4px solid var(--tertiary); padding-left: 10px; }
.case p { margin-left: 14px; }

.case .metrics { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 0 14px; }
.case .metric { background: #fff7ed; color: #7a3b00; border: 1px solid rgba(245,158,11,0.35); padding: 6px 10px; border-radius: 999px; font-size: 13px; }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(154,127,247,0.15), rgba(95,211,211,0.15));
  border: 1px solid rgba(154,127,247,0.35);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}
.highlight-box h4 { color: var(--brand); margin: 0 0 12px; }

/* Highlight box in services section */
.services .highlight-box {
  background: linear-gradient(135deg, rgba(154,127,247,0.15), rgba(95,211,211,0.15));
  border: 1px solid rgba(154,127,247,0.35);
}

.services .highlight-box h3 {
  color: var(--text);
}

.services .highlight-box p,
.services .highlight-box li {
  color: var(--muted);
}

/* Services Value Section */
.services-value-title {
  font-size: 26px;
  color: var(--text);
  margin: 40px 0 28px;
  text-align: center;
}

.services-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.value-card {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(154,127,247,0.2);
  border-radius: 10px;
  padding: 18px 16px 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(154, 127, 247, 0.35);
  border-color: rgba(154,127,247,0.6);
  background: rgba(255,255,255,1);
}

.value-card h4 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 12px 10px;
  text-align: center;
  border-bottom: none;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 15px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.value-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* Masterclass benefits */
.masterclass-benefits { margin: 24px 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.benefit-item {
  background: rgba(154,127,247,0.06);
  border: 1px solid rgba(154,127,247,0.15);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.benefit-item strong {
  display: block;
  color: var(--brand);
  font-size: 18px;
  margin-bottom: 6px;
}
.benefit-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.masterclass-details {
  background: rgba(95,211,211,0.06);
  border: 1px solid rgba(95,211,211,0.15);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
}
.masterclass-details h4 { color: var(--secondary); margin: 0 0 12px; }
.masterclass-details ul { margin: 0; padding-left: 20px; }
.masterclass-details li { margin-bottom: 8px; }

/* Testimonials */
.testimonials .carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.testimonial { min-width: 100%; padding: 24px; }
.testimonial blockquote { font-size: 20px; color: var(--text); margin: 0 0 8px; border-left: 4px solid var(--tertiary); padding-left: 12px; }
.testimonial figcaption { color: var(--muted); }
.testimonial .rating { color: var(--tertiary); }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(24,16,38,0.18); cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* (removed sectors carousel styles; sectors use grid via .project-grid) */

/* Contact */
.contact-info { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.contact-form { background: linear-gradient(135deg, #d7f5e3 0%, #c8f0dc 100%); border: 1px solid rgba(37,211,102,0.3); padding: 18px; border-radius: 14px; box-shadow: 0 4px 12px rgba(37,211,102,0.12); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
label { color: var(--muted); font-size: 14px; }
input, textarea { background: #faf8ff; color: var(--text); border: 1px solid rgba(24,16,38,0.18); border-radius: 10px; padding: 10px 12px; font: inherit; }
input:focus, textarea:focus { outline: 2px solid rgba(124,58,237,0.35); border-color: transparent; }
.actions { display: flex; gap: 10px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(24,16,38,0.08); padding: 28px 0; background: #ffffff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; color: var(--muted); }
.footer-contact a { color: var(--muted); text-decoration: none; }

/* Responsive */
@media (max-width: 980px) {
  .grid.two { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .project-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-list { 
    position: fixed; 
    right: -100%; 
    top: 0; 
    background: rgba(255,255,255,0.98); 
    backdrop-filter: blur(10px);
    padding: 80px 20px 20px; 
    border: 1px solid rgba(24,16,38,0.12); 
    border-radius: 0 0 0 12px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    min-width: 280px; 
    height: 100vh;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }
  .nav-list.open { right: 0; }
  .nav-list a { font-size: 18px; padding: 8px 0; }
  .cta-link { text-align: center; }
  
  /* Mobile language selector */
  .language-selector {
    margin-left: 12px;
    gap: 6px;
  }
  
  .lang-btn {
    width: 32px;
    height: 32px;
    padding: 3px;
  }
  
  .lang-btn img {
    width: 100%;
    height: 100%;
  }
  
  /* Mobile hero adjustments */
  .hero { 
    min-height: 60vh; 
    padding: 60px 0;
    background-attachment: scroll; /* Disable fixed attachment on mobile */
  }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; }
  
  /* Disable fixed backgrounds on mobile for better performance */
  .about, .projects, .cases, .testimonials {
    background-attachment: scroll;
  }
  
  /* Mobile sections */
  .section { padding: 60px 0; }
  .grid.two { gap: 24px; }
  
  /* Mobile cards */
  .card-body { padding: 16px; }
  
  /* Mobile testimonials */
  .testimonial { padding: 20px; }
  .testimonial blockquote { font-size: 18px; }
  
  /* Mobile contact */
  .contact-form { padding: 16px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  
  /* Mobile Pet Food section */
  .feature-card {
    flex-direction: column !important;
  }
  
  .feature-image {
    min-height: 250px;
  }
  
  .benefits-grid-petfood {
    grid-template-columns: 1fr !important;
  }

  /* Mobile Services Value Cards */
  .services-value-title {
    font-size: 22px;
    margin: 28px 0 20px;
  }

  .services-value-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .value-card {
    padding: 12px 14px;
  }
}

/* Pet Food Section Styles */
.pet-food-sector {
  background: linear-gradient(135deg, rgba(154,127,247,0.05) 0%, rgba(95,211,211,0.05) 100%);
  padding: 80px 0;
}

.petfood-features {
  margin: 40px 0;
}

.feature-card {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
  background: var(--card);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17, 12, 28, 0.16);
}

.feature-card.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  min-width: 300px;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  color: var(--brand);
  margin-bottom: 16px;
  font-size: 26px;
}

.feature-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.feature-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--text);
  font-size: 15px;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 18px;
}

.petfood-benefits-section {
  margin: 60px 0 40px;
  text-align: center;
}

.petfood-benefits-section h3 {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 40px;
}

.benefits-grid-petfood {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background: var(--card);
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(17, 12, 28, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.benefit-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(154, 127, 247, 0.2);
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.benefit-card h4 {
  color: var(--brand);
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
}

.benefit-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  padding: 60px 40px;
  border-radius: 20px;
  margin-top: 60px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(154, 127, 247, 0.3);
}

.cta-section h3 {
  color: white;
  font-size: 32px;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: white;
  color: var(--brand);
  border: none;
}

.cta-section .btn-primary:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for Pet Food section */
@media (max-width: 768px) {
  .feature-card {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }
  
  .feature-card.reverse {
    flex-direction: column;
  }
  
  .feature-image {
    min-width: 100%;
  }
  
  .cta-section {
    padding: 40px 24px;
  }
  
  .cta-section h3 {
    font-size: 24px;
  }
  
  .cta-section p {
    font-size: 16px;
  }
}


/* Center the last row items in Sectores */
.sectors .project-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  justify-content: center;
}
.sectors .card {
  width: 100%;
  max-width: none;
}
/* Position top row (1-3) to span two columns each */
.sectors .project-grid .card:nth-child(1) { grid-column: 1 / span 2; }
.sectors .project-grid .card:nth-child(2) { grid-column: 3 / span 2; }
.sectors .project-grid .card:nth-child(3) { grid-column: 5 / span 2; }
/* Position second row (Café, Chocolate) at 1.5 and 2.5 → columns 2 and 5 */
.sectors .project-grid .card:nth-child(4) { grid-column: 2 / span 2; }
.sectors .project-grid .card:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 980px) {
  .sectors .project-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors .card { max-width: none; }
  .sectors .project-grid .card:nth-child(1),
  .sectors .project-grid .card:nth-child(2),
  .sectors .project-grid .card:nth-child(3),
  .sectors .project-grid .card:nth-child(4),
  .sectors .project-grid .card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 720px) {
  .sectors .project-grid { grid-template-columns: 1fr; }
  .sectors .card { max-width: 100%; }
}
