:root {
  --navy: #171f39;
  --navy-deep: #10182f;
  --red: #dc352b;
  --red-hover: #bd291f;
  --ink: #172039;
  --muted: #5c6576;
  --line: #dde2e9;
  --paper: #f4f6f8;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.55 Arial, Helvetica, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 5.1vw, 5.3rem); }
h2 { font-size: clamp(2.25rem, 3.6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 1.8vw, 2rem); }
:focus-visible { outline: 3px solid #ffb221; outline-offset: 4px; }
.container { width: min(calc(100% - 48px), 1320px); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 10px 16px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 54px; padding: 14px 22px; border: 1px solid transparent; border-radius: 5px; font-size: .94rem; font-weight: 800; line-height: 1.2; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 1.3rem; line-height: 0; }
.button-red { color: #fff; background: var(--red); }
.button-red:hover { background: var(--red-hover); }
.button-outline { color: #fff; border-color: #d6dce8; background: #17203945; }
.button-outline:hover { background: #fff; color: var(--navy); }
.button-white { color: var(--navy); background: #fff; }
.button-white:hover { background: #e9ecf3; }
.button-wide { width: 100%; }
.text-link { display: inline-flex; gap: 20px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid currentColor; font-size: .95rem; font-weight: 800; }
.text-link-light { color: #fff; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--red); font-size: .73rem; font-weight: 800; letter-spacing: .18em; line-height: 1.3; }
.kicker > span { width: 26px; height: 2px; flex: none; background: var(--red); }
.kicker-light { color: #f6d1cf; }

.site-header { position: relative; z-index: 20; background: #fff; box-shadow: 0 1px 0 #d9dee7; }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { flex: none; display: inline-flex; align-items: center; }
.brand img { width: clamp(172px, 17vw, 245px); height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: .9rem; font-weight: 700; }
.main-nav > a:not(.button) { padding: 15px 0; }
.main-nav > a:not(.button):hover { color: var(--red); }
.header-cta { margin-left: clamp(10px, 2vw, 32px); }
.main-nav > a[aria-current="page"] { color: var(--red); }
.home-contact-preview { background: #f3f5f8; }
.home-contact-preview h2 { max-width: 19ch; margin-bottom: 18px; }
.home-contact-preview p:not(.kicker) { margin-bottom: 0; color: var(--muted); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 620px; overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero-media, .hero-media img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 58% 60%; }
.hero-shade { background: linear-gradient(90deg, #10182ff7 0%, #10182fe9 25%, #10182fb5 43%, #10182f1c 70%, transparent 100%), linear-gradient(0deg, #10182f52, transparent 45%); }
.hero-inner { position: relative; z-index: 1; min-height: 620px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-copy { width: min(610px, 55%); padding: 70px 0 85px; }
.hero h1 { max-width: 11.8ch; margin-bottom: 25px; }
.hero h1 em { color: #ef4135; font-style: normal; }
.hero-lead { max-width: 510px; margin-bottom: 30px; color: #e7eaf1; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-side-note { align-self: center; margin: 0 0 0 auto; padding-left: 20px; border-left: 2px solid var(--red); color: #172039; font-size: .67rem; font-weight: 800; letter-spacing: .26em; line-height: 2.3; }

.section { padding: 104px 0; scroll-margin-top: 24px; }
.section-intro { margin-bottom: 38px; }
.section-intro h2 { max-width: 21ch; margin-bottom: 12px; }
.section-intro > p:last-child { margin: 0; color: var(--muted); font-size: 1.1rem; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.brand-card { position: relative; min-height: 360px; overflow: hidden; background: #f0f2f5; border: 1px solid var(--line); }
.brand-content { position: relative; z-index: 2; width: 44%; min-height: 360px; padding: 32px 25px 30px 32px; display: flex; flex-direction: column; align-items: flex-start; background: #f8f9fb; }
.brand-logo { width: 210px; height: 69px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.brand-logo-diel { width: 185px; }
.brand-content p { max-width: 21ch; margin-bottom: 26px; color: #505a6e; font-size: .94rem; line-height: 1.6; }
.brand-content .button { margin-top: auto; white-space: nowrap; }
.brand-photo { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 56%; }
.brand-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 58%; }
.brand-photo-diel img { object-position: 51% 47%; }

.pathways { background: var(--paper); }
.pathways-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
.pathways-head h2 { max-width: none; margin: 0; }
.pathways-head > p:last-child { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pathway-card { min-width: 0; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pathway-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px #1b2c4d12; border-color: #cdd4df; }
.pathway-image { display: block; width: 100%; height: auto; aspect-ratio: 1.95 / 1; margin-bottom: 10px; object-fit: cover; object-position: center; background: #edf0f4; }
.pathway-card h3 { max-width: none; margin: 0 0 8px; font-size: 1.22rem; }
.pathway-card p { max-width: 31ch; margin-bottom: 14px; color: var(--muted); line-height: 1.45; }
.pathway-card strong { margin-top: auto; color: var(--red); font-size: .92rem; }
.pathway-card strong span { margin-left: 12px; }

.about { overflow: hidden; color: #fff; background: var(--navy); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(55px, 9vw, 150px); align-items: center; }
.about-mark { display: flex; align-items: flex-end; justify-content: center; min-height: 365px; border: 1px solid #ffffff25; color: #ffffff0e; font-size: clamp(4rem, 7.3vw, 8rem); font-weight: 900; letter-spacing: -.14em; overflow: hidden; user-select: none; }
.about-mark span:nth-child(even) { transform: translateY(-20px); color: #ffffff16; }
.about-copy h2 { max-width: 14ch; margin-bottom: 25px; }
.about-copy > p:not(.kicker) { max-width: 54ch; margin-bottom: 27px; color: #d7dce7; font-size: 1.06rem; line-height: 1.75; }

.gptw { padding: 34px 0; background: #f7f9fc; }
.gptw-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.gptw .kicker { margin-bottom: 12px; }
.gptw h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 2.7vw, 3rem); }
.gptw p:last-child { margin-bottom: 0; color: var(--muted); }
.gptw img { width: 150px; height: 150px; object-fit: contain; flex: none; }

.contact-cta { color: #fff; background: var(--red); padding: 80px 0; }
.contact-cta .kicker > span { background: #fff; }
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.cta-grid h2 { max-width: 16ch; margin-bottom: 0; }
.cta-grid .button { flex: none; }

.contact-grid { display: grid; grid-template-columns: 1fr minmax(370px, .77fr); gap: clamp(45px, 9vw, 130px); align-items: center; }
.contact-copy h2 { max-width: 15ch; }
.contact-copy > p:not(.kicker) { max-width: 48ch; margin-bottom: 35px; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-details > div { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 13px; }
.contact-details span { color: #858d9b; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-details a, .contact-details p { margin: 0; font-size: .97rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--red); }
.contact-card { padding: 36px; border: 1px solid var(--line); background: var(--paper); }
.contact-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 65px; color: var(--red); font-size: .73rem; font-weight: 800; letter-spacing: .15em; }
.contact-card-top span { font-size: 1.5rem; }
.contact-card h3 { margin-bottom: 10px; font-size: 2.5rem; }
.contact-card > p:not(.contact-card-top) { max-width: 25ch; margin-bottom: 28px; color: var(--muted); }
.contact-card-note { display: block; margin-top: 20px; color: #8b92a0; font-size: .8rem; }

.site-footer { color: #fff; background: var(--navy-deep); padding-top: 70px; }
.footer-main { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 65px; }
.footer-brand img { width: 190px; height: auto; }
.footer-brand p { max-width: 22ch; margin: 20px 0 0; color: #bbc4d5; }
.footer-main nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: .9rem; }
.footer-main a:hover { color: #fff; text-decoration: underline; }
.footer-contact { color: #bbc4d5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding: 22px 0; border-top: 1px solid #ffffff2b; color: #aab5ca; font-size: .79rem; }
.footer-bottom a:hover { color: #fff; }
.mobile-contact { display: none; }

/* Home refinements: original photographs and the approved visual hierarchy. */
.hero-signature { display: flex; align-items: center; gap: 14px; margin: 32px 0 0; color: #dce4ef; font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero-signature > span { width: 34px; height: 2px; background: #ef4135; flex: none; }
.home-page .hero-media { left: 0; width: 100%; }
.home-page .hero-media img { object-fit: contain; object-position: center; }
.home-page .hero-shade { background: linear-gradient(90deg, #10182fe8 0%, #10182fc7 24%, #10182f70 40%, #10182f0a 62%, transparent 100%); }
.hero-side-note { color: #fff; background: #10182f85; padding: 14px 18px; border-radius: 0 4px 4px 0; }
.home-page .section { padding-block: 80px; }
.home-page .brand-card, .home-page .brand-content { min-height: 310px; }
.home-page .pathway-card { padding: 16px; }
.home-page .pathway-card h3 { font-size: 1.65rem; margin-top: 6px; }
.home-page .pathway-card strong { display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: 16px; padding: 14px 18px; color: #fff; background: var(--red); border-radius: 4px; }
.home-page .about { background: linear-gradient(90deg, #10182ff2, #10182fc9), url('assets/sobre-agrojax-galpao-v26.webp') center 52% / cover; }
.home-page .about-grid { grid-template-columns: 1fr; }
.home-page .about-copy { max-width: 740px; }
.home-page .about-copy h2 { max-width: none; }
.home-page .about-copy > p:not(.kicker) { max-width: 58ch; margin-bottom: 18px; }
.home-page .contact-grid { grid-template-columns: 1fr; gap: 0; }
.home-page .contact-copy h2 { max-width: 25ch; margin-bottom: 16px; }
.home-page .contact-copy > p:not(.kicker) { max-width: 62ch; margin-bottom: 0; }
.home-page .contact-details, .home-page .contact-card { display: none; }
.contact-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 42px; }
.contact-shortcuts > a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 20px; text-align: center; }
.contact-shortcuts > a + a { border-left: 1px solid var(--line); }
.contact-shortcuts strong { font-size: 1.25rem; }
.contact-shortcuts > a > span:last-child { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.contact-symbol { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--navy-deep); transition: background .2s; }
.contact-symbol svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.contact-shortcuts a:hover .contact-symbol { background: var(--red); }
.home-page .footer-main { gap: 35px; }

/* Shared equipment photos retain their complete proportions. */
.product-photo-slot.product-photo-slot-image { display: block; min-height: 0; padding: 0; border: 1px solid var(--line); background: #edf0f4; }
.product-photo-slot-image > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.product-photo-slot-image > .photo-caption { display: block; padding: 12px 16px; color: var(--muted); background: #fff; font-size: .8rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.product-gallery-item { cursor: zoom-in; }
.product-gallery-item img { transition: transform .2s; }
.product-gallery-item:hover img { transform: scale(1.025); }
.viewer-open { overflow: hidden; }
.photo-viewer { width: min(calc(100% - 32px), 1150px); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid #ffffff35; border-radius: 8px; color: #fff; background: #10182f; }
.photo-viewer::backdrop { background: #080e1ee8; }
.viewer-toolbar, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.viewer-count { margin: 0; font-size: .9rem; }
.photo-viewer button, .viewer-original { min-height: 44px; padding: 10px 16px; border: 1px solid #ffffff55; border-radius: 4px; color: #fff; background: transparent; font: inherit; font-size: .9rem; cursor: pointer; }
.photo-viewer button:hover, .viewer-original:hover { background: #ffffff18; }
.viewer-close span { font-size: 1.4rem; margin-left: 14px; }
.photo-viewer figure { margin: 18px 0; }
.viewer-image { width: 100%; height: min(62dvh, 680px); object-fit: contain; background: #090f20; }
.photo-viewer figcaption { min-height: 2em; margin-top: 12px; color: #d7dce7; font-size: .9rem; line-height: 1.5; }

@media (max-width: 1100px) {
  .main-nav { gap: 17px; font-size: .84rem; }
  .header-cta { margin-left: 0; }
  .hero-copy { width: 60%; }
  .brand-content { width: 44%; padding: 26px 20px; }
  .brand-photo { width: 56%; }
  .brand-content .button { font-size: .85rem; gap: 12px; }
  .brand-content p { font-size: .88rem; }
}

@media (max-width: 800px) {
  .home-page .hero-media { left: 0; width: 100%; }
  .home-page .hero-media { height: auto; aspect-ratio: 1916 / 821; }
  .container { width: min(calc(100% - 36px), 640px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 178px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 43px; height: 43px; padding: 10px; border: 1px solid #d6dce5; border-radius: 4px; background: #fff; }
  .menu-toggle span { display: block; width: 21px; height: 2px; background: var(--navy); }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 12px 18px 24px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: 0 20px 35px #0e183b25; }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.button) { padding: 12px 5px; border-bottom: 1px solid var(--line); }
  .main-nav .button { margin-top: 16px; }

  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-media { position: relative; order: 2; height: clamp(260px, 66vw, 410px); }
  .hero-media img { object-position: 57% 57%; }
  .hero-shade, .hero-side-note { display: none; }
  .hero-inner { min-height: 0; order: 1; display: block; background: var(--navy); }
  .hero-copy { width: 100%; padding: 62px 0 52px; }
  .hero h1 { max-width: 12ch; font-size: clamp(2.8rem, 8.4vw, 4.4rem); }
  .hero-lead { font-size: 1.04rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 230px; }

  .section { padding: 76px 0; }
  .section-intro h2 { max-width: 17ch; }
  .brand-grid, .pathway-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand-card { min-height: 390px; }
  .brand-content { width: 44%; min-height: 390px; padding: 29px; }
  .brand-photo { width: 56%; }
  .pathways-head { gap: 8px; }
  .pathway-grid { gap: 12px; }
  .pathway-image { aspect-ratio: 1.85 / 1; }
  .about-grid { gap: 40px; }
  .about-mark { min-height: 220px; }
  .gptw img { width: 120px; height: 120px; }
  .cta-grid { align-items: flex-start; flex-direction: column; gap: 24px; }
  .contact-grid { gap: 40px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 55px; }
}

@media (max-width: 600px) {
  .home-page .section { padding-block: 58px; }
  .home-page .brand-card, .home-page .brand-content { min-height: 0; }
  .hero-signature { font-size: .58rem; letter-spacing: .12em; }
  .contact-shortcuts { grid-template-columns: 1fr; margin-top: 26px; }
  .contact-shortcuts > a { align-items: flex-start; position: relative; padding: 24px 12px 24px 80px; gap: 4px; text-align: left; }
  .contact-shortcuts > a + a { border-left: 0; border-top: 1px solid var(--line); }
  .contact-symbol { position: absolute; left: 0; top: 23px; width: 56px; height: 56px; }
  .photo-viewer { width: calc(100% - 16px); padding: 14px; }
  .viewer-image { height: 48dvh; }
  .viewer-controls { flex-wrap: wrap; gap: 8px; }
  .viewer-original { order: 3; width: 100%; text-align: center; }
  body { padding-bottom: 62px; }
  .container { width: calc(100% - 36px); }
  .hero-copy { padding: 54px 0 45px; }
  .hero h1 { margin-bottom: 21px; font-size: clamp(2.65rem, 10vw, 3.5rem); }
  .hero-actions { flex-direction: column; gap: 11px; }
  .hero-actions .button { flex: none; width: 100%; }
  .hero-media { height: clamp(250px, 75vw, 390px); }
  .section-intro { margin-bottom: 26px; }
  .brand-card { min-height: 0; }
  .brand-content { width: 100%; min-height: 0; padding: 26px 24px 24px; background: #f8f9fb; }
  .brand-logo { width: 190px; height: 54px; margin-bottom: 12px; }
  .brand-logo-diel { width: 175px; }
  .brand-content p { max-width: none; margin-bottom: 22px; }
  .brand-content .button { width: 100%; }
  .brand-photo { position: relative; width: 100%; height: 235px; clip-path: none; }
  .brand-photo img { object-position: 50% 53%; }
  .brand-photo-diel img { object-position: 50% 46%; }
  .pathway-card { padding: 10px; }
  .pathway-image { aspect-ratio: 1.9 / 1; }
  .about-mark { min-height: 170px; }
  .about-copy h2 { max-width: 14ch; }
  .gptw { padding: 48px 0; }
  .gptw-inner { flex-direction: column-reverse; align-items: flex-start; gap: 22px; }
  .gptw img { width: 110px; height: 110px; }
  .contact-cta { padding: 65px 0; }
  .cta-grid .button { width: 100%; }
  .contact-details { grid-template-columns: 1fr; gap: 18px; }
  .contact-card { padding: 26px; }
  .contact-card-top { margin-bottom: 42px; }
  .contact-card h3 { font-size: 2.1rem; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom a { display: block; margin-top: 8px; }
  .mobile-contact { position: fixed; z-index: 15; right: 0; bottom: 0; left: 0; min-height: 62px; padding: 17px 24px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: var(--red); font-size: .94rem; font-weight: 800; box-shadow: 0 -5px 18px #0d173420; }
}

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

/* Product consultation stays in the document flow and never covers photos. */
@media (max-width: 600px) {
  body.product-page { padding-bottom: 0; }
  .product-page .mobile-contact { position: static; margin: 0; box-shadow: none; }
}
