@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800&display=swap');

:root {
  --font-main: 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;

  /* Desktop typography */
  --font-h1: 3.25rem;
  --font-h2: 1.6rem;
  --font-h3: 1.3rem;
  --font-h4: 1.05rem;
  --font-body: 1rem;
  --font-small: 0.875rem;

  --line-h1: 1.5;
  --line-h2: 1.5;
  --line-h3: 1.5;
  --line-h4: 1.5;
  --line-body: 1.5;
  --line-small: 1.5;
  --line-button: 1.5;

  --blue: #51688C;
  --orange: #E5693E;
  --color-text-default: #000000;
}

/* Tablet typography */
@media (max-width: 1024px) {
  :root {
    --font-h1: 2.4rem;
    --font-h2: 1.45rem;
    --font-h3: 1.25rem;
    --font-h4: 1.1rem;
    --font-body: 1rem;
  }
}

/* Phone typography */
@media (max-width: 767px) {
  :root {
    --font-h1: 1.8rem;
    --font-h2: 1.3rem;
    --font-h3: 1.15rem;
    --font-h4: 1.05rem;
    --font-body: 1rem;
  }
}

/* Base defaults */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-default);
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
}

/* Normalize font family site-wide */
body,
button,
input,
textarea,
select,
.elementor-widget,
.elementor-heading-title,
.elementor-button {
  font-family: var(--font-main) !important;
}

/* Default text color, but Elementor can still override */
:where(
  h1, h2, h3, h4, h5, h6,
  p, li,
  .elementor-heading-title,
  .elementor-widget-text-editor,
  .elementor-widget-text-editor p,
  .elementor-icon-list-text
) {
  color: var(--color-text-default);
}

/* Typography hierarchy */
:where(h1, .elementor-widget-heading h1.elementor-heading-title) {
  font-size: var(--font-h1);
  font-weight: 700;
  line-height: 1.5;
}

:where(h2, .elementor-widget-heading h2.elementor-heading-title) {
  font-size: var(--font-h2);
  font-weight: 700;
  line-height: 1.5;
}

:where(h3, .elementor-widget-heading h3.elementor-heading-title) {
  font-size: var(--font-h3);
  font-weight: 600;
  line-height: 1.5;
}

:where(h4, .elementor-widget-heading h4.elementor-heading-title) {
  font-size: var(--font-h4);
  font-weight: 600;
  line-height: 1.5;
}

/* Paragraphs are always thin */
p,
.elementor-widget-text-editor p {
  font-family: var(--font-main) !important;
  font-size: var(--font-body);
  font-weight: 200 !important;
  line-height: 1.5;
}

/* List items are always thin */
li {
  font-size: var(--font-body);
  font-weight: 200 !important;
  line-height: 1.5;
}

/* Small text utility */
:where(.text-small, small) {
  font-size: var(--font-small);
  line-height: 1.5;
}

/* Buttons */
:where(.elementor-button) {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
}

/* Better text wrapping */
:where(h1, h2, h3, h4, p) {
  overflow-wrap: normal;
  word-break: normal;
}

