@import url('../fonts/fonts.css');

:root {
  --primary: #181A46;
  --accent: #3B82F6;
  --white: #FFFFFF;
  --black: #000000;
  --primary-light: #2a2d5e;
  --accent-dark: #2563EB;
  --ink: #1D181A;
  --body-text: #4a4a4a;
  --hairline: #e4e4e4;
  --surface: #f7f7f7;
  --surface-alt: #f0f2f5;
  --sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans-alt: 'Open Sans', var(--sans);
  --shell: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--body-text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; padding: .75em 1.5em; background: var(--primary); color: var(--white); font-size: 14px; }
.skip-link:focus { left: 0; }

/* MASTHEAD */
.masthead { position: sticky; top: 0; z-index: 100; background: var(--white); border-radius: 0 0 12px 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.masthead .shell { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 24px; }
.masthead__logo img { height: 60px; width: auto; object-fit: contain; }
.masthead__nav { display: flex; align-items: center; gap: 32px; }
.masthead__links { display: flex; align-items: center; gap: 28px; }
.masthead__links a { font-size: 15px; font-weight: 600; color: var(--primary); transition: color .2s var(--ease); white-space: nowrap; }
.masthead__links a:hover, .masthead__links a[aria-current="page"] { color: var(--accent); }

.nav-dropdown { position: relative; }
.nav-dropdown__menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease); }
.nav-dropdown:hover .nav-dropdown__menu, .nav-dropdown:focus-within .nav-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown__menu a { display: block; padding: 8px 20px; font-size: 14px; font-weight: 500; color: var(--body-text); }
.nav-dropdown__menu a:hover { color: var(--accent); background: var(--surface); }
.nav-dropdown__toggle::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid currentColor; vertical-align: middle; }

.masthead__cta .btn { padding: 10px 24px; font-size: 14px; background: #2f3896; }
.masthead__cta .btn:hover { background: #242c78; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all .3s var(--ease); }

/* MOBILE MENU */
.mobile-menu { display: none; }

/* FOCUS STATES (keyboard nav) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(59,130,246,.25); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans-alt); font-size: 15px; font-weight: 600; line-height: 1; padding: 14px 32px; border-radius: 100px; border: none; cursor: pointer; transition: all .25s var(--ease); text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,.3); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--outline:hover { background: var(--white); color: var(--primary); }
.btn--dark { background: var(--primary); color: var(--white); }
.btn--dark:hover { background: var(--primary-light); }
.btn--white { background: var(--white); color: var(--primary); }
.btn--white:hover { background: var(--surface); }
.btn--sm { padding: 10px 22px; font-size: 13px; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #2a2d5e 50%, #3d4180 100%); color: var(--white); padding: 80px 0 90px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%); border-radius: 50%; }
.hero .shell { position: relative; z-index: 1; }
.hero__subtitle { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.hero__title { font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; max-width: 650px; }
.hero__desc { font-size: 17px; line-height: 1.7; max-width: 580px; margin-bottom: 32px; opacity: .9; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* SERVICES */
.services { padding: 80px 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header__subtitle { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.section-header__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--primary); line-height: 1.2; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; padding: 32px 24px; text-align: center; transition: all .3s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); border-color: var(--accent); }
.service-card__icon { width: 64px; height: 64px; margin: 0 auto 16px; object-fit: contain; }
.service-card__title { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.service-card__desc { font-size: 14px; line-height: 1.6; color: var(--body-text); }
.service-card__link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }
.service-card__link:hover { text-decoration: underline; }

/* ABOUT BAND */
.about-band { padding: 80px 0; background: var(--surface-alt); }
.about-band .shell { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-band__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--primary); margin-bottom: 16px; text-transform: uppercase; }
.about-band__text { font-size: 16px; line-height: 1.7; color: var(--body-text); margin-bottom: 12px; }
.about-band__img { border-radius: 12px; overflow: hidden; }
.about-band__img img { width: 100%; height: 100%; object-fit: cover; }

/* PAGE HERO (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, #2a2d5e 100%); color: var(--white); padding: 60px 0 70px; text-align: center; }
.page-hero__title { font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.15; }

/* SERVICE DETAIL */
.service-detail { padding: 80px 0; }
.service-detail .shell { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.service-detail__content h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.service-detail__content p { font-size: 16px; line-height: 1.7; color: var(--body-text); margin-bottom: 16px; }
.service-detail__img { border-radius: 12px; overflow: hidden; }
.service-detail__img img { width: 100%; }

.benefits { padding: 60px 0; background: var(--surface-alt); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.benefit-card { background: var(--white); border-radius: 12px; padding: 28px 24px; text-align: center; }
.benefit-card__icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--accent); }
.benefit-card__icon svg { width: 36px; height: 36px; }
.benefit-card__title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.benefit-card__desc { font-size: 14px; line-height: 1.6; color: var(--body-text); }

