/* =====================================================
   ENGINUIM ENGINEERING — CSS
   Substitueix Tailwind CDN per a producció
   ===================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  overflow-x: hidden;
  color: #121d2b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* === CSS VARIABLES (colors) === */
:root {
  --eng-green:  #3d6052;
  --eng-navy:   #121d2b;
  --eng-slate:  #2d3748;
  --eng-light:  #f8fafc;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --whatsapp:   #25D366;
}

/* === COMPONENT CLASSES (from original styles.css) === */
.logo-text      { font-weight: 700; color: #121d2b; font-size: 1.75rem; line-height: 1; }
.logo-subtext   { font-weight: 400; color: #2d3748; font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase; margin-top: 2px; }
.page-content   { display: none; }
.page-content.active { display: block; }
#cookie-banner  { display: none; position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 1000; }
.lang-btn.active { color: #3d6052; font-weight: 800; }
.legal-data-hidden  { display: none; }
.legal-data-visible { display: block; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.secure-text    { user-select: none; -webkit-user-select: none; }
.service-card   { border: 1px solid #edf2f7; margin-left: -1px; margin-top: -1px; }
#form-modal     { display: none; }
#form-modal.flex{ display: flex; }

/* WhatsApp flotant */
.whatsapp-float {
  background-color: #25D366; color: #fff; border-radius: 50px;
  font-size: 30px; box-shadow: 0 4px 12px rgba(0,0,0,.15);
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* === LAYOUT === */
.container      { width: 100%; }
.mx-auto        { margin-left: auto; margin-right: auto; }
.max-w-2xl      { max-width: 42rem; }
.max-w-3xl      { max-width: 48rem; }
.max-w-4xl      { max-width: 56rem; }
.max-w-7xl      { max-width: 80rem; }
.max-w-md       { max-width: 28rem; }
.max-w-none     { max-width: none; }
.w-full         { width: 100%; }
.w-8            { width: 2rem; }
.w-10           { width: 2.5rem; }
.w-12           { width: 3rem; }
.w-20           { width: 5rem; }
.h-1            { height: 0.25rem; }
.h-10           { height: 2.5rem; }
.h-12           { height: 3rem; }
.h-24           { height: 6rem; }
.h-48           { height: 12rem; }
.h-full         { height: 100%; }
.min-h-\[300px\]{ min-height: 300px; }

/* === DISPLAY === */
.block          { display: block; }
.inline-block   { display: inline-block; }
.flex           { display: flex; }
.grid           { display: grid; }
.hidden         { display: none; }
.overflow-hidden{ overflow: hidden; }

/* === FLEX === */
.flex-col       { flex-direction: column; }
.flex-wrap      { flex-wrap: wrap; }
.flex-1         { flex: 1 1 0%; }
.flex-shrink-0  { flex-shrink: 0; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-0          { gap: 0; }
.gap-2          { gap: 0.5rem; }
.gap-3          { gap: 0.75rem; }
.gap-4          { gap: 1rem; }
.gap-5          { gap: 1.25rem; }
.gap-6          { gap: 1.5rem; }
.gap-8          { gap: 2rem; }
.gap-10         { gap: 2.5rem; }
.gap-12         { gap: 3rem; }
.gap-24         { gap: 6rem; }
.space-x-12 > * + * { margin-left: 3rem; }
.space-y-1  > * + * { margin-top: 0.25rem; }
.space-y-2  > * + * { margin-top: 0.5rem; }
.space-y-3  > * + * { margin-top: 0.75rem; }
.space-y-4  > * + * { margin-top: 1rem; }
.space-y-5  > * + * { margin-top: 1.25rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* === GRID === */
.grid-cols-1    { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* === POSITION === */
.relative       { position: relative; }
.absolute       { position: absolute; }
.fixed          { position: fixed; }
.inset-0        { top: 0; right: 0; bottom: 0; left: 0; }
.top-0          { top: 0; }
.top-4          { top: 1rem; }
.left-4         { left: 1rem; }
.right-0        { right: 0; }
.z-10           { z-index: 10; }
.z-50           { z-index: 50; }
.z-\[100\]      { z-index: 100; }
.-z-10          { z-index: -10; }

/* === SPACING === */
.p-4            { padding: 1rem; }
.p-5            { padding: 1.25rem; }
.p-6            { padding: 1.5rem; }
.p-8            { padding: 2rem; }
.p-10           { padding: 2.5rem; }
.p-12           { padding: 3rem; }
.px-3           { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-5           { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6           { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8           { padding-left: 2rem; padding-right: 2rem; }
.px-10          { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12          { padding-left: 3rem; padding-right: 3rem; }
.py-1           { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3           { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4           { padding-top: 1rem; padding-bottom: 1rem; }
.py-5           { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-20          { padding-top: 5rem; padding-bottom: 5rem; }
.py-32          { padding-top: 8rem; padding-bottom: 8rem; }
.pt-10          { padding-top: 2.5rem; }
.pt-12          { padding-top: 3rem; }
.pt-20          { padding-top: 5rem; }
.pt-32          { padding-top: 8rem; }
.pt-40          { padding-top: 10rem; }
.pb-8           { padding-bottom: 2rem; }
.pb-10          { padding-bottom: 2.5rem; }
.pb-20          { padding-bottom: 5rem; }
.pb-32          { padding-bottom: 8rem; }
.pl-4           { padding-left: 1rem; }
.pl-5           { padding-left: 1.25rem; }
.pl-6           { padding-left: 1.5rem; }
.pr-8           { padding-right: 2rem; }
.mb-1           { margin-bottom: 0.25rem; }
.mb-2           { margin-bottom: 0.5rem; }
.mb-3           { margin-bottom: 0.75rem; }
.mb-4           { margin-bottom: 1rem; }
.mb-6           { margin-bottom: 1.5rem; }
.mb-8           { margin-bottom: 2rem; }
.mb-10          { margin-bottom: 2.5rem; }
.mb-12          { margin-bottom: 3rem; }
.mb-16          { margin-bottom: 4rem; }
.mb-20          { margin-bottom: 5rem; }
.mt-1           { margin-top: 0.25rem; }
.mt-2           { margin-top: 0.5rem; }
.mt-4           { margin-top: 1rem; }
.mt-6           { margin-top: 1.5rem; }
.mt-12          { margin-top: 3rem; }
.mt-16          { margin-top: 4rem; }
.mr-2           { margin-right: 0.5rem; }

/* === BACKGROUND === */
.bg-white       { background-color: #ffffff; }
.bg-eng-green   { background-color: #3d6052; }
.bg-eng-navy    { background-color: #121d2b; }
.bg-eng-light   { background-color: #f8fafc; }
.bg-gray-100    { background-color: #f3f4f6; }
.bg-gray-200    { background-color: #e5e7eb; }  /* used rarely */
.bg-\[\#25D366\]{ background-color: #25D366; }
.bg-\[\#25D366\]\/10 { background-color: rgba(37,211,102,.1); }
.bg-black\/40   { background-color: rgba(0,0,0,.4); }
.bg-white\/5    { background-color: rgba(255,255,255,.05); }
.bg-white\/95   { background-color: rgba(255,255,255,.95); }
.bg-eng-green\/10 { background-color: rgba(61,96,82,.1); }

/* === TEXT COLOR === */
.text-white     { color: #ffffff; }
.text-eng-green { color: #3d6052; }
.text-eng-navy  { color: #121d2b; }
.text-eng-slate { color: #2d3748; }
.text-gray-300  { color: #d1d5db; }
.text-gray-400  { color: #9ca3af; }
.text-red-500   { color: #ef4444; }
.text-\[\#25D366\] { color: #25D366; }

/* === BORDER === */
.border         { border: 1px solid #e5e7eb; }
.border-b       { border-bottom: 1px solid #e5e7eb; }
.border-t       { border-top: 1px solid #e5e7eb; }
.border-l       { border-left: 1px solid #e5e7eb; }
.border-l-2     { border-left-width: 2px; border-left-style: solid; }
.border-t-4     { border-top-width: 4px; border-top-style: solid; }
.border-y       { border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.border-eng-green   { border-color: #3d6052; }
.border-t-eng-green { border-top-color: #3d6052; }
.border-gray-100    { border-color: #f3f4f6; }
.border-gray-200    { border-color: #e5e7eb; }
.border-gray-50     { border-color: #f9fafb; }
.border-white\/10   { border-color: rgba(255,255,255,.1); }
.border-dashed      { border-style: dashed; }

/* === ROUNDED === */
.rounded-sm     { border-radius: 0.125rem; }
.rounded-xl     { border-radius: 0.75rem; }
.rounded-lg     { border-radius: 0.5rem; }
.rounded-full   { border-radius: 9999px; }

/* === SHADOW === */
.shadow-sm      { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.shadow-lg      { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-xl      { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.shadow-2xl     { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.shadow-md      { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-eng-green\/10 { box-shadow: 0 20px 25px -5px rgba(61,96,82,.1); }
.shadow-eng-navy\/10  { box-shadow: 0 20px 25px -5px rgba(18,29,43,.1); }

/* === TYPOGRAPHY === */
.text-xs        { font-size: 0.75rem; line-height: 1rem; }
.text-sm        { font-size: 0.875rem; line-height: 1.25rem; }
.text-base      { font-size: 1rem; line-height: 1.5rem; }
.text-lg        { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl        { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl       { font-size: 1.5rem; line-height: 2rem; }
.text-3xl       { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl       { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl       { font-size: 3rem; line-height: 1; }
.text-6xl       { font-size: 3.75rem; line-height: 1; }
.text-\[10px\]  { font-size: 10px; }
.text-\[9px\]   { font-size: 9px; }
.text-\[8px\]   { font-size: 8px; }
.\!text-\[8px\] { font-size: 8px !important; }
.\!text-xl      { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.font-light     { font-weight: 300; }
.font-medium    { font-weight: 500; }
.font-bold      { font-weight: 700; }
.font-black     { font-weight: 900; }
.italic         { font-style: italic; }
.uppercase      { text-transform: uppercase; }
.text-left      { text-align: left; }
.text-center    { text-align: center; }
.antialiased    { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.leading-\[1\.2\] { line-height: 1.2; }
.leading-none   { line-height: 1; }
.leading-relaxed{ line-height: 1.625; }
.leading-tight  { line-height: 1.25; }
.tracking-tight   { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider   { letter-spacing: 0.05em; }
.tracking-widest  { letter-spacing: 0.1em; }
.tracking-\[0\.2em\]  { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.3em\]  { letter-spacing: 0.3em; }
.tracking-\[0\.35em\] { letter-spacing: 0.35em; }
.tracking-\[0\.4em\]  { letter-spacing: 0.4em; }
.tracking-\[0\.6em\]  { letter-spacing: 0.6em; }

/* === OPACITY === */
.opacity-20     { opacity: 0.2; }
.opacity-40     { opacity: 0.4; }
.opacity-60     { opacity: 0.6; }

/* === CURSOR === */
.cursor-pointer { cursor: pointer; }

/* === TRANSITIONS === */
.transition         { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(.4,0,.2,1); transition-duration: 150ms; }
.transition-all     { transition-property: all; transition-timing-function: cubic-bezier(.4,0,.2,1); transition-duration: 150ms; }
.transition-colors  { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(.4,0,.2,1); transition-duration: 150ms; }
.animate-spin       { animation: spin 1s linear infinite; }
@keyframes spin     { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* === BACKDROP === */
.backdrop-blur-sm   { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md   { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* === ACCENT === */
.accent-eng-green   { accent-color: #3d6052; }

/* === FOCUS === */
.focus\:outline-none:focus    { outline: none; }
.focus\:border-eng-green:focus{ border-color: #3d6052; }

/* === HOVER === */
.hover\:bg-eng-green:hover      { background-color: #3d6052; }
.hover\:bg-gray-100:hover       { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover       { background-color: #e5e7eb; }
.hover\:bg-gray-50:hover        { background-color: #f9fafb; }
.hover\:bg-opacity-90:hover     { opacity: .9; }
.hover\:bg-white\/5:hover       { background-color: rgba(255,255,255,.05); }
.hover\:border-eng-green\/30:hover { border-color: rgba(61,96,82,.3); }
.hover\:opacity-80:hover        { opacity: .8; }
.hover\:shadow-md:hover         { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.hover\:text-eng-green:hover    { color: #3d6052; }

/* === GROUP HOVER === */
.group:hover .group-hover\:bg-\[\#25D366\]    { background-color: #25D366; }
.group:hover .group-hover\:opacity-100        { opacity: 1; }
.group:hover .group-hover\:opacity-90         { opacity: .9; }
.group:hover .group-hover\:text-eng-green     { color: #3d6052; }
.group:hover .group-hover\:text-white         { color: #ffffff; }

/* === RESPONSIVE — SM (640px) === */
@media (min-width: 640px) {
  .sm\:block          { display: block; }
  .sm\:flex-row       { flex-direction: row; }
  .sm\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:w-1\/2         { width: 50%; }
  .whatsapp-float     { bottom: 30px; right: 30px; width: 60px; height: 60px; font-size: 30px; }
}
@media (max-width: 639px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 25px; }
}

/* === RESPONSIVE — MD (768px) === */
@media (min-width: 768px) {
  .md\:border-b-0     { border-bottom-width: 0; }
  .md\:border-r       { border-right-width: 1px; border-right-style: solid; border-right-color: rgba(255,255,255,.1); }
  .md\:col-span-1     { grid-column: span 1 / span 1; }
  .md\:col-span-2     { grid-column: span 2 / span 2; }
  .md\:flex-row       { flex-direction: row; }
  .md\:gap-8          { gap: 2rem; }
  .md\:gap-16         { gap: 4rem; }
  .md\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:mb-8           { margin-bottom: 2rem; }
  .md\:mb-20          { margin-bottom: 5rem; }
  .md\:p-8            { padding: 2rem; }
  .md\:p-10           { padding: 2.5rem; }
  .md\:py-32          { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:text-4xl       { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl       { font-size: 3rem; line-height: 1; }
  .md\:text-base      { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-lg        { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-xl        { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:w-auto         { width: auto; }
}

/* === RESPONSIVE — LG (1024px) === */
@media (min-width: 1024px) {
  .lg\:block          { display: block; }
  .lg\:flex           { display: flex; }
  .lg\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:p-14           { padding: 3.5rem; }
  .lg\:pb-40          { padding-bottom: 10rem; }
  .lg\:pt-52          { padding-top: 13rem; }
  .lg\:px-8           { padding-left: 2rem; padding-right: 2rem; }
  .lg\:text-6xl       { font-size: 3.75rem; line-height: 1; }
  .lg\:w-1\/3         { width: 33.333%; }
}
