/*
Theme Name: Blueshore Child
Theme URI:
Description: Divi Child Theme for Blueshore
Author: Solid Mass Media
Author URI:
Template: Divi
Version: 1.0.0
*/

/* ─── Custom Fonts ─────────────────────────────────────── */
@font-face {
  font-family: 'Ginka';
  src: url('fonts/Ginka-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ginka';
  src: url('fonts/Ginka-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aptos';
  src: url('fonts/Aptos-Display-Bold.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Brand */
  --color-primary: #0d1d43;
  --color-accent: #e9884e;
  --color-secondary: #a7d1ef;

  /* Text */
  --color-text: #231f1f;

  /* Neutrals */
  --color-white: #ffffff;
  --color-light-gray: #ebebeb;
  --color-mid-gray: #c3c3c3;
  --color-brown: #a5582a;

  /* Overlay */
  --color-nav-overlay: #322118;

  /* Font */
  --font-primary: 'Ginka', sans-serif;
  --font-secondary: 'Aptos', sans-serif;
}

/* ─── Utility Classes ───────────────────────────────────── */
.font-aptos {
  font-family: var(--font-secondary) !important;
}

/* ─── Global Typography ─────────────────────────────────── */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.et_pb_module {
  font-family: var(--font-primary) !important;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-accent);
}

.btn-secondary::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.746094 11.0562L10.7461 1.05615M0.746094 1.05615H10.7461V11.0562' stroke='%23E9884E' stroke-width='2.11222'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-left: 8px;
}

/* ─── Checklist ─────────────────────────────────────────── */
.check-list ul {
  list-style: none;
  padding-left: 0;
  padding-bottom: 0;
}

.check-list ul li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 0.5em;
}

.check-list ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 24px;
  height: 16px;
  background: url('/wp-content/uploads/check-icon.svg') no-repeat center center;
  background-size: contain;
}

/* ─── Arrow list ────────────────────────────────────────── */
.arrow-list ul {
  list-style: none;
  padding-left: 0;
  padding-bottom: 0;
}

.arrow-list ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0;
}

.arrow-list ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: url('/wp-content/uploads/arrow-icon.svg') no-repeat center center;
  background-size: contain;
}

/* ─── Full Height Image ─────────────────────────────── */
.full-height-image {
  height: auto;
}

.full-height-image > .et_pb_image,
.full-height-image .et_pb_image_wrap,
.full-height-image img {
  width: 100% !important;
  height: 100% !important;
}

.full-height-image img {
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════
   Featured Projects Section
   ═══════════════════════════════════════════════════ */

/* ── Tab Carousel ───────────────────────────────── */
.fp-tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.fp-tab {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.18);
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  transition:
    color 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.fp-tab[data-distance='1'] {
  color: rgba(255, 255, 255, 0.42);
}

.fp-tab.is-active,
.fp-tab[data-distance='0'] {
  color: var(--color-white);
  font-size: 34px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.fp-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Panels (bottom row) ────────────────────────── */
.fp-panels {
  position: relative;
}

.fp-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fp-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 60px;
  align-items: stretch;
  opacity: 1;
}

.fp-panel.is-leaving {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 60px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

/* ── Panel Content (left) ───────────────────────── */
.fp-panel__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.fp-project-title {
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0;
  max-width: 360px;
}

.fp-description {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-white);
  margin: 0;
  max-width: 360px;
}

.fp-client {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-client__label {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--color-secondary);
}

.fp-client__name {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 300;
  color: var(--color-white);
}

.fp-cta {
  align-self: flex-start;
}

.fp-cta::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.746094 11.0562L10.7461 1.05615M0.746094 1.05615H10.7461V11.0562' stroke='%23ffffff' stroke-width='2.11222'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-left: 8px;
  transition: background-image 0.2s ease;
}

.fp-cta:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.746094 11.0562L10.7461 1.05615M0.746094 1.05615H10.7461V11.0562' stroke='%23E9884E' stroke-width='2.11222'/%3E%3C/svg%3E");
}

/* ── Panel Bottom (nav dots + CTA row) ──────────── */
.fp-panel__bottom {
  margin-top: auto;
  display: block;
}

.fp-nav {
  display: none;
}

.fp-nav__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.fp-nav__dot.is-active {
  background: var(--color-brown);
}

