/* B & M O'Brien Brothers Ltd - Custom Styles */

:root {
  --primary-green: #006847;
  --dark-green: #004d33;
  --light-green: #e8f5e9;
  --white: #ffffff;
  --gray: #f8f9fa;
  --text-dark: #333;
}

/* Reset and body */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: white;
}

/* Top green contact bar */
.top-header {
  background: var(--primary-green);
  color: white;
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.top-header a {
  color: white;
  text-decoration: none;
}

.top-header a:hover {
  text-decoration: underline;
}

/* Main header/navigation */
.site-header {
  background: white !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.site-title {
  display: flex;
  align-items: center;
}

.site-title img {
  max-height: 60px;
  width: auto;
}

/* Navigation menu */
nav.site-navigation a {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

nav.site-navigation a:hover {
  color: var(--primary-green) !important;
  border-bottom: 2px solid var(--primary-green);
}

/* Hero section */
.hero-section {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin: 0;
  color: white;
  border: none;
}

/* Content sections */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--primary-green);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark-green);
}

/* Links */
a {
  color: var(--primary-green);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--dark-green);
}

/* Buttons */
.btn, .cta, a.btn {
  background: var(--primary-green);
  color: white !important;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover, .cta:hover, a.btn:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 104, 71, 0.3);
}

/* Service boxes */
.service-box {
  background: white;
  padding: 2rem;
  margin: 1rem 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.service-box:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.service-box h3 {
  color: var(--primary-green);
  margin-top: 0;
}

/* Grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Footer */
footer.site-footer {
  background: var(--text-dark);
  color: #999;
  padding: 2rem 0;
  margin-top: 0;
  text-align: center;
}

footer.site-footer a {
  color: var(--primary-green);
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 2px solid var(--primary-green);
  margin: 2.5rem 0;
  opacity: 0.2;
}

/* Contact info styling */
.contact-info {
  background: var(--gray);
  padding: 2rem;
  border-left: 4px solid var(--primary-green);
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  h1 {
    font-size: 1.75rem;
  }

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

/* Override Ananke defaults */
main.pb7 {
  padding-bottom: 0 !important;
}

article {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.bg-black, .bg-dark-red {
  background-color: white !important;
}

.white {
  color: var(--text-dark) !important;
}

article header h1.f1 {
  color: var(--text-dark);
}

.cover-bg {
  background-color: rgba(0,0,0,0.35) !important;
}

/* Ananke nav overrides */
nav.pv3 a {
  color: var(--text-dark) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

nav.pv3 a:hover {
  color: var(--primary-green) !important;
}
