/* Original theme refinements retained for existing Elementor content. */
.elementor-button-icon svg {
  width: 30px;
}

.hero-area {
  overflow: hidden !important;
}

.related.products ul.products li.product a img,
.elementor-shortcode .woocommerce ul.products li.product a img {
  display: block;
  margin-bottom: 18px;
}

.elementor-shortcode .woocommerce ul.products .loop-button-wrapper {
  display: none;
}

.elementor-shortcode .woocommerce ul.products li.product a {
  margin-bottom: 0;
}

.elementor-shortcode .woocommerce ul.products li h2 {
  margin-bottom: 6px;
}

.widget-area .widget:not(:last-of-type) {
  margin-bottom: 30px;
}

.footer-widget ul {
  list-style: none;
  padding-left: 0;
}

@media (min-width: 991px) {
  .stretch-left .elementor-widget-container {
    margin-left: calc((100vw - 1140px) / -2);
  }

  .hero-image .elementor-widget-container {
    margin-right: calc((100vw - 1060px) / -2);
    min-height: 700px;
  }

  .hero-image img {
    min-height: 700px;
    object-fit: cover;
  }
}

/* LOOP Module 3: one shared typography and color system. */
#page {
  font-family: Inter, sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #102A4C;
}

#page p,
#page li,
#page a,
#page button,
#page input,
#page select,
#page textarea,
#page .loop-home,
#page .loop-about,
#page .site-info {
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

#page h1,
#page h2,
#page h3,
#page h4,
#page h5,
#page h6,
#page h1 span,
#page h2 span,
#page h3 span,
#page h4 span,
#page h5 span,
#page h6 span,
#page h1 a,
#page h2 a,
#page h3 a,
#page h4 a,
#page h5 a,
#page h6 a {
  font-family: Poppins, sans-serif !important;
  font-size: 40px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -1px !important;
}

#page a {
  color: #55730D;
  text-underline-offset: 4px;
}

#page a:hover {
  color: #102A4C;
}

#page a:focus-visible,
#page button:focus-visible,
#page input:focus-visible,
#page select:focus-visible,
#page textarea:focus-visible {
  outline: 3px solid #55730D;
  outline-offset: 4px;
}

/* Header and logo. */
#masthead,
.site-header {
  background: #F8F5EC !important;
}

#masthead .site-logo {
  width: 72px !important;
  height: 72px !important;
  max-width: none;
  object-fit: contain;
}

#masthead .site-title {
  display: none;
}

#masthead nav a,
#mainnav ul li a {
  color: #102A4C !important;
  font-weight: 600 !important;
}

#masthead nav a:hover,
#mainnav ul li a:hover {
  color: #55730D !important;
}

/* Both button variants share the same shape and typography. */
#page .loop-button,
#page .loop-button-secondary,
#page a.button,
#page button.button,
#page input.button,
#page button.single_add_to_cart_button {
  display: inline-block;
  background: #A3D629 !important;
  color: #102A4C !important;
  border: 1px solid #A3D629 !important;
  border-radius: 8px !important;
  padding: 13px 22px !important;
  font: 600 16px/1.4 Inter, sans-serif !important;
  text-decoration: none !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background-color .15s, border-color .15s;
}

#page .loop-button:hover,
#page a.button:hover,
#page button.button:hover,
#page input.button:hover,
#page button.single_add_to_cart_button:hover {
  background: #8DBB21 !important;
  border-color: #8DBB21 !important;
  color: #102A4C !important;
}

#page .loop-button-secondary,
#page .loop-button.loop-button-secondary,
#page a.button.loop-button-secondary,
#page button.button.loop-button-secondary,
#page input.button.loop-button-secondary {
  background: #102A4C !important;
  color: #F8F5EC !important;
  border-color: #102A4C !important;
}

#page .loop-button-secondary:hover,
#page .loop-button.loop-button-secondary:hover,
#page a.button.loop-button-secondary:hover,
#page button.button.loop-button-secondary:hover,
#page input.button.loop-button-secondary:hover {
  background: #1A3D66 !important;
  color: #F8F5EC !important;
  border-color: #1A3D66 !important;
}

/* Home and About layout. */
body.home #post-955 .entry-header,
body.home #post-955 .entry-title,
.page-id-963 .entry-header {
  display: none !important;
}

body.home .page-wrap,
body.home .content-wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.home #primary,
body.home #main,
body.home .content-inner {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .loop-home {
  border-radius: 0;
  overflow: hidden;
}

.page-id-963 .page-wrap {
  padding-top: 40px;
}

.loop-home,
.loop-about {
  width: 100%;
  background: #FFFFFF;
}

#page .loop-section {
  padding: 64px 5%;
  text-align: left;
  box-sizing: border-box;
}

#page .loop-section h1,
#page .loop-section h2 {
  margin: 0 0 24px !important;
}

#page .loop-section p {
  margin: 0 0 20px !important;
}

#page .loop-eyebrow {
  font-weight: 600 !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #55730D;
}

#page .loop-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

#page .loop-split > *,
#page .loop-grid > * {
  min-width: 0;
}

.loop-hero,
.loop-mission {
  background: #F8F5EC;
}

.loop-hero img,
.loop-mission img,
.loop-about img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.loop-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

#page .loop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.loop-card {
  padding: 24px;
  background: #F8F5EC;
  border: 1px solid #E5E6DC;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#page .loop-card p {
  margin-bottom: 16px !important;
}

