/* PIRITEL — native, responsive design system. No external font requests. */
:root {
  --green: #00dc00;
  --green-dark: #146b29;
  --ink: #17262f;
  --muted: #52616a;
  --corporate-gray: #868686;
  --line: #dce3e6;
  --soft: #f3f6f5;
  --white: #fff;
  --max: 1240px;
  --radius: 1rem;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --font-sans: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.65 var(--font-sans); overflow-wrap: anywhere; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--green-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 99999; padding: .75rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 750; }
h2 { margin: 0 0 1.25rem; font-size: clamp(1.9rem, 3vw, 2.8rem); }
h3 { margin: 0 0 1rem; font-size: 1.35rem; letter-spacing: -.025em; }
p { margin: 0 0 1.25rem; }
.eyebrow { margin: 0 0 1rem; color: var(--green-dark); font-size: .73rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 48px; justify-content: center; align-items: center; gap: .75rem; padding: .85rem 1.2rem; border: 2px solid var(--green); border-radius: .5rem; background: var(--green); color: var(--ink); font-weight: 750; line-height: 1.3; text-decoration: none; text-align: center; }
.button:hover { background: var(--ink); border-color: var(--ink); color: white; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
/* Navigation is usable without JavaScript; enhancement adds disclosure buttons. */
.site-header { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; min-height: 80px; padding-block: .75rem; }
.site-brand { flex: 0 1 auto; min-width: 0; }
.site-brand a { display: inline-flex; align-items: center; text-decoration: none; }
.brand-word { font-size: clamp(1.7rem, 2.5vw, 2.1rem); font-weight: 850; letter-spacing: -.06em; line-height: 1; }
.brand-dot { color: var(--green); }
.custom-logo { width: auto; max-width: min(12rem, 52vw); max-height: 52px; object-fit: contain; }
.site-brand .piritel-logo { width: 144px; height: auto; max-width: 46vw; max-height: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--ink); background: var(--white); font-weight: 650; }
.site-nav { flex: 1 0 100%; min-width: 0; padding-block: .75rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .nav-list { display: flex; flex-direction: column; gap: .25rem; }
.site-nav li { position: relative; min-width: 0; }
.site-nav a, .site-nav .nav-unavailable { display: block; padding: .65rem .85rem; min-height: 44px; font-size: .875rem; line-height: 1.5; font-weight: 600; border-radius: .4rem; text-decoration: none; }
.site-nav a[href]:hover, .site-nav a[href]:focus-visible, .site-nav .current-menu-item > a { color: var(--ink); background: var(--soft); }
.site-nav .sub-menu { padding-inline-start: 1rem; margin-inline-start: .85rem; border-inline-start: 2px solid var(--line); }
.site-nav .sub-menu a { font-weight: 450; }
.site-nav .submenu-enhanced > a { padding-inline-end: 3rem; }
.submenu-toggle { position: absolute; inset: 0 0 auto auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); border-radius: .4rem; font-size: 0; }
.submenu-toggle::before { content: ""; width: .45rem; height: .45rem; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-2px) rotate(45deg); }
.submenu-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.submenu-toggle:hover { background: var(--soft); }
.nav-unavailable { color: var(--muted); cursor: default; }
/* One balanced composition: shared heading and manual panels on the left, art on the right. */
.hero { padding-block: clamp(2rem, 4.5vw, 4rem) 1.5rem; background: linear-gradient(135deg, #fff 45%, #f1f6f3); border-bottom: 1px solid var(--line); }
.hero-carousel, .hero-layout, .hero-content, .hero-panels, .hero-copy, .hero-visuals { min-width: 0; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 2rem; }
.hero-intro { margin-bottom: 1.5rem; }
.hero-intro .eyebrow { font-size: .68rem; letter-spacing: .1em; }
.hero-intro h1 { max-width: 22ch; font-size: clamp(1.9rem, 3.1vw, 2.8rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 750; }
.hero-panels { display: grid; }
.hero-slide { display: grid; grid-area: 1 / 1; min-width: 0; align-content: start; }
/* Reserve the tallest text panel to prevent jumps; never reserve a fixed viewport height. */
.hero-slide[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
.hero-copy > .eyebrow { margin-bottom: .55rem; font-size: .67rem; }
.hero-copy h2 { max-width: 30ch; margin-bottom: .85rem; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.2; letter-spacing: -.025em; }
.hero-lead { max-width: 52ch; margin-bottom: .9rem; font-size: clamp(1rem, 1.2vw, 1.075rem); color: var(--muted); line-height: 1.65; }
.technology-label { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 650; color: var(--green-dark); margin-bottom: 0; }
.technology-label::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--green); }
.hero .actions { gap: .75rem 1.2rem; margin-top: 1.25rem; }
.hero .button { padding: .8rem 1rem; font-size: .9rem; }
.hero .text-link { font-size: .9rem; }
.hero-visuals { display: grid; }
.hero-art { grid-area: 1 / 1; position: relative; display: grid; place-items: center; width: 100%; min-width: 0; min-height: 16rem; aspect-ratio: 1.55; border: 1px solid #30464f; border-radius: 1.25rem; overflow: hidden; background: radial-gradient(ellipse at 80% 0%, #30634c, var(--ink) 65%); color: white; isolation: isolate; box-shadow: 0 1.5rem 3rem -2rem #17262f66; }
.hero-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px); background-size: 2rem 2rem; pointer-events: none; }
.art-orbit { position: absolute; width: 75%; aspect-ratio: 1; border: 1px solid #52766b; border-radius: 50%; transform: rotateX(45deg) rotate(-20deg); }
.art-orbit--second { width: 110%; opacity: .45; }
.art-stack { display: grid; gap: .75rem; width: 62%; z-index: 1; transform: rotate(-8deg); }
.art-stack > span { position: relative; display: block; height: clamp(2.5rem, 4vw, 3.6rem); background: linear-gradient(120deg, #203740, #4b636b); border: 1px solid #71858b; border-radius: .4rem; box-shadow: 0 .5rem 1rem #0003; }
.art-stack > span::before { content: ""; position: absolute; width: .45rem; height: .45rem; left: 1rem; top: 42%; border-radius: 50%; background: var(--green); box-shadow: .8rem 0 0 #77948b; }
.art-stack > span::after { content: ""; position: absolute; width: 30%; right: 1rem; top: .7rem; bottom: .7rem; background: repeating-linear-gradient(90deg, #17262f 0 2px, transparent 2px 5px); }
.art-node { position: absolute; width: .65rem; height: .65rem; border: 2px solid var(--green); border-radius: 50%; background: var(--ink); }
.art-node--one { top: 20%; left: 20%; }
.art-node--two { top: 33%; right: 14%; }
.art-node--three { bottom: 18%; left: 34%; }
.art-caption { position: absolute; inset: auto 1.5rem 1.5rem; color: #d5e5dd; letter-spacing: .1em; font-size: .7rem; text-transform: uppercase; }
.hero-art--networks .art-stack { width: 8rem; gap: .6rem; transform: none; }
.hero-art--networks .art-stack > span { height: 2rem; border-radius: 1rem; background: #e8f1ed; }
.hero-art--networks .art-stack > span::before { left: 3.7rem; }
.hero-art--networks .art-stack > span::after { display: none; }
.hero-art--cloud .art-stack { display: flex; width: 65%; gap: .6rem; }
.hero-art--cloud .art-stack > span { width: 33%; height: 7rem; border-radius: .75rem; background: #335b52; }
.hero-art--cloud .art-stack > span:nth-child(2) { transform: translateY(-1.3rem); background: #d4e9dd; }
.hero-art--cloud .art-stack > span::after { top: 3rem; width: 45%; height: 1.5rem; background: #17262f66; border-radius: .25rem; }
.carousel-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.carousel-controls[hidden] { display: flex !important; visibility: hidden; }
.slide-selectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1 1 36rem; gap: .5rem; min-width: 0; }
.slide-selector { appearance: none; display: flex; align-items: center; gap: .6rem; min-width: 0; min-height: 52px; padding: .65rem .75rem; border: 1px solid transparent; border-radius: .5rem; background: transparent; color: var(--muted); font-size: .78rem; line-height: 1.4; text-align: start; }
.slide-selector[aria-pressed="true"] { border-color: var(--line); background: var(--white); color: var(--ink); font-weight: 700; box-shadow: 0 2px 5px #17262f08; }
.slide-selector:hover { background: var(--white); color: var(--ink); }
.slide-number { display: grid; place-items: center; flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; background: #e6ece8; color: var(--ink); font-size: .65rem; font-variant-numeric: tabular-nums; }
.slide-selector[aria-pressed="true"] .slide-number { background: var(--green); }
.slide-arrows { display: flex; gap: .5rem; }
.slide-arrows button { appearance: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; padding: 0; background: var(--white); color: var(--ink); font-size: 1.25rem; line-height: 1; }
.slide-arrows button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
/* Service and editorial sections. */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-heading { display: grid; gap: .5rem; margin-bottom: 2rem; }
.section-intro { max-width: 55ch; color: var(--muted); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.card-index { margin-bottom: 1.75rem; color: var(--green-dark); font-size: .8rem; font-weight: 750; }
.service-card p { color: var(--muted); }
.service-card a, .link-unavailable { margin-top: auto; padding-block: .6rem; min-height: 44px; font-size: .85rem; }
.service-card a { color: var(--green-dark); font-weight: 700; }
.link-unavailable { color: var(--muted); }
.hotel-section { background: var(--ink); color: white; }
.hotel-section .eyebrow, .contact-section .eyebrow { color: var(--green); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.split p:not(.eyebrow) { color: #d0dbe0; }
.hotel-art { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 2rem; min-height: 18rem; aspect-ratio: 1.4; border: 1px solid #50626b; border-radius: var(--radius); background: linear-gradient(140deg, #31454f, #20343e); }
.hotel-art > span { position: relative; border: 1px solid #729584; border-top: .3rem solid var(--green); border-radius: .25rem; background: #17262f; }
.hotel-art > span::after { content: ""; position: absolute; inset: 25%; border-radius: 50%; border: 1px solid #507365; }
.technology-list { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; padding: 1.5rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.technology-list li { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 750; letter-spacing: -.02em; }
.contact-section { background: #10212a; color: white; }
.contact-section .button:hover { background: white; color: var(--ink); border-color: white; }
.contact-section :focus-visible, .hotel-section :focus-visible { outline-color: var(--green); }
.contact-layout { display: grid; gap: 2rem; align-items: center; }
.contact-layout h2 { max-width: 25ch; }
.contact-layout p:not(.eyebrow) { color: #d0dbe0; margin-bottom: 0; }
.contact-layout > .button { justify-self: start; }
.site-footer { padding: 3rem 0 1.5rem; background: #0d1b22; color: #edf3ef; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-grid p { font-size: .9rem; color: #c2cfd0; }
.footer-name { font-size: 1.6rem; font-weight: 800; text-decoration: none; }
.footer-menu, .footer-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu .sub-menu { padding-inline-start: 1rem; }
.footer-menu a { display: inline-block; padding-block: .6rem; min-height: 44px; }
.site-footer a:hover { color: var(--green); }
.site-footer :focus-visible { outline-color: var(--green); }
.site-footer .nav-unavailable { color: #c2cfd0; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #35454c; color: #c2cfd0; }
.content-area { min-height: 55vh; max-width: 850px; padding-block: 4rem; }
.content-area h1 { margin-bottom: 2rem; }
.entry { margin-bottom: 3rem; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > * { max-width: 100%; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
@media (min-width: 40rem) {
  .container { width: min(var(--max), calc(100% - 3rem)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}
@media (min-width: 48rem) {
  .hero-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch; }
  .hero-visuals { align-self: stretch; }
  .hero-art { aspect-ratio: auto; min-height: 26rem; height: 100%; }
}
@media (min-width: 56rem) {
  .hero-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
  .hero-visuals { align-self: stretch; }
  .hero-art { aspect-ratio: auto; min-height: 28rem; height: 100%; }
  .section-heading { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: end; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { padding: 1.75rem; }
  .split { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .contact-layout { grid-template-columns: 1fr auto; }
}
@media (min-width: 64.001rem) {
  .header-inner { height: 108px; min-height: 108px; flex-wrap: nowrap; padding-block: 0; gap: 2rem; }
  .site-brand .piritel-logo { width: 176px; }
  .site-nav { flex: 0 1 auto; margin-inline-start: auto; padding: 0; }
  .site-nav .nav-list { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: .4rem; }
  .site-nav .nav-list > li > a { white-space: nowrap; }
  .site-nav .sub-menu { position: absolute; inset: 100% 0 auto auto; width: 16rem; max-width: calc(100vw - 2.5rem); margin: 0; padding: .5rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--white); box-shadow: 0 .75rem 2rem #17262f1a; }
  .site-nav .sub-menu .sub-menu { position: static; width: auto; box-shadow: none; border: 0; border-inline-start: 2px solid var(--line); }
  .site-nav li:not(.submenu-enhanced) > .sub-menu { display: none; }
  .site-nav li:not(.submenu-enhanced):hover > .sub-menu, .site-nav li:not(.submenu-enhanced):focus-within > .sub-menu { display: block; }
}
@media (max-width: 39.999rem) {
  .slide-selector { flex-direction: column; justify-content: flex-start; padding: .5rem .2rem; min-height: 44px; font-size: .68rem; text-align: center; }
  .carousel-controls { gap: .75rem; }
  .slide-arrows { margin-inline-start: auto; }
  .hero .actions { align-items: stretch; flex-direction: column; }
  .hero .text-link { justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .slide-arrows button { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
}
@media (forced-colors: active) {
  .slide-selector[aria-pressed="true"] { border-color: Highlight; }
  .art-stack > span, .art-node, .hotel-art > span { border: 1px solid CanvasText; }
}
