/*
Theme Name: IMS Constructions
Theme URI: https://imsconstructions.com/
Author: Growvix Tech
Description: Custom WordPress theme for IMS Construction Group, converted from the approved IMS design with an Elementor-editable homepage, editable pages, projects, blog posts and contact functionality.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ims-constructions
*/

:root {
  --ink: #111a23;
  --ink-2: #182531;
  --paper: #ffffff;
  --sand: #f3f0ea;
  --sand-2: #e9e4dc;
  --orange: #f27f2c;
  --orange-dark: #d96212;
  --text: #26323d;
  --muted: #66717a;
  --line: rgba(17, 26, 35, 0.14);
  --container: min(1180px, calc(100% - 48px));
  --shadow: 0 28px 80px rgba(8, 18, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 102px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
select {
  font: inherit;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(242, 127, 44, 0.55);
  outline-offset: 4px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  color: rgba(255, 255, 255, 0.82);
  background: #0b1219;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar a {
  transition: color 180ms ease;
}

.topbar a:hover {
  color: var(--paper);
}

.topbar__location,
.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 11px;
}

.topbar__dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
}

.topbar__contacts span {
  color: rgba(255, 255, 255, 0.28);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(12, 23, 32, 0.08);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  width: 188px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.2vw, 34px);
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  color: #29333b;
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 21px;
  border: 1px solid var(--orange);
  color: #111820;
  background: var(--orange);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  color: var(--paper);
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
}

.button--compact {
  min-height: 44px;
  padding: 10px 15px;
  white-space: nowrap;
  font-size: 0.75rem;
}

.button--full {
  width: 100%;
}

.button--outline-light {
  color: var(--paper);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.button--outline-light:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link--light {
  color: var(--paper);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(9, 17, 24, 0.98) 0%, rgba(15, 28, 39, 0.92) 47%, rgba(15, 28, 39, 0.65) 72%, rgba(9, 17, 24, 0.78) 100%),
    var(--ims-hero-image, url("assets/hero.webp")) center / cover no-repeat;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  align-items: center;
  gap: clamp(56px, 8vw, 118px);
  padding-block: clamp(74px, 9vw, 122px);
}

.hero__content {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 18px;
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.eyebrow--light {
  color: var(--orange);
}

.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.99;
}

.hero h1 {
  max-width: 720px;
  color: var(--paper);
  font-size: clamp(3.5rem, 7.1vw, 6.75rem);
}

.hero__lead {
  max-width: 630px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: clamp(1.03rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 24px;
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero__signals span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero__signals span::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--orange);
}

.brief-card {
  padding: clamp(28px, 3vw, 38px);
  color: var(--text);
  background: rgba(255, 255, 255, 0.97);
  border-top: 4px solid var(--orange);
  box-shadow: var(--shadow);
}

