/*
Theme Name: Anchor Corps
Theme URI: https://americandental.kinsta.cloud
Description: Child theme for American Dental (Divi 5)
Author: AnchorCorps
Author URI: https://anchorcorps.com
Template: Divi
Version: 1.2.5
License: GPL-2.0-or-later
Text Domain: anchor-corps
*/

/* ======================================================
   1. GLOBAL / BASE STYLES
====================================================== */

#page-container .accent-font { color: var(--theme-main); }
#page-container .theme-main { color: var(--theme-main); }

#page-container,
html,
body { overflow-x: hidden; }

h1,h2,h3,h4,h5,h6 {
  
  font-weight: 600;
  font-style: normal;
  padding-bottom: 0;
}

/* ======================================================
   2. RESPONSIVE UTILITIES
====================================================== */

@media screen and (max-width:980px){
  #reverse-columns{
    display:flex;
    flex-direction:column-reverse;
  }
}

@media (max-width:980px){
  .acbc-breadcrumbs{ display:none }
}

@media(max-width:767px){
  .btn-row{
    flex-direction:column;
    gap:1em;
  }

  #page-container .btn-row-container .btn-row .btn{
    width:100%!important;
  }
	
	.btn {
  border: 1px solid var(--theme-main)
}
.btn-row-container {
  justify-content: flex-start !important
}
}


@media (max-width: 980px) {
  .btn-row-container {
  justify-content: center !important
}
}

  #page-container .btn-row-container{
    display:block!important;
  }

  .footer-links.right a{
    flex-direction:row;
    text-align:left;
  }

  .footer-links.right a i{
    margin-left:0;
    margin-right:.5em;
  }

  .footer-links.right h3{
    text-align:left;
  }

.inline-text-image {
	max-height: .75em;
	width: auto;
	border-radius: .05em;
	box-shadow: .03em .03em;
}

/* ======================================================
   3. HEADER / NAVIGATION
====================================================== */

.anchor-header-section{
  position:fixed!important;
  top:0;
  left:0;
  width:100%;
  transition:transform .4s ease;
}

.anchor-header-section.hide{ transform:translateY(-100%); }
.anchor-header-section.show{ transform:translateY(0); }

.anchor-header-row{
  transition:all .6s ease!important;
}

.anchor-header-row.active{
  transition:all .6s ease!important;
}

.nav-super-header{
  display:flex;
  justify-content:space-between;
  padding:0 2.5%;
  background:#f5f5f5;
  border-bottom:1px solid #e5e5e5;
}

/* Header Links */

.header-links{
  list-style:none!important;
  padding:0!important;
  margin:0!important;
  display:flex;
}

.header-links li{
  margin-right:15px;
  position:relative;
}

.header-links li::before{
  content:"|";
  position:absolute;
  left:-8.5px;
}

.header-links li:first-child::before{
  content:"";
}

.header-links a{
  text-decoration:none;
  color:#333;
  font-weight:bold;
}

