/*
  Mount Gabriel Christmas Tree Farms – CSS Reset & Clean Slate
  This file intentionally removes all previous styles. Start fresh below.
*/

/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Start your new styles below this line */

/*
  Mount Gabriel Christmas Tree Farms – Modest, Honest, Earthy Christmas Style
  Small family business, New Zealand. No reds. Warm greens, browns, soft gold, lots of white space.
  Font: Garet (imported separately)
*/

:root {
  --green: #35523a;
  --green-light: #6b8f6e;
  --brown: #a68c6d;
  --brown-dark: #7c6246;
  --gold: #e7d7a7;
  --white: #fff;
  --gray: #f3f3f3;
  --text: #222;
  --radius: 1rem;
  --shadow: 0 2px 16px 0 rgba(53,82,58,0.07);
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
  background: var(--gray);
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Garet', Arial, sans-serif;
  color: var(--text);
  background: var(--gray);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.7;
}

header, .hero {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 6rem 1rem 4rem 1rem;
  box-shadow: var(--shadow);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
  pointer-events: none;
}
.hero-title {
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}
.hero-logo {
  position: relative;
  z-index: 1;
  max-width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  color: var(--gold);
  margin: 1rem 0 1.5rem 0;
  font-weight: 400;
  opacity: 0.95;
}
.hero-cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: var(--green);
  font-weight: 700;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 1.05rem;
}
.hero-cta:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.hero-cta:focus {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.2em 0 0.1em 0;
  letter-spacing: 0.01em;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(53,82,58,0.18);
  line-height: 1.2;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 5rem;
  }
}

section {
  margin: 2.2rem auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  max-width: 800px;
}

h2, h3, h4 {
  font-family: 'Garet', Arial, sans-serif;
  font-weight: 700;
  color: var(--green);
  margin-top: 0;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8em;
  letter-spacing: -0.3px;
}

p {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.centered-section p {
  max-width: 100%;
}

/* Remove white boxes from all sections for consistency */
section, .card {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 2rem 0;
  margin: 3rem auto 0 auto;
  max-width: 600px;
}

/* Consistent section title styling */
section h2, .card h2 {
  text-align: center;
  color: var(--green);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  border: none;
  background: none;
  box-shadow: none;
  line-height: 1.2;
}

.locations-grid {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.location-card {
  background: var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 450px;
  margin-bottom: 1.2rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 24px 0 rgba(53,82,58,0.15);
}
.location-card:focus {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  transform: translateY(-2px);
}
.location-card img {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  margin-bottom: 0.8em;
  object-fit: cover;
  display: block;
}
.location-card h3 {
  color: var(--brown-dark);
  margin: 0.2em 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.location-card p {
  color: var(--brown-dark);
  margin: 0.2em 0;
  font-weight: 400;
}

/* Desktop view: side by side */
@media (min-width: 768px) {
  .locations-grid {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
  }
  .location-card {
    width: calc(50% - 1rem);
    max-width: 400px;
  }
}

ul, ol {
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.4em;
}

/* Link Styling */
a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--green-light);
}
a:focus {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}

.facebook-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--green-light);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--green-light);
  border-radius: 0.5rem;
  transition: all var(--transition);
}
.facebook-link:hover {
  background: var(--green-light);
  color: var(--white);
}
.facebook-link:focus {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}
.facebook-logo-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 0.6rem;
  border-radius: 4px;
}

/* YouTube Video Wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.3s ease;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform 0.3s ease;
}

.video-wrapper:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-wrapper.playing .video-thumbnail,
.video-wrapper.playing .play-button {
  opacity: 0;
  pointer-events: none;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(53,82,58,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), background var(--transition), transform var(--transition);
  z-index: 1000;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}
#back-to-top:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
#back-to-top svg {
  pointer-events: none;
}

/* Price Table Formatting */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.2em;
  margin: 0.2em auto 0.2em auto;
  background: none;
  max-width: 420px;
}
.price-table th, .price-table td {
  padding: 0.5em 0.5em;
  transition: background var(--transition);
}
.price-table tr:hover td {
  background: var(--gray);
}
.price-table td:first-child {
  text-align: right;
  width: 60%;
}
.price-table td.price {
  text-align: left;
  width: 40%;
  font-weight: 600;
  color: var(--brown-dark);
}
.price-table th {
  border-bottom: none;
  background: var(--gray);
}
.price-table td[colspan="2"] {
  text-align: center;
  color: var(--green);
  font-weight: 700;
  padding-top: 0.7rem;
  background: none;
  border-bottom: none;
}