.loop-card .loop-button,
.loop-card .loop-button-secondary {
  margin-top: auto;
  align-self: flex-start;
}

.loop-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #F8F5EC;
  border-radius: 10px;
  margin-bottom: 20px;
}

#page .loop-product-title,
#page .loop-review-name {
  font-weight: 600 !important;
}

.loop-product-title,
.loop-card blockquote {
  color: #102A4C;
}

.loop-card blockquote {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  font-style: normal;
}

.loop-card blockquote p {
  font-style: normal;
}

.loop-themed {
  background: #102A4C;
  color: #F8F5EC;
}

#page .loop-themed h1,
#page .loop-themed h2,
#page .loop-themed h3,
#page .loop-themed h4,
#page .loop-themed h5,
#page .loop-themed h6,
#page .loop-themed p,
#page .loop-themed li {
  color: #F8F5EC !important;
}

#page .loop-themed .loop-eyebrow,
#page .loop-themed a:not(.loop-button):not(.loop-button-secondary):not(.button) {
  color: #A3D629 !important;
}

#page .loop-themed a:not(.loop-button):not(.loop-button-secondary):not(.button):hover {
  color: #F8F5EC !important;
}

.loop-themed .loop-step {
  border-top: 2px solid #A3D629;
  padding-top: 24px;
}

/* Policy pages use the shared typography. */
.loop-policy {
  max-width: 100%;
  color: #102A4C;
}

.loop-policy .loop-policy-intro {
  background: #F8F5EC;
  border-left: 5px solid #A3D629;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
}

#page .loop-policy h2 {
  margin: 48px 0 12px;
  color: #102A4C;
}

.loop-policy p {
  margin-bottom: 18px;
}

.loop-policy a {
  color: #55730D;
  text-decoration: underline;
}

.loop-policy .loop-policy-date {
  color: #687486;
  border-top: 1px solid #E4E8E0;
  padding-top: 18px;
  margin-top: 32px;
}

/* Product cards and square product imagery. */
#page ul.products li.product {
  background: #F8F5EC;
  border: 1px solid #E5E6DC;
  border-radius: 16px;
  padding: 24px !important;
  box-shadow: none !important;
  overflow: hidden;
  box-sizing: border-box;
}

#page ul.products li.product img,
#page div.product div.images img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #F8F5EC;
  border-radius: 10px;
}

.woocommerce div.product .product_title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #102A4C;
}

#page .woocommerce-breadcrumb,
#page .price {
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}


/* Consistent Shop cards and buttons. */
#page ul.products {display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px !important;margin-bottom:48px;}
#page ul.products::before,#page ul.products::after {display:none !important;}
#page ul.products li.product {width:100% !important;margin:0 !important;display:flex;flex-direction:column;text-align:left !important;}
#page ul.products li.product .loop-button-wrapper {margin-top:auto;padding-top:20px;text-align:left;}
#page a.button .sydney-svg-icon {color:inherit;}
#page a.button .sydney-svg-icon svg {fill:currentColor;}

/* Footer links remain readable against the navy background. */
.footer-widgets,
.sidebar-footer,
#colophon.site-footer {
  background: #102A4C !important;
  color: #F8F5EC !important;
}

#page .footer-widgets p,
#page .footer-widgets h4,
#page .sidebar-footer p,
#page .sidebar-footer h4,
#page .site-info {
  color: #F8F5EC !important;
}

#page .footer-widgets a:not(.loop-button):not(.loop-button-secondary):not(.button),
#page .sidebar-footer a:not(.loop-button):not(.loop-button-secondary):not(.button),
#page .site-info a:not(.loop-button):not(.loop-button-secondary):not(.button) {
  color: #A3D629 !important;
}

#page .footer-widgets a:not(.loop-button):not(.loop-button-secondary):not(.button):hover,
#page .sidebar-footer a:not(.loop-button):not(.loop-button-secondary):not(.button):hover,
#page .site-info a:not(.loop-button):not(.loop-button-secondary):not(.button):hover {
  color: #F8F5EC !important;
}

#page .loop-themed a:focus-visible,
#page .footer-widgets a:focus-visible,
#page .sidebar-footer a:focus-visible,
#page .site-info a:focus-visible {
  outline-color: #A3D629;
}

.sidebar-footer .widget {
  margin-bottom: 20px;
}

.blog .posts-layout .row > article {
  width: 100%;
  max-width: 850px;
  margin-bottom: 48px;
}

/* Responsive layout. */
@media (max-width: 800px) {
  #page .loop-split,
  #page .loop-grid,
  #page ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #page .loop-section {
    padding: 48px 6%;
  }

  #page .loop-split {
    gap: 28px;
  }

  #page h1,
  #page h2,
  #page h3,
  #page h4,
  #page h5,
  #page h6 {
    overflow-wrap: anywhere;
  }

  .page-id-963 .page-wrap {
    padding-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Readable mobile navigation. */
#page .sydney-offcanvas-menu, #page #mainnav-mobi { background: #F8F5EC !important; color: #102A4C !important; }
#page .sydney-offcanvas-menu a { color: #102A4C !important; }
#page .sydney-offcanvas-menu a:hover { color: #55730D !important; }
#page .mobile-menu-close svg { fill: #102A4C !important; }
