/*
====================================
DESIGN VISION CONSTRUCTIONS & INTERIORS
Common Styles - Shared across all pages
====================================
*/

/* ========== TABLE OF CONTENTS ========== */
/*
  1. CSS Variables & Core Settings
  2. Google Fonts
  3. Base Styles & Reset
  4. Navigation & Dropdown Menus
  5. Footer Styles
  6. Common Buttons & CTAs
  7. Common Animations & Keyframes
  8. WhatsApp Float Button
  9. Back to Top Button
  10. Scroll Reveal Animations
  11. Utility Classes
  12. Responsive Design
  13. Accessibility & Performance
*/

/* ========== 1. CSS VARIABLES & CORE SETTINGS ========== */
:root {
  /* Brand Colors */
  --navy: #0F1A2A;
  --gold: #C9A227;
  --off-white: #F4F1EA;
  --dark-text: #2E2E2E;
  --muted-grey: #7A7A7A;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-premium: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========== 2. GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Poppins:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ========== 3. BASE STYLES & RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: var(--off-white);
  line-height: 1.8;
  overflow-x: hidden;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img {
  animation: imageLoad 0.6s ease-out;
}

/* ========== 4. NAVIGATION & DROPDOWN MENUS ========== */

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

/* ========== RESPONSIVE UTILITY CLASSES (Tailwind Replacement) ========== */

/* Hide on large screens (lg:hidden) - DESKTOP */
@media (min-width: 1024px) {
  .lg\:hidden {
    display: none !important;
  }
}

/* Hide on screens smaller than lg - MOBILE */
@media (max-width: 1023px) {

  .hidden.lg\:flex,
  .lg\:flex {
    display: none !important;
  }
}

/* Show flex on large screens - DESKTOP */
@media (min-width: 1024px) {
  .lg\:flex {
    display: flex !important;
  }
}

/* Mobile menu visibility */
.mobile-menu-toggle {
  display: none;
}

/* Navigation styles are now handled in navbar.html */


/* ========== PREMIUM DROPDOWN MENU ========== */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  margin-top: 0;
  padding-top: 1rem;
  z-index: 9999;
  border: 1px solid rgba(201, 164, 91, 0.2);
  padding-bottom: 0.5rem;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

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

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: #1a2332;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(201, 164, 91, 0.1), rgba(201, 164, 91, 0.05));
  color: #C9A45B;
}

.dropdown-menu a i {
  margin-right: 0.75rem;
  color: #C9A45B;
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu-content {
  position: absolute;
  left: 100%;
  top: -0.5rem;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  margin-left: 0.25rem;
  border: 1px solid rgba(201, 164, 91, 0.2);
  padding: 0.5rem 0;
  z-index: 10000;
}

.dropdown-submenu:hover .dropdown-submenu-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-menu .dropdown-item {
  position: relative;
}

.submenu-arrow {
  font-size: 0.7rem;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.dropdown-submenu:hover .submenu-arrow {
  transform: translateX(3px);
}

.dropdown-arrow {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Mobile Menu Styles */
.mobile-menu-active .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-active .mobile-menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-active .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-active .mobile-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Logo & Branding */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.575rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.brand-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #C9A45B;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

/* ========== 5. FOOTER STYLES ========== */
/* Add your footer styles here */

/* ========== 6. COMMON BUTTONS & CTAs ========== */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-block;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(199, 161, 69, 0.25);
}

.btn--primary:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(199, 161, 69, 0.35);
}

.btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid var(--gold);
}

.btn--secondary:hover {
  transform: scale(1.03);
  background: rgba(199, 161, 69, 0.1);
  box-shadow: 0 8px 24px rgba(199, 161, 69, 0.2);
}

.btn-primary,
.btn-secondary,
a[class*="btn"],
button[class*="btn"] {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  will-change: transform;
}

.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

/* ========== 7. COMMON ANIMATIONS & KEYFRAMES ========== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(80px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes imageLoad {
  0% {
    opacity: 0;
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* ========== 8. WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background-color: #20bd5a;
  transform: scale(1.1);
}

.whatsapp-float.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* ========== 9. BACK TO TOP BUTTON ========== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  /* Moved to Left */
  right: auto;
  transition: opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  will-change: transform, opacity;
  z-index: 9980;
}

