/*
 * Ridgeline Business Advisors – Global Stylesheet
 *
 * This CSS file defines the base styling, layout, and responsive
 * behaviour for the Ridgeline Business Advisors website. Colour variables
 * reflect the client’s brand palette and typography utilises
 * professional Google Fonts. Components such as the sticky header,
 * hero section, and cards are styled here for consistency across
 * multiple pages.
 */

/*----------------------
  Root variables
-----------------------*/
:root {
  --color-primary-green: #1a431a;
  --color-accent-gold: #b8860b;
  --color-neutral-cream: #f5f5dc;
  --color-neutral-warm-grey: #808080;
  --color-neutral-charcoal: #36454f;
  --font-heading: 'Merriweather', serif;
  --font-body: 'Montserrat', sans-serif;
}

/*----------------------
  Basic resets
-----------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-neutral-charcoal);
  background-color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/*----------------------
  Navigation
-----------------------*/
.navbar {
  background-color: var(--color-primary-green);
  color: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.5rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-weight: 600;
  color: #fff;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-accent-gold);
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-accent-gold);
  color: var(--color-primary-green);
  padding: 0.6rem 1.2rem;
  border-radius: 3px;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
  background-color: #c1972e;
  color: var(--color-primary-green);
}

/* Mobile nav toggle */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  position: relative;
  transition: transform 0.3s ease;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle .hamburger::before {
  top: -7px;
}

.nav-toggle .hamburger::after {
  top: 7px;
}

/* Nav open state */
.main-nav.open {
  display: block;
  background-color: var(--color-primary-green);
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  padding: 1rem;
}

.main-nav.open ul {
  flex-direction: column;
  gap: 1rem;
}

/*----------------------
  Hero section
-----------------------*/
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  min-height: 80vh;
  background-image: url('../images/griffith-observatory.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 2rem;
}

/*----------------------
  Value proposition section
-----------------------*/
.value-prop {
  background-color: var(--color-neutral-cream);
  padding: 3rem 0;
}

.value-prop h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary-green);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 1rem;
}

.feature img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary-green);
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.95rem;
  color: var(--color-neutral-charcoal);
}

/*----------------------
  Services preview section
-----------------------*/
.services-preview {
  padding: 3rem 0;
}

.services-preview h2 {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 2.2rem;
  color: var(--color-primary-green);
  margin-bottom: 0.5rem;
}

.services-preview .intro {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-neutral-warm-grey);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 1.5rem;
  background-color: #fff;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-green);
}

.service-card p {
  font-size: 0.93rem;
  margin-bottom: 1rem;
  color: var(--color-neutral-charcoal);
}

.service-card a {
  font-weight: 600;
  color: var(--color-accent-gold);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.service-card a:hover {
  color: #d4a437;
}

/*----------------------
  Lead magnet section
-----------------------*/
.lead-magnet {
  background-color: var(--color-primary-green);
  color: #fff;
  padding: 3rem 0;
}

.lead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.lead-content {
  flex: 1 1 340px;
}

.lead-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.lead-content p {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.btn-secondary {
  display: inline-block;
  background-color: #fff;
  color: var(--color-primary-green);
  padding: 0.6rem 1.2rem;
  border-radius: 3px;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--color-neutral-cream);
  color: var(--color-primary-green);
}

.lead-image {
  flex: 1 1 340px;
  text-align: center;
}

.lead-image img {
  max-width: 90%;
  height: auto;
  border-radius: 4px;
}

/*----------------------
  Testimonials section
-----------------------*/
.testimonials {
  background-color: var(--color-neutral-cream);
  padding: 3rem 0;
}

.testimonials h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary-green);
  text-align: center;
  margin-bottom: 2rem;
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.testimonial .quote {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.testimonial .client-name {
  font-weight: 600;
  color: var(--color-neutral-charcoal);
}

/*----------------------
  Form styles
-----------------------*/
form {
  display: grid;
  gap: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  background-color: var(--color-accent-gold);
  color: var(--color-primary-green);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #c1972e;
}

/* Error state for validation */
.error {
  border-color: #e74c3c !important;
}

/*----------------------
  Footer section
-----------------------*/
.site-footer {
  background-color: var(--color-neutral-charcoal);
  color: #fff;
  padding-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.5;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent-gold);
}

.footer-links ul li,
.footer-contact address a {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #fff;
  display: block;
}

.footer-contact address a:hover {
  color: var(--color-accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/*----------------------
  Services detail blocks
-----------------------*/
.service-detail {
  padding: 3rem 0;
}

.service-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-block:nth-child(even) {
  flex-direction: row-reverse;
}

.service-block .text {
  flex: 1 1 50%;
}

.service-block .image {
  flex: 1 1 40%;
}

.service-block .image img {
  border-radius: 4px;
}

.service-block h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary-green);
  margin-bottom: 0.6rem;
}

.service-block p {
  font-size: 0.95rem;
  color: var(--color-neutral-charcoal);
  line-height: 1.6;
}

.cta-section {
  text-align: center;
  background-color: var(--color-primary-green);
  color: #fff;
  padding: 2rem 1rem;
  border-radius: 4px;
}

.cta-section h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-section a.btn-secondary {
  margin-top: 1rem;
}

/*----------------------
  Two column layout (used on about/contact pages)
-----------------------*/
.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.two-column > div {
  flex: 1 1 45%;
}

@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
  }
  .two-column > div {
    flex: 1 1 100%;
  }
}

/* Philosophy list for About page */
.philosophy-list {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.philosophy-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-neutral-charcoal);
  line-height: 1.6;
}

.philosophy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-accent-gold);
  border-radius: 50%;
}

/*----------------------
  Responsive adjustments
-----------------------*/
@media (max-width: 768px) {
  .main-nav ul {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .lead-inner {
    flex-direction: column;
    text-align: center;
  }
  .lead-content,
  .lead-image {
    flex: 1 1 100%;
  }
  .lead-image img {
    margin: 0 auto;
  }
}