:root {
  --orange: #f27a00;
  --orange-dark: #cf6500;
  --ink: #171717;
  --muted: #626262;
  --line: #ededed;
  --soft: #fff7ef;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(31, 25, 18, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  gap: 16px;
  background: var(--white);
  color: var(--ink);
  transition: opacity .45s ease, visibility .45s ease;
}

.page-loader span {
  width: 66px;
  height: 66px;
  border: 4px solid #f6d6b8;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background .3s ease, box-shadow .3s ease, color .3s ease, padding .3s ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: var(--white) url("images/GRC%20LOGOS%20(1).png") center top / 72px auto no-repeat;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.site-header.is-scrolled .brand-mark,
.site-footer .brand-mark {
  background-color: #fff5eb;
  box-shadow: inset 0 0 0 1px #ffd9b5;
}

.brand-name {
  display: grid;
  gap: 1px;
  font-size: 14px;
  line-height: 1.05;
}

.brand-name strong {
  color: var(--orange);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  cursor: pointer;
  font-size: 18px;
  backdrop-filter: blur(8px);
}

.mobile-nav-fab {
  display: none;
}

.site-header.is-scrolled .mobile-menu-toggle {
  color: var(--ink);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px #ffd9b5;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.header-cta,
.btn-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 15px 34px rgba(242, 122, 0, .32);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
}

.btn-whatsapp {
  color: var(--white);
  background: #25d366;
  box-shadow: 0 15px 34px rgba(37, 211, 102, .28);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 210px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease, transform 5s ease;
}

.hero-video.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .42) 48%, rgba(0, 0, 0, .12)),
    linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 42%);
}

.hero-content,
.hero-panel,
.hero-controls {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6.1vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(31px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-panel {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  bottom: 88px;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 0;
  background: rgba(255, 255, 255, .24);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 20px;
  background: rgba(255, 255, 255, .93);
  color: var(--ink);
}

.hero-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.hero-controls {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 42px;
  display: flex;
  gap: 12px;
}

.hero-controls button {
  width: 46px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}

.hero-controls button.is-active {
  width: 78px;
  background: var(--orange);
}

.section {
  padding: clamp(76px, 10vw, 126px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(850px, 100%);
  margin-bottom: 42px;
}

.intro {
  background: linear-gradient(180deg, #fff, var(--soft));
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: stretch;
}

.lead {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  font-weight: 800;
}

.intro-card,
.service-card,
.timeline-item,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 45px rgba(22, 22, 22, .06);
}

.intro-card {
  display: grid;
  align-content: end;
  min-height: 280px;
  padding: 30px;
}

.intro-card i,
.service-card i {
  color: var(--orange);
  font-size: 42px;
}

.intro-card p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--soft);
  transform: scale(.65);
  transition: transform .28s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: #ffd1a3;
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  transform: scale(1.1);
}

.service-card h3 {
  margin-top: 26px;
}

.service-card p {
  position: relative;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-card span {
  position: relative;
  display: inline-flex;
  margin-top: 22px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.service-card:focus-visible {
  outline: 4px solid rgba(242, 122, 0, .22);
  outline-offset: 3px;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.service-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(8px);
}

.service-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(26px, 5vw, 44px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
}

.service-modal.is-open .service-modal__dialog {
  transform: translateY(0) scale(1);
}

.service-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--soft);
  cursor: pointer;
}

.service-modal__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--orange);
  background: var(--soft);
  font-size: 30px;
}

.service-modal h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.service-modal p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.service-modal ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.service-modal li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  color: var(--ink);
  line-height: 1.45;
}

.service-modal li::before {
  content: "\f058";
  color: var(--orange);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.portfolio {
  background: #111;
  color: var(--white);
}

.portfolio .section-heading h2 {
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
}

.portfolio-feature,
.portfolio-item {
  position: relative;
  margin: 0;
  min-height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
}

.portfolio-feature img,
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.portfolio-feature:hover img,
.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-feature {
  min-height: 650px;
}

.portfolio-stack {
  display: grid;
  gap: 22px;
}

.portfolio-item {
  min-height: 314px;
}

.portfolio-feature figcaption,
.portfolio-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent);
}

.portfolio-feature span {
  color: var(--orange);
  font-weight: 1000;
  text-transform: uppercase;
}

.portfolio-feature strong {
  display: block;
  width: min(520px, 100%);
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
}

.process {
  background: var(--soft);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline-item {
  padding: 30px;
}

.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-weight: 1000;
}

.timeline-item p {
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.contact-links {
  display: grid;
  gap: 13px;
  margin-top: 30px;
}

.contact-links a,
.contact-links span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.contact-whatsapp i {
  color: #25d366;
}

.contact-links i {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: var(--soft);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.form-row {
  display: grid;
  gap: 8px;
}

.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 122, 0, .12);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.is-ok {
  color: #138a4b;
}

.form-status.is-error {
  color: #b42318;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a:not(.brand) {
  color: var(--orange);
  font-weight: 900;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .mobile-menu-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(242, 122, 0, .18);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }

  .site-header.is-menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 8px;
  }

  .main-nav a:hover {
    background: var(--soft);
  }

  .main-nav a::after {
    display: none;
  }

  .hero-panel,
  .intro-grid,
  .portfolio-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-feature {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 14px;
    gap: 10px;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

  .mobile-nav-fab {
    position: fixed;
    top: 18px;
    right: 14px;
    z-index: 100000;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--orange);
    box-shadow: 0 14px 34px rgba(242, 122, 0, .28);
    cursor: pointer;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    background-size: 62px auto;
  }

  .brand-name {
    font-size: 12px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 94vh;
    padding: 116px 16px 84px;
  }

  .hero-content {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    min-width: 0;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-panel,
  .service-grid,
  .timeline,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding-inline: 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero-panel {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100vw - 48px);
    max-width: 100%;
    margin-top: 46px;
  }

  .hero-panel div {
    padding: 16px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 30px;
  }

  .section {
    padding-inline: 16px;
  }

  .portfolio-feature,
  .portfolio-item {
    min-height: 340px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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