/* =========================================
   1. RESET & BASE STYLES
   ========================================= */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body { 
  font-family: Arial, sans-serif; 
  line-height: 1.6; 
  color: #333; 
  background-color: #fff;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header { 
  background: #1a5f1a; 
  color: white; 
  padding: 1rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

header .logo { 
  font-size: 1.5rem; 
  font-weight: bold; 
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

nav a { 
  color: white; 
  margin: 0 1rem; 
  text-decoration: none; 
  display: inline-block;
  white-space: nowrap;
}

nav a:first-child, nav a[href="reviews.html"] {
  font-weight: bold;
  color: #ffeb3b; /* Yellow accent */
}

/* =========================================
   3. HERO SECTION
   ========================================= */
#hero { 
  background: #2e7d32; 
  color: white; 
  text-align: center; 
  padding: 4rem 1rem; 
}

#hero h1 { 
  font-size: 2.5rem; 
  margin-bottom: 1rem; 
}

#hero-logo {
  display: block;
  max-width: 350px;
  width: 80%;
  height: auto;
  margin: 2rem auto 1rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-btn-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn { 
  background: #ffeb3b; 
  color: #1a5f1a; 
  padding: 0.75rem 1.5rem; 
  text-decoration: none; 
  border-radius: 5px; 
  display: inline-block; 
  margin-top: 1rem; 
  font-weight: bold;
}

.reviews-btn {
  background: #ff9800;
  color: white;
}

.reviews-btn:hover {
  background: #f57c00;
}

/* =========================================
   4. SERVICES & CONTENT SECTIONS
   ========================================= */
section { 
  padding: 3rem 1rem; 
}

h2 { 
  margin-bottom: 1.5rem; 
  text-align: center; 
}

.grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 1rem; 
}

.card { 
  background: #e8f5e9; 
  padding: 1.5rem; 
  text-align: center; 
  border-radius: 8px; 
}

/* Before & After */
#before-after {
  text-align: center;
  padding: 3rem 1rem;
  background: #f8f9fa;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ba-pair {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ba-photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ba-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.ba-photo:hover img {
  transform: scale(1.05);
}

.ba-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

/* =========================================
   5. REVIEWS PAGE SPECIFIC
   ========================================= */
#reviews-hero {
  background: #2e7d32;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.review-submit {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.rating-group {
  margin: 1rem 0;
  text-align: left;
}

.review-cta {
  text-align: center;
  padding: 3rem 1rem;
  background: #f5f5f5;
}

/* =========================================
   6. FORMS & FOOTER
   ========================================= */
form { 
  max-width: 500px; 
  margin: 2rem auto; 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
}

form input, form textarea, form select { 
  padding: 0.75rem; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
  font-size: 1rem;
  width: 100%;
}

form button { 
  background: #1a5f1a; 
  color: white; 
  padding: 0.75rem; 
  border: none; 
  cursor: pointer; 
  font-size: 1.1rem;
  border-radius: 6px;
}

footer { 
  background: #1a5f1a; 
  color: white; 
  text-align: center; 
  padding: 1.5rem; 
}

/* =========================================
   7. LANGUAGE LOGIC & TOGGLE
   ========================================= */
#lang-toggle { 
  background-color: #ffcc00; 
  color: #333; 
  border: none; 
  padding: 8px 15px; 
  border-radius: 5px; 
  cursor: pointer; 
  font-weight: bold; 
}

#lang-toggle:hover { 
  background-color: #e6b800; 
}

/* Hide Gaelic when in English */
html[lang="en"] .gd-only {
  display: none !important;
}

/* Hide English when in Gaelic */
html[lang="gd"] .en-only {
  display: none !important;
}

.btn {
  min-width: 150px; /* Ensures buttons never shrink too small */
  text-align: center;
}

.ba-grid {
  /* This ensures that on smaller screens, it shows 1 pair, and on larger screens, it shows up to 3 side-by-side */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
