/* Simple Enhancements for Oxford Street Finance */
/* These styles layer on top of existing CSS without breaking anything */

/* ===== Better Typography ===== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Body text: Roboto for readability */
p, li, input, textarea, button, a {
  font-family: 'Roboto', sans-serif !important;
}

/* Headings: keep Raleway for brand identity */
h1, h2, h3, h4, h5, h6, .nav a {
  font-family: 'Raleway', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

p {
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: #3a3a3a;
}

/* ===== Cleaner Header ===== */
.header {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease !important;
}

.header.is-sticky {
  position: fixed !important;
  height: 80px !important;
  background-color: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  z-index: 1000;
}

.header.is-sticky .container.gridless {
  display: flex !important;
  align-items: center !important;
  height: 100%;
}

.header.is-sticky .logo {
  display: flex;
  align-items: center;
}

.header.is-sticky .logo svg {
  height: 36px;
  transition: height 0.3s ease;
}

.header.is-sticky .nav a {
  font-size: 16px;
}

.header.is-sticky + .js-mobile-nav + main .hero-matrix,
.header.is-sticky + .js-mobile-nav + main {
  padding-top: 80px;
}

/* When mobile nav is open, override sticky styles */
.mobile-nav-active .header.is-sticky {
  height: 180px !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.mobile-nav-active .header.is-sticky .logo svg {
  height: 100%;
}

/* Underline indicator for desktop nav */
.header .nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2c6633;
  transition: width 0.3s ease;
}

.header .nav a:hover::after {
  width: 100%;
}

.header .nav a:hover {
  text-decoration: none !important;
}

.nav a {
  transition: all 0.2s ease !important;
  position: relative;
  text-decoration: none !important;
}

.nav a:hover {
  opacity: 1 !important;
  text-decoration: none !important;
}

/* ===== Portrait Image Styling ===== */
.content-image-block .image-wrapper img {
  border-radius: 8px !important;
}

/* ===== Better Hero Section ===== */
.hero-content-block {
  background-size: cover !important;
}

.hero-content-block .heading {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== Service Cards Enhancement ===== */
.list-block .full-width-item.row {
  padding-bottom: 0 !important;
}

.list-block .full-width-item {
  background: white;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  transition: all 0.3s ease !important;
  border: none !important;
  overflow: hidden;
}

/* Grey background on the image side of service cards */
.list-block .full-width-item {
  position: relative;
}

/* Even rows: image on right, grey on right */
.list-block .full-width-item.even::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 50% !important;
  height: 100% !important;
  background: #fafafa !important;
  z-index: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  pointer-events: none !important;
}

/* Odd rows: image on left, grey on left */
.list-block .full-width-item.odd::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 50% !important;
  height: 100% !important;
  background: #fafafa !important;
  z-index: 0 !important;
  border-radius: 8px 0 0 8px !important;
  pointer-events: none !important;
}

.list-block .full-width-item > * {
  position: relative !important;
  z-index: 1 !important;
}

.list-block .full-width-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

.list-block .image-wrapper img {
  transition: transform 0.3s ease !important;
}

.list-block .full-width-item:hover .image-wrapper img {
  transform: scale(1.05);
}

/* ===== Better Buttons ===== */
button, .button {
  border-radius: 6px !important;
  padding: 14px 28px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

button:hover, .button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(103, 188, 69, 0.3) !important;
}

/* ===== Form Improvements ===== */
input, textarea {
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  font-size: 16px !important;
}

input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(103, 188, 69, 0.15) !important;
  transform: translateY(-1px);
}

.field {
  margin-bottom: 0.75rem !important;
}

.field input,
.field textarea {
  padding: 0.5rem 0.75rem !important;
}

/* ===== Quote Section ===== */
.quote-block {
  position: relative;
  overflow: hidden;
}

.quote-block .quote {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(5px);
  border-radius: 8px !important;
  padding: 2.5rem !important;
  transition: all 0.3s ease;
}

.quote-block .quote:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: scale(1.02);
}

