/* === SILVER WAVE SOUND === */
/* Typography: Montserrat | Color scheme: Deep black + Orange accent */

html {
  scroll-behavior: smooth;
}

/* --- VARIABLES --- */
:root {
  --nav-height: 64px;
  --accent: #ff7a00;
  --nav-bg: #111;
  --divider: #222;
  --white: #ffffff;
  --overlay-opacity: 0.25;
  --max-width: 1200px;
}

/* --- GLOBAL HEADINGS --- */
h1, h2, h3 {
  text-transform: uppercase;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 2vw + 1.8rem, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 1.4vw + 1rem, 2.6rem);
}

h3 {
  font-size: clamp(1.3rem, 0.8vw + 0.9rem, 1.8rem);
}


@media (max-width: 768px) {
  h3 { font-size: 1.4rem; }
}

/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body { height: 100%; }

body {
  margin: 0;
  padding-top: var(--nav-height);
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  background: #000;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--accent); }

/* --- FOCUS ACCESSIBILITY --- */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between; /* keeps links on left, button on right */
  align-items: center;
}

/* --- NAV LINKS --- */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  margin-left: -70px; /* ✅ move entire nav group further left */
}

.nav-links li {
  position: relative;
  padding: 0 14px; /* equal left/right spacing for even divider placement */
  display: flex;
  align-items: center;
}

.nav-links li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1em;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.nav-links a {
  text-transform: uppercase;
  font-size: 1.2rem; /* slightly larger */
  letter-spacing: 0.03em;
}

  /* --- Let's Chat button on far right --- */
  .chat-btn {
    order: 2;
    margin-left: auto;
    margin-right: 10px;
    align-self: center;
    z-index: 10001;
  }

/* --- SECTION DIVIDERS --- */
.section {
  position: relative;
  padding: 5.5rem 2rem;
  text-align: center;
}
.section + .section {
  border-top: 6px solid var(--divider);
  margin-top: 0;
  padding-top: 5.5rem;
  position: relative;
  z-index: 2;
}

/* --- UNIVERSAL OVERLAY SYSTEM --- */
.home::before, #services::before, #about::before, #chess::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity));
  z-index: 0;
}
.home > *, #services > *, #about > *, #chess > * {
  position: relative;
  z-index: 1;
}

/* --- HOME --- */
.home {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url('img/home-bg.jpg') center/cover no-repeat;
  padding: 40px 16px;
  text-align: center;
}
.home-logo {
  max-width: 370px;
  width: 100%;
  height: auto;
  margin-bottom: 0.8rem;
}
.tagline {
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2.3rem);
  margin: 0 0 3.5rem 0;
  font-weight: 400;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* --- SERVICES --- */
#services {
  background: url('img/services-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}
#services > p {
  font-size: clamp(1rem, 1.1vw + 0.6rem, 1.4rem);
  font-weight: 550;
  line-height: 1.6;
  max-width: min(80%, 750px);
  margin: 1.5rem auto 3rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.services-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.service-item h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
p, 
.service-item p,
.testimonial,
.about-list li {
  font-size: clamp(0.95rem, 0.5vw + 0.7rem, 1.1rem);
  line-height: 1.6;
}

/* --- WORK --- */
#work {
  background: url('img/work-bg.jpg') center/cover no-repeat;
  color: var(--white);
}
.work-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.work-columns > div {
  flex: 0 0 45%;
  max-width: 48%;
}
.audio-sample {
  position: relative;
  width: 85%;
  margin: 1.2rem auto;
  padding: 0.8rem 0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.audio-sample::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
}
.player-label {
  z-index: 1;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.audio-sample audio {
  z-index: 1;
  width: 100%;
  height: 32px;
  border-radius: 6px;
}

/* --- AUDIO PLAYER DARK THEME (KEEP SHAPE) --- */
audio {
  width: 100%;
  height: 32px; /* keep your existing size */
  outline: none;
  background: transparent; /* don't override your current background */
}

/* --- WebKit browsers (Chrome, Safari, Edge mobile) --- */
audio::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.6); /* dark background */
  color: #fff;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-mute-button {
  filter: invert(1) brightness(1.3); /* make icons/text light */
}

/* --- Firefox --- */
audio::-moz-media-controls {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto;
}
.testimonial {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 12px;
  font-style: italic;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
.testimonial:hover { transform: translateY(-4px); }
.testimonial-name {
  color: var(--accent);
  font-weight: 700;
  font-style: normal;
  margin-top: 0.5rem;
font-size: clamp(1rem, 0.5vw + 0.8rem, 1.2rem);
}

/* --- GIANT CHESS MEN --- */
#chess {
  background: url('img/chess-bg.jpg') center/cover no-repeat;
  padding: 3rem 1rem;
}