.header-links a:hover{ color:#0073e6; }

/* Office Hours Dropdown */

.office-hours-trigger{ position:relative; }

.office-hours-content{
  position:absolute;
  z-index:9999;
  top:100%;
  right:0;
  width:300px!important;
  background:#fff;
  padding:10px;
  opacity:0;
  transform:translateY(20px);
  transition:all .2s ease;
  pointer-events:none;
}

.office-hours-content:hover,
.office-hours-trigger:hover .office-hours-content{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

/* ======================================================
   4. HERO / LAYOUT
====================================================== */

.practice-hero{
  display:grid;
  grid-template-columns:1.1fr 1.4fr;
  gap:clamp(20px,3vw,40px);
  align-items:stretch;
}

.promo-card{
  background:var(--bg-dark);
  color:#fff;
  border-radius:22px;
  padding:clamp(20px,4vw,40px);
  display:grid;
  align-content:space-between;
  min-height:380px;
}

.promo-title{
  line-height:1.05;
  letter-spacing:-0.02em;
  margin:0 0 28px;
  font-weight:700;
  color:white;
  font-size:clamp(30px,5vw,52px);
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
}

.feature{
  display:grid;
  grid-template-columns:60px 1fr;
  gap:16px;
  padding:18px;
  border-radius:14px;
  background:var(--surface);
  text-decoration:none;
  color:var(--text);
  box-shadow:
    0 1px 0 rgba(16,19,22,.04),
    0 8px 24px rgba(16,19,22,.06);
}

/* ===============================
   BASE BUTTON STYLES
   =============================== */

.btn {
  font-size: 16px;
  font-weight: 600;
  background-color: var(--theme-main);
  padding: 24px 24px 24px 32px;
  display: flex;
  align-items: center;
  border-radius: 99px; /* pill shape */
  position: relative;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
	cursor: pointer;
}

/* Button text */
.btn .text {
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 5;
  margin-right: 32px;
  transition: color .3s ease;
	padding-right: 10px
}

/* Default SVG icon styles */

.btn svg {
  width: 32px;
  height: 32px;
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

}

/* Special path color inside SVGs */
.btn path.pill-color {
  fill: var(--theme-main) !important;
}


/* ===============================
   PSEUDO-ELEMENT BACKGROUND
   =============================== */
.btn::before {
  content: "";
  background-color: var(--theme-white);
  width: 40px;
  height: 40px;
  display: block;
  position: absolute;
  z-index: 1;
  border-radius: 99px; /* circle */
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden; /* prevents bleed */
}


/* ===============================
   ARROW ICON ANIMATION
   =============================== */
.btn .arrow-btn {
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.btn:hover .arrow-btn {
  transform: translateY(-50%) rotate(45deg); /* rotate arrow */
}

/* Change arrow stroke color on hover */
.btn svg.arrow-btn path {
  stroke: var(--theme-main) !important;
}


/* ===============================
   HOVER STATES
   =============================== */
.btn:hover .text {
  color: var(--theme-main);
}

.btn:hover::before {
  width: 100%;
  height: 100%;
  right: 0;
}


/* ===============================
   LIGHT THEME VARIANT
   =============================== */
.btn.light {
  background-color: var(--theme-white);
  border: 1px solid var(--theme-main);
}

.btn.light::before {
  background-color: var(--theme-main);
}

.btn.light .text {
  color: var(--theme-main);
}

.btn.light:hover .text {
  color: #fff;
}

.btn.light svg.arrow-btn path {
  stroke: #fff !important;
}


/* ===============================
   BUTTON ROW LAYOUT
   =============================== */
.btn-row {
  display: flex;
  column-gap: 2%; /* spacing between buttons */
	min-width: 0px !important;
}

.btn-row .btn {
  flex: 1; /* equal width buttons */
}

.btn-row-container .btn-row .btn {
  width: fit-content !important;
  white-space: nowrap !important
}
.btn-row-container {
  display: flex !important;
  justify-content: flex-start !important;
}
.btn-row-container.center {
  justify-content: center !important;
}
.btn-row-container.right {
  justify-content: flex-end !important;
}




@media(max-width: 767px) {
	.btn-row {
		flex-direction: column;
		gap: 1em;
		min-width: 0px;
	}
		#page-container .btn-row-container .btn-row .btn {
			width: 100% !important;
	}
	#page-container .btn-row-container {
		display: block !important;
	}
	
}


/* CARD */

.hover-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 3%;
}


.hover-card * {
  color: #fff;
}

/* OVERLAY */

.hover-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75),
    rgba(0,0,0,.35) 40%,
    rgba(0,0,0,0) 70%
  );
  z-index: 1;
  transition: opacity .35s ease;
}

.hover-card:hover .hover-card-overlay {
  opacity: .9;
}

/* CONTENT LAYER */

.hover-card-content {
  position: relative;
  z-index: 2;
	transition: all .3s ease;
}

/* TEXT */

.hover-card .hover-card-overtext {
  display: block;
  font-size: .8em;
}

.hover-card .hover-card-descriptor {
  display: block;
  font-size: .9em;
  opacity: .9;
}


/* DESCRIPTION */

.hover-card-description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
	padding-top: 10px;
  line-height: 1.2;
  transition: all .3s ease !important;
	margin-top: -10px
}

/* BUTTON */

.hover-card-button {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
}

/* ICON */

.hover-card-icon {
  opacity: 0;
  transform: translateX(-10px);

  transition:
    opacity .25s ease,
    transform .25s ease;
}

/* HOVER STATE */

.hover-card:hover .hover-card-description {
  max-height: 200px;
	margin-top: 0px;
  opacity: 1;
}

/* ICON AFTER DESCRIPTION */

.hover-card:hover .hover-card-icon {
  opacity: 1;
  transform: translateX(0);
  transition-delay: .45s;
}

/* ======================================================
   6. FOOTER
====================================================== */

.footer-links{
  font-size:20px;
  line-height:1.5;
}

.footer-links h3{
  margin-bottom:1rem;
}

.footer-links a{
  display:flex!important;
  align-items:center!important;
  margin-bottom:.5em;
  transition:margin .4s ease;
}

.footer-links a:hover{
  margin-left:5px;
}

