:root {
  --banner-content-inner-bg: rgba(195, 148, 48, 0.82);
  --card-title-color: rgb(255, 255, 255);
  --card-title-font-size: 2rem;
  --card-title-font-weight: 400;
  --card-title-line-height: 2.5rem;
  --card-text-color: rgb(255, 255, 255);
  --card-text-font-size: 1.3rem;
  --card-text-font-weight: 400;
  --card-text-margin-top: 20px;
  --button-background-color: rgb(33, 102, 229);
  --button-text-color: rgb(255, 255, 255);
  --ar-main-nav-font-size: 1.1rem;

  --color-gold: rgb(204, 146, 25);
  --color-blue: rgb(1, 46, 128);
  --white: #ffffff;
  --black: #000000;
  --gray-700: #2a2a2a;
  --gray-500: #6b6b6b;
  --gray-400: #c3c3c3;
  --gray-200: #e6e6e6;

  --bg: linear-gradient(180deg, #fffaf0, #fff6e5);
  --charcoal: #4c4c4c;
  --text: var(--gray-700);
  --muted: var(--gray-500);
  --brand: var(--color-blue);
  --brand-contrast: var(--white);
  --surface: var(--white);
  --border: #e7e0d2;

  --navbar-height: 70px;
  --navbar-height-mobile: 50px;

  --gap: 1rem;
  /* spacing gap */
  --card: var(--surface);
  /* card background */
  --accent: var(--brand);
  /* accent color */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

button {
  font-family: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */

.ar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ar-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* @media (min-width: 905px) {
  .ar-nav .container {
    justify-content: space-between;
  }
} */

/* @media (max-width: 904.98px) {
  .ar-nav .container {
    display: grid;
    grid-template-columns: 40px auto;
    justify-items: center;
  }
} */

.navbar-container {
  background: var(--bg);
  color: var(--charcoal);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  height: var(--navbar-height);
  align-content: center;
}

.ar-logo {
  margin-top: 5px;
}

.ar-logo img {
  width: 230px;
  height: auto;
}

/* .logo-mobile {
  display: none;
}

@media (max-width: 904.98px) {
  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

} */

.ar-main-nav {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  font-size: var(--ar-main-nav-font-size);
}

.ar-main-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.ar-main-nav a:hover {
  border-bottom: 1px solid var(--charcoal);
}

.ar-main-nav a.active {
  border-bottom: 1.5px solid var(--charcoal);
}

.ar-main-nav a:visited {
  color: var(--charcoal);
}

@media (max-width: 599.98px) {
  .ar-main-nav {
    gap: 0;
    font-size: .82rem;
  }

  .ar-main-nav li+li:before {
    content: "|";
    color: var(--gray-400);
    display: inline-block;
  }

  .navbar-container {
    height: var(--navbar-height-mobile);
  }
}

/* Mobile Menu Toggle */
/* .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.3s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
} */

/* Hero Section */
.hero-banner {
  margin-top: var(--navbar-height);
}

@media (max-width: 599.98px) {
  .hero-banner {
    margin-top: var(--navbar-height-mobile);
  }
}

.ar-banner {
  --viewportWidth: calc(100vw);
  position: relative;
  border: 0;
  padding: 0;
}

.ar-banner .picture-container {
  position: relative;
  width: var(--viewportWidth);
  /* margin-left: calc(var(--viewportWidth) / -2);
  margin-right: calc(var(--viewportWidth) / -2);
  left: 50%; */
}

.ar-banner img.card-img {
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  vertical-align: middle;
}

@media (min-width: 905px) {
  .ar-banner img.card-img {
    height: 32rem;
  }
}

/* @media (min-width: 600px) {
  .ar-banner img.card-img {
    height: 32.5rem;
  }
} */

.ar-banner .card-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  padding: 0;
}

@media (max-width: 904.98px) {
  .ar-banner .card-img-overlay {
    position: unset;
  }
}

@media (min-width: 905px) and (max-width: 1239.98px) {
  .ar-banner.default .card-img-overlay {
    padding: 0 3.75rem;
  }
}

@media (min-width: 905px) {
  .ar-banner.default .card-img-overlay {
    position: absolute;
  }
}

.ar-banner .banner-content {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 904.98px) {
  .ar-banner .banner-content {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
    padding: 0;
  }

  .ar-banner .banner-content-inner {
    background-color: var(--banner-content-inner-bg);
  }
}

.ar-banner .banner-content-inner {
  /* background-color: var(--banner-content-inner-bg); */
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  height: 80%;
  border-radius: 0;
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 600px) {
  .ar-banner .banner-content-inner {
    padding: 1.5rem 2rem;
  }
}

@media (min-width: 905px) {
  .ar-banner .banner-content-inner {
    border-radius: 0;
    padding: 1.5rem;
    max-width: 444px;
    flex-shrink: 0;
  }

  .ar-banner .card-title {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

.banner-video-container {
  position: relative;
  flex: 1;
}

.banner-video-container video {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (min-width: 905px) {
  .banner-video-container video {
    border-radius: 4px;
  }
}

.ar-banner .card-title {
  color: var(--card-title-color);
  font-size: var(--card-title-font-size);
  font-weight: var(--card-title-font-weight);
  line-height: var(--card-title-line-height);
  margin: 0 0 1rem;
}

@media (min-width: 905px) {
  .ar-banner .card-title {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

.ar-banner .card-text {
  font-size: var(--card-text-font-size);
  font-weight: var(--card-text-font-weight);
  line-height: 1.5rem;
  margin-top: var(--card-text-margin-top);
}

.ar-banner .ar-btn.btn {
  height: auto;
  max-height: 6rem;
  min-height: 3rem;
  width: fit-content;
  font-size: 1.125rem;
  text-align: center;
}

@media (max-width: 599.98px) {
  .ar-banner .ar-btn.btn {
    width: auto;
  }
}

/* Sections */
.ar-section {
  padding: 3rem 0;
}

.ar-section:target {
  padding-top: var(--navbar-height);
}

.ar-section h2 {
  color: var(--color-blue);
  margin-bottom: 1.5rem;
}

.video-wrapper {
  display: none;
}

.video-container {
  display: none;
}

/* Unmute Overlay */
.unmute-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
  height: auto;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  z-index: 10;
  padding: 0;
}

.unmute-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.unmute-button {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: none;
}

.unmute-button:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: none;
}

.unmute-button:active {
  transform: none;
}

@media (max-width: 599.98px) {
  .video-wrapper {
    margin-top: -0.5rem;
  }

  .unmute-button {
    padding: 5px 10px;
    font-size: 0.7rem;
    gap: 5px;
  }

  .unmute-button svg {
    width: 14px;
    height: 14px;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem
}

.services .cards,
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* Cards */
.cards {
  margin: auto;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 32px;
  flex-grow: 1;
}

.card-shadow {
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.card-max-width {
  max-width: 327px;
}

.card h3 {
  margin: .2rem 0 .4rem;
  padding-bottom: 1rem;
}

.card.small h3 {
  font-size: 1.05rem;
  margin: .2rem 0 .4rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--gray-700);
}

.card-text {
  color: var(--card-text-color);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Buttons */
.ar-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.ar-btn.btn-primary {
  background: var(--button-background-color);
  color: var(--button-text-color);
}

.ar-btn.btn-primary:hover {
  background: var(--muted);
  text-decoration: none;
}

/* Contact */

.checks {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checks li {
  padding-left: 1.6rem;
  position: relative;
  margin: .5rem 0;
}

.checks li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--brand);
}

.contact .contact-form {
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.contact-form label {
  display: block;
  margin: .6rem 0;
}

.contact-form span {
  display: block;
  font-weight: 600;
  margin-bottom: .3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .7rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font: inherit;
}

.contact-form .status {
  margin-top: .6rem;
  color: var(--brand);
}

/* Footer */

.footer {
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer .social a {
  margin-left: .6rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
}

/* Portfolio Section */


/* Vertical layout for icon-first cards */
.portfolio-card.pi.vstack {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  /* icon, head, desc grows, actions */
  gap: 0.75rem;
  /* adjust as needed for your grid */
  padding: 1rem;
  justify-content: center;
  text-align: center;
}

.card-min-height {
  min-height: 340px;
}

/* Reserve ~25–30% of the card height for the icon area */
.portfolio-card.pi .pi-hero {
  display: grid;
  place-items: center;
  min-height: 25%;
  /* baseline */
  height: clamp(20%, 28vh, 30%);
  /* responsive guardrails */
}

/* Icon container */
.portfolio-card.pi .pi-icon-wrap {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  color: var(--brand);
}

@media (min-width: 600px) {
  .portfolio-card.pi .pi-icon-wrap {
    width: 96px;
    height: 96px;
  }
}

/* SVG size inside the icon wrap */
.pi-icon {
  width: 96px;
  height: 96px;
  display: block;
}

/* Title + badge block */
.portfolio-card.pi .pi-head-text .portfolio-title {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.25rem 0;
}

.portfolio-card.pi .pi-head-text .portfolio-badge {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Description: left-align for readability */
.portfolio-card.pi .pi-desc {
  color: var(--text);
}

.portfolio-card.pi .pi-desc p {
  margin: 0;
  line-height: 1.5;
  /* optional clamp to avoid overly long blurbs */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions pinned at bottom by grid row layout */
.portfolio-card.pi .portfolio-actions {
  margin-top: 0;
  /* grid takes care of push */
}

/* Button sizing for comfortable tap target */
.portfolio-card.pi .portfolio-btn {
  font-size: 0.75rem;
  border-radius: 4px;
}

.portfolio-meta {
  font-size: 0.9rem;
}

.portfolio-controls {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  justify-content: center;
}

.portfolio-controls input,
.portfolio-controls select,
.portfolio-controls button {
  background: #f3f5fa;
  color: var(--text);
  border: 1px solid var(--border);
  padding: .6rem .8rem;
}

.portfolio-controls button {
  cursor: pointer;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5rem;
  padding: 1rem 0;
  max-width: 1240px;
  margin: auto;
}


.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 260px;
  gap: .6rem;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background-color: #f5f5f5;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.portfolio-badge {
  font-size: .75rem;
  color: var(--muted);
}

.portfolio-title {
  font-weight: 600;
}

.portfolio-actions {
  margin-top: auto;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio-btn {
  background: var(--button-background-color);
  color: var(--button-text-color);
  border: 1px solid var(--button-background-color);
  padding: .33rem .33rem;
  text-decoration: none;
}

.portfolio-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Icon + text in the PDF button */
.portfolio-btn--pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.portfolio-btn--pdf .btn-icon {
  flex: 0 0 auto;
  display: block;
  width: 20px;
  height: 20px;
}

footer {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem 2rem 1rem;
  color: var(--muted);
}

/* Modal (lightbox/pdf) */
.portfolio-modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.portfolio-open {
  display: flex;
}

.portfolio-modal-dialog {
  background: #b1b4bb;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: min(1000px, 96vw);
  max-height: 90vh;
  width: 96vw;
  display: flex;
  flex-direction: column;
}

.portfolio-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-modal-body {
  padding: 0;
  overflow: auto;
  background: #0a0f1a;
}

.portfolio-modal-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

.portfolio-modal-body iframe {
  width: 100%;
  height: 72vh;
  border: 0;
}

.portfolio-modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .4rem .6rem;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 904.98px) {
  /* .ar-main-nav {
    display: none;
    position: fixed;
    top: var(--banner-margin-top);
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 24px 24px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    align-items: left;
  }

  .ar-main-nav.active {
    display: flex;
  }

  .ar-main-nav.active li {
    border-bottom: 1px solid var(--gray-400);
    padding: 12px 0 24px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu-overlay.active {
    display: block;
  } */

  .grid-2 {
    grid-template-columns: 1fr;

  }

  .services .cards,
  .cards {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 599.98px) {
  .ar-logo img {
    width: 140px;
    height: auto;
  }
}