/* --- Global Variables --- */
:root {
  --primary-cyan: #00bcd4;
  --primary-green: #52992d;
  --primary-green-hover: #438023;
  --light-cream-bg: #f8f6f3;
  --header-bg: #ffffff;
  --footer-bg: #131913;
  --footer-bottom-bg: #0b0f0b;
  --text-dark: #1f2937;
  --text-muted: #5e6670;
  --border-color: #e5e7eb;
  --input-bg: #f9fafb;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: #f7f3ed;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

.section-container {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= MAIN SHOWROOM IVORY BEIGE MARBLE BACKGROUND ================= */
.marble-showroom-area {
  position: relative;
  width: 100%;
  background-color: #f7f3ed;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    url('../assets/ivory-beige-marble.jpg');
  background-repeat: repeat;
  background-size: 850px auto;
  background-position: top center;
  background-attachment: scroll;
}

/* Ensure sections inside the showroom area inherit the marble background */
.marble-showroom-area .contact-main-section,
.marble-showroom-area .location-map-section {
  background-color: transparent !important;
}

/* Subtle, elegant warm divider between sections */
.marble-showroom-area .location-map-section {
  border-top: 1px solid rgba(195, 175, 155, 0.35);
}

/* Elevate the contact form into a pristine white showroom card */
.marble-showroom-area .contact-form-col {
  background: #ffffff !important;
  padding: 42px 36px;
  border-radius: 8px;
  box-shadow: 0 4px 22px rgba(90, 70, 50, 0.08);
  border: 1px solid rgba(195, 175, 155, 0.35);
}

/* Elevate the contact info blocks on hover */
.marble-showroom-area .contact-info-block {
  transition: transform 0.25s ease;
}

.marble-showroom-area .contact-info-block:hover {
  transform: translateX(4px);
}

/* Header */
.site-header {
  background-color: var(--header-bg);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.nav-container {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  color: var(--primary-cyan);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.9;
  filter: brightness(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #374151;
  font-size: 0.95rem;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--primary-green);
}

.nav-link.active {
  color: var(--primary-green);
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #1f2937;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Contact Main Section */
.contact-main-section {
  padding: 85px 0 95px;
  background-color: #ffffff;
}

.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 65px;
  align-items: flex-start;
}

.contact-info-col {
  padding-right: 15px;
}

.contact-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.5vw, 3.8rem);
  font-weight: 400;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 22px;
}

.contact-subtitle-desc {
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 45px;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.info-icon {
  color: var(--primary-green);
  font-size: 1.05rem;
  width: 18px;
  text-align: center;
}

.info-label {
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4b5563;
  font-weight: 600;
}

.info-detail-text {
  font-size: 0.94rem;
  color: #1f2937;
  line-height: 1.65;
  padding-left: 30px;
}

.contact-action-link {
  color: #1f2937;
  transition: var(--transition);
}

.contact-action-link:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

.follow-us-wrap {
  padding-left: 30px;
  margin-top: 15px;
}

.follow-us-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4b5563;
  font-weight: 600;
  margin-bottom: 14px;
}

.social-circle-dark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.05rem;
  transition: var(--transition);
}

.social-circle-dark:hover {
  background-color: #1877f2;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-col {
  background: #ffffff;
}

.form-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 400;
  color: #111827;
  margin-bottom: 28px;
}

.contact-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.form-group label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2937;
}

.optional-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b7280;
  margin-left: 6px;
}

.required-asterisk {
  color: #dc2626;
}