.fp-nav__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── Panel Image (right) ────────────────────────── */
.fp-panel__image {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.fp-panel__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════
   Projects List Grid
   ═══════════════════════════════════════════════════ */

.projects-list-grid .et_pb_column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.projects-list-grid .et_pb_column .et_pb_blurb {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
}

.projects-list-grid .et_pb_column .et_pb_blurb .et_pb_blurb_content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projects-list-grid .et_pb_column .et_pb_blurb .et_pb_blurb_container {
  flex: 1;
  padding: 0 14px;
}

.projects-list-grid .et_pb_column .et_pb_blurb .et_pb_image_wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.projects-list-grid .et_pb_column .et_pb_blurb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-blurbs .et_pb_blurb_container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-blurbs .et_pb_blurb_description {
  max-width: 237px;
}

/* ═══════════════════════════════════════════════════
   Gravity Form – Blueshore Contracting Style
   ═══════════════════════════════════════════════════ */

/* ── Field layout ── */
.gform_wrapper .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gform_wrapper .gfield {
  padding: 0;
  margin-bottom: 28px;
}

/* Hide labels (placeholders do the work) */
.gform_wrapper .gfield_label {
  display: none;
}

/* ── Inputs & Textarea ── */
.gform_wrapper input[type='text'],
.gform_wrapper input[type='email'],
.gform_wrapper input[type='tel'],
.gform_wrapper select,
.gform_wrapper textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-mid-gray);
  border-radius: 0;
  padding: 10px 0 10px 0 !important;
  font-size: 20px !important;
  color: var(--color-text);
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  font-weight: 300;
}
.gform_wrapper textarea {
  font-size: 16px !important;
}

.gform_wrapper input[type='text'],
.gform_wrapper input[type='email'],
.gform_wrapper input[type='tel'],
.gform_wrapper select {
  letter-spacing: 0.03em;
}

.gform_wrapper input::placeholder {
  letter-spacing: 0.03em;
}

.gform_wrapper .custom-select__text {
  letter-spacing: 0.03em;
}

/* Focus state */
.gform_wrapper input[type='text']:focus,
.gform_wrapper input[type='email']:focus,
.gform_wrapper input[type='tel']:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
  border-bottom-color: var(--color-accent);
  outline: none;
  box-shadow: none;
}

/* Placeholder color */
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
  color: #747474;
  font-size: 20px;
}
.gform_wrapper textarea::placeholder {
  font-size: 16px;
}

/* ── Select dropdown ── */
.gform_wrapper .ginput_container_select {
  position: relative;
}
.gform_wrapper select {
  cursor: pointer;
  color: #747474;
}

/* Show accent arrow on the right */
.gform_wrapper .ginput_container_select::after {
  content: '▼';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 11px;
  pointer-events: none;
}

/* Once a real value is selected, darken text */
.gform_wrapper select:not([value='']) {
  color: var(--color-text);
}

/* ── Textarea ── */
.gform_wrapper textarea {
  resize: vertical;
  min-height: 140px;
  border: 1px solid var(--color-mid-gray);
  border-radius: 0;
  padding: 20px !important;
  line-height: 1.6;
}
.gform_wrapper textarea:focus {
  border-color: var(--color-accent);
}

/* ── Submit Button ── */
.gform_wrapper .gform_footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: none;
}
.gform_wrapper .gform_button,
.gform_wrapper input[type='submit'] {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1 !important;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type='submit']:hover {
  background-color: var(--color-white);
  color: var(--color-accent);
}
.gform_wrapper .gform_button:active,
.gform_wrapper input[type='submit']:active {
}

/* ── Validation errors ── */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
  border-bottom-color: #c0392b;
}
.gform_wrapper .validation_message {
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
}

/* ── Custom Select (JS-enhanced) ── */

/* Hide CSS-only arrow once JS wraps the select */
.gform_wrapper .ginput_container_select.custom-select::after {
  display: none;
}

/* Visually hide native select but keep it for form submission */
.gform_wrapper .custom-select select {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Trigger row */
.gform_wrapper .custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-mid-gray);
  cursor: pointer;
  background: transparent;
  transition: border-color 0.2s ease;
}

.gform_wrapper .custom-select__text {
  font-size: 20px;
  font-weight: 300;
  color: #747474;
  flex: 1;
}

