/* MAMudanzas Barcelona — Industrial Minimalist design system */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-foreground: #ffffff;
  --charcoal: #1a1a1a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #27272a;
  --gray-900: #111827;
  --amber-400: #fbbf24;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --container-max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

button {
  font-family: var(--font-display);
  cursor: pointer;
  border: none;
  background: none;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section-eyebrow {
  width: 6rem;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto 0;
}

.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  text-align: center;
  transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: #eff6ff;
}
.btn-block {
  display: block;
  width: 100%;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--gray-200);
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.navbar-logo {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
}

.navbar-brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gray-900);
}

.navbar-links {
  display: none;
  gap: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.navbar-links a {
  color: var(--gray-700);
  transition: color 0.15s ease;
}
.navbar-links a:hover {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-phone {
  display: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-display);
  transition: background-color 0.15s ease;
}
.navbar-phone:hover {
  background: var(--primary-dark);
}

.navbar-toggle {
  display: inline-flex;
  padding: 0.5rem;
  color: var(--gray-900);
}

.navbar-mobile-menu {
  display: none;
  border-top: 2px solid var(--gray-200);
  background: #fff;
}
.navbar-mobile-menu.open {
  display: block;
}
.navbar-mobile-menu .container {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.navbar-mobile-menu a {
  color: var(--gray-700);
}
.navbar-mobile-call {
  color: var(--primary);
  font-weight: 700;
}

@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .navbar-toggle { display: none; }
  .navbar-mobile-menu { display: none !important; }
}
@media (min-width: 640px) {
  .navbar-phone { display: inline-block; }
}

/* Hero */
.hero {
  padding: 7rem 0 5rem;
  background: linear-gradient(to bottom right, #ffffff, var(--gray-50), #ffffff);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero { padding-top: 8rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
}
@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-title .accent {
  color: var(--primary);
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
}
.hero-badge .icon {
  color: var(--primary);
}

.hero-image-wrap {
  position: relative;
}

.hero-image-backdrop {
  position: absolute;
  inset: -1rem;
  opacity: 0.1;
  border-radius: 1rem;
  transform: rotate(2deg);
  background: var(--primary);
}

.hero-image-frame {
  position: relative;
  z-index: 10;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 4px solid #fff;
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(to top, rgba(0, 102, 204, 0.85), transparent);
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to bottom, transparent, var(--gray-100));
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* Generic section */
section {
  padding: 5rem 0;
}
.bg-gray { background: var(--gray-100); }
.bg-white { background: #fff; }
.bg-dark { background: var(--gray-900); }

.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}
.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .section-heading h2 { font-size: 3rem; }
}
.section-heading p {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* Services */
.grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  padding: 2rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.service-card .icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.service-card .link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card .link .icon {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}
.gallery-caption h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.gallery-caption p {
  color: var(--gray-200);
  font-size: 0.875rem;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.15s ease;
}
.testimonial-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.stars .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--amber-400);
  fill: var(--amber-400);
}
.testimonial-text {
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial-name {
  font-weight: 700;
}

/* Values */
.value-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease;
}
.value-card:hover {
  background: var(--gray-50);
}
.value-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
}
.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.value-card p {
  color: var(--gray-600);
}

/* Process */
.process-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
}
@media (min-width: 768px) {
  .process-list { grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
}
.process-item {
  position: relative;
}
.process-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.process-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.process-step {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.process-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.process-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}
.process-connector {
  display: none;
}
@media (min-width: 768px) {
  .process-connector {
    display: block;
    position: absolute;
    top: 50%;
    right: -0.5rem;
    width: 1rem;
    height: 4px;
    transform: translateY(-50%);
    background: var(--primary);
  }
}

/* Quote form */
.quote-section h2 {
  color: #fff;
}
.quote-lead {
  text-align: center;
  color: var(--gray-300);
  margin-bottom: 3rem;
}
.quote-form {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  background: var(--gray-800);
  border: 2px solid var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
}
.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #9ca3af;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.quote-form textarea {
  resize: none;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
.contact-card {
  text-align: center;
}
.contact-card .icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  margin: 0 auto 1rem;
}
.contact-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.contact-card a {
  color: var(--primary);
}
.contact-card a:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: #fff;
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
}
.footer-logo {
  height: 2.25rem;
  width: 2.25rem;
  object-fit: contain;
  background: #fff;
  border-radius: 2px;
  padding: 2px;
}
.footer-copy {
  color: var(--gray-400, #9ca3af);
}

/* Anchor scroll offset for fixed navbar */
section[id], main[id] {
  scroll-margin-top: 5rem;
}