.word-counter {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.word-counter.valid {
  color: var(--primary-green);
  font-weight: 600;
}

.word-counter.warning {
  color: #dc2626;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: #1f2937;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(82, 153, 45, 0.15);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.form-input.is-invalid:focus,
.form-textarea.is-invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field-error-msg {
  display: none;
  font-size: 0.82rem;
  color: #dc2626;
  font-weight: 500;
  margin-top: 2px;
  gap: 6px;
  align-items: center;
}

.field-error-msg.show {
  display: flex;
  animation: fieldErrorFadeIn 0.25s ease-out;
}

.field-error-msg i {
  font-size: 0.85rem;
  flex-shrink: 0;
}

@keyframes fieldErrorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-green {
  background-color: var(--primary-green);
  color: #ffffff;
  padding: 11px 36px;
}

.btn-green:hover {
  background-color: var(--primary-green-hover);
  box-shadow: 0 4px 12px rgba(82, 153, 45, 0.35);
}

.btn-submit {
  padding: 11px 40px;
}

.form-feedback {
  display: none;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  margin-top: 10px;
}

.form-feedback.success-msg {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error-msg {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-feedback i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.form-feedback.show {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: feedbackSlideIn 0.3s ease-out;
}

@keyframes feedbackSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Google Map */
.location-map-section {
  position: relative;
  width: 100%;
  border-top: 1px solid #e5e7eb;
}

.map-container-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
}

.location-map-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-floating-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #ffffff;
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  max-width: 330px;
  z-index: 10;
}

.place-name {
  font-size: 0.96rem;
  color: #111827;
  display: block;
  margin-bottom: 3px;
}

.place-sub {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 8px;
}

.place-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.rating-val {
  font-weight: 700;
  color: #d97706;
}

.rating-stars {
  color: #f59e0b;
  font-size: 0.9rem;
}

.review-count {
  color: #6b7280;
}

.btn-open-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-open-maps:hover {
  background-color: #1d4ed8;
}

/* Footer Section */
.site-footer {
  background-color: var(--footer-bg);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main-container {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 70px 24px 60px;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr;
  gap: 50px;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #ffffff;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1f2820;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.05rem;
  transition: var(--transition);
}

.social-circle-btn:hover {
  background-color: #1877f2;
  border-color: #1877f2;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-menu a {
  color: #d1d5db;
  font-size: 0.94rem;
  transition: var(--transition);
}

.footer-menu a:hover {
  color: var(--primary-cyan);
  padding-left: 4px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
}

.contact-detail-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-detail-row:first-child {
  padding-top: 0;
}

.contact-detail-row:last-child {
  border-bottom: none;
}

.contact-detail-row p,
.contact-detail-row a {
  color: #d1d5db;
  font-size: 0.92rem;
  line-height: 1.6;
  transition: var(--transition);
}

.contact-detail-row a:hover {
  color: var(--primary-cyan);
}

.footer-bottom-bar {
  background-color: var(--footer-bottom-bg);
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-text,
.credits-text {
  font-size: 0.88rem;
  color: #9ca3af;
}

.heart-icon {
  color: #ef4444;
}

/* ================= FLOATING CONTACT SPEED DIAL WIDGET ================= */
.floating-contact-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 9999;
}

/* Speed Dial Action Menu (Phone & WhatsApp) */
.floating-action-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transform-origin: bottom center;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.28s ease;
}

.floating-contact-widget.active .floating-action-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Individual Floating Action Circular Buttons */
.floating-action-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  position: relative;
}

.floating-action-btn:hover {
  transform: scale(1.1);
}

.floating-action-btn:active {
  transform: scale(0.96);
}

/* 1. Phone Button (Top) */
.floating-action-btn.action-phone {
  background-color: #03E78B;
  box-shadow: 0 4px 14px rgba(3, 231, 139, 0.45);
}

.floating-action-btn.action-phone:hover {
  box-shadow: 0 6px 20px rgba(3, 231, 139, 0.6);
}

.floating-action-btn.action-phone i {
  font-size: 1.35rem;
  color: #ffffff;
}

/* 2. WhatsApp Button (Middle) */
.floating-action-btn.action-whatsapp {
  background-color: #49E670;
  box-shadow: 0 4px 14px rgba(73, 230, 112, 0.45);
}

.floating-action-btn.action-whatsapp:hover {
  box-shadow: 0 6px 20px rgba(73, 230, 112, 0.6);
}

.floating-action-btn.action-whatsapp i {
  font-size: 1.75rem;
  color: #ffffff;
}

/* Trigger Wrap (Pill + Bottom Circle Button) */
.floating-trigger-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Contact Us Pill Button */
.contact-pill-btn {
  background: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2937;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  white-space: nowrap;
}

.contact-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.floating-contact-widget.active .contact-pill-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px) scale(0.9);
}

/* 3. Bottom Trigger Button (Chat bubble -> White X) */
.chat-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #000000;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.chat-circle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.chat-circle-btn:active {
  transform: scale(0.96);
}

.chat-circle-btn .icon-chat {
  font-size: 1.3rem;
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.chat-circle-btn .icon-close {
  font-size: 1.6rem;
  font-weight: 700;
  display: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* When widget is active (opened), show the X icon */
.floating-contact-widget.active .chat-circle-btn .icon-chat {
  display: none;
}

.floating-contact-widget.active .chat-circle-btn .icon-close {
  display: block;
  animation: fabIconPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.contact-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 1001;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #0f172a;
}

.modal-desc {
  font-size: 0.88rem;
  color: #64748b;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: var(--transition);
}

.contact-card-link:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(4px);
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.phone-box {
  background-color: #eff6ff;
  color: #2563eb;
}

.whatsapp-box {
  background-color: #ecfdf5;
  color: #10b981;
}

.contact-card-link strong {
  font-size: 0.94rem;
  color: #1e293b;
  display: block;
}

.contact-card-link p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-split-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-info-col {
    padding-right: 0;
  }

  .map-container-wrapper {
    height: 380px;
  }

  .map-floating-badge {
    left: 15px;
    top: 15px;
    max-width: 290px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    flex-direction: column;
    padding: 22px 20px;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    z-index: 9999;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
    z-index: 10000;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-main-section {
    padding: 60px 0 65px;
  }

  .marble-showroom-area .contact-form-col {
    padding: 26px 20px;
  }

  .floating-contact-widget {
    bottom: 16px;
    right: 16px;
  }

  .map-floating-badge {
    position: static;
    margin: 15px;
    max-width: calc(100% - 30px);
  }
}