/* =========================================
   HIDALGO ENTERPRISES - [$10k HYPER-LUXURY]
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@200;300;400;500;600&display=swap');

:root {
  --bg-base: #030403;
  /* Obsidian */
  --surface: #080a08;
  --surface-border: rgba(228, 204, 165, 0.12);
  --gold-base: #C6A87C;
  --gold-light: #E4CCA5;
  --gradient-gold: linear-gradient(135deg, #E4CCA5 0%, #C6A87C 50%, #9A7B53 100%);
  --text-main: #F7F5F0;
  --text-muted: #8F938F;
  --ease-slow: 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-base);
  background-image: radial-gradient(circle at 50% 0%, rgba(198, 168, 124, 0.03) 0%, transparent 80%);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
  /* We could add custom cursor here */
}

::selection {
  background: var(--gold-light);
  color: var(--bg-base);
}

/* ================= HEADER & NAV ================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 6%;
  background: rgba(3, 4, 3, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--ease-slow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 55px;
  filter: brightness(0) invert(1) opacity(0.9);
  transition: transform var(--ease-fast);
}

.logo:hover img {
  transform: scale(1.05);
}

.brand h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.brand p {
  margin: 0;
  font-size: 8px;
  color: var(--gold-base);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 400;
  opacity: 0.7;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 55px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 300;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-main);
  transition: var(--ease-fast);
  position: relative;
  padding-bottom: 8px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gradient-gold);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ================= DROPDOWN ================= */

.dropdown {
  position: relative;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 45px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 25px);
  left: -35px;
  background: rgba(8, 10, 8, 0.98);
  backdrop-filter: blur(25px);
  border: 1px solid var(--surface-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
  padding: 20px 0;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--ease-fast);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 16px 45px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 10px;
  font-weight: 400;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: transparent;
  color: var(--gold-light);
  padding-left: 55px;
  /* elegant indent on hover */
}

/* ================= HERO ================= */

.hero {
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(rgba(3, 4, 3, 0.4), rgba(3, 4, 3, 0.98)), url("../images/ongle.png") center/cover no-repeat;
  background-attachment: fixed;
  /* Parallax */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, transparent, var(--bg-base));
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(55px, 8vw, 110px);
  margin-bottom: 30px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 4px;
  line-height: 1.05;
  position: relative;
  z-index: 2;
  text-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  animation: fadeUp 2s var(--ease-slow) forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero h1 span {
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 15px;
  font-weight: 300;
  max-width: 600px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  animation: fadeUp 2s var(--ease-slow) 0.3s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero button {
  padding: 22px 60px;
  border: 1px solid rgba(198, 168, 124, 0.4);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 400;
  cursor: pointer;
  transition: var(--ease-slow);
  position: relative;
  overflow: hidden;
  z-index: 2;
  animation: fadeUp 2s var(--ease-slow) 0.5s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease-slow);
}

.hero button:hover {
  color: var(--bg-base);
  border-color: transparent;
}

.hero button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

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

/* ================= CATEGORIES & GLOBALS ================= */

.categories {
  padding: 180px 6%;
  text-align: center;
  position: relative;
  z-index: 10;
}

.categories h2,
.about h2,
.about-page h1,
.contact-page h1,
.shop-page h1 {
  font-family: var(--font-heading);
  color: var(--text-main);
  display: inline-block;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 120px;
  font-size: 48px;
  position: relative;
}

.categories h2::after,
.about h2::after,
.about-page h1::after,
.contact-page h1::after,
.shop-page h1::after {
  content: '';
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gradient-gold);
}

.cards,
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  max-width: 1500px;
  margin: 0 auto;
}

.card,
.product {
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
  transition: var(--ease-slow);
  padding-bottom: 40px;
  background: transparent;
  position: relative;
  /* Scroll reveal start state */
  opacity: 0;
  transform: translateY(50px);
}

/* Fallback for pages without the JS observer */
.card,
.product {
  opacity: 1;
  transform: translateY(0);
}

/* New selector to be added by JS */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.card:hover,
.product:hover {
  transform: translateY(-15px);
}

.card-img-wrapper,
.product-img-wrapper {
  width: 100%;
  height: 480px;
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
}

.card-img-wrapper::after,
.product-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 1px rgba(228, 204, 165, 0.08);
  /* faint gold inner border */
  z-index: 1;
  pointer-events: none;
  transition: var(--ease-slow);
}

.card img,
.product img,
.card-img-wrapper img,
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1), filter 2s;
  filter: brightness(0.7) contrast(1.1) grayscale(30%) sepia(20%) hue-rotate(-10deg);
  margin-bottom: 0;
}

.card:hover .card-img-wrapper::after,
.product:hover .product-img-wrapper::after {
  box-shadow: inset 0 0 0 1px rgba(228, 204, 165, 0.4);
}

.card:hover img,
.product:hover img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.1) grayscale(0%) sepia(0%);
}

.card h3,
.product h3 {
  font-size: 24px;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: 3px;
  transition: color var(--ease-fast);
  margin: 0 0 15px 0;
}

.card p.discover,
.product p.discover {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold-base);
  margin: 0;
  opacity: 0;
  transform: translateY(15px);
  transition: var(--ease-slow);
}

.card:hover h3,
.product:hover h3 {
  color: var(--gold-light);
}

.card:hover p.discover,
.product:hover p.discover {
  opacity: 1;
  transform: translateY(0);
}

/* ================= SHOP SPECIFIC ================= */

.price {
  color: var(--gold-base);
  font-weight: 300;
  margin: 15px 0 25px;
  font-size: 15px;
  letter-spacing: 3px;
}