.gform_wrapper .custom-select__trigger.has-value .custom-select__text {
  color: var(--color-text);
}

.gform_wrapper .custom-select__trigger:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.gform_wrapper .custom-select__arrow {
  color: var(--color-accent);
  font-size: 11px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Dropdown panel */
.gform_wrapper .custom-select__panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
  z-index: 999;
  overflow: hidden;
  padding: 10px;
}

.gform_wrapper .custom-select.is-open .custom-select__panel {
  display: block;
}

/* Options */
.gform_wrapper .custom-select__option {
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gform_wrapper .custom-select__option:hover,
.gform_wrapper .custom-select__option.is-focused {
  background: var(--color-light-gray);
}

.gform_wrapper .custom-select__option.is-selected {
  background: var(--color-accent);
  color: var(--color-white);
}

.gform_wrapper .custom-select__option.is-selected:hover {
  filter: brightness(0.95);
}

/* ─── Navigation ────────────────────────────────────────── */

.et_pb_section_0_tb_header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: radial-gradient(
    ellipse at top right,
    color-mix(in srgb, var(--color-nav-overlay) 100%, transparent) 0%,
    transparent 78%
  ) !important;
  transition: background 0.3s ease;
}

.et_pb_section_0_tb_header.nav-scrolled {
  background: var(--color-primary) !important;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Desktop menu links */
.et_pb_section_0_tb_header .et-menu a {
  color: var(--color-white) !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  font-size: 16px !important;
  letter-spacing: 0.06em !important;
}

.et_pb_section_0_tb_header .et-menu li:not(.nav-btn) a:hover {
  color: var(--color-brown) !important;
  opacity: 1 !important;
}

/* Active nav item */
.et_pb_section_0_tb_header .et-menu li.current-menu-item:not(.nav-btn) a {
  color: var(--color-accent) !important;
}

/* Mobile hamburger icon */
.et_pb_section_0_tb_header .mobile_menu_bar::before {
  color: var(--color-white) !important;
}

/* Mobile dropdown */
.et_pb_section_0_tb_header .et_mobile_menu {
  background-color: var(--color-primary) !important;
}

.et_pb_section_0_tb_header .et_mobile_menu a {
  color: var(--color-white) !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
}

/* Contact Us nav button */
.et_pb_section_0_tb_header .et-menu .nav-btn a,
.et_pb_section_0_tb_header .et_mobile_menu .nav-btn a {
  background-color: var(--color-accent) !important;
  color: var(--color-white) !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  line-height: 1 !important;
  display: inline-block !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease !important;
}

.et_pb_section_0_tb_header .et-menu .nav-btn a:hover,
.et_pb_section_0_tb_header .et_mobile_menu .nav-btn a:hover {
  background-color: var(--color-white) !important;
  color: var(--color-accent) !important;
  opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════
   Media Queries
   ═══════════════════════════════════════════════════ */

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .fp-tab.is-active {
    font-size: 34px;
  }

  .fp-tabs {
    display: none !important;
  }

  .fp-panel.is-active,
  .fp-panel.is-leaving {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .fp-panel__image {
    order: -1;
  }

  .fp-panel__image img {
    object-fit: cover;
  }

  .fp-project-title {
    font-size: 22px;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .fp-description {
    height: 7.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }

  .fp-panel__bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 36px;
  }

  .fp-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-light-gray);
    border-radius: 50px;
    padding: 14px 18px;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .fp-tab {
    font-size: 34px;
  }

  .fp-tab.is-active {
    font-size: 34px;
  }

  .fp-panel__content {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-tab,
  .fp-panel {
    transition: none;
  }
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 980px) {
  .projects-list-grid .et_pb_column {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-list-grid .et_pb_column {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .gform_wrapper input[type='text'],
  .gform_wrapper input[type='email'],
  .gform_wrapper input[type='tel'],
  .gform_wrapper select,
  .gform_wrapper textarea {
    font-size: 16px;
  }

  .gform_wrapper input::placeholder,
  .gform_wrapper textarea::placeholder {
    font-size: 16px;
  }

  .gform_wrapper .custom-select__text {
    font-size: 16px;
  }

  .gform_wrapper .gform_footer {
    padding-top: 0 !important;
  }

  .gform_wrapper .gfield {
    margin-bottom: 18px;
  }
}

/* Vertically center nav items — desktop only */
@media (min-width: 981px) {
  .et_pb_menu .et_pb_menu__menu,
  .et_pb_menu .et_pb_menu__menu > nav,
  .et_pb_menu .et_pb_menu__menu > nav > ul {
    display: flex !important;
    align-items: center !important;
  }
}

/* ─── Mobile Navigation ────────────────────────────────── */
@media (max-width: 980px) {
  /* Section always transparent on mobile — card handles the background */
  .et_pb_section_0_tb_header,
  .et_pb_section_0_tb_header.nav-scrolled {
    background-color: transparent !important;
    box-shadow: none;
  }

  /* Strip row/column padding so card margins are the only offset */
  .et_pb_section_0_tb_header .et_pb_row {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .et_pb_section_0_tb_header .et_pb_column {
    padding: 0 !important;
  }

  /* Floating nav card */
  .et_pb_section_0_tb_header .et_pb_menu_inner_container {
    background-color: var(--color-primary) !important;
    border-radius: 24px !important;
    margin-top: 30px !important;
    padding: 20px 24px !important;
    position: relative !important;
    /* Smooth restore: 200ms delay matches slideUp, 200ms ease removes snap */
    transition: border-radius 0.2s 0.2s;
  }

  /* When dropdown is open, square off card bottom immediately */
  .et_pb_section_0_tb_header
    .et_pb_menu_inner_container:has(.mobile_nav.opened) {
    border-radius: 24px !important;
    margin-bottom: 0 !important;
    transition: none !important;
  }

  .et_pb_section_0_tb_header .et_pb_menu__logo-wrap {
    position: relative !important;
    z-index: 9 !important;
  }

  /* Hamburger trigger sizing */
  .et_pb_section_0_tb_header .mobile_menu_bar {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 9 !important;
  }

  /* Open icon (default) */
  .et_pb_section_0_tb_header .mobile_menu_bar::before {
    content: '' !important;
    background-image: url('/wp-content/uploads/mobile-open.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    color: transparent !important;
  }

  /* Close icon when menu is open */
  .et_pb_section_0_tb_header .mobile_nav.opened .mobile_menu_bar::before {
    background-image: url('/wp-content/uploads/mobile-close.svg') !important;
  }

  /* Reset intermediate wrappers so et_mobile_menu anchors to et_pb_menu_inner_container, not et_pb_menu__wrap */
  .et_pb_section_0_tb_header .et_pb_menu__wrap,
  .et_pb_section_0_tb_header .et_mobile_nav_menu,
  .et_pb_section_0_tb_header .mobile_nav {
    position: static !important;
  }

  /* Mobile dropdown — absolute overlay on the card so it spans full width */
  .et_pb_section_0_tb_header .et_mobile_menu {
    background-color: var(--color-primary) !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 90px 30px 30px 30px !important;
    border-radius: 24px !important;
    z-index: 8 !important;
  }

  /* Remove item dividers */
  .et_pb_section_0_tb_header .et_mobile_menu li,
  .et_pb_section_0_tb_header .et_mobile_menu li a {
    border: none !important;
    background: transparent !important;
  }

  /* Nav link text — large, spaced */
  .et_pb_section_0_tb_header .et_mobile_menu li a {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--color-white) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 10px 0 !important;
    line-height: 1.2 !important;
  }

  .et_pb_section_0_tb_header .et_mobile_menu li:not(.nav-btn) a:hover {
    color: var(--color-brown) !important;
    opacity: 1 !important;
  }

  /* Active nav item */
  .et_pb_section_0_tb_header .et_mobile_menu li.current-menu-item:not(.nav-btn) a {
    color: var(--color-accent) !important;
  }

  /* Contact Us — pill in normal flow, right-aligned */
  .et_pb_section_0_tb_header .et_mobile_menu .nav-btn {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: -39px !important;
  }

  .et_pb_section_0_tb_header .et_mobile_menu .nav-btn a {
    font-size: 16px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 10px 22px !important;
  }

  li.et_first_mobile_item {
    margin-top: 70px;
  }

  .et_pb_menu_0_tb_header.et_pb_menu {
    border-radius: 24px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3) !important;
  }
}
