/* --- Base Reset, Body & Variables --- */
:root {
  --gold: #f9a825;
  --gold-darker: #d4af37;
  --black: #000000;
  --dark-gray: #1a1a1a;
  --white: #ffffff;
  --gray-text: #ccc;
  --text-light: #e5e7eb;
  --light-bg: #faf7f2;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* --- Main Layout --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 150px;
}
.contact-page-hero {
  min-height: 100vh;
  justify-content: center;
}
.bg-img {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  opacity: 0.8;
}
.mobile-bg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(249, 168, 37, 0.15) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: -1;
}

/* --- Floating Elements --- */
.floating-element {
  position: absolute;
  background: rgba(249, 168, 37, 0.08);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  will-change: transform;
}
.floating-element:nth-child(3) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
}
.floating-element:nth-child(4) {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 10%;
}
.floating-element:nth-child(5) {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 20%;
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease,
    padding 0.4s ease, transform 0.4s ease;
  transform: translateY(0);
}
.header.scrolled {
  background-color: rgba(18, 18, 18, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.171);
  border-radius: 0 0 50px 50px;
  transform: translateY(-0.5rem);
}
.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.8rem 2rem;
  transition: padding 0.4s ease;
  margin-top: 1rem;
}
.header.scrolled .navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-top: 0;
}
.logo-link {
  grid-column: 1;
}
.logo {
  height: 100px;
  width: auto;
  transition: transform 0.3s ease, height 0.4s ease;
}
.header.scrolled .logo {
  height: 85px;
}
.logo:hover {
  transform: scale(1.05);
}

/* --- Hamburger Menu (Mobile-First) --- */
.hamburger-btn {
  display: block;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}
.bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--white);
  transition: all 0.3s ease-in-out;
}
.hamburger-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* *
 * *** THE FINAL FIX IS HERE ***
 * We are making the "hide" rule more specific.
 * ".btn.btn-nav-desktop" is stronger than ".btn"
 * This will hide the button on mobile.
*/
.nav-links-desktop,
.btn.btn-nav-desktop {
  display: none;
}
/* * *** END OF FIX ***
 *
*/

/* --- Mobile Navigation Menu --- */
.nav-menu-mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transition: left 0.4s ease-in-out;
  z-index: 1000;
}
.nav-menu-mobile.active {
  left: 0;
}
.nav-menu-mobile a {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}
.nav-menu-mobile a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-menu-mobile a:hover {
  color: var(--gold);
}
.nav-menu-mobile a:hover::after {
  width: 100%;
}

/* --- Buttons --- */
/* This is the .btn rule that was causing the problem */
.btn {
  background-color: var(--gold);
  color: var(--black);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}
.btn:hover::before {
  left: 100%;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(249, 168, 37, 0.4);
}

.btn-nav-mobile {
  font-size: 1.5rem;
  padding: 0.75rem 2rem;
}

/* We don't need a rule for .btn-nav-desktop here anymore */
/* It is hidden by the .btn.btn-nav-desktop rule */

/* --- Hero Content Styling --- */
.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  z-index: 10;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.hero-content p {
  font-size: 1rem;
  max-width: 600px;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}
.btn-hero {
  font-size: 1.1rem;
  padding: 0.8rem 2.5rem;
  font-weight: 700;
}

/* ============================================ */
/* NEW CONTACT PAGE STYLES */
/* ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
  align-items: center;
}
.contact-text {
  text-align: center;
}
.contact-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.contact-text h1 span {
  display: block;
  color: var(--gold);
}
.contact-text p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contact-text .btn-hero {
  margin-top: 1rem;
}
.contact-form-container {
  background: var(--dark-gray);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form-container h2 {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
  flex: 1;
}
.form-row .form-group {
  margin-bottom: 0;
}
.form-row {
  margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #2a2a2a;
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-text);
  opacity: 0.7;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(249, 168, 37, 0.3);
}
.contact-form-container .btn-hero {
  width: 100%;
}

/* --- Location Section --- */
.location-section {
  padding: 4rem 2rem;
  background-color: var(--white);
  color: var(--black);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.details-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-details-card {
  background-color: var(--gold);
  color: var(--black);
  padding: 2rem;
  border-radius: 15px;
}
.contact-details-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--black);
}
.contact-details-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}
.details-social {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 1.5rem;
}
.details-social h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}
.details-social a {
  display: inline-block;
  margin-right: 1.5rem;
  color: var(--black);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.details-social a:hover {
  color: #333;
}
.contact-quote-card {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
}
.contact-quote-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.4;
}

