/*
 * Pacific Business Exchange – Global Stylesheet
 *
 * This CSS file defines the base styling, layout, and responsive
 * behaviour for the Pacific Business Exchange 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: 'Rockwell', serif;
  --font-body: 'Source Sans Pro', 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;
}

h1,
h2 {
  font-family: var(--font-heading);
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 400;
}

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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  min-height: 110px;
  background-color: #154734;
  color: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.navbar-logo {
  max-height: 100px;
  width: auto;
  display: block;
}

.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 {
  display: flex;
  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-body);
  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-body);
  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-body);
  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 {
  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-body);
  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-body);
  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
-----------------------*/
/* Header & footer logo sizing */
.footer-brand img,
.footer-logo {
  max-height: 80px;
  width: auto;
}

@media (max-width: 1024px) {
  .navbar-logo {
    max-height: 88px;
  }
  .navbar {
    min-height: 100px;
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .navbar-logo {
    max-height: 74px;
  }
  .navbar {
    min-height: 92px;
  }
  .lead-inner {
    flex-direction: column;
    text-align: center;
  }
  .lead-content,
  .lead-image {
    flex: 1 1 100%;
  }
  .lead-image img {
    margin: 0 auto;
  }
}

/*----------------------
  Team section styles
-----------------------*/
.team-section {
  margin: 4rem 0;
  padding: 2rem 0;
}

.team-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-primary-green);
}

.team-section > p {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.team-member {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  position: relative;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.team-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.team-link:hover {
  text-decoration: none;
  color: inherit;
}

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--color-accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-link:hover .read-more {
  opacity: 1;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--color-neutral-cream);
}

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

.team-title {
  color: var(--color-accent-gold);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.team-description {
  color: var(--color-neutral-charcoal);
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/*----------------------
  Team bio page styles
-----------------------*/
.team-bio-hero {
  background: var(--color-neutral-cream);
  padding: 3rem 0;
}

.bio-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.bio-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.bio-intro h1 {
  font-size: 2.5rem;
  color: var(--color-primary-green);
  margin-bottom: 0.5rem;
}

.bio-title {
  font-size: 1.3rem;
  color: var(--color-accent-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.back-link {
  color: var(--color-neutral-charcoal);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--color-primary-green);
}

.team-bio-content {
  padding: 4rem 0;
}

.bio-content {
  max-width: 800px;
  margin: 0 auto;
}

.bio-summary, .bio-experience, .bio-expertise, .bio-cta {
  margin-bottom: 3rem;
}

.bio-content h2 {
  color: var(--color-primary-green);
  margin-bottom: 1rem;
}

.bio-content h3 {
  color: var(--color-primary-green);
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.experience-column ul {
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

.experience-column li {
  margin-bottom: 0.5rem;
  color: var(--color-neutral-charcoal);
}

.bio-cta {
  background: var(--color-neutral-cream);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.bio-cta h3 {
  margin-top: 0;
}

blockquote {
  background: #f9f9f9;
  border-left: 4px solid var(--color-accent-gold);
  margin: 2rem 0;
  padding: 1rem 2rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .bio-header {
    flex-direction: column;
    text-align: center;
  }

  .bio-photo {
    width: 150px;
    height: 150px;
  }

  .bio-intro h1 {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .navbar-logo {
    max-height: 58px;
  }
  .navbar {
    min-height: 84px;
  }

  .team-section {
    margin: 2rem 0;
  }

  .team-member {
    padding: 1rem;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }

  .team-bio-hero {
    padding: 2rem 0;
  }

  .bio-content {
    padding: 0 1rem;
  }
}

/*----------------------
  NDA page styles
-----------------------*/
.nda-form-section {
  background: var(--color-neutral-cream);
  padding: 4rem 0;
}

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

.form-container h2 {
  color: var(--color-primary-green);
  margin-bottom: 1rem;
}

.form-intro {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--color-neutral-charcoal);
}

.cognito-form-wrapper {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  text-align: left;
}

.next-steps {
  padding: 4rem 0;
}

.next-steps h2 {
  text-align: center;
  color: var(--color-primary-green);
  margin-bottom: 3rem;
}

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

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

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-accent-gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem auto;
}

.step h3 {
  color: var(--color-primary-green);
  margin-bottom: 1rem;
}

.step p {
  color: var(--color-neutral-charcoal);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .nda-form-section {
    padding: 2rem 0;
  }

  .cognito-form-wrapper {
    padding: 1rem;
    margin: 0 1rem;
  }

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