.footer-links i{
  width:1.2em;
  margin-right:.5em;
  color:var(--theme-main);
  flex-shrink:0;
}

/* ======================================================
   7. CONTENT COMPONENTS
====================================================== */

/* Counters */

.ac-counter{
  font-size:50px;
  color:var(--theme-dark);
  letter-spacing:-4px;
}

/* Breadcrumbs */

.acbc-breadcrumbs__list{
  background:white;
  color:black;
  padding:5px 15px!important;
  border-radius:999px;
}

/* Table of Contents */

.ac-toc li{
  list-style:none!important;
  padding-left:5px!important;
  margin-bottom:10px!important;
  border-left:1px solid rgba(0,0,0,.1);
}

/* Blurb Links */

.blurb-link{
  display:flex;
  align-items:center;
  font-size:20px;
}

.blurb-link i{
  margin-right:.5em;
}

/* ======================================================
   8. INTERACTIVE COMPONENTS
====================================================== */

/* Hover Card */

.hover-card{
  position:relative;
  height:300px;
  display:flex;
  align-items:flex-end;
  padding:3%;
  color:#fff;
  border-radius:inherit;
  overflow:hidden!important;
}

.hover-card-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.75),
    rgba(0,0,0,.35) 40%,
    rgba(0,0,0,0) 70%
  );
  z-index:1;
  transition:opacity .35s ease;
}

.hover-card-content{
  position:relative;
  z-index:2;
}

/* ======================================================
   9. ADVANCED VISUAL MODULES
====================================================== */

