/* Coastal Fencing theme — brand overlay on Atomik/Bedrock base */

:root {
  --cfr-header: #018d9d;
  --cfr-primary: #029785;
  --cfr-primary-dark: #023e39;
  --cfr-footer-top: #63cbd8;
  --cfr-footer-mid: #5ec8d5;
  --cfr-footer-bottom: #24a2b4;
  --cfr-copyright: #1f8fa0;
  --cfr-finance-bg: #b9ebf9;
  --cfr-text: #111111;
  --cfr-muted: #333333;
  --cfr-white: #ffffff;
  --cfr-font-body: "Roboto", "Lato", sans-serif;
  --cfr-font-display: "Lato", "Roboto", sans-serif;
  --cfr-font-accent: "Domine", Georgia, serif;
  --cfr-btn-radius: 2.55rem;
  --cfr-btn-shadow: 3px 5px 0 rgba(0, 0, 0, 0.75);
}

iframe{
  max-width: 100% !important;
}

/* -------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
.theme-coastal-fencing {
  font-family: var(--cfr-font-body);
  color: var(--cfr-text);
  overflow-x: hidden;
}

.theme-coastal-fencing h1,
.theme-coastal-fencing h2,
.theme-coastal-fencing h3,
.theme-coastal-fencing h4,
.theme-coastal-fencing h5,
.theme-coastal-fencing h6,
.theme-coastal-fencing .display-1,
.theme-coastal-fencing .display-2,
.theme-coastal-fencing .display-3,
.theme-coastal-fencing .display-4 {
  font-family: var(--cfr-font-display);
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------------
   Buttons — pill teal matching mockup SVG
--------------------------------------------------------------------------- */
.theme-coastal-fencing .btn-cfr,
.theme-coastal-fencing .btn.btn-primary,
.theme-coastal-fencing a.btn-cfr,
.theme-coastal-fencing .ccm-block-feature-link .btn,
.theme-coastal-fencing .ccm-block-hero-image .btn,
.theme-coastal-fencing .cfr-product-feature .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cfr-primary) !important;
  border: 2px solid var(--cfr-primary-dark) !important;
  color: var(--cfr-white) !important;
  border-radius: var(--cfr-btn-radius) !important;
  box-shadow: var(--cfr-btn-shadow);
  font-family: var(--cfr-font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 2.25rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  line-height: 1.2;
}

.theme-coastal-fencing .btn-cfr:hover,
.theme-coastal-fencing .btn.btn-primary:hover,
.theme-coastal-fencing a.btn-cfr:hover,
.theme-coastal-fencing .ccm-block-feature-link .btn:hover,
.theme-coastal-fencing .ccm-block-hero-image .btn:hover,
.theme-coastal-fencing .cfr-product-feature .btn:hover {
  background-color: #03a892 !important;
  color: var(--cfr-white) !important;
  transform: translateY(1px);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.75);
}

.theme-coastal-fencing .btn-cfr-inverse {
  background: var(--cfr-white) !important;
  color: var(--cfr-primary) !important;
  border: 2px solid var(--cfr-white) !important;
  border-radius: 0.35rem !important;
  box-shadow: none;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
}