/* --- CAROUSEL --- */
.carousel {
  position: relative;
  width: 90%;
  max-width: 420px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}
.carousel-track img {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  border-radius: 12px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 42px;
  height: 60px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: all 0.3s ease;
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover {
  background: rgba(255, 81, 0, 0.8);
  transform: translateY(-50%) scale(1.05);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

@media (max-width: 768px) { .carousel { max-width: 340px; } }
@media (max-width: 480px) { .carousel { max-width: 260px; } }

.bandcamp-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #32cd32;
  border-radius: 12px;
  padding: 1.1em 1.8em;
  font-size: 1.2rem;
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(50, 205, 50, 0.35);
}

.bandcamp-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: #3fff3f;
  color: #3fff3f; /* ✅ Match text to hover border */
  box-shadow: 0 0 18px rgba(63, 255, 63, 0.6);
  transform: scale(1.08);
}
.gcm-quote {
  font-size: clamp(1rem, 0.9vw + 0.9rem, 1.4rem);
  font-weight: 600;
  font-style: italic;
  margin: 2rem auto;
  max-width: 800px;
  line-height: 1.6;
}

/* --- SOCIAL ICONS --- */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  z-index: 3;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.25s ease;
}
.social-icons a:hover {
  background: var(--accent);
  transform: scale(1.12);
}

/* --- GIANT CHESS MEN SOCIAL ICONS: GREEN HOVER --- */
#chess .social-icons a:hover {
  background: #32cd32;       /* same green tone as border */
  color: #fff;               /* keep icons readable */
  transform: scale(1.12);
  box-shadow: 0 0 14px rgba(50, 205, 50, 0.5);
}

/* --- ABOUT --- */
#about {
  position: relative;
  background: url('img/about-bg.jpg') center/cover no-repeat;
  padding: 6rem 1.5rem;
  text-align: center;
  color: #fff;
}
.about-overlay {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.about-content {
  background: rgba(0, 0, 0, 0.55);
  padding: 2.6rem 3rem;
  border-radius: 15px;
  display: inline-block;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
#about h2 {
  display: block;
  margin: 0 auto 1rem auto;
  text-align: center;
  width: fit-content;
  border-bottom: 2px solid var(--accent);
  font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem);
  line-height: 1.2;
}

.about-subtitle {
  text-align: center;
  font-size: clamp(1rem, 0.6vw + 0.8rem, 1.15rem);
  font-weight: 400;
  color: #ddd;
  margin-bottom: 2rem;
}
.about-list {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  text-align: left;
  display: inline-block;
}
.about-list li {
  position: relative;
  margin-bottom: 1.3rem;
  padding-left: 1.6rem;

}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* --- CONTACT --- */
#contact {
  background: url('img/work-bg.jpg') center/cover no-repeat;
}
form[name="contact"] {
  max-width: 720px;
  margin: 1rem auto;
  background: rgba(0, 0, 0, 0.25);
  padding: 1.2rem;
  border-radius: 8px;
}
form label {
  display: block;
  margin: 0.6rem 0 0.2rem;
  font-weight: 400;
font-size: clamp(0.9rem, 0.4vw + 0.7rem, 1rem);
}
form input, form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  margin-bottom: 0.6rem;
font-size: clamp(0.9rem, 0.4vw + 0.7rem, 1rem);
transition: all 0.25s ease;

}

form input::placeholder,
form textarea::placeholder {
  color: rgba(255, 255, 255, 0.75);  /* brighter white text */
  opacity: 1;  /* ensure full visibility on Safari */
  transition: color 0.25s ease;
}

form input:focus::placeholder,
form textarea:focus::placeholder {
  color: rgba(255, 255, 255, 0.5); /* slight fade when typing */
}

form input:focus,
form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(255, 81, 0, 0.5);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
  }

/* --- CONTACT SOCIAL WIDGETS --- */
.contact-widgets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}
.contact-widgets a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.contact-widgets a:hover {
  background: #ff5100;
  color: #fff;
  transform: scale(1.15);
}


@media (max-width: 600px) {
  .contact-widgets { gap: 1rem; margin-bottom: 2rem; }
  .contact-widgets a { width: 42px; height: 42px; font-size: 1.2rem; }
}

@media (hover: none) and (pointer: coarse) {
  .social-icons a:hover,
  #chess .social-icons a:hover {
    background: rgba(255, 255, 255, 0.15) !important; /* reset to base */
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
  }
}


/* --- FOOTER --- */
.footer {
  background: #111;
  text-align: center;
  padding: 2rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}