.service-cta { padding: 60px 0; text-align: center; }
.service-cta h3 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }

/* ABOUT PAGE */
.about-hero-img { border-radius: 12px; overflow: hidden; margin-bottom: 48px; }
.about-hero-img img { width: 100%; max-height: 400px; object-fit: cover; }

.vision-mission { padding: 60px 0; background: var(--surface-alt); }
.vision-mission .shell { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vm-card { background: var(--white); border-radius: 12px; padding: 36px; }
.vm-card h3 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.vm-card p { font-size: 16px; line-height: 1.7; color: var(--body-text); }

.promise { padding: 60px 0; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.promise-card { background: var(--surface); border-radius: 12px; padding: 28px; text-align: center; }
.promise-card__icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--accent); }
.promise-card__icon svg { width: 40px; height: 40px; }
.promise-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.promise-card p { font-size: 14px; line-height: 1.6; color: var(--body-text); }

.team { padding: 60px 0; background: var(--surface-alt); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.team-card { text-align: center; }
.team-card__img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--accent); }
.team-card__name { font-size: 16px; font-weight: 700; color: var(--primary); }
.team-card__role { font-size: 13px; color: var(--body-text); }

.values { padding: 60px 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; padding: 28px; text-align: center; }
.value-card__icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--accent); }
.value-card__icon svg { width: 36px; height: 36px; }
.value-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); }

/* SERVICES PAGE */
.services-list { padding: 60px 0; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--hairline); }
.service-row:nth-child(even) { direction: rtl; }
.service-row:nth-child(even) > * { direction: ltr; }
.service-row__img { border-radius: 12px; overflow: hidden; }
.service-row__img img { width: 100%; height: 320px; object-fit: cover; }
.service-row__content h3 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.service-row__content p { font-size: 15px; line-height: 1.7; color: var(--body-text); margin-bottom: 16px; }

.industries { padding: 60px 0; background: var(--surface-alt); }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry-card { border-radius: 12px; overflow: hidden; position: relative; height: 220px; }
.industry-card img { width: 100%; height: 100%; object-fit: cover; }
.industry-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(24,26,70,.85) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 20px; }
.industry-card__title { color: var(--white); font-size: 16px; font-weight: 700; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 60px 0; }
.contact-info h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-item__icon { width: 20px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.contact-item__icon svg { stroke: currentColor; }
.contact-item__text { font-size: 15px; line-height: 1.6; }
.contact-item__text strong { color: var(--primary); }

.contact-form { background: var(--surface); border-radius: 12px; padding: 36px; }
.contact-form h2 { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: 8px; font-family: var(--sans); font-size: 15px; color: var(--ink); background: var(--white); transition: border-color .2s var(--ease); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 600; }
.form-status--success { color: #16a34a; }
.form-status--error { color: #dc2626; }

/* QUOTE PAGE */
.quote-form { max-width: 700px; margin: 0 auto; padding: 60px 0; }
.quote-form h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 24px; text-align: center; }

/* FOOTER */
.footer { background: var(--primary); color: var(--white); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer__logo img { height: 50px; margin-bottom: 16px; }
.footer__desc { font-size: 14px; line-height: 1.7; opacity: .8; margin-bottom: 16px; max-width: 300px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease); }
.footer__social a:hover { background: var(--accent); }
.footer__social svg { width: 16px; height: 16px; fill: var(--white); }

.footer h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer__links a { display: block; font-size: 14px; opacity: .8; margin-bottom: 10px; transition: opacity .2s var(--ease); }
.footer__links a:hover { opacity: 1; color: var(--accent); }

.footer__contact-item { display: flex; gap: 8px; margin-bottom: 10px; font-size: 14px; opacity: .8; }
.footer__contact-item svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.8); flex-shrink: 0; margin-top: 2px; }
.footer__contact-item a { color: inherit; transition: color .2s var(--ease); }
.footer__contact-item a:hover { color: var(--accent); }

.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; opacity: .6; }

/* FLOATING WHATSAPP */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 1000; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 24px rgba(37,211,102,.4); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

/* INDUSTRY SOLUTIONS on home */
.industry-band { padding: 60px 0; background: var(--surface); }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .masthead__links, .masthead__cta { display: none; }
  .masthead__links.is-open, .masthead__cta.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .masthead .shell { flex-wrap: wrap; }

  .nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 99; padding: 80px 24px 24px; flex-direction: column; gap: 0; }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a { display: block; padding: 14px 0; font-size: 18px; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--hairline); }
  .mobile-menu a:hover { color: var(--accent); }
  .mobile-menu__close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-band .shell { grid-template-columns: 1fr; }
  .service-detail .shell { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .vision-mission .shell { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 60px; }
  .hero__title { font-size: 28px; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
