/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  background-image: url(../images/bg.jpg);
  background-color: #006531;
  background-repeat: repeat;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}

/* Legacy styles for compatibility */
.style3 {
  font-family: "Montserrat";
  font-size: 10px;
  font-weight: bold;
}
.style4 {
  color: #0000ff;
}
.style5 {
  font-size: 14px;
  font-weight: bold;
}
.style6 {
  color: #00f;
  font-size: 14px;
  font-weight: bold;
}
.style9 {
  font-size: 10px;
  font-weight: bold;
}
.style12 {
  font-size: 14px;
  color: #cc3333;
}
.style13 {
  font-size: 12px;
}
.style14 {
  font-size: 11px;
  font-family: "Montserrat";
}
.style15 {
  font-size: 14px;
  font-weight: bold;
}
.style16 {
  font-size: 12px;
  font-family: "Montserrat";
}
.style17 {
  font-size: 12px;
  font-weight: bold;
}
.style18 {
  font-size: 11px;
  font-family: "Montserrat";
}
.style20 {
  color: #009900;
}
.style23 {
  font-size: 10px;
  font-weight: bold;
  font-family: "Montserrat";
}
.style32 {
  font-size: 11px;
  font-family: "Montserrat";
}
.style37 {
  font-size: 14px;
  color: #0000ff;
  font-weight: bold;
  font-family: "Montserrat";
}
.style38 {
  font-size: 12px;
  color: #009900;
  font-weight: bold;
  font-family: "Montserrat";
}
.style39 {
  font-size: 12px;
  color: #cc3333;
  font-family: "Montserrat";
}
.style41 {
  font-size: 12px;
  color: #0000ff;
  font-family: "Montserrat";
}
.style42 {
  font-size: 11px;
  font-weight: bold;
  font-family: "Montserrat";
}
.style61 {
  font-weight: bold;
}
.style121 {
  font-size: 12px;
  font-family: "Montserrat";
}
.style131 {
  font-weight: bold;
  font-family: "Montserrat";
}
.style201 {
  font-size: 11px;
  font-family: "Montserrat";
}
.heading {
  color: #0000ff;
  font-family: "Montserrat";
}

/* Container and Layout */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  min-height: calc(100vh - 200px);
  flex: 1;
}

