/* ===========================================================
   Contact Us — dark theme (fully responsive)
   =========================================================== */

:root {
  --bg-page:        #17171a;
  --bg-panel:       #1e1e22;
  --bg-input:       #26262b;
  --border-subtle:  #2f2f34;
  --text-primary:   #f3f3f2;
  --text-secondary: #a9a9ae;
  --text-muted:     #78787f;
  --accent:         #f5b301;
  --accent-dark:    #151515;

  --font-base: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;

  --container-width: 1180px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* stop accidental horizontal scroll on small screens */
}

img, svg, iframe, video {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  padding: 0px 0 0px;
}

.header-inner {
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw + 0.6rem, 1.15rem);
  letter-spacing: 0.04em;
}

.logo-mark {
  color: var(--accent);
  font-size: 1rem;
  transform: rotate(45deg);
  display: inline-block;
}

.logo-text {
  color: var(--text-primary);
}

/* ---------------------------------------------------------
   Contact section — heading / intro
   --------------------------------------------------------- */

.contact-section {
  padding: 12px 0 64px;
}

.page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 14px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--accent);
}

.intro-text {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1vw + 0.6rem, 0.98rem);
  margin: 0 0 48px;
}

/* ---------------------------------------------------------
   Two-column grid: info + form
   --------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 48px;
  align-items: start;
}

/* Info column ------------------------------------------------ */

.info-column {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-width: 0; /* prevents overflow in narrow grid tracks */
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.info-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-body {
  min-width: 0;
}

.info-body h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  word-wrap: break-word;
}

/* Form column -------------------------------------------------- */

.form-column {
  min-width: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 15px 18px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px; /* 16px minimum prevents iOS Safari auto-zoom on focus */
  resize: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #45454c;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #29292f;
}

.contact-form textarea {
  min-height: 148px;
}

.submit-btn {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--accent);
  color: var(--accent-dark);
  border: none;
  border-radius: 6px;
  padding: 15px 38px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.submit-btn:hover {
  background: #ffc61f;
}

.submit-btn:active {
  transform: translateY(1px);
}

/* ---------------------------------------------------------
   Map section — fluid across all screen sizes
   --------------------------------------------------------- */

.map-section {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 260px;
  max-height: 460px;
  overflow: hidden;
}

.map-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===========================================================
   Responsive breakpoints
   =========================================================== */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
  :root {
    --gutter: 20px;
  }

  .contact-grid {
    gap: 36px;
  }

  .map-section {
    height: 50vh;
    min-height: 300px;
  }
}

/* Tablets — stack info/form, map shrinks a bit */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .info-column {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px 40px;
  }

  .info-item {
    flex: 1 1 20px;
  }

  .form-column {
    order: 1;
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .map-section {
    height: 45vh;
    min-height: 280px;
  }
}

/* Phones */
@media (max-width: 640px) {
  .site-header {
    padding: 20px 0 4px;
  }

  .contact-section {
    padding: 8px 0 48px;
  }

  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .intro-text {
    margin-bottom: 36px;
  }

  .info-column {
    flex-direction: column;
    gap: 26px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 13px 16px;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .info-icon {
    width: 40px;
    height: 40px;
  }

  .info-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-form textarea {
    min-height: 120px;
  }

  .submit-btn {
    padding: 14px 28px;
  }

  .map-section {
    height: 40vh;
    min-height: 220px;
  }
}

/* Very small / older phones */
@media (max-width: 360px) {
  .page-heading h1 {
    font-size: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
  }

  
}

/* Short-height / landscape phones */
@media (orientation: landscape) and (max-height: 500px) {
  .site-header {
    padding: 12px 0 4px;
  }

  .contact-section {
    padding: 8px 0 32px;
  }

  .map-section {
    height: 70vh;
    min-height: 180px;
  }
}

/* Large desktop screens */
@media (min-width: 1440px) {
  :root {
    --container-width: 1320px;
  }

  .map-section {
    max-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}