/* --- Base Styles --- */
:root{
  --accent: #d1a954;
  --dark: #111;
  --muted: #555;
  --bg: #f9f9f9;
}


body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  margin: 0;
}

a { text-decoration: none; color: inherit; }


/* --- Hero --- */
.contact-hero {
  text-align: center;
  padding: 3rem 6%;
  background-color: #f5f5f5;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  
  margin-top: 70px;
}

.contact-hero p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
}

/* --- Contact Section --- */
.contact-section {
  padding: 3rem 6%;
}

.container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* cards */
.contact-form, .contact-info {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

/* --- Form --- */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

input, textarea {
  padding: 0.9rem;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  background: #fff;
}

input::placeholder, textarea::placeholder { color: #999; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(209,169,84,0.06);
}

.send-btn {
  background-color: var(--dark);
  color: #fff;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.send-btn:hover {
  background-color: var(--accent);
  color: var(--dark);
}

/* --- Info Cards --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(16,24,40,0.05);
}

.info-card h3 { margin-bottom: 1rem; font-size: 1.15rem; }

.info-card p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  margin: 0.45rem 0;
  font-size: 0.98rem;
}

.material-icons-outlined {
  color: var(--accent);
  font-size: 1.35rem;
}

/* Showroom map wrapper (responsive) */
.showroom-card .map-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f1f1;
  margin-top: 0.6rem;
}

/* Use aspect-ratio for responsive iframe (fallback handled) */
.showroom-card .map-wrap {
  aspect-ratio: 16 / 9;
  height: auto;
}

.map {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* --- Responsive --- */
@media (max-width: 1100px){
  .container { grid-template-columns: 1fr 0.9fr; padding: 0 0rem; gap: 1.25rem; }
}

@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-section { padding: 0rem 1%; }
  .contact-hero { padding: 2rem 5%; }
}

/* ===== MOBILE SCROLL FIX (explicit safe rules) ===== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Force stacking and auto heights so nothing clips the viewport */
  .container {
    display: block;
    width: 100%;
  }

  .contact-form, .contact-info, .info-card {
    width: 100%;
    margin-bottom: 18px;
    min-height: 0;
    height: auto;
  }

  .showroom-card .map-wrap {
    aspect-ratio: 16/9;
  }

  
  .contact-hero { 
    padding: 1rem 1%; 
    padding-top: 25px;
}
  .contact-hero h1 { font-size: 1.9rem; }
}
