/* ==========================================================
   GTRBL — Main Stylesheet
   Covers: reset, layout, hero, about cards,
           contact, opening hours, footer, responsive.
   Nav styles live in style/style.css
   ========================================================== */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --red:        #D22F25;
  --red-dark:   #911D16;
  --red-hover:  #F54A43;
  --text:       #1B1B1B;
  --text-body:  #5E5E5E;
  --border:     rgba(226, 226, 226, 0.7);
  --bg:         #fff;
  --font-head:  'Cabin', Arial, sans-serif;
  --font-body:  'Lato', Arial, sans-serif;
  --max-width:  1160px;
  --gap:        24px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; border: 0; }
a   { color: inherit; text-decoration: none; }
p   { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

/* ── Layout helpers ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  background: var(--bg);
  padding: 40px 0;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.143em;
  color: #fff;
  background: var(--red);
  padding: 8px 32px;
  min-height: 56px;
  border-radius: 0;
  border: none;
  border-bottom: 4px solid var(--red-dark);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease-in-out;
}

.btn-secondary { align-self: center; }

.btn-primary:hover,
.btn-secondary:hover { background: var(--red-hover); }

/* ── Hero banner ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 350px;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  aspect-ratio: 1.599 / 1;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  max-width: var(--max-width);
  padding: 100px 24px;
}

/* ── Section heading ───────────────────────────────────── */
.section-heading {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 6px;
  line-height: 2;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 40px;
}

.section-heading span {
  display: inline-block;
  background: black;
  color: white;
  line-height: 1;
  padding: 8px 16px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ── About cards grid ──────────────────────────────────── */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.card {
  flex: 1 1 0%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.card-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.card-image.contain { object-fit: contain; }

.card-headings {
  text-align: center;
  width: 100%;
}

.card-headings h2 {
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

/* ── Show more / less toggle ───────────────────────────── */
.card-body { width: 100%; }

.card-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
}

.card-text p + p { margin-top: 8px; }

.card-text h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.125;
  color: var(--text);
  margin: 16px 0 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Hidden checkbox drives the toggle — no JS needed */
.toggle-input { display: none; }

.collapsed-content { display: block; }
.expanded-content  { display: none; }

.toggle-input:checked ~ .collapsed-content { display: none; }
.toggle-input:checked ~ .expanded-content  { display: block; }

.show-more-label {
  display: inline-block;
  cursor: pointer;
  color: var(--red);
  font-size: inherit;
  margin-top: 8px;
  margin-bottom: 8px;
}

.show-more-label:hover { color: var(--red-dark); }

.show-more-label svg {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
}

.show-more-label span { vertical-align: middle; }

/* ── Interior page content block ───────────────────────── */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-heading {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.content-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 24px;
}

.content-body p + p { margin-top: 8px; }

.content-list {
  margin: 12px 0 0 0;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content-notice {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--text);
}


.connect-container {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-links a {
  display: inline-block;
  transition: opacity 0.2s;
}

.social-links a:hover { opacity: 0.8; }


.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.contact-form-col {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-info-col {
  flex: 1 1 300px;
  text-align: center;
}

.contact-info-col h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact-info-col p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 8px;
}

.contact-info-col a {
  color: var(--red);
  border-bottom: 2px solid var(--red);
}

.contact-info-col a:hover { color: var(--red-dark); }

/* ── Contact form ──────────────────────────────────────── */
.form-heading {
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

.form-field {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: #F1F1F1;
  border: 1px solid #E2E2E2;
  border-radius: 0;
  color: #3B3B3B;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 23px 16px 8px;
  outline: none;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus { box-shadow: inset 0 0 0 1px currentColor; }

.form-field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #595959;
  font-size: 16px;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  font-size: 12px;
  top: 8px;
  transform: none;
  color: var(--red);
}

.form-field.honeypot { display: none; }

.recaptcha-note {
  font-size: 12px;
  color: var(--text-body);
  margin-bottom: 16px;
}

.recaptcha-note a { color: var(--red); text-decoration: underline; }

/* ── Opening hours table ───────────────────────────────── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.hours-table td {
  padding: 5px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
}

.hours-table td:first-child {
  font-weight: 700;
  padding-right: 16px;
  width: 60px;
}

.hours-note {
  font-size: 14px;
  color: var(--text-body);
  font-style: italic;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  padding: 24px;
  text-align: center;
}

footer p {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 8px;
}

.footer-nav {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.footer-nav li { display: inline-block; }

.footer-nav a           { color: var(--red); font-size: 14px; }
.footer-nav a:hover     { color: var(--red-dark); }

/* ── reCAPTCHA ─────────────────────────────────────────── */
.grecaptcha-badge { visibility: hidden; }

/* ── Utility spacing ───────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

/* ── Inline text links (red underline) ─────────────────── */
.text-link {
  color: var(--red);
  border-bottom: 2px solid var(--red);
}
.text-link:hover { color: var(--red-dark); }

/* ── Card button wrapper ───────────────────────────────── */
.card-btn-wrap { margin-top: 16px; }

/* ── Contact form (full width) ─────────────────────────── */
.contact-form { width: 100%; }

/* ── Opening hours heading ─────────────────────────────── */
.hours-heading { margin-top: 24px; }

/* ── Footer rule ───────────────────────────────────────── */
.footer-rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-overlay { padding: 40px 24px; }
  .card { flex-basis: 100%; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container { max-width: 100%; }
  .card { flex-basis: calc(50% - var(--gap)); }
}

@media (min-width: 1024px) {
  .container { max-width: 984px; }
  .card { flex-basis: calc(33.333% - var(--gap)); }
}

@media (min-width: 1280px) {
  .container { max-width: 1160px; }
}

@media (min-width: 1536px) {
  .container { max-width: 1280px; }
  body { font-size: 18px; }
}

/* ── Form status messages ───────────────────────────────── */
.form-status {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.form-status p { margin: 0; }

.form-status--success {
  background: #e6f4ea;
  border-left: 4px solid #2e7d32;
  color: #2e7d32;
}

.form-status--error {
  background: #fdecea;
  border-left: 4px solid var(--red);
  color: var(--red);
}

/* ── Form result popup ──────────────────────────────────── */
.form-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.form-popup[hidden] { display: none; }

.form-popup__box {
  background: #fff;
  max-width: 400px;
  width: 100%;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.form-popup__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.form-popup__icon--ok  { background: #e6f4ea; color: #2e7d32; }
.form-popup__icon--err { background: #fdecea; color: var(--red); }

.form-popup__message {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 24px;
}

.form-popup__close { min-width: 120px; }