/* Mobile Phone Mockup */

  .mobile-phone {
    font-size: clamp(16px, 2vw, 18px) !important; /* base unit */
    position: relative;
    margin: auto;
    padding: 0.625em 0.625em 1.875em;
    width: 21.875em;
    height: 37.5em;
    box-shadow: 0 0 1.25em rgba(0,0,0,.3);
    border-radius: 1.875em;
    background: #014b9c;
    box-sizing: border-box;
  }

  .brove {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 9.375em;
    height: 1.25em;
    background: #014b9c;
    border-radius: 0 0 1.25em 1.25em;
  }

  .speaker {
    display: block;
    width: 3.75em;
    height: 0.3125em;
    background: #d2d2d2;
    margin: 0.3125em auto 0;
    border-radius: 1.25em;
  }

  .screen {
    width: 100%;
    height: 100%;
    background: #f2f2f2;
    border-radius: 1.875em;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .header-row {
    text-align: center;
    background: #f2f2f2;
    padding: 0.625em;
    box-shadow: 0.0625em 0.0625em 0.375em -0.3125em;
  }

  .super-header {
    display: flex;
    justify-content: space-between;
    padding: 0 0.625em;
    font-weight: bold;
    line-height: 1em;
    font-size: 1em;
  }

  .messages {
    display: flex;
    flex-direction: column;
    padding: 1.25em;
  }

  .the-number {
    font-weight: bold;
    color: black;
    line-height: 1em;
    font-size: 1em;
  }

  .the-icons {
    display: flex;
    align-items: center;
    column-gap: 0.25em;
  }
  .the-icons svg {
    width: 1em
  }

  .message {
    position: relative;
    max-width: 80%;
    font-size: 0.875em;
    line-height: 1.2em;
    margin: 0.1875em 0;
    padding: 0.625em 0.875em;
    border-radius: 1.125em;
    opacity: 0;
    transform: translateY(1.25em);
    animation: slideIn 0.4s forwards;
  }

  .message.incoming {
    background: #e5e5ea;
    align-self: flex-start;
  }

  .message.incoming::before {
    content: "";
    position: absolute;
    transform: rotate(-40deg);
    left: -1px;
    bottom: 0;
    width: 0;
    height: 0;
    border: 0.5em solid transparent;
    border-top-color: #e5e5ea;
    border-right: none;
    border-bottom: none;
  }

  .message.outgoing {
    background: #0b93f6;
    color: #fff;
    align-self: flex-end;
  }

  .message.outgoing::before {
    content: "";
    position: absolute;
    transform: rotate(40deg);
    right: -1px;
    bottom: 0;
    width: 0;
    height: 0;
    border: 0.5em solid transparent;
    border-top-color: #0b93f6;
    border-left: none;
    border-bottom: none;
  }

  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .loader {
    display: flex;
    height: 1.625em;
    align-items: center;
    margin-top: 0.625em;
    padding: 1.25em;
  }

  .typing {
    display: flex;
    margin: 0;
  }

  .typing .dot {
    width: 0.375em;
    height: 0.375em;
    margin: 0 0.1875em;
    background: #ccc;
    border-radius: 50%;
    opacity: 0.4;
    animation: blink 1s infinite;
  }

  .typing .dot:nth-child(2) { animation-delay: 0.2s; }
  .typing .dot:nth-child(3) { animation-delay: 0.4s; }

  @keyframes blink {
    0%, 80%, 100% { opacity: 0.4; }
    40% { opacity: 1; }
  }

  @media (max-width: 767px) {
    .mobile-phone {
      font-size: 12px !important;
    }
  }

/* Before / After Reveal */

  /* Animate custom properties */
  @property --r { syntax: '<length>'; inherits: true; initial-value: 0px; }
  @property --x { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
  @property --y { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
  @property --border-opacity { syntax: '<number>'; inherits: true; initial-value: 0; }

  .the-frame {
    position: relative;
    width: 100% !important;
    max-width: none;
    aspect-ratio: 16 / 9;
    --x: 10%;
    --y: 10%;
    --r: 0px;
    --border-opacity: 0;
    transition: --r 300ms cubic-bezier(.22,.61,.36,1),
                --border-opacity 300ms cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
  }

  /* Mobile: force square */
  @media (max-width: 768px) {
    .the-frame {
      aspect-ratio: 1 / 1;
    }
  }

  .the-frame::after {
    content: "";
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: calc(var(--r) * 2);
    height: calc(var(--r) * 2);
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    opacity: var(--border-opacity);
    pointer-events: none;
  }

  .anchor-hover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    display: block;
    border-radius: 30px;
  }

  .img-top {
    -webkit-mask-image: radial-gradient(circle at var(--x) var(--y),
      rgba(255,255,255,1) var(--r),
      rgba(255,255,255,0) calc(var(--r) + 30px));
    mask-image: radial-gradient(circle at var(--x) var(--y),
      rgba(255,255,255,1) var(--r),
      rgba(255,255,255,0) calc(var(--r) + 30px));
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  @media (prefers-reduced-motion: reduce) {
    .the-frame { transition: none; }
  }

  .frame-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    font-size: clamp(150px, 14vw, 300px);
    line-height: 1em;
    font-weight: 1000;
    color: var(--theme-main);
    mix-blend-mode: difference;
    margin-bottom: -20px;
    margin-left: -20px;
    letter-spacing: -.09em;
    transition: opacity .2s ease;
    pointer-events: none;
  }

  /* Mobile: much smaller text */
  @media (max-width: 768px) {
    .frame-text {
      font-size: clamp(48px, 18vw, 96px);
      margin-bottom: -6px;
      margin-left: -6px;
      letter-spacing: -.05em;
    }
  }

  .frame-text.before { opacity: 1; }
  .frame-text.after { opacity: 0; }

  .frame-wrapper:hover .frame-text.before { opacity: 0; }
  .frame-wrapper:hover .frame-text.after { opacity: 1; }

/* Step Process */

/* --- Step Process Graphic (Optimized Line) --- */

.step-item {
  display: flex;
  position: relative;
  padding-bottom: 5px;
  font-size: 12px;
}

/* Remove padding from the last item */
.step-item:last-child {
  padding-bottom: 0;
}

.step-number-wrapper {
  flex-shrink: 0;
  width: 50px;
  position: relative;
  margin-right: 20px;
  display: flex;
  justify-content: center;
}

/* The connecting line - drawn by each item except the last */
.step-item:not(:last-child) .step-number-wrapper::after {
  content: "";
  position: absolute;
  width: 5px;
  background-color: var(--theme-main);
  left: 50%;
  transform: translateX(-50%);
  top: 50px;
  height: calc(100% - 20px); 
  z-index: 1;
}


.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--theme-main); 
  border-radius: 50%; 
  display: flex;
  justify-content: center;
  align-items: center;
  color: white; 
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.step-content {
  color: white;
  padding-top: 10px;
  flex-grow: 1;
}

.step-heading {
  margin: 0;
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  color: white;
}

.step-description {
	color: white;
  margin: 0;
  font-size: 1.3em;
  line-height: 1.4;
  max-width: 400px;
}

/* Optional: Responsive adjustments */
@media (max-width: 450px) {
  .step-process-container {
    padding: 20px 15px;
  }
  .step-item {
    padding-bottom: 25px;
  }
  .step-number-wrapper {
     width: 40px;
     margin-right: 15px;
  }
  .step-item:not(:last-child) .step-number-wrapper::after {
     top: 40px;
     height: calc(100% - 15px);
  }
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.3em;
  }
  .step-heading {
    font-size: 1.5em;
  }
  .step-description {
    font-size: 1.2em;
  }
}