/* TriPada InfraTech — site styles */
:root {
	--ink: #14263d;
	--ink-2: #44546a;
	--muted: #6b7280;
	--line: #e1e6ee;
	--bg: #ffffff;
	--bg-alt: #f2f5f9;
	--dark: #1b3f66;
	--accent: #e8922c;      /* logo orange */
	--accent-dark: #a65e12;
	--navy: #1b3f66;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(31, 37, 45, .08);
	--head: "Archivo", system-ui, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.eyebrow {
	font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent-dark); margin-bottom: .75em;
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border-radius: 999px;
	font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #f3a54d; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--head); }
.brand-text b { font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; color: var(--navy); }
.brand-text small { font-weight: 600; font-size: .62rem; letter-spacing: .42em; color: var(--navy); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,30,52,.88) 0%, rgba(12,30,52,.65) 55%, rgba(12,30,52,.35) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 96px; }
.hero-content > * { max-width: 760px; }
.hero .eyebrow { color: #f5b25c; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: #f5b25c; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .95rem; color: rgba(255,255,255,.85); }
.hero-points li::before { content: "✓"; color: #f5b25c; font-weight: 700; margin-right: 8px; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; }
.card-body { padding: 20px 22px 24px; }
.card-body p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--accent); }
.step-num { font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--accent-dark); display: block; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; box-shadow: var(--shadow); }
.about-text > p { color: var(--ink-2); }
.list-title { margin-top: 1.5em; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.value { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.value p { color: var(--ink-2); margin: 0; }

/* CTA band */
.cta-band { background: var(--dark); color: #fff; padding-block: 56px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; font-family: var(--head); font-weight: 600; font-size: 1.1rem; padding: 18px 40px 18px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--accent-dark); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--ink-2); padding-bottom: 12px; }

/* Contact */
.contact { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-form-wrap > p { color: var(--muted); }
.contact-form { background: #fff; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; }
.field-row { display: flex; gap: 16px; }
label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
input, select, textarea {
	font: inherit; font-size: 1rem; color: var(--ink);
	border: 1px solid #cfd8e3; border-radius: 10px; padding: 12px 14px; background: #fff; min-height: 48px; width: 100%;
}
textarea { resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: #1e7a46; }
.form-status.err { color: #b3261e; }
.contact-info { display: grid; gap: 22px; padding-top: 8px; }
.info-block h3 { font-size: 1rem; margin-bottom: .3em; }
.info-block p { margin: 0; color: var(--ink-2); }
.info-block a { text-decoration: none; font-weight: 500; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; color: var(--ink-2); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; }
.map iframe { width: 100%; height: 240px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: #10253f; color: rgba(255,255,255,.75); padding-top: 64px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.brand-light { margin-bottom: 14px; }
.brand-light img { width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 2px; }
.brand-light .brand-text b, .brand-light .brand-text small { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-block: 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* WhatsApp + mobile bar */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
	display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
	transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.mobile-bar { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.card, .btn { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 68px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
		display: none;
	}
	.site-nav.open { display: flex; }
	.site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
	.site-nav .btn { margin-top: 12px; }
	.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.about, .contact { grid-template-columns: 1fr; }
	.about-media img { aspect-ratio: 16 / 10; }
	.values { grid-template-columns: 1fr; margin-top: 48px; }
	.footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; padding-bottom: 60px; }
	.cards, .steps { grid-template-columns: 1fr; }
	.field-row { flex-direction: column; gap: 0; }
	.hero-content { padding-block: 64px; }
	.hero-ctas .btn { flex: 1 1 100%; }
	.cta-actions .btn { flex: 1; }
	.wa-float { display: none; }
	.mobile-bar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		box-shadow: 0 -4px 16px rgba(0,0,0,.12);
	}
	.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 600; text-decoration: none; color: #fff; background: var(--dark); }
	.mobile-bar a + a { background: #25d366; }
}

/* Gallery */
.section-tight { padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.g-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.g-wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px;
	color: #fff; font-family: var(--head); font-weight: 600; font-size: 1rem;
	background: linear-gradient(to top, rgba(15,18,23,.8), rgba(15,18,23,0));
}
.gallery-note { margin-top: 14px; font-size: .85rem; color: var(--muted); }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; } .g-wide { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } }

/* Current page in nav */
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #fff; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
.page-hero .eyebrow { color: #f5b25c; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 620px; font-size: 1.1rem; margin: 0; }

/* Project */
.project + .project { margin-top: 96px; padding-top: 72px; border-top: 1px solid var(--line); }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: #e3f3e8; color: #1e6b3a; margin: 0 6px 12px 0; }
.chip-muted { background: var(--bg-alt); color: var(--ink-2); }
.project h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.project-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-2); }
.project-loc svg { color: var(--accent-dark); }
.project-loc a { font-weight: 600; text-decoration: none; }

.project-gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin: 28px 0 40px; }
.pg-item { padding: 0; border: 0; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pg-item:hover img { transform: scale(1.04); }

.project-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.specs { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs > div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 12px 18px; }
.specs > div:nth-child(odd) { background: var(--bg-alt); }
.specs dt { font-weight: 600; color: var(--ink-2); }
.specs dd { margin: 0; color: var(--ink); font-weight: 500; }

.project-video { margin-top: 48px; }
.project-video video { width: 100%; max-width: 440px; height: auto; max-height: 82vh; border-radius: var(--radius); background: #000; display: block; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 16, 28, .88); }
.lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 10px; display: block; }
.lb-close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* Homepage featured project */
.featured { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--bg-alt); border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.featured-media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; min-height: 380px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0; }
.featured-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.featured-facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.featured-facts li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }
.gallery-note a { font-weight: 600; }

@media (max-width: 860px) {
	.project-body, .featured { grid-template-columns: 1fr; }
	.featured-body { padding: 0 24px 28px; }
	.featured-media { min-height: 260px; }
}
@media (max-width: 600px) {
	.project-gallery { grid-template-columns: 1fr 1fr; }
	.pg-main { grid-column: span 2; aspect-ratio: 4 / 5; }
	.specs > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Larger project galleries: big lead photo + grid of the rest */
.project-intro { color: var(--ink-2); max-width: 760px; margin-top: 4px; }
.pg-many { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
.pg-many .pg-item { aspect-ratio: auto; }
.pg-many .pg-main { grid-column: span 2; grid-row: span 2; }
.project-specs .list-title { margin-top: 32px; }
@media (max-width: 860px) { .pg-many { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 600px) {
	.pg-many { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
	.pg-many .pg-main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* Homepage project cards */
.proj-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proj-card { display: flex; flex-direction: column; background: var(--bg-alt); border-radius: calc(var(--radius) + 4px); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proj-card-media { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 280px; }
.proj-card-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.proj-card-body h3 { font-size: 1.3rem; }
.proj-card-body p { color: var(--ink-2); }
.proj-card .featured-facts { margin-bottom: 18px; }
.proj-link { margin-top: auto; font-weight: 600; color: var(--accent-dark); }
@media (max-width: 860px) { .proj-cards { grid-template-columns: 1fr; } .proj-card-media { height: 240px; } }
