/*
Theme Name: Vincent DiMone Website
Theme URI: http://example.com/
Author: Aydan Salois
Author URI: http://example.com/
Description: Custom WordPress theme with hand-coded HTML/CSS/JS
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vincent-dimone-website
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nothing+You+Could+Do&family=Quicksand:wght@300..700&display=swap');

/* WebKit (Chrome, Safari) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb {
  background-color: #414143; 
  border: none;
}

html, body {
  background: transparent;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  font-variant-ligatures: common-ligatures;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #414143 transparent;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  border-radius: 2.5rem;
  top: 0;
  z-index: 6;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Nothing You Could Do', cursive;
  font-size: clamp(2.75rem, 4.5vw, 5rem);
  font-weight: 800;
  /* border-radius: 2.5rem 0 0 2.5rem; */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-right: none;
  width: 100%;
  padding: 0 2rem;
}

.menu-items {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  font-family: 'Quicksand', sans-serif;
  list-style: none;
  min-width: 35.5rem;
  width: 100%;
  border: none;
  border-radius: 0 0 1.5rem 1.5rem;
  padding: 0rem;
  gap: 4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pill-selector {
  position: absolute;
  height: 2rem;
  border-radius: 1rem;
  background: #333;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.4s cubic-bezier(0.75, -0.25, 0.25, 1.25), width 0.4s cubic-bezier(0.75, -0.25, 0.25, 1.25);
  z-index: 0;
}

.menu-items li {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-items li a {
  text-decoration: none;
  position: relative;
  width: auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  transition: color 0.3s ease;
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  z-index: 1;
  font-weight: 600;
}

.menu-items li a.active {
  color: #fff;
}

section {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#hero {
  background-image: url(../images/vibrant-hero-three.avif);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner {
  position: absolute;
  top: 25%;
  display: flex;
  flex-direction: column;
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: fit-content;
  font-size: clamp(2.5rem, 3vw, 4rem);
  gap: 5rem;
}

.banner-text {
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  font-weight: 900;
  text-shadow: 2px 2px 3px #333;
  color: whitesmoke;
  letter-spacing: 1.2px;
}

.get-started {
  text-decoration: none;
  color: whitesmoke;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background-color: #01317d;
  padding: 1rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
  text-shadow: none;
  z-index: 5;
  transition: background-color 0.5s, color 1s;
  letter-spacing: 1.2px;
  font-size: clamp( 1.75rem, 2vw, 2.25rem);
}

.get-started:hover {
  background-color: white;
  color: #01317d;
}

.blue-text {
  color: #01317d;
  text-shadow: 2px 2px 3px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeIn 3s ease-in-out forwards;
}

.hero-footer {
  position: absolute;
  bottom: 3%;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.name {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 1.7vw, 2.25rem);
  font-weight: 700;
  padding: 1rem;
  gap: 1rem;
}

.name img {
  height: 200px;
  width: 200px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 1px 1px 5px rgba(0, 0 , 0 , 1);
}

.name-text {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  letter-spacing: 1.1px;
}

.name-text-name {
  color: whitesmoke;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.3);
}

.creds {
  padding-top: 0.5rem;
  font-size: 1.15rem;
  color: black;
}

.quote {
  font-size: clamp(1.5rem, 1.75vw, 2rem);
  font-weight: bold;
  font-family: 'Nothing You Could Do', sans-serif;
  text-align: right;
}

#about {
  background-image: url(../images/image_upscaled.avif);
  flex-direction: column;
  align-items: center;
  position: relative;
}

.services-title {
  height: 25vh;
}

.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Quicksand', sans-serif;
  gap: 1rem;
  color: black;
  background: linear-gradient(135deg, rgba(255, 255 , 255 , 0.2), rgba(255,255,255,0.0));
  box-shadow: 8px 10px 14px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  padding: 1.75rem;
  border-radius: 3rem;
}

.services h2 {
  font-size: clamp(1.75rem, 2vw, 2.5rem);
  font-family: 'Inter', sans-serif;
  letter-spacing: 1.2px;
  width: 100%;
}

.services p {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 500;
  width: 100%;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1.2px;
}

.separator {
  width: 100%;
  height: 1px;
  background-color: black;
}