/* Mobile button normalization */
@media (max-width: 767px) {
  :where(.elementor-button) {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* Override Elementor global font variables */
body.elementor-kit-6 {
  --e-global-typography-primary-font-family: 'Inter';
  --e-global-typography-secondary-font-family: 'Inter';
  --e-global-typography-text-font-family: 'Inter';
  --e-global-typography-accent-font-family: 'Inter';

  --e-global-typography-text-font-weight: 400;
}

/* Utility */
.fit-content-container {
  width: fit-content !important;
}

/* NAV */
.nav-wrap {
  display: flex;
  justify-content: center;
}

.navbar {
  display: flex;
  position: fixed;
  justify-content: space-between;
  align-items: center;
  top: 0;
  width: 100%;
  height: auto;
  padding: 0.5rem 2rem;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 6px #888888;
  outline: 3px solid white;
  z-index: 10;
}

.navbar img {
  height: auto;
  width: 180px;
  padding-left: 2rem;
  z-index: auto;
}

.right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.logo-mobile {
  margin-bottom: 1rem;
}

.logo-mobile img {
  width: 160px;
  display: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  margin: 0;
  overflow: hidden;
}

.nav-links li {
  display: inherit;
  align-items: center;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 200;
  color: var(--blue);
  font-size: 1.05rem;
  padding: 1rem;
  line-height: 1.5;
  transition: all 0.2s ease-in-out;
}

.nav-links li a:hover {
  color: var(--orange);
  font-weight: 700;
}

.active-nav {
  font-weight: 700 !important;
}

.lets-talk {
  display: inherit;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: white !important;
  background-color: var(--orange);
  padding: 0.3rem 2.4rem;
  margin-right: 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border: none;
}

.lets-talk img {
  width: 48px;
  height: 48px;
}

.lets-talk:hover {
  background-color: var(--blue);
}

.lets-talk-btn-mobile {
  display: none;
  color: var(--blue);
  padding: 1rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.5;
}

.navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-icon {
  width: 100%;
  height: 0.15rem;
  right: 0px;
  background-color: white;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-toggler .navbar-icon::before,
.navbar-toggler .navbar-icon::after {
  right: 0px;
  content: '';
  position: absolute;
  width: 100%;
  height: 0.15rem;
  background-color: white;
  transition: all 0.3s ease;
}

.navbar-toggler .navbar-icon::after {
  top: 0.30rem;
}

.navbar-toggler .navbar-icon::before {
  top: -0.30rem;
}

/* FOOTER */
.footer-wrapper {
  background-image: url("../images/texture.png");
  padding: 2rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-wrapper p {
  font-size: var(--font-body);
  font-weight: 200 !important;
  line-height: 1.5;
  color: white;
  margin: 0;
}

.footer-sec1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.footer-sec2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 30px;
  flex-wrap: wrap;
}

.footer-sec2 a {
  color: #FFF200;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.5;
  text-decoration: none;
}

.footer-sec2 p a {
  font-style: italic;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.footer-sec2 p a:hover {
  color: #D9654A;
}

.footer-sec1-col1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-sec1-col2 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-logo {
  width: 250px;
  max-width: 100%;
  height: auto;
}

.footer-links-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 20px;
  padding: 20px 0 0;
}

.footer-links-icon {
  width: 45px;
  max-width: 100%;
  height: auto;
}

/* BUILD SECTION */
.build-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  gap: 3rem;
}

.build-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 4rem;
}

.build-btn a {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 400px;
  text-decoration: none;
  text-align: center;
  color: white;
  background-color: var(--orange);
  padding: 1rem 2rem;
  transition: background-color 0.3s ease-in-out;
  flex: 1 1 0;
}

.build-btn a:hover {
  background-color: var(--blue);
}

/* TABLET */
@media (max-width: 992px) {
  .footer-wrapper {
    padding: 2rem;
  }

  .footer-sec1 {
    gap: 2rem;
  }

  .footer-logo {
    width: 200px;
  }
}

.mobile-contact-options {
  display: none;
}

/* NAV TABLET / MOBILE */
@media (max-width: 940px) {
  .navbar {
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
    outline: none;
    box-shadow: none;
    margin: 0;
    background-color: var(--blue);
  }

  .navbar img {
    display: none;
    padding-left: 0;
  }

  .navbar-toggler {
    position: relative;
    z-index: 999;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
  }

  .navbar-icon {
    position: relative;
    display: block;
    width: 26px;
    height: 2px;
    background-color: white;
    transition: background-color 0.2s ease;
  }

  .navbar-icon::before,
  .navbar-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 26px;
    height: 2px;
    background-color: white;
    transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
  }

  .navbar-icon::before {
    top: -8px;
  }

  .navbar-icon::after {
    bottom: -8px;
  }

  .navbar-toggler.active {
    z-index: 9999;
    background-color: white;
  }

  .navbar-toggler.active .navbar-icon {
    background-color: transparent;
  }

  .navbar-toggler.active .navbar-icon::before {
    top: 5px;
    transform: rotate(45deg);
    background-color: var(--blue);
  }

  .navbar-toggler.active .navbar-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
    background-color: var(--blue);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    background-color: white;
    width: 100%;
    top: 0;
    right: 0;
    padding: 1rem 0;
    margin: 0;
    gap: 0;
    z-index: 50;
  }

  .nav-links.show {
    display: flex;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }

  .nav-links li {
    height: auto;
    margin: 0.2rem 0;
  }

  .nav-links li a {
    font-size: 0.95rem;
    font-weight: 200;
    padding: 0;
    color: var(--blue);
  }

  .logo-mobile img {
    display: block;
  }

  .lets-talk {
    display: none;
  }

  .lets-talk-btn-mobile {
    font-weight: 200;
    display: block;
    font-size: 0.95rem;
    padding: 0.2rem 0;
  }

  .build-wrapper {
    gap: 2rem;
  }

  .build-btn {
    gap: 1rem;
  }

  .build-btn a {
    font-size: 1rem;
  }

  .footer-bottom {
    justify-content: space-around;
  }

  .footer-link {
    flex-direction: column;
    justify-content: flex-start;
  }

  .footer-nav {
    flex-direction: column;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-wrapper {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .footer-sec1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-sec1-col1,
  .footer-sec1-col2 {
    align-items: center;
  }

  .footer-links-container {
    justify-content: center;
    padding-top: 10px;
  }

  .footer-sec2 {
    flex-direction: column;
    text-align: center;
    margin-top: 0;
    gap: 0;
  }

  .footer-sec2 a {
    font-size: 1rem;
  }

  .footer-logo {
    width: 180px;
  }

  .footer-links-icon {
    width: 40px;
  }

  .testimonial-card {
    width: 115% !important;
  }
}

/* SMALL PHONES */
@media (max-width: 546px) {
  .navbar {
    height: 60px;
  }

  .logo-mobile img {
    width: 120px;
  }

  .build-wrapper {
    padding: 2rem 1rem;
  }

  .build-btn {
    flex-direction: column;
  }

  .build-btn a {
    font-size: 1rem;
    padding: 0.5rem 2rem;
    width: 50vw;
  }

  .footer-wrapper {
    padding: 2rem 1rem 4rem;
    gap: 2rem;
  }

  .footer-bottom {
    justify-content: space-between;
    gap: 1rem;
  }

  .footer-nav,
  .footer-link {
    gap: 0.5rem;
  }

  .footer-nav a,
  .footer-link a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-wrapper {
    padding: 1.5rem 1rem;
  }

  .footer-logo {
    width: 150px;
  }

  .footer-sec2 a {
    font-size: 0.95rem;
  }

  .footer-links-container {
    gap: 15px;
  }

  .footer-links-icon {
    width: 35px;
  }
}

/* BLOG GRID */
@media (min-width: 768px) and (max-width: 1124px) {
  .recent-blogs-grid {
    grid-template-columns: repeat(2, 350px);
  }

  .recent-blog-card {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 25px;
    padding-bottom: 25px;
  }
}

@media (min-width: 1124px) and (max-width: 1548px) {
  .recent-blogs-grid {
    grid-template-columns: repeat(2, 550px);
  }

  .recent-blog-card {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 25px;
    padding-bottom: 25px;
  }
}

@media (min-width: 1548px) and (max-width: 1700px) {
  .recent-blogs-grid {
    grid-template-columns: repeat(2, 750px);
  }

  .recent-blog-card {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 25px;
    padding-bottom: 25px;
  }
}

/* Specific Elementor heading override */
.elementor-868 .elementor-element.elementor-element-65f81f4 .elementor-heading-title {
  font-weight: 600 !important;
}

/* Final paragraph lock */
p,
.elementor-widget-text-editor p {
  font-size: 1rem !important;
  font-weight: 200 !important;
  line-height: 1.5 !important;
}

/* Final list lock */
li,
.elementor-widget-text-editor li {
  font-size: 1rem !important;
  font-weight: 200 !important;
  line-height: 1.5 !important;
}

/* Global mobile/tablet orange section label fix */
@media (max-width: 1024px) {
  .orange-badge {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .orange-badge .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .orange-badge .elementor-heading-title,
  .orange-badge h1,
  .orange-badge h2,
  .orange-badge h3,
  .orange-badge h4,
  .orange-badge h5,
  .orange-badge h6 {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* ==============================
   Contact Dropdown - Shared
============================== */

header,
.nav-wrap,
.navbar,
.right {
  overflow: visible;
}

/* ==============================
   Desktop Contact Dropdown
============================== */

.contact-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.contact-dropdown-menu {
  position: absolute;
  top: 100%;
  width: 165px;
  background: #586b8d;
  padding: 10px 0 10px;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.contact-dropdown:hover .contact-dropdown-menu,
.contact-dropdown:focus-within .contact-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-dropdown-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-dropdown-menu a {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  padding: 8px 12px;
}

.contact-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==============================
   Mobile Contact Dropdown
============================== */

.mobile-contact-options {
  display: none;
}

@media (max-width: 940px) {
  .mobile-contact-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.2rem;
  }

  .mobile-contact-link {
    display: block;
    color: var(--blue);
    font-size: 0.95rem;
    font-weight: 200;
    line-height: 1.5;
    text-decoration: none;
  }

  .mobile-contact-link:hover,
  .mobile-contact-link.active-nav {
    color: var(--orange);
    font-weight: 700;
  }

  .contact-dropdown {
    display: none;
  }
}

.blog-prev-next-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  padding: 2% 4%;
}

.blog-prev-next-card {
  background: #fff;
  padding: 0 0 22px;
  width: auto;
  height: auto;
  text-align: center;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.05);
}

.blog-prev-next-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #eee;
}

.blog-prev-next-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-prev-next-placeholder {
  width: 100%;
  height: 220px;
  background: #eee;
}

.blog-prev-next-content {
  padding: 18px 5% 0;
}

.blog-prev-next-title {
  margin: 0 0 22px;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  font-family: 'Inter', sans-serif;
}

.blog-prev-next-title a {
  color: #E96023 !important;
  text-decoration: none;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  font-family: 'Inter', sans-serif;
}

.blog-prev-next-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-weight: 600;
  color: #444 !important;
}

.blog-prev-next-meta span,
.blog-prev-next-meta a {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-weight: 600;
  color: #444 !important;
}

.blog-prev-next-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prev-next-meta a:hover {
  color: #E96023 !important;
  font-weight: 800;
}

.blog-prev-next-divider {
  width: 1px;
  height: 16px;
  background: #444;
  display: inline-block;
}

.blog-prev-next-card:only-child {
  grid-column: 1 / -1;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 767px) {
  .blog-prev-next-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-prev-next-card {
    margin: 2% 5%;
  }

  .blog-prev-next-img {
    height: auto;
  }

  .blog-prev-next-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  #cta-container {
    width: 100% !important;
    max-width: 100% !important;
    --width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #cta-container > .e-con {
    width: auto !important;
    max-width: none !important;
    --width: auto !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    align-self: stretch !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  #cta-container .elementor-widget-button,
  #cta-container .elementor-button-wrapper {
    width: 100% !important;
    height: 100% !important;
  }

  #cta-container .elementor-button {
    width: 100% !important;
    height: 100% !important;
    min-height: 45px !important;
    padding: 14px 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  #cta-container .elementor-button-content-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #cta-container .elementor-button-text {
    font-size: 14px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }
}