.product button {
  margin-top: 20px;
  width: 100%;
  padding: 20px 0;
  border: 1px solid rgba(198, 168, 124, 0.3);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: var(--ease-slow);
  position: relative;
  overflow: hidden;
}

.product button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease-slow);
}

.product button:hover {
  color: var(--bg-base);
}

.product button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ================= ABOUT SECTIONS ================= */

.about {
  padding: 160px 20px;
  text-align: center;
  max-width: 900px;
  margin: auto;
}

.about p,
.about-page p {
  font-size: 15px;
  line-height: 2.4;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 1px;
}

.about-page {
  padding: 200px 6% 160px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

/* ================= CONTACT PAGE ================= */

.contact-page {
  padding: 180px 6%;
  text-align: center;
}

.contact-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 110px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 100px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.contact-form {
  background: var(--surface);
  padding: 80px 60px;
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 550px;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-gold);
}

.contact-form input,
.contact-form textarea {
  padding: 20px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--ease-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--gold-base);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 10px;
}

.contact-form button {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(198, 168, 124, 0.4);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  cursor: pointer;
  transition: var(--ease-slow);
  position: relative;
  overflow: hidden;
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease-slow);
}

.contact-form button:hover {
  color: var(--bg-base);
}

.contact-form button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-info {
  max-width: 400px;
  margin-top: 30px;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--text-main);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 3px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 2.2;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ================= WHATSAPP BUTTONS ================= */

.whatsapp-btn {
  display: inline-block;
  margin-top: 50px;
  background: transparent;
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #25D366;
  text-decoration: none;
  padding: 22px 55px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  transition: var(--ease-slow);
  position: relative;
  overflow: hidden;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 211, 102, 0.1);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease-slow);
}

.whatsapp-btn:hover {
  border-color: #25D366;
  color: #25D366;
}

.whatsapp-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
  background: rgba(37, 211, 102, 0.15);
}

/* ================= PRODUCT MODAL DETAILS ================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 4, 3, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--ease-slow);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  width: 95%;
  max-width: 1100px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: row;
  position: relative;
  transform: translateY(60px) scale(0.98);
  transition: transform var(--ease-slow);
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.9);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 35px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 35px;
  font-weight: 200;
  cursor: pointer;
  z-index: 10;
  transition: var(--ease-fast);
}

.close-btn:hover {
  color: var(--gold-light);
  transform: rotate(90deg);
}

.modal-left {
  width: 50%;
  background: #000;
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.modal-right {
  width: 50%;
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.modal-right h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--gold-base);
  margin-top: 0;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 3px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-section {
  margin-bottom: 35px;
}

.modal-section h4 {
  color: var(--text-main);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(228, 204, 165, 0.15);
  padding-bottom: 8px;
  display: inline-block;
}

.modal-section p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 2;
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.5px;
}

.modal-whatsapp-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid #25D366;
  color: #25D366;
  text-decoration: none;
  padding: 22px 30px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: var(--ease-slow);
  position: relative;
  overflow: hidden;
}

.modal-whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 211, 102, 0.1);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease-slow);
}

.modal-whatsapp-btn:hover {
  color: #25D366;
  border-color: #25D366;
}

.modal-whatsapp-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
  background: rgba(37, 211, 102, 0.15);
}

/* ================= MULTI-COLUMN FOOTER ================= */

.site-footer,
footer {
  background-color: var(--surface);
  color: var(--text-muted);
  padding: 120px 6% 50px;
  border-top: 1px solid var(--surface-border);
  text-align: left;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto 100px auto;
}

.footer-column h4 {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: 4px;
  color: var(--text-main);
  text-transform: uppercase;
  font-family: var(--font-body);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
}

.footer-column ul li a {
  text-decoration: none;
  color: inherit;
  transition: var(--ease-fast);
  position: relative;
}

.footer-column ul li a:hover {
  color: var(--gold-light);
  padding-left: 8px;
}

.footer-brand {
  text-align: left;
  padding-right: 50px;
}

.footer-brand img {
  height: 70px;
  margin-bottom: 40px;
  filter: brightness(0) invert(1) opacity(0.85);
}

.footer-brand h3 {
  font-size: 22px;
  font-family: var(--font-heading);
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: 4px;
  color: var(--text-main);
}

.footer-brand p {
  font-size: 13px;
  line-height: 2.2;
  color: var(--text-muted);
  font-weight: 300;
}

.footer-bottom {
  text-align: center;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .footer-brand {
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  header {
    flex-direction: column;
    padding: 15px 5%;
    gap: 20px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
  }

  .dropdown:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .modal-content {
    display: block;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .modal-left,
  .modal-right {
    width: 100%;
    display: block;
  }

  .modal-left {
    height: 300px;
  }

  .modal-right {
    padding: 40px;
  }

  .modal-right h2 {
    font-size: 28px;
  }

  .modal-whatsapp-btn {
    margin-top: 40px;
  }

  .hero h1 {
    font-size: 45px;
  }
}

/* ================= GALLERY STYLES ================= */

.gallery-box:hover .gallery-box-overlay {
  background: rgba(3, 4, 3, 0.2) !important;
}

.gallery-box:hover span:first-child {
  transform: scale(1.1);
  color: #fff !important;
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--ease-slow), filter var(--ease-fast);
  filter: brightness(0.8) grayscale(20%);
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  filter: brightness(1) grayscale(0%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-modal-content::-webkit-scrollbar {
  width: 8px;
}

.gallery-modal-content::-webkit-scrollbar-track {
  background: var(--surface);
}

.gallery-modal-content::-webkit-scrollbar-thumb {
  background: var(--gold-base);
  border-radius: 4px;
}
