/* Tenach Tours: base styles. Layout and colours live inline in index.html. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: #FFFFFF; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #1F3A68; }
a:hover { color: #142847; }
a, button { transition: opacity .15s, background-color .15s, color .15s; }
a[href="#contact"][style*="background: #1F3A68"]:hover,
button[type="submit"]:hover { background: #142847 !important; }
a[href="#tours"][style*="background: #D9AE4E"]:hover { background: #E6C274 !important; }
[data-open-video]:hover { border-color: #1F3A68 !important; }

:focus-visible { outline: 3px solid #D9AE4E; outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #1F3A68; outline-offset: 0; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: #142847; color: #FFFFFF; padding: 10px 16px; font: 600 14px Inter, sans-serif; }
.skip-link:focus { top: 12px; color: #FFFFFF; }

#video-modal[hidden] { display: none !important; }
#video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
body.modal-open { overflow: hidden; }

/* Tablet and phone */
@media (max-width: 900px) {
  .h-display { font-size: 44px !important; }
  .h-section { font-size: 34px !important; }
  section > div { padding-top: 64px !important; padding-bottom: 64px !important; }
  #home > div:first-child { padding-top: 56px !important; }
}
@media (max-width: 560px) {
  .h-display { font-size: 36px !important; }
  .h-section { font-size: 28px !important; }
  article, blockquote, #quote-form { padding: 24px !important; }
  [style*="minmax(340px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(320px"], [style*="minmax(300px"] { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#quote-form label { min-width: 0; }
#quote-form input, #quote-form select, #quote-form textarea { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .hide-sm { display: none; } }