/* --- POPUPS --- */
.newsletter-popup.floating {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.newsletter-popup.floating.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.newsletter-popup-content {
  background: rgba(17, 17, 17, 0.95);
  border: 2px solid var(--accent);
  padding: 1.5rem 1.8rem;
  border-radius: 14px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.newsletter-popup-content h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.2rem;
}
.newsletter-popup-content input[type="email"] {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 0.8rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

/* --- MAILING LIST POPUP --- */
.mailinglist-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.mailinglist-popup.show {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mailinglist-popup-content {
  background: rgba(255,255,255,0.92);
  color: #111;
  border: 2px solid #ff5100;
  border-radius: 14px;
  padding: 2rem 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 10px 35px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}
.mailinglist-popup-content h3 {
  color: #111;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.6rem;
  border-bottom: 2px solid #ff5100;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
}
.mailinglist-popup-content p,
.mailinglist-popup-content label { color: #333; }
.mailinglist-popup-content input {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.15);
  color: #111;
}
.mailinglist-popup-content .privacy-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #444;
}

}

@media (max-width: 640px) {
  .newsletter-popup.floating {
    bottom: 15%;
    right: 50%;
    transform: translate(50%, 30px);
  }
  .newsletter-popup.floating.show {
    transform: translate(50%, 0);
  }
}

.nav-toggle {
  display: none;
}

/* === UNIFIED BUTTON STYLE — FINAL === */
button,
.chat-btn,
form button[type="submit"],
#contact-submit,
.newsletter-popup-content .cta-btn,
.mailinglist-popup-content .cta-btn {
  background: #FF5100;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.9rem 1.5rem;
  box-shadow: none;
}
.cta-btn {
  display: inline-block;
  background: #FF5100;
  color: #fff;
  border-radius: 12px;
  padding: 1.3em 2.3em;
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: none;
}
button:hover,
.cta-btn:hover,
.chat-btn:hover,
form button[type="submit"]:hover,
#contact-submit:hover,
.newsletter-popup-content .cta-btn:hover,
.mailinglist-popup-content .cta-btn:hover {
  background: #ff7a00;
  transform: translateY(0) scale(1.06);
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.65);
  color: #fff;
}
.mailinglist-popup-content {
  text-align: center;
}
.mailinglist-popup-content .cta-btn {
  display: block;
  margin: 1rem auto 0;
}

@media (max-width: 500px) {
  .mailinglist-popup .close-popup {
    right: 20px; /* keeps it inside smaller screens */
  }
}

/* === FIXED MAILING LIST CLOSE BUTTON === */
.mailinglist-popup-content {
  position: relative; /* ensure the X is positioned within the popup */
}

.mailinglist-popup-content .close-popup {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: #ff5100;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 20;
}

.mailinglist-popup-content .close-popup:hover {
  background: #ff5100;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(255, 81, 0, 0.6);
}


/* --- CHAT POPUP --- */
.chat-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 100000;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.chat-popup.show {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.chat-popup-content {
  position: relative;
  background: rgba(255,255,255,0.95);
  color: #111;
  border: 2px solid #ff5100;
  border-radius: 14px;
  padding: 2rem 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 10px 35px rgba(0,0,0,0.45);
  text-align: center;
}

.chat-popup-content h3 {
  color: #111;
  text-transform: uppercase;
  border-bottom: 2px solid #ff5100;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
}

.chat-popup-content label {
  display: block;
  text-align: left;
  margin-top: 0.8rem;
  color: #333;
}

.chat-popup-content input,
.chat-popup-content textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.85);
  color: #111;
  margin-top: 0.3rem;
}

.chat-popup-content .close-popup {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: #ff5100;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.chat-popup-content .close-popup:hover {
  background: #ff5100;
  color: #fff;
  transform: scale(1.1);
}


