/* ============================================
   Gippsland Tech Support - Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding-top: 89px; /* brand bar (42px) + nav bar (47px) */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Bookmania", "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
}

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --primary-color: #531628;
  --secondary-color: #9d6c43;
  --primary-bright-dark: #6b142e;
  --primary-subtle-dark: #301d22;
  --primary-bright-light: #eb94ae;
  --primary-subtle-light: #f5eff1;
  --primary-contrast: #ffffff;
  --secondary-bright-dark: #603d20;
  --secondary-subtle-dark: #30251d;
  --secondary-bright-light: #dfbc9f;
  --secondary-subtle-light: #f5f2ef;
  --secondary-contrast: #ffffff;
  --gray-light-one: #f8f7f7;
  --gray-light-two: #e6e6e6;
  --gray-dark: #4d4d4d;
  --color-white: #ffffff;
  --color-black: #000000;
  --font-heading: "Bookmania", "Playfair Display", Georgia, serif;
  --font-body: "Work Sans", sans-serif;
  --btn-radius: 100px;
  --section-padding: 64px 24px;
  --max-width: 1200px;
}

/* --- Brand Bar (fixed top) --- */
.brand-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background-color: var(--primary-color);
  color: var(--primary-contrast);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.5px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Desktop Navigation --- */
.top-nav {
  position: fixed;
  top: 42px;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  height: 47px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.top-nav a {
  color: var(--primary-contrast);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  padding: 6px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a:focus {
  background-color: rgba(255, 255, 255, 0.12);
}

.top-nav a[aria-current="page"] {
  background-color: rgba(255, 255, 255, 0.18);
}

/* --- Mobile Hamburger Menu --- */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 6px;
  right: 12px;
  z-index: 1002;
  background: var(--primary-color);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 50px;
  right: 12px;
  z-index: 1003;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  min-width: 220px;
}

.mobile-menu a {
  display: block;
  padding: 12px 24px;
  color: #333;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  transition: background-color 0.15s;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  background-color: var(--primary-subtle-light);
}

/* Mobile menu open state */
.mobile-menu.is-open,
.mobile-overlay.is-open {
  display: block;
}

@media (max-width: 839px) {
  .top-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  body {
    padding-top: 42px; /* only brand bar */
  }
}

/* --- Hero Section --- */
.hero {
  background-color: var(--primary-color);
  color: var(--primary-contrast);
  text-align: center;
  padding: 64px 24px 72px;
}

.hero h1 {
  font-size: 34px;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

@media (min-width: 840px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 20px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 32px;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-light {
  background-color: var(--primary-contrast);
  color: var(--primary-color);
}

.btn-dark {
  background-color: var(--primary-color);
  color: var(--primary-contrast);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-bright-dark);
  border: 2px solid var(--primary-bright-dark);
}

/* --- Section Layouts --- */
.section {
  padding: var(--section-padding);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Two-Column Layout (text + image) --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 840px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .two-col--reverse .two-col__image {
    order: -1;
  }
}

.two-col__text h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.two-col__text h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.two-col__text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.two-col__image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (min-width: 840px) {
  .two-col__text h2 {
    font-size: 36px;
  }

  .two-col__text h3 {
    font-size: 28px;
  }
}

/* --- Section color themes --- */
.bg-primary {
  background-color: var(--primary-color);
  color: var(--primary-contrast);
}

.bg-primary-light {
  background-color: var(--primary-subtle-light);
  color: #333;
}

.bg-primary-light h2,
.bg-primary-light h3 {
  color: var(--primary-bright-dark);
}

.bg-gray-light {
  background-color: var(--gray-light-one);
  color: #333;
}

.bg-gray-medium {
  background-color: var(--gray-light-two);
  color: #333;
}

.bg-white {
  background-color: var(--color-white);
  color: #333;
}

.bg-black {
  background-color: var(--color-black);
  color: var(--primary-contrast);
}

/* --- Mission / Centered Text Sections --- */
.centered-section {
  text-align: center;
  padding: 72px 24px;
}

.centered-section h2 {
  font-size: 24px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.centered-section h6 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0.7;
}

@media (min-width: 840px) {
  .centered-section h2 {
    font-size: 28px;
  }
}

/* --- Story Section (About page) --- */
.story-section {
  padding: 80px 24px;
}

.story-section .two-col__text h6 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.story-section .two-col__text h2 {
  margin-bottom: 20px;
}

.story-section .two-col__text p {
  line-height: 1.8;
}

.story-section .two-col__image img {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
}

/* --- Embed / iframe Sections --- */
.embed-section {
  padding: 64px 24px;
}

.embed-section .section-inner {
  max-width: 900px;
}

.embed-section h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 12px;
}

.embed-section p {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.85;
}

.embed-section iframe {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
}

/* --- Contact Form Section --- */
.contact-section {
  padding: 64px 24px;
}

.contact-section .section-inner {
  max-width: 700px;
}

.contact-section h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-section iframe {
  width: 100%;
  border: none;
  min-height: 500px;
  background: transparent;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-black);
  color: var(--primary-contrast);
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo svg {
  width: 48px;
  height: 48px;
}

.footer-text {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.footer-social a:hover {
  transform: scale(1.1);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

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

/* --- Print styles --- */
@media print {
  .brand-bar,
  .top-nav,
  .hamburger-btn,
  .mobile-menu,
  .mobile-overlay {
    display: none !important;
  }

  body {
    padding-top: 0;
  }
}
