/* ======================================================
   COMMON BRAND VARIABLES & THEME
====================================================== */
:root {
  --background: #FFFFFF;
  --foreground: #111111;
  --card: #FAFAFA;
  --card-foreground: #111111;
  --primary: #C8A96A; /* Gold Accent */
  --primary-foreground: #FFFFFF;
  --secondary: #F5F5F5;
  --secondary-foreground: #111111;
  --muted: #767676;
  --border: #E5E5E5;
  --input: #E5E5E5;
  --ring: #C8A96A;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 4px 12px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 17, 17, 0.12);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

/* Dark Theme Variables */
body.dark-mode {
  --background: #111111;
  --foreground: #FAFAFA;
  --card: #1A1105; /* Deep luxury dark card */
  --card-foreground: #FAFAFA;
  --secondary: #1C1C1C;
  --secondary-foreground: #FAFAFA;
  --border: #2D2D2D;
  --input: #2D2D2D;
  --muted: #A0A0A0;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}
h1, h2, h3, h4, .serif-font {
  font-family: var(--font-serif);
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Header Styling */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s, border-color 0.3s;
}
body.dark-mode header {
  background-color: rgba(17, 17, 17, 0.95);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img {
  height: 40px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-toggle-btn, .menu-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 8px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.theme-toggle-btn:hover, .menu-toggle-btn:hover {
  background-color: var(--secondary);
}
.menu-toggle-btn {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  background-color: var(--background);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav.open {
  display: block;
}

/* Footer Styling */
footer {
  background-color: #111111;
  color: #FFFFFF;
  padding: 64px 24px 24px;
  border-top: 1px solid #222222;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .logo-img {
  height: 48px;
  width: auto;
  filter: brightness(1.2);
}
.footer-description {
  color: #CCCCCC;
  font-size: 14px;
  max-width: 400px;
}
.footer-column h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #CCCCCC;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #CCCCCC;
  font-size: 14px;
}
.footer-social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #222222;
  text-align: center;
  font-size: 14px;
  color: #888888;
}
.footer-bottom a {
  color: var(--primary);
  text-decoration: underline;
}

/* ======================================================
   CONTACT PAGE BESPOKE STYLES
====================================================== */

/* Hero Banner */
.contact-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #FFFFFF;
}
.contact-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.55);
  z-index: 2;
}
.contact-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}
.contact-hero-subtitle {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.contact-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-top: 12px;
  line-height: 1.2;
}
.contact-hero p.tagline {
  font-size: 18px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

/* Grid Layout */
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

/* Aside Cards */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-aside-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.contact-aside-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 169, 106, 0.4);
  box-shadow: var(--shadow-md);
}
.contact-aside-card svg {
  color: var(--primary);
  transition: transform 0.3s ease;
}
.contact-aside-card:hover svg {
  transform: scale(1.1) rotate(5deg);
}
.contact-aside-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 16px;
}
.contact-aside-card p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.contact-social-flex {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.contact-social-flex a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s;
}
.contact-social-flex a:hover {
  color: var(--primary);
}

/* Form Styling */
.contact-form-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-form-card h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.luxury-input {
  width: 100%;
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.luxury-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.15);
  transform: translateY(-1px);
}
.luxury-input:disabled {
  background-color: var(--secondary);
  opacity: 0.6;
  cursor: not-allowed;
}
.error-msg {
  color: var(--primary);
  font-size: 12px;
  margin-top: 6px;
  animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast Notification Popup */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: calc(100% - 48px);
}
.toast {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes toastIn {
  from { transform: translateY(-12px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.toast.success {
  border-left: 4px solid #10B981;
}
.toast.error {
  border-left: 4px solid #EF4444;
}
.toast-content {
  flex-grow: 1;
}
.toast-title {
  font-size: 14px;
  font-weight: 600;
}
.toast-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Back to Top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-2px);
}

/* Responsive constraints */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .menu-toggle-btn {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-hero h1 {
    font-size: 36px;
  }
}
