/* Bootstrap CSS Changes */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #8B5A2B;
    --bs-btn-border-color: #8B5A2B;
    --bs-btn-hover-bg: #6B4E3D;
    --bs-btn-hover-border-color: #6B4E3D;
}

.btn-outline-primary {
    color: #6B4E3D;
    border-color: #6B4E3D;
}

.btn-outline-primary:hover{
    background-color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:active:focus
{
    color: #fff;
    background-color: #6B4E3D;
    border-color: #6B4E3D;
}

.btn-secondary{
    font-weight: normal;
}

.btn-outline-secondary{
    color: black;
    font-weight: 400;
}

.btn-outline-secondary:hover{
    color: var(--text-dark);
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
    font-weight: 500;
}

.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary:active:focus
{
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--accent-color);
    border-color: #6B4E3D;
}

.btn-outline-home {
    color: #6B4E3D;
    border-color: #6B4E3D;
}

.btn-outline-home:hover{
    color: var(--secondary-color);
}

.btn-outline-home:focus,
.btn-outline-home:active,
.btn-outline-home:active:focus
{
    outline: none;
    box-shadow: none;
    color: var(--primary-color);
    border-color: #6B4E3D;
}

/* Home page styles */
@font-face {
    font-family: 'cakefont';
    src: url('../font/cakedingbats-webfont.eot');
    src: url('../font/cakedingbats-webfont.eot?#iefix') format('embedded-opentype'),
    url('../font/cakedingbats-webfont.woff2') format('woff2'),
    url('../font/cakedingbats-webfont.woff') format('woff'),
    url('../font/cakedingbats-webfont.ttf') format('truetype'),
    url('../font/cakedingbats-webfont.svg#cake_dingbatsregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
img {
    margin-bottom: 30px;
}
h1 {
    font-weight: bold;
}
h1 a:hover{
  color:#8B5A2B;
}
ul {
    list-style-type: none;
    margin: 0 0 30px 0;
    padding-left: 25px;
}
hr {
    border-bottom: 1px solid #e7e7e7;
    border-top: 0;
    margin-bottom: 35px;
}

.text-center {
    text-align: center;
}
.links a {
    margin-right: 10px;
}
.release-name {
    color: #D33C43;
    font-weight: 400;
    font-style: italic;
}
.bullet:before {
    font-family: 'cakefont', sans-serif;
    font-size: 18px;
    display: inline-block;
    margin-left: -1.3em;
    width: 1.2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: -1px;
}
.success:before {
    color: #88c671;
    content: "\0056";
}
.problem:before {
    color: #d33d44;
    content: "\0057";
}
.cake-error {
    padding: 10px;
    margin: 10px 0;
}
#url-rewriting-warning {
    display: none;
}

/* BrewHub Landing Page Styles - Optimized Version */

/* H1 Text Link Colour */
h1 a {
  color: #6B4E3D;
}

/* CSS Variables for consistent theming */
:root {
  --primary-color: #6B4E3D;
  --secondary-color: #8B5A2B;
  --accent-color: #D2B48C;
  --background-light: #FAF7F0;
  --text-dark: #2C1810;
  --text-light: #666;
  --white: #FFFFFF;
  --success-color: #4CAF50;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.25);
  --focus-color: #005fcc;
  --focus-width: 3px;

  /* Typography scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Container utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Focus styles for accessibility */
*:focus {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: 2px;
}

/* Header and Navigation */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: none;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo h1 {
  color: var(--primary-color);
  font-size: var(--font-size-2xl);
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.tagline {
  color: var(--text-light);
  font-size: var(--font-size-lg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  padding: 0;
  margin: 0;
  font-size: var(--font-size-lg);
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--primary-color);
  background-color: var(--background-light);
}

.contact-btn {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 25px;
}

.contact-btn:hover {
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 30px;
  height: 30px;
  justify-content: space-between;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--background-light) 0%, #F5F2E8 100%);
  padding: 5rem 0;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow-medium);
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--font-size-2xl);
  text-align: center;
  font-weight: bold;
}

.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--success-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-medium);
  color: white;
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-medium);
}

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

.btn-white:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-medium);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: var(--font-size-lg);
}

/* Sections */
section {
  padding: 4rem 0;
  scroll-margin-top: 80px;
}

.nav-link {
    padding: 0.5rem 1rem; /* top-bottom | left-right */
}

.section-title {
  text-align: center;
  font-size: var(--font-size-3xl);
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-weight: bold;
}

/* Features Section */
.features-section {
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(107, 78, 61, 0.1);
  cursor: pointer;
}

.feature-card:hover,
.feature-card:focus {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
  border-color: var(--accent-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    background-size: cover;
}

.feature-title {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: bold;
}

.feature-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* About Preview Section */
.about-preview {
  background: linear-gradient(135deg, var(--background-light) 0%, #F0EDE5 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: var(--font-size-3xl);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: space-around;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.about-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 15px 35px var(--shadow-medium);
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--font-size-xl);
  font-weight: bold;
  text-align: center;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.star {
  font-size: var(--font-size-lg);
  margin-right: 0.25rem;
}

.testimonial-text {
  font-size: var(--font-size-lg);
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.25rem;
}

.author-location {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

/* Contact CTA Section */
.contact-cta {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-content p {
  font-size: var(--font-size-lg);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}

.contact-item a {
  color: var(--white);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-icon {
  font-size: var(--font-size-lg);
}

/* Footer */
.main-footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
footer {
  font-size: var(--font-size-sm);
}


.footer-section h3,
.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section p {
  color: #ccc;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.day {
  font-weight: 500;
}

.time {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .stats-row {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-medium);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-info {
    flex-direction: column;
    gap: 1rem;
  }

  section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-xl);
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --text-light: #000000;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