/* ===== Contact Section ===== */
.contact-us-block .contact-methods a {
  text-transform: none !important;
}

.contact-methods a {
  transition: all 0.2s ease !important;
  border-radius: 6px;
  padding: 12px;
  display: block;
  margin-bottom: 8px;
}

.contact-methods a:hover {
  background: rgba(103, 188, 69, 0.05);
  transform: translateX(4px);
}

/* ===== Footer Improvements ===== */
.footer {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer .social-links a {
  transition: all 0.2s ease !important;
  border-radius: 6px !important;
}

.footer .social-links a:hover {
  transform: translateY(-3px) !important;
  background: rgba(103, 188, 69, 0.1);
}

/* ===== Content Spacing ===== */
.content-image-block,
.list-block,
.quote-block,
.contact-us-block {
  padding: 5rem 0 !important;
}

@media (max-width: 768px) {
  .content-image-block,
  .list-block,
  .quote-block,
  .contact-us-block {
    padding: 3rem 0 !important;
  }
}

/* ===== Smooth Animations ===== */
* {
  transition: color 0.2s ease, background-color 0.2s ease;
}

img {
  transition: opacity 0.3s ease;
}

/* ===== Improved Mobile Navigation ===== */
.mobile-nav {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.mobile-nav-active .mobile-nav {
  opacity: 1;
  transform: translateY(0);
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  z-index: 900;
}

.mobile-nav .nav li {
  opacity: 0;
  transform: translateY(20px);
}

.mobile-nav-active .mobile-nav .nav li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-active .mobile-nav .nav li:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-nav-active .mobile-nav .nav li:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-nav-active .mobile-nav .nav li:nth-child(3) {
  transition-delay: 0.3s;
}

.mobile-nav .nav a {
  opacity: 1 !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  display: inline-block;
  padding: 8px 0;
  position: relative;
}

.mobile-nav .nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: rgba(255,255,255,0.6);
  transition: width 0.3s ease;
}

.mobile-nav .nav a:hover::after {
  width: 80%;
}

.mobile-nav .nav a:hover {
  text-decoration: none !important;
  opacity: 1 !important;
}

/* Fix hamburger clipping and positioning */
.hamburger {
  transform: none !important;
}

.hamburger.hamburger--emphatic {
  overflow: visible !important;
}

/* Hamburger styling - enhances the hamburgers library */
.hamburger {
  z-index: 1001;
  border: none !important;
  background: transparent !important;
  padding: 15px !important;
  overflow: visible !important;
}

.hamburger:hover {
  opacity: 0.7 !important;
}

.hamburger .hamburger-inner,
.hamburger .hamburger-inner::before,
.hamburger .hamburger-inner::after {
  background-color: #2c6633 !important;
  height: 3px !important;
  border-radius: 2px !important;
}

.mobile-nav-active .hamburger .hamburger-inner::before,
.mobile-nav-active .hamburger .hamburger-inner::after {
  background-color: #fff !important;
}

.mobile-nav-active .hamburger .hamburger-inner {
  background-color: transparent !important;
}

/* ===== Better Mobile Experience ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 32px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  h3 {
    font-size: 22px !important;
  }

  .list-block .full-width-item {
    margin-bottom: 1.5rem !important;
  }

  .contact-us-block .col-md-offset-1.col-md-6 {
    margin-top: 2rem;
  }
}

/* ===== Scroll offset for anchors ===== */
#about-us,
#services,
#contact-us {
  scroll-margin-top: 90px;
}

/* ===== Subtle Loading Effect ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content-block .heading,
.content-image-block,
.list-block .full-width-item,
.quote-block .quote {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== CMS Content Links ===== */
.cms a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease !important;
}

.cms a:hover {
  opacity: 0.7;
}

/* ===== Focus States for Accessibility ===== */
*:focus-visible {
  outline: 2px solid #67bc45 !important;
  outline-offset: 2px;
}

/* ===== Make Images Crisper ===== */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ===== Clean up spacing issues ===== */
.container {
  max-width: 1200px !important;
}