/* AHIDZAT — industrial daylight
   Palette from brand logo (forest green + steel blue), modernized */

:root {
  --ink: #13261c;
  --ink-soft: #3a4f43;
  --paper: #eef3ef;
  --paper-2: #e2ebe4;
  --mist: #d5e3da;
  --forest: #1a5c3f;
  --forest-deep: #0e3a28;
  --steel: #1f4f7a;
  --steel-soft: #3d6f9a;
  --gold: #b8922f;
  --line: rgba(19, 38, 28, 0.12);
  --white: #f8fbf8;
  --shadow: 0 18px 50px rgba(14, 58, 40, 0.18);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 111, 154, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(26, 92, 63, 0.14), transparent 50%),
    linear-gradient(180deg, #f4f8f5 0%, var(--paper) 40%, #e8f0ea 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248, 251, 248, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(14, 58, 40, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--steel);
}

.brand-text small {
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.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);
}

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav > ul > li {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--forest-deep);
  background: rgba(26, 92, 63, 0.08);
}

.site-nav .nav-cta {
  background: var(--forest);
  color: #fff !important;
  margin-left: 0.35rem;
  padding-inline: 1rem;
}

.site-nav .nav-cta:hover {
  background: var(--forest-deep);
}

.site-nav .submenu {
  list-style: none;
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 260px;
  max-width: min(320px, calc(100vw - 2rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 40;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  display: flex;
}

.submenu a {
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
}

/* Hero — one composition */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(14, 58, 40, 0.82) 0%, rgba(14, 58, 40, 0.55) 42%, rgba(31, 79, 122, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 28, 20, 0.55), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  animation: rise-in 0.9s ease both;
}

.hero-legal {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 0.35rem;
  animation: rise-in 0.9s ease 0.08s both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 18ch;
  margin: 0 0 0.9rem;
  animation: rise-in 0.9s ease 0.16s both;
}

.hero-lead {
  max-width: 38ch;
  font-size: 1.05rem;
  opacity: 0.92;
  margin: 0 0 1.6rem;
  animation: rise-in 0.9s ease 0.24s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise-in 0.9s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--forest-deep);
}

.btn-primary:hover {
  background: var(--mist);
  color: var(--forest-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-solid {
  background: var(--forest);
  color: #fff;
}

.btn-solid:hover {
  background: var(--forest-deep);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--forest-deep);
  border-color: rgba(26, 92, 63, 0.35);
}

.btn-outline:hover {
  background: rgba(26, 92, 63, 0.08);
  color: var(--forest-deep);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-narrow {
  max-width: 760px;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2,
.page-hero h1,
.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
  line-height: 1.15;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.section-head p,
.lede {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.05rem;
}

.page-hero {
  padding: 3.5rem 1.25rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero p {
  max-width: 48ch;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  position: relative;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Service links — not hero cards; interaction containers */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-link {
  display: block;
  padding: 1.35rem 1.4rem;
  background: rgba(248, 251, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.service-link:hover {
  border-color: rgba(26, 92, 63, 0.35);
  background: #fff;
  transform: translateY(-2px);
  color: inherit;
}

.service-link h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--steel);
}

.service-link p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.band {
  background:
    linear-gradient(135deg, rgba(26, 92, 63, 0.92), rgba(31, 79, 122, 0.88)),
    url("../img/servicios/campo-05.jpg") center/cover;
  color: #fff;
}

.band .section-head h2,
.band .section-head p {
  color: #fff;
}

.band .section-head p {
  opacity: 0.9;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values li {
  font-weight: 600;
  color: var(--forest);
  position: relative;
  padding-left: 1rem;
}

.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose ul,
.norm-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
}

.prose li,
.norm-list li {
  margin-bottom: 0.45rem;
}

.norm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: 0.95rem;
}

.norm-table th,
.norm-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.norm-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.figure {
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.figure figcaption {
  padding: 0.65rem 0.9rem;
  background: rgba(248, 251, 248, 0.9);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
}

.client-list {
  columns: 2;
  column-gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-list li {
  break-inside: avoid;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mission-grid article {
  padding: 1.5rem 0;
  border-top: 2px solid var(--forest);
}

.mission-grid h3 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
  color: var(--steel);
}

.mission-grid p {
  margin: 0;
  color: var(--ink-soft);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  color: var(--forest-deep);
}

.contact-details p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
}

.contact-form {
  background: rgba(248, 251, 248, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(31, 79, 122, 0.35);
  border-color: var(--steel-soft);
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.form-status.ok {
  background: rgba(26, 92, 63, 0.12);
  color: var(--forest-deep);
}

.form-status.err {
  background: rgba(150, 40, 40, 0.1);
  color: #7a2020;
}

.map-wrap {
  margin-top: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, #123328 0%, #0c241c 100%);
  color: rgba(248, 251, 248, 0.86);
  padding: 3rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr;
  gap: 1.5rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
}

.footer-brand p,
.footer-contact p {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}

.site-footer a {
  color: #d7ebe0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-copy {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  opacity: 0.7;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .mission-grid,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .client-list {
    columns: 1;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #f8fbf8;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(14, 58, 40, 0.12);
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .site-nav .submenu {
    position: static;
    display: flex;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 0.75rem;
    max-width: none;
  }

  .has-sub > a::after {
    content: "";
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

  .service-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 4.5rem;
  }
}