.services-sections {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.separator-vert {
  width: 1px;
  align-self: stretch;
  background-color: black;
  margin: 0 2rem;
}

.place-holder {
  flex: 1;
  padding: 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  font-weight: 600;
  gap: 1rem;
  align-self: stretch;
}

.info-cont {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: .75rem;
  padding: 0rem;
}

.info-cont p {
  font-weight: 500;
  color: black;
  font-size: clamp(1.25rem, 1.3vw, 2rem);
  text-align: center;
}

.licenses em {
  font-size: clamp(1rem, 1vw, 1.25rem);
}

.services-sections ul {
  font-size: clamp(1.15rem, 1.3vw, 1.5rem);
  white-space: nowrap;
  display: flex;
  flex-direction: column-reverse;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  letter-spacing: 1.2px;
  list-style: none;
  padding: 1rem;
  height: 100%;
  /* flex: 4; */
}

.services-sections ul li {
  padding: 1rem;
  color: white;
  /* border: 1px solid #666; */
  border-radius: 1rem;
  text-align: left;
  /* width: 100%; */
  margin: .5rem 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  /* box-shadow: 0 2px 3px 0 rgba(255, 255, 255, 0.37); */
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* moving spotlight that follows the cursor */
.services-sections ul li::before, .links ul li::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 20%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.services-sections ul li:hover::before, .links ul li:hover::before {
  opacity: 1;
}

.message p{
  font-weight: 300;
  letter-spacing: 1.2px;
  font-size: clamp(1.25rem, 1.25vw, 1.5rem);
}

.links {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.links ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  padding: 0;
  width: 100%;
}

.links ul li {
  display: flex;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  background: linear-gradient(
    135deg,
    rgba(97, 127, 143, 0.9),
    rgba(97, 127, 143, 0.8)
  );
  padding: 0;
}

.links ul li a {
  text-decoration: none;
  color: white;
  height: 100%;
  width: 100%;
  padding: 1rem 2rem;
}

.first-color {
  background: linear-gradient(
    135deg,
    rgba(145, 168, 78, 0.9),
    rgba(145, 168, 78, 0.8)
  );
}

.second-color {
  background: linear-gradient(
    135deg,
    rgba(129, 154, 100, 0.9),
    rgba(129, 154, 100, 0.8)
  );
}

.third-color {
  background: linear-gradient(
    135deg,
    rgba(113, 141, 121, 0.9),
    rgba(113, 141, 121, 0.8)
  );
}

.fourth-color {
  background: linear-gradient(
    135deg,
    rgba(97, 127, 143, 0.9),
    rgba(97, 127, 143, 0.8)
  );
}

.dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background-color: #666;
}

#contact {
  background-image: url(../images/computer-_1_.avif);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-positioner {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0, 0 , 0 , .5), rgba(0,0,0,0.4));
  box-shadow: -8px 10px 14px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  padding: 1.75rem;
  gap: 2rem;
  border-radius: 3rem;
}

.contact-wrapper div h2 {
  min-height: 3rem;
  border-bottom: 1px solid white;
  width: 100%;
  padding: .5rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.business-card, .form-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.18);
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: white;
  font-size: clamp(1.5rem, 1vw, 2rem);
  border-radius: 1.5rem;
  padding: 1.25rem;
  max-width: 55rem;
  width: 100%;
}

.business-card {
  white-space: nowrap;
}

.form-card .privacy {
  font-style: italic;
  font-weight: 450;
  width: 100%;
  font-size: clamp(1rem, 1vw, 1.25rem);
  white-space: normal;
  overflow-wrap: break-word;
}

table {
  border-spacing: 0 .5rem;
  border-collapse: separate;
  width: 100%;
}

table th {
  padding-right: 1rem;
}

table tr td a {
  text-decoration: none;
  color: white;
}

.right {
  text-align: right;
  padding-right: 1rem;
}