/* -------------------------------------------------------------------------
   Header / Top Navigation
--------------------------------------------------------------------------- */
.theme-coastal-fencing .cfr-site-header {
  background: var(--cfr-header);
  position: relative;
  z-index: 100;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .navbar {
  background-color: var(--cfr-header) !important;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  min-height: 8.5rem;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .navbar .container-fluid {
  max-width: 1920px;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 4rem);
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .navbar-brand {
  margin-right: 2rem;
  padding: 0;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .navbar-brand img.logo,
.theme-coastal-fencing .ccm-block-top-navigation-bar .navbar-brand img {
  max-height: 7.25rem !important;
  width: auto;
  height: auto;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .navbar-nav {
  margin-left: auto;
  gap: clamp(0.25rem, 1.5vw, 1.75rem);
  align-items: center;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .nav-link {
  color: var(--cfr-white) !important;
  font-family: var(--cfr-font-display);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.05vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.35rem !important;
  white-space: nowrap;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .nav-link:hover,
.theme-coastal-fencing .ccm-block-top-navigation-bar .nav-link.active {
  color: #e8fffb !important;
  opacity: 0.92;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .navbar-toggler .icon-bar {
  background-color: var(--cfr-white) !important;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .dropdown-menu {
  background: var(--cfr-header);
  border: 0;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .dropdown-item {
  color: var(--cfr-white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
}

.theme-coastal-fencing .ccm-block-top-navigation-bar .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.15);
  color: var(--cfr-white);
}

@media (max-width: 991.98px) {
  .theme-coastal-fencing .ccm-block-top-navigation-bar .navbar {
    min-height: auto;
    padding: 0.75rem 0;
  }

  .theme-coastal-fencing .ccm-block-top-navigation-bar .navbar-brand img {
    max-height: 4.5rem !important;
  }

  .theme-coastal-fencing .ccm-block-top-navigation-bar .navbar-collapse {
    background: var(--cfr-header);
    padding: 1rem 0 1.5rem;
  }

  .theme-coastal-fencing .ccm-block-top-navigation-bar .navbar-nav {
    margin-left: 0;
    gap: 0;
  }
}

/* -------------------------------------------------------------------------
   Hero — coastal mission-driven overlay
--------------------------------------------------------------------------- */
.theme-coastal-fencing .ccm-block-hero-image.cfr-hero,
.theme-coastal-fencing .cfr-hero.ccm-block-hero-image {
  position: relative;
}

.theme-coastal-fencing .cfr-hero .ccm-block-hero-image-image,
.theme-coastal-fencing .cfr-hero > picture,
.theme-coastal-fencing .cfr-hero > img,
.theme-coastal-fencing .cfr-hero .ccm-block-hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: min(72vh, 920px);
  max-height: 1071px;
}

.theme-coastal-fencing .cfr-hero .ccm-block-hero-image-cover {
  background: transparent !important;
}

.theme-coastal-fencing .cfr-hero .ccm-block-hero-image-text,
.theme-coastal-fencing .cfr-hero-content {
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  color: var(--cfr-primary-dark) !important;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 8vw, 8rem) clamp(5rem, 10vw, 8rem) !important;
  max-width: 100%;
}

.theme-coastal-fencing .cfr-hero .ccm-block-hero-image-text > *,
.theme-coastal-fencing .cfr-hero-content-inner {
  max-width: 34rem;
  margin-left: auto;
  margin-right: clamp(0rem, 8vw, 10rem);
}

.theme-coastal-fencing .cfr-hero-headline,
.theme-coastal-fencing .cfr-hero h1,
.theme-coastal-fencing .cfr-hero .ccm-block-hero-image-text h1 {
  font-family: var(--cfr-font-display) !important;
  font-weight: 900 !important;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem) !important;
  line-height: 1.15 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cfr-primary-dark) !important;
  text-align: left !important;
  margin-bottom: 1.25rem !important;
}

.theme-coastal-fencing .cfr-hero .ccm-block-hero-image-text p,
.theme-coastal-fencing .cfr-hero-content p {
  font-family: var(--cfr-font-body);
  font-size: clamp(0.95rem, 1.15vw, 1.125rem);
  line-height: 1.55;
  color: var(--cfr-primary-dark);
  text-align: left !important;
  margin-bottom: 1rem;
  font-weight: 500;
}

.theme-coastal-fencing .cfr-hero .ccm-block-hero-image-text .mt-4,
.theme-coastal-fencing .cfr-hero-cta {
  width: 100%;
  text-align: center;
  margin-top: clamp(2rem, 8vw, 6rem) !important;
  position: relative;
  left: 0;
  right: 0;
}

.theme-coastal-fencing .cfr-hero .ccm-block-hero-image-text .mt-4 {
  max-width: none;
  margin-left: calc(-1 * clamp(1.25rem, 8vw, 8rem));
  margin-right: calc(-1 * clamp(1.25rem, 8vw, 8rem));
  width: calc(100% + 2 * clamp(1.25rem, 8vw, 8rem));
}

@media (max-width: 991.98px) {
  .theme-coastal-fencing .cfr-hero .ccm-block-hero-image-text > *,
  .theme-coastal-fencing .cfr-hero-content-inner {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .theme-coastal-fencing .cfr-hero .ccm-block-hero-image-image,
  .theme-coastal-fencing .cfr-hero .ccm-block-hero-image-container img {
    min-height: 520px;
  }
}

/* Custom hero template layout */
.theme-coastal-fencing .cfr-hero-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.theme-coastal-fencing .cfr-hero-wrap > img,
.theme-coastal-fencing .cfr-hero-wrap > picture img {
  width: 100%;
  height: auto;
  display: block;
  min-height: min(70vh, 900px);
  object-fit: cover;
  object-position: center center;
}

.theme-coastal-fencing .cfr-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem);
  pointer-events: none;
}

.theme-coastal-fencing .cfr-hero-overlay .cfr-hero-content-inner,
.theme-coastal-fencing .cfr-hero-overlay .btn {
  pointer-events: auto;
}

.theme-coastal-fencing .cfr-hero-overlay .cfr-hero-content-inner {
  align-self: flex-end;
  width: min(100%, 34rem);
  margin-right: clamp(0rem, 6vw, 8rem);
}

.theme-coastal-fencing .cfr-hero-overlay .cfr-hero-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2rem, 6vw, 4.5rem);
  text-align: center;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Product feature checkerboard
--------------------------------------------------------------------------- */
.theme-coastal-fencing .cfr-product-feature {
  background: var(--cfr-white);
}

.theme-coastal-fencing .cfr-product-feature .row {
  min-height: clamp(320px, 42vw, 560px);
}

.theme-coastal-fencing .cfr-product-feature__media {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 320px;
}

.theme-coastal-fencing .cfr-product-feature__media img,
.theme-coastal-fencing .cfr-product-feature__media .ccm-image-block,
.theme-coastal-fencing .cfr-product-feature__media picture,
.theme-coastal-fencing .cfr-product-feature__media .ccm-block-image {
  width: 100%;
  height: 100%;
  display: block;
}

.theme-coastal-fencing .cfr-product-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: clamp(320px, 42vw, 560px);
}

.theme-coastal-fencing .cfr-product-feature__content {
  display: flex;
  align-items: center;
  background: var(--cfr-white);
}

.theme-coastal-fencing .cfr-product-feature__inner {
  width: 100%;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.75rem, 6vw, 5.5rem);
  max-width: 36rem;
}