/* --- Price List & FAQ Section Cleanup --- */
#pricelist, #faq {
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 2.2rem auto;
  max-width: 600px;
}
#pricelist h2, #faq h2 {
  text-align: center;
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  border: none;
  background: none;
  box-shadow: none;
}
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.2em;
  margin: 0.2em auto 0.2em auto;
  background: none;
  max-width: 420px;
}
.price-table th, .price-table td[colspan="2"] {
  border-bottom: none;
  background: none;
  color: var(--green);
  font-weight: 700;
  padding-top: 0.7rem;
  text-align: center;
}
.price-table td:first-child {
  text-align: right;
  width: 60%;
}
.price-table td.price {
  text-align: left;
  width: 40%;
  font-weight: 600;
  color: var(--brown-dark);
}

/* FAQ Formatting */
.faq-list {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.card#faq {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card#pricelist {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#pricelist h2,
#faq h2 {
  text-align: center !important;
  color: var(--green) !important;
  font-size: 2rem !important;
  margin-bottom: 1.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -1px !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}
#pricelist,
#faq {
  background: none !important;
  box-shadow: none !important;
}
.price-table th,
.price-table td[colspan="2"] {
  border-bottom: none !important;
  background: none !important;
  color: var(--green) !important;
  font-weight: 700 !important;
  padding-top: 0.7rem !important;
}
.faq-item {
  margin-bottom: 1.5rem;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.faq-item strong {
  display: block;
  color: var(--green-light);
  margin-bottom: 0.3em;
}
.faq-item p {
  margin: 0;
  color: var(--text);
}

.faq {
  margin-top: 1.2em;
}
.faq-item {
  margin-bottom: 1.2em;
  background: var(--gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1em 1em 0.7em 1em;
}
.faq-question {
  font-weight: 600;
  color: var(--green-light);
}
.faq-answer {
  color: var(--text);
}

.cta, .button {
  display: inline-block;
  background: var(--green-light);
  color: var(--white);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 0.7em 1.5em;
  font-size: 1.1rem;
  margin-top: 1.2em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.cta:hover, .button:hover {
  background: var(--brown-dark);
  color: var(--gold);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  margin-top: 1.2em;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--brown);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green-light);
  outline: none;
}
button[type="submit"] {
  background: var(--green);
  color: var(--gold);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 0.7em 1.5em;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
button[type="submit"]:hover {
  background: var(--brown-dark);
  color: var(--white);
}

footer {
  text-align: center;
  color: var(--brown-dark);
  background: var(--gray);
  font-size: 1rem;
  padding: 2rem 0 1rem 0;
  margin-top: 2rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
footer .timestamp {
  display: block;
  color: var(--green-light);
  font-size: 0.95rem;
  margin-top: 0.5em;
}

/* Price List Specific Styles */
.pricelist-title {
  text-align: center;
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.pricelist-subhead {
  text-align: center;
  color: var(--green-light);
  font-size: 1.2rem;
  margin: 1.2rem 0 0.5rem 0;
  font-weight: 700;
  letter-spacing: 0;
}

/* Centered Section for Opening Hours */
.centered-section {
  text-align: center;
  overflow: visible;
}
.centered-section ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto 1rem auto;
  padding: 0;
}
.centered-section li {
  margin-bottom: 0.3em;
}
.centered-section p {
  margin-top: 0.7rem;
  max-width: 100%;
  overflow: visible;
}
.facebook-container {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.simple-facebook-link {
  display: inline-block;
  color: var(--green-light);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--green-light);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all var(--transition);
}

.simple-facebook-link:hover {
  background: var(--green-light);
  color: var(--white);
}

.simple-facebook-link:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Mobile touch target improvements */
@media (max-width: 767px) {
  .facebook-link {
    padding: 1rem 2rem !important;
    font-size: 1.05rem !important;
    display: block !important;
    width: 90% !important;
    max-width: 300px !important;
    margin: 1rem auto !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 100 !important;
    background-color: #e7d7a7 !important; /* Temporary bright color to test visibility */
    color: #000 !important;
  }
  .facebook-container {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 100 !important;
  }
  .location-card {
    min-height: 44px; /* Minimum touch target size */
  }
  #back-to-top {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Responsive Design */
@media (max-width: 800px) {
  section {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .locations-grid {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (max-width: 500px) {
  html {
    font-size: 16px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}

/* Mobile touch target improvements */
@media (max-width: 767px) {
  .location-card {
    min-height: 44px; /* Minimum touch target size */
  }
  .location-card h3 {
    font-size: 2.1rem;
    font-weight: 800;
  }
  .location-card p {
    font-size: 1.3rem;
  }
  #back-to-top {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .location-card:hover,
  .location-card:focus,
  #back-to-top:hover {
    transform: none;
  }
}

/* Footer Styling */
footer {
  background: var(--green);
  color: var(--white);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.logo-divider {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}
.logo-divider img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.footer-section h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.footer-section p {
  margin: 0.4rem 0;
  opacity: 0.9;
  font-size: 0.95rem;
  max-width: none;
}
.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-section a:hover {
  color: var(--gold);
}
.footer-section a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  opacity: 0.8;
  font-size: 0.9rem;
}
.footer-bottom p {
  margin: 0;
  max-width: none;
}