th svg {
  fill: #fff;
  height: 30px;
  width: 30px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

/* Additional fade-in timings */
.animate-fade-in-fast {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.animate-fade-in-medium {
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}

.animate-fade-in-slow {
  opacity: 0;
  animation: fadeIn 1s ease-in 1.25s forwards;
}

.animate-fade-in-slow-two {
  opacity: 0;
  animation: fadeIn 1s ease-in 2.25s forwards;
}

.animate-fade-in-very-slow {
  opacity: 0;
  animation: fadeIn 1s ease-in 3.25s forwards;
}

.frame {
  height: 0.5rem;
  width: 100vw;
  background-color: #333;
}

.bold {
  font-weight: 900;
}

/* --- Responsive + WP admin bar adjustments (mobile-only overrides; desktop untouched) --- */

/* Safe anchor offset based on fixed nav height (set via JS) */
html { scroll-padding-top: var(--nav-h, 0px); }
/* Also let sections account for the fixed nav when targeted directly */
section { scroll-margin-top: var(--nav-h, 0px); }

/* If logged in, WordPress adds an admin bar. Nudge the fixed nav below it. */
body.admin-bar .nav-menu { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .nav-menu { top: 46px; }
}

/* Tablet and down */
@media (max-width: 900px) {

  .nav-menu {
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    border-radius: 1.25rem;
  }

  .logo {
    font-size: clamp(1.75rem, 6vw, 3rem);
    padding: 0.5rem 1rem;
  }

  .menu-items {
    min-width: auto;           /* remove desktop constraint */
    gap: 1rem;
    padding: 0.25rem;
    border-radius: 0 0 1rem 1rem;
    overflow-x: auto;          /* allow horizontal scroll if needed */
    -webkit-overflow-scrolling: touch;
  }

  .menu-items li a {
    font-size: clamp(1.5rem, 2.8vw, 1.25rem);
    padding: 0.5rem 0.75rem;
  }

  .pill-selector {
    height: 1.75rem;
    border-radius: 0.875rem;
  }

  section {
    height: auto;             /* content can grow */
    width: 100%;              /* avoid 100vw jitter on mobile */
    min-height: 100vh;        /* fallback for older browsers */
    min-height: 100svh;       /* stable viewport height: prevents jumpiness when URL bars hide/show */
  }

  /* On mobile we don't offset anchors by nav height; user handles with margins */
  html { scroll-padding-top: 0 !important; }
  section { scroll-margin-top: 0 !important; }

  /* Make section children stretch to consume the full section min-height */
  section { align-items: stretch; }

  /* About/services wrapper should fill the section height */
  #about .services { 
    min-height: inherit;        /* inherit the section's min-height */
    align-self: stretch;        /* stretch across the section's cross-axis */
  }

  /* Contact wrappers should fill the section height */
  .contact-positioner { 
    min-height: inherit;        /* take on the section's min-height */
  }
  .contact-wrapper { 
    min-height: inherit;        /* fill the parent */
    align-self: stretch;        /* stretch across the section's cross-axis */
  }

  #hero {
    background-position: 35%;
  }

  #hero .banner {
    top: 23%;
    /* margin-top: 9.25rem; */
  }

  .banner-content {
    gap: 1rem;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  }

  .banner-text {
    font-size: 2.6rem;
    white-space: wrap;
    padding: 1rem;
    text-align: center;
  }

  .get-started {
    font-size: clamp(1.75rem, 3.2vw, 1.35rem);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
  }

  .hero-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin: 2rem auto 0;
    gap: 0.25rem;
    flex-direction: column;
    align-items: center;
  }

  .name {
    gap: 0.75rem;
    font-size: clamp(1.5rem, 3.2vw, 1.35rem);
    white-space: nowrap;
  }

  .name img {
    width: 110px;
    height: 110px;
  }

  .quote {
    text-align: center;
    font-size: clamp(1.4rem, 3.5vw, 1.4rem);
    padding: 0 0.5rem;
    white-space: nowrap;
  }

  .services-title {
    height: 0;
  }

  /* Services */
  .services {
    width: 100vw;
    height: auto;
    padding: 1rem;
    border-radius: 0;
    gap: 0.75rem;
    box-shadow: none;
    background: none;
    border: none;
    backdrop-filter: blur(3px);
    text-align: center;
    color: #333;
  }

  .services h2 {
    font-size: clamp(1.5rem, 3.8vw, 1.5rem);
    margin-top: 9rem;
    font-weight: 550;
  }

  .services p { /* subtitle */
    font-size: clamp(1.2rem, 3.2vw, 1.2rem);
  }

  .services-sections {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .separator-vert { display: none; }

  .services-sections ul {
    width: 100%;
    padding: 0;
    gap: 0;
    font-size: clamp(1rem, 3.2vw, 1.15rem);
    white-space: unset;
    justify-content: flex-end;
    height: fit-content;
  }

  .services-sections ul li {
    padding: 0.85rem 1rem;
    text-align: center;
    white-space: wrap;
    width: 100%;
    margin: 0.25rem 0;
    font-size: 1.2rem;
    color: whitesmoke;
  }

  .place-holder {
    margin-top: .5rem;
    align-items: stretch;
    white-space: normal;
    gap: 1rem;
    padding: 0;
  }

  .info-cont {
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.4rem;
  }

  .info-cont p, .info-cont p em {
    font-size: 1.4rem;
    color: #333;
  }

  .message p br {
    display: none;
  }

  .message p {
    font-size: 1.4rem;
    white-space: wrap;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 0.75rem;
    line-height: 26px;
    font-weight: 350;
    color: whitesmoke;
    text-align: center;
  }


  .links ul li a {
    display: block;
    padding: 0;
    font-size: 1.5rem;

  }

  .links ul li {
    margin-bottom: 0;
    margin-top: 0.4rem;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.3)
    );
    border: none;
    
  }

  /* Contact */
  .contact-positioner {
    margin-top: 0;
    height: inherit;
    min-height: inherit;
    border: none;
    }

  .contact-wrapper {
    width: 100vw;
    height: inherit;
    gap: 1rem;
    border-radius: 0;
    padding: 1rem;
    border: none;
    justify-content: flex-end;
    box-shadow: none;
    backdrop-filter: blur(5px);
    background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, 0.2));
  }

  .business-card, .form-card {
    width: 100%;
    max-width: none;
    padding: 1rem;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(5px);
    /* font-size: clamp(1.1rem, 3.2vw, 1.25rem); */
  }

  .contact-wrapper div h2 {
    white-space: nowrap;
    font-size: 1.75rem;
  }

  .business-card {
    margin-top: 9rem;
  }

  table { width: 100%;
  }
  table th { padding-right: 0.5rem; }
  table tr {
    display: grid;
    grid-template-columns: 32px 1fr;          /* icon | label */
    grid-template-areas: 
      "icon label"
      "value value";                         /* value spans both columns */
    align-items: center;
    row-gap: 0.75rem;
    column-gap: 0.5rem;
    text-align: left;
    padding: 0.15rem 0;
    margin-bottom: 2rem;
  }

  /* No extra space after the last row */
  table tbody tr:last-child,
  table tr:last-child { 
    margin-bottom: 0; 
  }

  /* Place the cells into the grid areas */
  table tr > th { 
    grid-area: icon; 
    padding: 0; 
    justify-self: end;
    display: flex;
    justify-content: center;
    align-items: center; 
  }

  table tr > td.right { 
    grid-area: label; 
    padding-right: 0;
    height: 100%;
    display: flex;
    align-items: center;
  }

  td span {
    font-size: 1.5rem;
  }
  
  table tr > td:not(.right) { 
    grid-area: value; 
    text-align: left;
    padding-left: .5rem;
    font-size: 1.4rem;
    white-space: wrap;
    font-weight: 400;
  }

  /* Tweak icon size on mobile */
  table tr > th svg { width: 35px; height: 35px; }

  .right {
    text-align: left;
  }

  .form-card .privacy {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    line-height: 1.5;
  }

  /* Scrollbar subtler on phones */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-thumb { background-color: #414143; }
}