.brief-card__label {
  margin: 0 0 8px !important;
  color: var(--orange-dark) !important;
  font-size: 0.72rem !important;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brief-card h2 {
  max-width: 310px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.brief-card > p {
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.brief-card label {
  display: block;
  margin: 14px 0 7px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--orange-dark);
  content: "⌄";
  pointer-events: none;
  transform: translateY(-58%);
}

.brief-card select {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 14px;
  appearance: none;
  border: 1px solid rgba(17, 26, 35, 0.19);
  border-radius: 0;
  color: var(--text);
  background: var(--paper);
  font-size: 0.9rem;
}

.brief-card .button {
  margin-top: 21px;
}

.brief-card small {
  display: block;
  margin-top: 10px;
  color: #7d858c;
  font-size: 0.75rem;
  text-align: center;
}

.numbers-bar {
  position: relative;
  color: var(--paper);
  background: #0b1219;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.numbers-bar::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--orange);
}

.numbers-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.number-stat {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 25px clamp(18px, 3vw, 38px);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.number-stat:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.number-stat strong {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 4.65rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.number-stat span {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(86px, 10vw, 148px);
}

.section h2,
.contact h2 {
  font-size: clamp(2.7rem, 5.3vw, 5rem);
}

.about {
  background: var(--paper);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(56px, 8vw, 116px);
}

.about__visual {
  position: relative;
  min-height: 620px;
  background: var(--sand);
}

.about__visual::before {
  position: absolute;
  top: 28px;
  right: -28px;
  bottom: 28px;
  left: 28px;
  content: "";
  border: 1px solid rgba(242, 127, 44, 0.7);
}

.about__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.about__image-wrap::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 32%;
  content: "";
  background: linear-gradient(transparent, rgba(17, 26, 35, 0.32));
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mix-blend-mode: multiply;
}

.about__note {
  position: absolute;
  z-index: 2;
  right: -34px;
  bottom: 34px;
  width: min(290px, 82%);
  padding: 23px 25px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.about__note strong,
.about__note span {
  display: block;
}

.about__note strong {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__note span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.about__copy h2 {
  max-width: 690px;
}

.about__copy > p:not(.eyebrow) {
  color: var(--muted);
}

.large-copy {
  color: var(--text) !important;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.62;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 37px 0 35px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.principles span {
  color: var(--orange-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
}

.principles h3 {
  margin: 7px 0;
  color: var(--ink);
  font-size: 1rem;
}

.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.services,
.process,
.faq {
  background: var(--sand);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 60px;
  margin-bottom: clamp(44px, 6vw, 74px);
}

.section-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.02rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(17, 26, 35, 0.16);
  border-left: 1px solid rgba(17, 26, 35, 0.16);
}

.service-card {
  position: relative;
  min-height: 360px;
  padding: clamp(26px, 3vw, 40px);
  border-right: 1px solid rgba(17, 26, 35, 0.16);
  border-bottom: 1px solid rgba(17, 26, 35, 0.16);
  background: rgba(255, 255, 255, 0.45);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.service-card:hover {
  z-index: 2;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-5px);
}

.service-card__number {
  position: absolute;
  top: 27px;
  right: 30px;
  color: rgba(17, 26, 35, 0.31);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
}

.service-card__tag {
  margin: 0 0 65px;
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0 0 17px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 500;
  line-height: 1.15;
  transition: color 220ms ease;
}

.service-card > p:not(.service-card__tag) {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 220ms ease;
}

.service-card a {
  position: absolute;
  right: clamp(26px, 3vw, 40px);
  bottom: 31px;
  left: clamp(26px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 220ms ease, border-color 220ms ease;
}

.service-card:hover h3,
.service-card:hover a,
.service-card:hover .service-card__number {
  color: var(--paper);
}

.service-card:hover > p:not(.service-card__tag) {
  color: rgba(255, 255, 255, 0.67);
}

.service-card:hover a {
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card--featured {
  color: var(--paper);
  background: var(--ink);
}

.service-card--featured h3,
.service-card--featured a,
.service-card--featured .service-card__number {
  color: var(--paper);
}

.service-card--featured > p:not(.service-card__tag) {
  color: rgba(255, 255, 255, 0.67);
}

.service-card--featured a {
  border-color: rgba(255, 255, 255, 0.2);
}

.portfolio {
  position: relative;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}

.portfolio::before {
  position: absolute;
  top: 0;
  right: 5%;
  width: 1px;
  height: 100%;
  content: "";
  background: rgba(255, 255, 255, 0.08);
  box-shadow: -300px 0 rgba(255, 255, 255, 0.05), -600px 0 rgba(255, 255, 255, 0.04);
}

.portfolio__intro {
  position: relative;
  max-width: 800px;
  margin-bottom: 58px;
}

.portfolio h2 {
  color: var(--paper);
}

.portfolio__intro > p:last-child {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.02rem;
}

.project-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #263440;
}

.project-card--wide {
  grid-column: span 1;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
  transition: filter 480ms ease, transform 720ms cubic-bezier(0.2, 0.7, 0, 1);
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(4, 10, 15, 0.87) 100%);
}

.project-card:hover img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.045);
}

.project-card__overlay {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 26px;
  left: 30px;
}

.project-card__overlay p {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card__overlay h3 {
  max-width: 78%;
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.project-card__overlay span {
  position: absolute;
  right: 0;
  bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
}

.portfolio__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 44px;
  padding-top: 33px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.portfolio__footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 30px 34px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.process-list li:first-child {
  border-left: 1px solid var(--line);
}

.process-list li::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 3px;
  content: "";
  background: var(--orange);
  transition: width 300ms ease;
}

.process-list li:hover::before {
  width: calc(100% + 1px);
}

.process-list > li > span {
  color: var(--orange-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
}

.process-list h3 {
  margin: 0 0 11px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.confidence {
  color: var(--paper);
  background:
    linear-gradient(115deg, rgba(15, 25, 34, 0.98), rgba(20, 36, 49, 0.93)),
    var(--ims-confidence-image, url("assets/project-4.webp")) center / cover no-repeat;
}

.confidence__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, 0.7fr);
  gap: clamp(50px, 9vw, 130px);
}

.confidence h2 {
  color: var(--paper);
}

.confidence__content > p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.78) !important;
}

.check-list {
  margin: 31px 0 36px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 13px 0 13px 29px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.check-list li::before {
  position: absolute;
  top: 17px;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid var(--orange);
  transform: rotate(45deg);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(60px, 9vw, 136px);
}

.faq__intro {
  align-self: start;
  position: sticky;
  top: 126px;
}

.faq__intro > p:not(.eyebrow) {
  color: var(--muted);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 27px 46px 27px 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 16px;
  height: 2px;
  content: "";
  background: var(--orange-dark);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.faq summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq details p {
  max-width: 670px;
  margin: -5px 42px 26px 0;
  color: var(--muted);
}

.contact {
  padding-block: clamp(82px, 9vw, 132px);
  color: var(--paper);
  background: var(--ink);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: start;
}

.contact h2 {
  max-width: 680px;
  color: var(--paper);
}

.contact__copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 28px 0 32px;
  color: rgba(255, 255, 255, 0.65);
}

.contact__details {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact__details > a {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr 22px;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact__details span {
  color: var(--orange);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact__details strong {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact__details i {
  color: rgba(255, 255, 255, 0.45);
  font-style: normal;
  transition: color 180ms ease, transform 180ms ease;
}

.contact__details a:hover i {
  color: var(--orange);
  transform: translate(3px, -3px);
}

.footer {
  color: rgba(255, 255, 255, 0.55);
  background: #091017;
}

.footer__main {
  display: grid;
  grid-template-columns: 220px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 50px;
  padding-block: 60px;
}

.brand--footer {
  width: 205px;
}

.footer__main > p {
  max-width: 430px;
  margin: 0;
  font-size: 0.92rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.footer nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer nav a:hover {
  color: var(--orange);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
}

.footer__bottom p {
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 3px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  background: #1faa59;
  box-shadow: 0 12px 30px rgba(4, 14, 20, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.whatsapp-float:hover {
  background: #168b47;
  transform: translateY(-3px);
}

.whatsapp-float svg {
  width: 29px;
  fill: currentColor;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 1060px) {
  .site-header__inner {
    gap: 20px;
  }

  .brand {
    width: 165px;
  }

  .primary-nav {
    gap: 19px;
  }

  .header-cta {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 7.7vw, 5.7rem);
  }

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

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list li:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .footer__main {
    grid-template-columns: 210px 1fr;
  }

  .footer nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 840px) {
  :root {
    --container: min(100% - 34px, 720px);
  }

  .topbar__location {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .brand {
    width: 165px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

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

  .primary-nav {
    position: fixed;
    top: 110px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 32px 24px;
    visibility: hidden;
    opacity: 0;
    background: var(--paper);
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .primary-nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
  }

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

  .hero {
    min-height: auto;
    background-position: 60% center;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-block: 78px;
  }

  .hero__content {
    max-width: 650px;
  }

  .hero h1 {
    max-width: 620px;
  }

  .brief-card {
    max-width: 520px;
  }

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

  .number-stat:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
  }

  .about__grid,
  .section-heading,
  .confidence__grid,
  .faq__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__visual {
    width: min(100%, 560px);
    min-height: 580px;
  }

  .about__note {
    right: -14px;
  }

  .section-heading {
    gap: 26px;
  }

  .project-card {
    min-height: 390px;
  }

  .confidence__grid {
    gap: 45px;
  }

  .faq__grid {
    gap: 52px;
  }

  .faq__intro {
    position: static;
  }

  .contact__grid {
    gap: 64px;
  }
}

@media (max-width: 620px) {
  :root {
    --container: calc(100% - 28px);
  }

  .topbar__contacts span,
  .topbar__contacts a:last-child {
    display: none;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .primary-nav {
    top: 106px;
  }

  .brand {
    width: 152px;
  }

  .brand img {
    height: 40px;
  }

  .hero__grid {
    padding-block: 62px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 16vw, 4.75rem);
  }

  .hero__lead {
    margin-top: 24px;
    font-size: 1rem;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero__signals {
    display: grid;
    gap: 9px;
  }

  .brief-card {
    padding: 26px 21px;
  }

  .numbers-bar__grid,
  .service-grid,
  .project-grid,
  .process-list,
  .principles {
    grid-template-columns: 1fr;
  }

  .number-stat,
  .number-stat:nth-child(3) {
    min-height: 122px;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 1px solid rgba(255, 255, 255, 0.13);
  }

  .about__visual {
    min-height: 460px;
  }

  .about__visual::before {
    top: 18px;
    right: -10px;
    bottom: 18px;
    left: 18px;
  }

  .about__note {
    right: -6px;
    bottom: 20px;
  }

  .section h2,
  .contact h2 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .service-card {
    min-height: 340px;
  }

  .project-card {
    min-height: 310px;
  }

  .project-card__overlay {
    right: 22px;
    bottom: 20px;
    left: 22px;
  }

  .portfolio__footer,
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio__footer {
    gap: 22px;
  }

  .process-list li,
  .process-list li:nth-child(3) {
    min-height: 260px;
    border-left: 1px solid var(--line);
  }

  .contact__details > a {
    grid-template-columns: 62px minmax(0, 1fr) 18px;
    gap: 12px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer nav {
    grid-column: auto;
    justify-content: flex-start;
  }

  .footer__bottom {
    justify-content: center;
    gap: 4px;
    padding-block: 20px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==============================
   WordPress inner-page additions
   ============================== */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(88px, 11vw, 150px) 0 clamp(80px, 9vw, 120px);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(9,17,24,.98), rgba(15,28,39,.87) 64%, rgba(9,17,24,.72)),
    url("assets/hero.webp") center / cover no-repeat;
}
.page-hero::after {
  position:absolute; inset:0; z-index:-1; content:""; opacity:.16;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:72px 72px;
}
.page-hero h1 { max-width: 900px; margin:0; color:var(--paper); font-family:Georgia,"Times New Roman",serif; font-size:clamp(3.3rem,7vw,6.25rem); font-weight:500; letter-spacing:-.045em; line-height:1; }
.page-hero p:not(.eyebrow) { max-width: 680px; margin:24px 0 0; color:rgba(255,255,255,.72); font-size:clamp(1rem,1.5vw,1.18rem); }
.page-content { padding-block: clamp(72px, 9vw, 125px); background:var(--paper); }
.entry-content { max-width: 860px; font-size:1.04rem; }
.entry-content > *:first-child { margin-top:0; }
.entry-content h2,.entry-content h3,.entry-content h4 { color:var(--ink); font-family:Georgia,"Times New Roman",serif; font-weight:500; line-height:1.12; letter-spacing:-.025em; }
.entry-content h2 { margin:52px 0 18px; font-size:clamp(2.1rem,4vw,3.45rem); }
.entry-content h3 { margin:36px 0 12px; font-size:clamp(1.55rem,3vw,2.15rem); }
.entry-content p,.entry-content li { color:var(--muted); }
.entry-content a { color:var(--orange-dark); text-decoration:underline; text-underline-offset:3px; }
.entry-content img { width:100%; height:auto; margin:30px 0; }
.entry-content blockquote { margin:35px 0; padding:24px 28px; border-left:4px solid var(--orange); background:var(--sand); font-family:Georgia,"Times New Roman",serif; font-size:1.3rem; }

.about-page-intro { display:grid; grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr); gap:clamp(45px,8vw,100px); align-items:center; }
.about-page-intro__image { position:relative; min-height:520px; background:var(--sand); }
.about-page-intro__image img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.about-page-intro__content .entry-content { max-width:none; }
.values-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:60px; border-top:1px solid var(--line); border-left:1px solid var(--line); }
.value-card { min-height:250px; padding:32px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--sand); }
.value-card span { color:var(--orange-dark); font-family:Georgia,"Times New Roman",serif; font-style:italic; }
.value-card h3 { margin:45px 0 10px; color:var(--ink); font-family:Georgia,"Times New Roman",serif; font-size:1.5rem; font-weight:500; }
.value-card p { margin:0; color:var(--muted); }

.projects-page { background:var(--ink); }
.projects-page .project-grid { padding-bottom: clamp(80px,10vw,130px); }
.projects-toolbar { display:flex; justify-content:space-between; gap:30px; align-items:end; padding:clamp(66px,8vw,100px) 0 44px; color:var(--paper); }
.projects-toolbar h2 { margin:0; color:var(--paper); font-family:Georgia,"Times New Roman",serif; font-size:clamp(2.4rem,5vw,4.5rem); font-weight:500; letter-spacing:-.04em; }
.projects-toolbar p { max-width:560px; margin:0; color:rgba(255,255,255,.65); }
.project-card { display:block; }
.project-card__overlay { pointer-events:none; }
.project-card__overlay .project-arrow { margin-left:auto; color:var(--orange); font-style:normal; font-size:1.4rem; }

.blog-index { padding-block:clamp(76px,9vw,125px); background:var(--sand); }
.posts-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
.post-card { display:flex; min-height:100%; flex-direction:column; background:var(--paper); box-shadow:0 12px 35px rgba(8,18,27,.07); transition:transform .2s ease,box-shadow .2s ease; }
.post-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.post-card__image { aspect-ratio:16/10; overflow:hidden; background:var(--ink-2); }
.post-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.post-card:hover .post-card__image img { transform:scale(1.035); }
.post-card__body { display:flex; flex:1; flex-direction:column; padding:27px; }
.post-card__meta { margin:0 0 13px; color:var(--orange-dark); font-size:.72rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.post-card h2,.post-card h3 { margin:0 0 14px; color:var(--ink); font-family:Georgia,"Times New Roman",serif; font-size:1.65rem; font-weight:500; line-height:1.18; }
.post-card__excerpt { margin:0 0 24px; color:var(--muted); font-size:.94rem; }
.post-card .text-link { margin-top:auto; align-self:flex-start; }
.pagination { margin-top:50px; }
.pagination .nav-links { display:flex; flex-wrap:wrap; gap:8px; }
.pagination a,.pagination span { min-width:42px; min-height:42px; display:grid; place-items:center; padding:8px 12px; border:1px solid var(--line); background:var(--paper); font-weight:800; }
.pagination .current { color:var(--paper); background:var(--ink); border-color:var(--ink); }

.single-wrap { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:clamp(45px,7vw,90px); }
.single-content { max-width:820px; }
.single-featured { margin:0 0 42px; }
.single-featured img { width:100%; height:auto; }
.single-sidebar { align-self:start; padding:28px; background:var(--sand); }
.single-sidebar h3 { margin:0 0 15px; color:var(--ink); font-family:Georgia,"Times New Roman",serif; font-size:1.45rem; font-weight:500; }
.single-sidebar p { color:var(--muted); }

.contact-page-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr); gap:clamp(50px,8vw,105px); align-items:start; }
.contact-panel { padding:34px; color:var(--paper); background:var(--ink); }
.contact-panel h2 { margin:0 0 18px; color:var(--paper); font-family:Georgia,"Times New Roman",serif; font-size:clamp(2rem,4vw,3.2rem); font-weight:500; }
.contact-panel p { color:rgba(255,255,255,.65); }
.contact-panel__links { margin-top:30px; border-top:1px solid rgba(255,255,255,.14); }
.contact-panel__links a { display:block; padding:18px 0; border-bottom:1px solid rgba(255,255,255,.14); }
.contact-panel__links span { display:block; color:var(--orange); font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.contact-panel__links strong { display:block; margin-top:5px; font-weight:600; }
.ims-contact-form { padding:clamp(28px,4vw,44px); background:var(--sand); }
.ims-contact-form__row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.ims-contact-form label { display:block; margin-bottom:7px; color:var(--ink); font-size:.75rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.ims-contact-form input,.ims-contact-form textarea,.ims-contact-form select { width:100%; padding:13px 14px; border:1px solid rgba(17,26,35,.18); border-radius:0; background:var(--paper); font:inherit; }
.ims-contact-form textarea { min-height:150px; resize:vertical; }
.ims-contact-form__field { margin-bottom:18px; }
.ims-contact-form .ims-hp { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.form-notice { margin:0 0 22px; padding:15px 17px; border-left:4px solid var(--orange); background:var(--paper); }
.form-notice--success { border-color:#2f8b57; }
.form-notice--error { border-color:#b73a36; }

.empty-state { padding:45px; text-align:center; background:var(--paper); border:1px solid var(--line); }
.not-found { text-align:center; }
.not-found .button { margin-top:24px; }

.wp-caption,.gallery-caption { max-width:100%; }
.alignwide { width:min(1080px,100%); max-width:none; }
.alignfull { width:100vw; max-width:none; margin-left:calc(50% - 50vw); }

@media (max-width: 900px) {
  .about-page-intro,.contact-page-grid,.single-wrap { grid-template-columns:1fr; }
  .values-grid,.posts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .about-page-intro__image { min-height:440px; }
}
@media (max-width: 620px) {
  .values-grid,.posts-grid,.ims-contact-form__row { grid-template-columns:1fr; }
  .projects-toolbar { align-items:flex-start; flex-direction:column; }
  .about-page-intro__image { min-height:360px; }
  .contact-panel,.ims-contact-form { padding:25px 21px; }
}


/* Elementor homepage integration — keep IMS widgets full-bleed and pixel-aligned to the approved design. */
.ims-elementor-home .elementor,
.ims-elementor-home .elementor-element,
.ims-elementor-home .elementor-widget-container {
  min-width: 0;
}

.ims-elementor-home .ims-elementor-section-wrap.e-con,
.ims-elementor-home .ims-elementor-section-wrap.e-con-full,
.ims-elementor-home .ims-elementor-section-wrap > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.ims-elementor-home .ims-elementor-section-wrap > .elementor-element,
.ims-elementor-home .ims-home-widget,
.ims-elementor-home .ims-home-widget > .elementor-widget-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Avoid Elementor theme defaults changing the original form/button typography. */
.ims-elementor-home .brief-card button,
.ims-elementor-home .brief-card select {
  font-family: inherit;
}

/* Keep reveal content visible inside the Elementor editor even before frontend observers run. */
.elementor-editor-active [data-reveal],
.elementor-editor-preview [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}