.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

.back-to-top.fade-out {
  /* No longer needed on left side */
  opacity: 1 !important;
  pointer-events: all !important;
  transform: none;
}

/* ========== 10. SCROLL REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ========== 11. UTILITY CLASSES ========== */
.border-3 {
  border-width: 3px;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #C9A227 0%, #F4D03F 50%, #C9A227 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text {
  background: linear-gradient(135deg, var(--navy), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== 12. RESPONSIVE DESIGN ========== */
@media (min-width: 1921px) {
  .logo-container {
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 1.225rem;
  }

  .brand-tagline {
    font-size: 0.6125rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    width: 80px;
    height: 80px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.525rem;
    letter-spacing: 0.8px;
  }

  .logo-container {
    gap: 0.4375rem;
  }

  /* Simplify animations for mobile */
  .reveal,
  .reveal-left,
  .reveal-right {
    transition-duration: 0.6s;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 70px;
    height: 70px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.525rem;
    letter-spacing: 0.6px;
  }

  .logo-container {
    gap: 0.4375rem;
  }
}

/* ========== 13. ACCESSIBILITY & PERFORMANCE ========== */
@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fix for btn-primary class used in HTML */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(199, 161, 69, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid transparent;
  /* Prevent size jump on hover if border added */
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(199, 161, 69, 0.35);
  background: #d4b038;
  /* Slightly lighter gold */
  color: var(--navy);
}

.btn-primary:active {
  transform: translateY(0);
}


/* Hero section specific button style to fix visibility issues */
.hero-section .btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
  z-index: 10;
  position: relative;
}

/* ========== RESPONSIVE OPTIMIZATIONS ========== */

/* Subtle focus states - underline only, no annoying circles */
.nav-link:focus,
.mobile-menu-toggle:focus {
  outline: none;
}

.nav-link:focus {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

/* Dropdown menu responsive behavior */
.dropdown-menu {
  max-width: calc(100vw - 2rem);
}

/* Mobile-specific optimizations */
@media (max-width: 1920px) {

  /* Touch-friendly mobile menu */
  .mobile-menu-overlay a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
  }

  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  /* Mobile Dropdown - Touch-First Premium Design */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin-top: 12px;
    padding: 8px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu::before {
    display: none;
  }

  /* Mobile dropdown items - No icons, full width, touch-friendly */
  .dropdown-item {
    color: rgba(255, 255, 255, 0.95);
    padding: 14px 20px;
    min-height: 44px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .dropdown-item:hover {
    background: rgba(201, 162, 39, 0.15);
    color: #FFFFFF;
  }

  /* Hide icons on mobile for clarity */
  .dropdown-icon {
    display: none;
  }

  /* Mobile divider */
  .dropdown-divider {
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 12px;
  }

  /* Touch-friendly footer links */
  footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Better mobile menu spacing */
  .mobile-menu-overlay ul {
    padding: 24px 20px;
  }
}

/* Tablet breakpoint */
@media (max-width: 768px) {

  /* Footer bottom responsive */
  .footer .border-t .flex {
    text-align: center;
  }
}

/* Mobile breakpoint */
@media (max-width: 640px) {

  /* Newsletter form mobile */
  footer form input[type="email"] {
    font-size: 16px;
    /* Prevents iOS zoom on focus */
  }

  footer form button {
    width: 100%;
    padding: 1rem;
  }

  /* Footer columns mobile stacking */
  .footer .grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer h3,
  .footer h4 {
    text-align: center;
  }

  .footer ul {
    text-align: center;
  }

  .footer .flex.gap-3 {
    justify-content: center;
  }
}

/* Small mobile breakpoint */
@media (max-width: 374px) {

  /* Scale down logo for small screens */
  .logo-img {
    width: 48px !important;
    height: 48px !important;
  }

  .brand-name {
    font-size: 1.25rem !important;
  }

  .brand-tagline {
    font-size: 0.6rem !important;
  }
}

/* Email address wrapping */
footer a[href^="mailto:"] {
  word-break: break-all;
  display: inline-block;
}