/* Phone-focused tightening */
@media (max-width: 600px) {
  .nav-menu {
    width: 100%;
  }
  .logo { 
    font-size: clamp(1.5rem, 11.6vw, 3.5rem);
    font-weight: 900;
  }
  .pill-selector { height: 2.25rem; border-radius: 0.75rem; }
  .banner-content { gap: 0.75rem; }
  .name img { width: 95px; height: 95px; }
}

@media (max-width: 375px) {
  .nav-menu {
    width: 100%;
  }

  .logo { 
    font-size: clamp(1.5rem, 11vw, 3.5rem);
    padding: 0.25rem 1rem;
    font-weight: 900;
  }

  .menu-items li a {
    font-size: clamp(1.1rem, 2.8vw, 1.25rem);
  }

  .pill-selector { 
    height: 2rem; 
    border-radius: 0.75rem; 
  }

  .banner-content { 
    gap: 1.25rem; 
  }

  .banner-text {
    padding: 0.5rem;
    font-size: 2.5rem;
  }

  .name {
    gap: 1rem;
  }

  .name img { 
    width: 90px; height: 90px; 
  }

  .name-text-name {
    font-size: 1.4rem;
  }

  .creds {
    font-size: 1rem;
  }

  .hero-footer {
    gap: 0;
    margin-bottom: 0;
  }

  .quote {
    font-size: 1.3rem;
  }

  table tr > td:not(.right) { 
    font-size: 1.3rem;
  }

}