/* --- Scroll Animation Classes --- */
.hidden-on-load {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll Top Button --- */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--gold);
  color: var(--black);
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
  width: 50px;
  height: 50px;
  transition: background-color 0.3s, opacity 0.3s, transform 0.3s;
  box-shadow: 0 5px 15px rgba(249, 168, 37, 0.4);
}
#scrollTopBtn:hover {
  background-color: var(--gold-darker);
  transform: translateY(-3px);
}

/* --- Footer --- */
footer {
  background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);
  color: #f9f9f9;
  padding: 60px 8%;
  position: relative;
  overflow: hidden;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}
.footer-logo h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-darker);
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.footer-logo p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}
.footer-links h3 {
  color: var(--gold-darker);
  margin-bottom: 15px;
  font-size: 18px;
  position: relative;
}
.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links ul li a {
  color: var(--gray-text);
  text-decoration: none;
  transition: 0.3s;
}
.footer-links ul li a:hover {
  color: var(--gold-darker);
  transform: translateX(4px);
}
.footer-social h3 {
  color: var(--gold-darker);
  margin-bottom: 15px;
}
.social-icons {
  display: flex;
  gap: 15px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-gray);
  border: 1px solid var(--gold-darker);
  border-radius: 50%;
  color: var(--gold-darker);
  font-size: 18px;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  background: var(--gold-darker);
  color: var(--black);
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--gold-darker);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}
.footer-bottom span {
  color: var(--gold-darker);
  font-weight: 500;
}

/* ============================================ */
/* --- Responsive Media Queries --- */
/* ============================================ */

/* --- Tablet (768px) --- */
@media (min-width: 768px) {
  .logo {
    height: 120px;
  }
  .header.scrolled .logo {
    height: 95px;
  }
  .hero-content h1 {
    font-size: 4.5rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .contact-text h1 {
    font-size: 4.5rem;
  }
  .contact-text p {
    font-size: 1.1rem;
  }
  .contact-form-container h2 {
    font-size: 2.25rem;
  }
  .form-row {
    flex-direction: row;
  }
  .contact-quote-card h3 {
    font-size: 2rem;
  }
}

/* --- Desktop (1024px) --- */
@media (min-width: 1024px) {
  .bg-img {
    display: block;
  }
  .mobile-bg {
    display: none;
  }
  .navbar {
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    padding: 2rem 3rem;
  }
  .logo {
    height: 150px;
  }
  .header.scrolled .logo {
    height: 100px;
  }
  .hamburger-btn {
    display: none;
  }
  .nav-menu-mobile {
    display: none;
  }

  /* --- DESKTOP RULES (These override the mobile-first 'display: none') --- */
  
  .navbar .nav-links-desktop {
    display: flex;
    justify-content: center;
    gap: 3rem;
    grid-column: 2;
  }
  .nav-links-desktop a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
  }
  .nav-links-desktop a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
  }
  .nav-links-desktop a:hover {
    color: var(--gold);
  }
  .nav-links-desktop a:hover::after {
    width: 100%;
  }
  .nav-links-desktop a.active {
    color: var(--gold);
  }
  .nav-links-desktop a.active::after {
    width: 100%;
  }

  /* * This rule is now ALSO more specific.
   * ".navbar .btn.btn-nav-desktop" (0,3,0)
   * is stronger than our mobile "hide" rule ".btn.btn-nav-desktop" (0,2,0)
   * This will make it visible on desktop.
  */
  .navbar .btn.btn-nav-desktop {
    display: inline-block;
    grid-column: 3;
    z-index: 1;
    font-size: 1rem;
    padding: 0.75rem 2rem;
  }

  /* --- End Desktop Nav Rules --- */

  .hero-content {
    padding: 2rem 5rem;
  }
  .hero-content h1 {
    font-size: 5.5rem;
  }
  .hero-content p {
    font-size: 1.25rem;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-text {
    text-align: left;
  }
  .contact-text h1 {
    font-size: 5.5rem;
  }
  .contact-text p {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.1rem;
  }
  .location-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .map-container {
    height: 100%;
    min-height: 550px;
  }
}