.theme-coastal-fencing .cfr-product-feature--reverse .cfr-product-feature__inner {
  margin-left: auto;
}

.theme-coastal-fencing .cfr-product-title,
.theme-coastal-fencing .cfr-product-feature h2,
.theme-coastal-fencing .cfr-product-feature h3,
.theme-coastal-fencing .cfr-product-feature .ccm-block-feature-link h2,
.theme-coastal-fencing .cfr-product-feature .ccm-block-feature-link h3 {
  font-family: var(--cfr-font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.theme-coastal-fencing .cfr-product-feature p,
.theme-coastal-fencing .cfr-product-feature .ccm-block-feature-link-text p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #111;
  margin-bottom: 1.75rem;
  max-width: 28rem;
}

.theme-coastal-fencing .cfr-product-feature .ccm-block-feature-link-text {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.theme-coastal-fencing .cfr-product-feature .ccm-block-feature-link-text.border-top,
.theme-coastal-fencing .cfr-product-feature .border-top {
  border-top: 0 !important;
}

/* -------------------------------------------------------------------------
   Service area
--------------------------------------------------------------------------- */
.theme-coastal-fencing .cfr-service-area {
  background: var(--cfr-white);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.theme-coastal-fencing .cfr-service-area img {
  width: 100%;
  height: auto;
  display: block;
}

.theme-coastal-fencing .cfr-section-title,
.theme-coastal-fencing .cfr-service-area h2 {
  font-family: var(--cfr-font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #000;
  margin-bottom: 1.25rem;
}

.theme-coastal-fencing .cfr-service-area ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.theme-coastal-fencing .cfr-service-area ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  color: #111;
}

.theme-coastal-fencing .cfr-service-area ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cfr-primary-dark);
}

/* -------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.theme-coastal-fencing .cfr-site-footer {
  margin-top: 0;
}

.theme-coastal-fencing .cfr-finance-banner {
  background: var(--cfr-finance-bg);
  padding: 1.5rem 0;
}

.theme-coastal-fencing .cfr-finance-icon {
  flex: 0 0 auto;
  width: 72px;
  height: auto;
}

.theme-coastal-fencing .cfr-acorn-logo {
  display: block;
  height: 28px;
  width: auto;
  margin-bottom: 0.35rem;
}

.theme-coastal-fencing .cfr-finance-title {
  font-family: var(--cfr-font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.15;
}

.theme-coastal-fencing .cfr-finance-sub {
  font-size: 0.95rem;
  color: #222;
}

.theme-coastal-fencing .cfr-footer-main {
  background: linear-gradient(180deg, var(--cfr-footer-top) 0%, var(--cfr-footer-mid) 45%, var(--cfr-footer-bottom) 100%);
  color: var(--cfr-white);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.theme-coastal-fencing .cfr-footer-logo {
  max-width: 220px;
  height: auto;
}

.theme-coastal-fencing .cfr-footer-company {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.theme-coastal-fencing .cfr-footer-address,
.theme-coastal-fencing .cfr-footer-hours {
  font-size: 1rem;
  line-height: 1.45;
}

.theme-coastal-fencing .cfr-footer-hours-note {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.theme-coastal-fencing .cfr-footer-email {
  color: var(--cfr-white) !important;
  text-decoration: none !important;
  margin-bottom: 0.85rem;
}

.theme-coastal-fencing .cfr-footer-email:hover {
  text-decoration: underline !important;
}

.theme-coastal-fencing .cfr-footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cfr-white) !important;
  text-decoration: none !important;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.theme-coastal-fencing .cfr-footer-phone img {
  filter: brightness(0) invert(1);
}

.theme-coastal-fencing .cfr-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 28rem;
  margin-left: auto;
}

@media (max-width: 991.98px) {
  .theme-coastal-fencing .cfr-footer-right {
    margin-left: 0;
  }
}

.theme-coastal-fencing .cfr-vet-badge {
  max-width: 220px;
  height: auto;
  filter: brightness(0) invert(1);
}

.theme-coastal-fencing .cfr-subscribe-title {
  font-family: var(--cfr-font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.theme-coastal-fencing .cfr-subscribe-sub {
  font-family: var(--cfr-font-accent);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.theme-coastal-fencing .cfr-subscribe-hint {
  opacity: 0.85;
}

.theme-coastal-fencing .cfr-subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

.theme-coastal-fencing .cfr-subscribe-form input[type="email"] {
  flex: 1 1 12rem;
  background: rgba(2, 151, 133, 0.35);
  border: 1px solid var(--cfr-white);
  color: var(--cfr-white);
  padding: 0.65rem 0.9rem;
  border-radius: 0.25rem;
  min-height: 2.75rem;
}

.theme-coastal-fencing .cfr-subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.theme-coastal-fencing .cfr-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.theme-coastal-fencing .cfr-social img {
  filter: brightness(0) invert(1);
  width: 28px;
  height: 28px;
}

.theme-coastal-fencing .cfr-copyright {
  background: var(--cfr-copyright);
  color: var(--cfr-white);
  font-size: 0.9rem;
  padding: 0.85rem 0;
}

.theme-coastal-fencing .cfr-copyright a {
  color: var(--cfr-white);
}

/* Hide Atomik concrete branding strip when present */
.theme-coastal-fencing footer > section.concrete-branding {
  display: none;
}

/* -------------------------------------------------------------------------
   Grid / area helpers — full-bleed homepage sections
--------------------------------------------------------------------------- */
.theme-coastal-fencing .ccm-block-html,
.theme-coastal-fencing .ccm-page .cfr-product-feature,
.theme-coastal-fencing .ccm-page .cfr-hero-wrap,
.theme-coastal-fencing .ccm-page .cfr-service-area {
  width: 100%;
}

.theme-coastal-fencing .ccm-page > .ccm-area > .ccm-area-block-list > .ccm-block-container,
.theme-coastal-fencing [data-area-display-name="Page Header"] .ccm-block-container,
.theme-coastal-fencing [data-area-display-name="Main"] .ccm-block-container {
  /* keep editable spacing sane */
}

/* Reduce default Atomik stripe padding conflicts */
.theme-coastal-fencing .stripe {
  padding-top: 0;
  padding-bottom: 0;
}

/* Content editable niceties */
.theme-coastal-fencing .ccm-edit-mode .cfr-product-feature__inner,
.theme-coastal-fencing .ccm-edit-mode .cfr-service-area__content,
.theme-coastal-fencing .ccm-edit-mode .cfr-hero-overlay {
  outline: 1px dashed rgba(2, 151, 133, 0.45);
}