.main-content {
  flex: 1;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Header Styles */
.site-header {
  background-color: #006634;
  text-align: center;
  padding: 10px 0;
}

.banner-logo {
  max-width: 100%;
  height: auto;
  max-height: 159px;
}

/* Navigation Styles */
.sidebar {
  background: linear-gradient(135deg, #e8b900 0%, #f4c842 50%, #e8b900 100%);
  border-right: 3px solid #006634;
  width: 220px;
  flex-shrink: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="horseshoe" patternUnits="userSpaceOnUse" width="50" height="50"><path d="M25 10 C35 10, 40 15, 40 25 C40 35, 35 40, 25 40 C15 40, 10 35, 10 25 C10 15, 15 10, 25 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23horseshoe)"/></svg>')
    repeat;
  opacity: 0.3;
  pointer-events: none;
}

.main-nav {
  background: transparent;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
}

/* Enhanced Toggle Button */
.nav-toggle {
  display: none;
  background: linear-gradient(135deg, #006634 0%, #008844 100%);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-toggle:hover {
  background: linear-gradient(135deg, #008844 0%, #00aa55 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-toggle:active {
  transform: translateY(0);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: 10px;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-toggle-text {
  font-weight: bold;
  font-size: 14px;
}

/* Enhanced Brand Section */
.nav-brand {
  padding: 20px 15px;
  text-align: center;
  border-bottom: 2px solid rgba(0, 102, 52, 0.3);
  margin-bottom: 10px;
}

.proudly-australian {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #006634;
  position: relative;
  overflow: hidden;
}

.proudly-australian::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

.fi-au {
  display: inline-block;
  animation: wave 2s infinite ease-in-out;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.proudly-australian strong {
  color: #006634;
  font-size: 14px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced Menu */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 0 10px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  color: #006634;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  margin-bottom: 2px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #006634, #008844);
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover {
  color: white;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 102, 52, 0.3);
  border-color: #006634;
}

.nav-link.active {
  background: linear-gradient(135deg, #006634 0%, #008844 100%);
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 102, 52, 0.4);
  border-color: #004422;
  transform: translateX(3px);
}

.nav-link.active::before {
  width: 100%;
}

.nav-icon {
  font-size: 18px;
  margin-right: 12px;
  transition: all 0.3s ease;
  min-width: 20px;
  text-align: center;
}

.nav-icon i {
  transition: all 0.3s ease;
}

.nav-link:hover .nav-icon i,
.nav-link.active .nav-icon i {
  transform: scale(1.2);
  color: inherit;
}

/* Specific icon colors for better visual hierarchy */
.nav-link[data-page="home"] .nav-icon i {
  color: #e67e22;
}

.nav-link[data-page="prices"] .nav-icon i {
  color: #27ae60;
}

.nav-link[data-page="gallery"] .nav-icon i {
  color: #3498db;
}

.nav-link[data-page="materials"] .nav-icon i {
  color: #9b59b6;
}

.nav-link[data-page="links"] .nav-icon i {
  color: #f39c12;
}

.nav-link[data-page="clearance"] .nav-icon i {
  color: #e74c3c;
}

.nav-link[data-page="gift_vouchers"] .nav-icon i {
  color: #e91e63;
}

/* When nav link is active or hovered, icons turn white */
.nav-link:hover .nav-icon i,
.nav-link.active .nav-icon i {
  color: white !important;
}

/* Social icon styling */
.social-icon {
  font-size: 24px;
  color: #1877f2;
  transition: all 0.3s ease;
}

.social-link:hover .social-icon {
  transform: scale(1.1);
  color: #145dbf;
}

/* Contact icon styling */
.contact-icon i {
  font-size: 16px;
  color: #006634;
}

/* Loading spinner */
.loading-placeholder .fa-spinner {
  font-size: 18px;
  color: #006634;
  margin-right: 8px;
}

/* Footer icons */
.footer-section h3 i {
  margin-right: 8px;
  color: #006634;
}

.footer-section p i {
  margin-right: 6px;
  color: #006634;
  width: 16px;
  text-align: center;
}

/* Content header icons */
.content-header h1 i {
  margin-right: 10px;
  color: #006634;
}

/* Icon animations */
@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.nav-link.active .nav-icon i {
  animation: iconPulse 2s infinite;
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .nav-icon i,
  .social-icon,
  .contact-icon i,
  .footer-section i {
    filter: contrast(2);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .nav-icon i,
  .social-icon,
  .loading-placeholder .fa-spinner {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    order: -1;
  }

  .main-nav {
    min-height: auto;
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
  }

  .nav-item {
    flex: 1;
    min-width: 150px;
  }

  .nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media screen and (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .sidebar {
    position: relative;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #e8b900 0%, #f4c842 50%, #e8b900 100%);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 15px 15px;
    padding: 15px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-item {
    margin-bottom: 5px;
  }

  .nav-link {
    padding: 12px 15px;
    font-size: 16px;
  }

  .nav-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(0, 102, 52, 0.3);
  }

  .nav-brand {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }

  .nav-icon {
    font-size: 16px;
    margin-right: 8px;
  }

  .social-link {
    padding: 8px;
  }

  .social-link img {
    width: 40px;
    height: auto;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .nav-toggle,
  .social-link,
  .hamburger-line,
  .australian-flag,
  .nav-menu {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: high) {
  .nav-link {
    border: 2px solid;
  }

  .nav-link.active {
    background: #000;
    color: #fff;
    border-color: #fff;
  }

  .proudly-australian {
    border: 3px solid #000;
  }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.nav-toggle:focus,
.social-link:focus {
  outline: 3px solid #ff6b35;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .nav-toggle,
  .social-links,
  .nav-contact {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    position: static;
    background: transparent;
    box-shadow: none;
  }

  .nav-link {
    background: transparent;
    color: #000;
    border: 1px solid #000;
  }
}

/* Footer Styles */
#footer {
  margin-top: 40px;
  padding: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #006531;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
}

.footer-section {
  background: rgb(255, 255, 255);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #006531;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-section h3 {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(52, 152, 219, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  line-height: 1.6;
  margin: 0 0 15px 0;
  font-size: 1em;
}

.footer-section p:last-child {
  margin-bottom: 0;
}

.footer-section strong {
  font-weight: 600;
}

.footer-section u {
  color: #e74c3c;
  text-decoration: none;
  background: linear-gradient(to right, #e74c3c, #c0392b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.footer-section a {
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.footer-section a:hover {
  border-bottom-color: #5dade2;
  text-shadow: 0 0 5px rgba(93, 173, 226, 0.3);
}

/* Contact Info Styling */
.footer-section p strong {
  display: inline-block;
  min-width: 60px;
}

/* Business Hours Special Styling */
.footer-section:first-child p:first-of-type {
  background: rgba(231, 76, 60, 0.1);
  padding: 15px;
  border-radius: 5px;
  border-left: 3px solid #e74c3c;
  margin-bottom: 20px;
}

.footer-section:first-child p:first-of-type strong {
  color: #e74c3c;
}

/* Phone number highlighting */
.footer-section p:contains("0408 134 034") {
  background: rgba(46, 204, 113, 0.1);
  padding: 10px;
  border-radius: 5px;
  border-left: 3px solid #2ecc71;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 15px;
  }

  .footer-section {
    padding: 20px;
  }

  .footer-section h3 {
    font-size: 1.2em;
  }

  .footer-section p {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 20px 10px;
  }

  .footer-section {
    padding: 15px;
  }

  .footer-section h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
  }
}

/* Footer Bottom Bar (optional) */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #95a5a6;
  font-size: 0.9em;
}

/* Australian flag and branding */
.footer-section .australian-flag {
  font-size: 1.2em;
  margin-right: 5px;
}

/* Animation for loading */
.footer-container.loading {
  opacity: 0;
  transform: translateY(20px);
}

.footer-container.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

/* Print styles */
@media print {
  #footer {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border-top: 2px solid #000 !important;
  }

  .footer-section {
    background: white !important;
    border: 1px solid #000 !important;
    break-inside: avoid;
  }

  .footer-section h3 {
    color: black !important;
    border-bottom-color: #000 !important;
  }

  .footer-section p,
  .footer-section strong,
  .footer-section a {
    color: black !important;
  }
}