/* --- PRIVACY POPUP --- */
.privacy-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 100000;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.privacy-popup.show {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.privacy-popup-content {
  position: relative;
  background: rgba(255,255,255,0.96);
  color: #111;
  border: 2px solid #ff5100;
  border-radius: 14px;
  padding: 2rem;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 10px 35px rgba(0,0,0,0.45);
  text-align: left;
  line-height: 1.6;
}
.privacy-popup-content h3 {
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ff5100;
  display: inline-block;
  padding-bottom: 0.3rem;
}
.privacy-popup-content a {
  color: #ff5100;
}
.privacy-popup-content .close-popup {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  color: #ff5100;
  background: rgba(0,0,0,0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.privacy-popup-content .close-popup:hover {
  background: #ff5100;
  color: #fff;
  transform: scale(1.1);
}


/* === FIX: Restore Let's Chat button position in navbar === */
.chat-btn {
  margin-left: auto;        /* push it to the right edge */
  margin-right: 0;          /* ensure no unwanted centering */
  display: inline-flex;     /* keep proper button shape */
  align-items: center;
  justify-content: center;
  background: #FF5100;
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: none;         /* glow only on hover */
}

.chat-btn:hover {
  background: #ff7a00;
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.65);
  transform: scale(1.06);
}

/* === INITIAL PAGE LOAD ANIMATION === */
body.preload {
  overflow: hidden; /* prevent scroll during fade-in */
}

.preload .home,
.preload .navbar {
  opacity: 0;
  transform: translateY(10px);
}

.home,
.navbar {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-logo,
.tagline {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.loaded .home-logo,
body.loaded .tagline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}


/* === HONEYPOT FIELD (HIDDEN) === */
.hidden {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* --- UNIFIED MOBILE/TABLET ADJUSTMENTS (920px breakpoint) --- */
@media (max-width: 920px) {

  /* --- NAVIGATION --- */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    margin-left: 0; /* reset */
    background: rgba(17,17,17,0.95);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    gap: 1.6rem;
    display: none;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 998;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    z-index: 10000;
  }

  .nav-links li,
  .nav-links li + li::before {
    border: none;
    margin: 0;
    padding: 0;
    display: block;
  }

  .nav-links a {
    font-size: 1.4rem;
  }

  .nav-links li:last-child {
    margin-bottom: 2.5rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: var(--nav-bg);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.25s ease;
    order: -1;
    margin-left: 10px;
    margin-right: auto;
  }

  .nav-toggle:hover {
    background: #ff7a00;
    color: #fff;
    transform: scale(1.06);
    border-color: transparent;
  }

  .chat-btn {
    margin-left: auto;
    margin-right: 14px;
    align-self: center;
    z-index: 10001;
  }

  /* --- HOME SECTION --- */

.home {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;     /* remove extra top padding */
    padding-bottom: 2rem; /* gentle bottom breathing room */
}

  .home-logo {
    max-width: 260px;
    margin-bottom: 0.6rem;
    margin-top: 0;
  }

  .tagline {
    font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.8rem);
    margin-bottom: 2.2rem;
  }

  .cta-btn {
    padding: 1.1em 2em;
    font-size: 1.05rem;
  }

  /* --- SERVICES SECTION --- */
  #services h2 {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.4rem);
    position: relative;
    padding-bottom: 0.4rem;
  }

  #services h3 {
    font-size: clamp(1.2rem, 2vw + 0.8rem, 1.6rem);
    margin-top: 1.4rem;
  }

  #services > p {
    font-size: clamp(0.95rem, 1.5vw + 0.6rem, 1.1rem);
    line-height: 1.6;
    max-width: 90%;
  }

  .services-content,
  .testimonial-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- WORK / AUDIO SECTION --- */
  .work-columns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }

  .work-columns > div {
    flex: 1 1 auto;
    width: 100%;
    max-width: 700px;
  }

  .audio-sample {
    width: 90%;
    max-width: 600px;
    margin: 1rem auto;
  }

  .player-label {
    font-size: clamp(0.9rem, 1vw + 0.7rem, 1.1rem);
  }


/* === UNIFIED HEADING & TEXT SCALE (SUBTLE, CLEAN) === */
:root {
  --h2-min: 1.7rem;
  --h2-max: 2.2rem;
  --h3-min: 1.3rem;
  --h3-max: 1.7rem;
  --body-min: 0.95rem;
  --body-max: 1.05rem;
}

/* Section headings */
h2,
#services h2,
#work h2,
#about h2,
#contact h2 {
  font-size: clamp(var(--h2-min), 1.2vw + 1rem, var(--h2-max));
  line-height: 1.25;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.25rem;
  text-transform: uppercase;
}

/* Sub-headings (e.g., service titles, minor headers) */
h3,
.service-item h3,
.testimonial h3,
#about h3 {
  font-size: clamp(var(--h3-min), 1vw + 0.9rem, var(--h3-max));
  line-height: 1.3;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Body text & general paragraphs */
p,
#services > p,
.service-item p,
.about-subtitle,
.about-list li,
.testimonial,
.gcm-quote {
  font-size: clamp(var(--body-min), 0.6vw + 0.75rem, var(--body-max));
  line-height: 1.6;
  font-weight: 400;
}

/* Slightly tighter scale for narrow screens */
@media (max-width: 920px) {
  :root {
    --h2-max: 2rem;
    --h3-max: 1.55rem;
  }
}


