/* =========================================================
   Bianchi and McDonald, LLC — Stylesheet
   ========================================================= */

/* --- Variables --- */
:root {
  --green:       #155C34;
  --green-dark:  #0E4124;
  --green-light: #EBF2EE;
  --green-mid:   #C4D9CB;
  --white:       #FFFFFF;
  --off-white:   #F8F7F4;
  --text-dark:   #1C1C1C;
  --text-mid:    #4A4A4A;
  --text-light:  #6B7B71;
  --border:      #D6E2DA;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --shadow:      0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.11);
  --radius:      3px;
  --max-width:   1080px;
  --nav-height:  72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }

p { color: var(--text-mid); }

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section--tinted { background: var(--off-white); }
.section--green { background: var(--green); }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-label--white { color: rgba(255,255,255,0.7); }

.section-heading { margin-bottom: 1.25rem; }
.section-heading--white { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 3rem;
  color: var(--text-mid);
}

.section-intro--white { color: rgba(255,255,255,0.8); }

.divider {
  width: 48px;
  height: 3px;
  background: var(--green);
  margin-bottom: 1.5rem;
}

.divider--white { background: rgba(255,255,255,0.5); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn--outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline-green:hover { background: var(--green); color: var(--white); }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { display: flex; align-items: center; gap: 0.875rem; }

.nav__logo img {
  height: 48px;
  width: 48px;
  border-radius: var(--radius);
  object-fit: cover;
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.nav__logo-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  transition: color 0.15s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--green); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--green);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--green-dark) !important; color: var(--white) !important; }

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  transition: transform 0.2s, opacity 0.2s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  gap: 1.1rem;
}

.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.15s;
}

.nav__mobile a:hover,
.nav__mobile a.active { color: var(--green); }

.nav__mobile.open { display: flex; }

/* --- Hero --- */
.hero {
  background: var(--green);
  padding: 6rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; max-width: 640px; }

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Trust strip --- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item__number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.trust-item__label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- Value props --- */
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.value-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--green);
}

.value-card__icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.value-card p { font-size: 0.95rem; }

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.service-card h3 { margin-bottom: 0.65rem; }
.service-card p { font-size: 0.95rem; }

/* --- About teaser (home) --- */
.about-teaser { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
.about-teaser__image {
  aspect-ratio: 4/3;
  background: var(--green-light);
  border-radius: var(--radius);
  border: 1px solid var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* --- CTA strip --- */
.cta-strip {
  background: var(--green);
  padding: 4rem 0;
  text-align: center;
}

.cta-strip h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-strip p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }

.cta-strip__phone {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* --- Page header (inner pages) --- */
.page-header {
  background: var(--green);
  padding: 4rem 0 3.5rem;
}

.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.8); margin-top: 0.75rem; max-width: 560px; font-size: 1.05rem; }

/* --- Services page --- */
.services-note {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--green-light);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--text-mid);
}

/* --- About page timeline --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3.5rem;
  align-items: center;
}

.timeline__item:nth-child(even) { grid-template-columns: 3fr 2fr; }
.timeline__item:nth-child(even) .timeline__image,
.timeline__item:nth-child(even) .timeline__placeholder { order: 2; }
.timeline__item:nth-child(even) .timeline__content { order: 1; }

.timeline__image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.timeline__image img {
  width: 100%;
  height: auto;
  display: block;
}

.timeline__placeholder {
  aspect-ratio: 4/3;
  background: var(--green-light);
  border-radius: var(--radius);
  border: 1px dashed var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

.timeline__era {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.85rem;
}

.timeline__content p { line-height: 1.85; color: var(--text-mid); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2rem;
}

.team-card { text-align: center; }

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 2.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

.team-card__name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2rem; }
.team-card__title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.team-card__bio { font-size: 0.9rem; color: var(--text-mid); }

/* --- Contact page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.contact-info__item:last-child { border-bottom: none; margin-bottom: 0; }

.contact-info__icon { font-size: 1.1rem; margin-top: 0.15rem; flex-shrink: 0; }

.contact-info__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.contact-info__value { font-size: 0.95rem; color: var(--text-mid); }
.contact-info__value a { color: var(--text-dark); font-weight: 600; transition: color 0.15s; }
.contact-info__value a:hover { color: var(--green); }

/* Form */
.form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 92, 52, 0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7B71' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.form__success {
  display: none;
  padding: 1.25rem 1.5rem;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 500;
  text-align: center;
}

/* Map */
.map-section { padding: 0; }
.map-section iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
  filter: grayscale(15%);
}

/* --- Footer --- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p { font-size: 0.9rem; line-height: 1.65; max-width: 260px; color: rgba(255,255,255,0.9); }

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.1rem;
}

.footer ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer ul li a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .values__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-teaser { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-teaser__image { aspect-ratio: 16/9; }
  .story__image { float: none; width: 100%; aspect-ratio: 16/9; margin: 0 0 1.5rem 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .trust-strip__grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .timeline { gap: 3.5rem; }
  .timeline__item,
  .timeline__item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline__item:nth-child(even) .timeline__image,
  .timeline__item:nth-child(even) .timeline__placeholder,
  .timeline__item:nth-child(even) .timeline__content { order: unset; }
  .timeline__placeholder { aspect-ratio: 16/9; }
}

@media (max-width: 680px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  .page-header { padding: 3rem 0 2.5rem; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .team-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .cta-strip__phone { font-size: 1.5rem; }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
}
