/* Cameron Financial Holdings — site styles
   Palette and type are taken from the original Divi theme:
   accent blue #719fc0, heading navy #3f4e6a, dark #2b2b2b,
   Abhaya Libre (headings), Roboto (body), Montserrat (nav). */

:root {
  --accent: #719fc0;
  --navy: #3f4e6a;
  --dark: #2b2b2b;
  --menu-dark: #292b2d;
  --light: #f9f9f9;
  --text: #333333;
  --white: #ffffff;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 28px;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3 { margin: 0 0 16px; font-weight: 400; line-height: 1.3em; }
h1, h2 { font-family: 'Abhaya Libre', Georgia, 'Times New Roman', serif; }
h3 { font-family: 'Roboto', Helvetica, Arial, sans-serif; font-weight: 400; font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 56px; width: auto; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 32px; height: 24px;
  position: relative;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; position: absolute;
  width: 32px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  content: '';
}
.nav-toggle-label span { top: 10px; }
.nav-toggle-label span::before { top: -10px; }
.nav-toggle-label span::after { top: 10px; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 34px;
}
.site-nav a {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--menu-dark);
    display: none;
  }
  .site-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .site-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a { display: block; padding: 14px 24px; border-bottom: 0; }
  .nav-toggle:checked ~ .site-nav { display: block; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  background: var(--dark) url('img/foundry-exterior.jpg') center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 26vh 24px 20vh;
  border-bottom: 8px solid var(--accent);
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
}
.hero .hero-content { position: relative; max-width: 860px; }
.hero h1 { font-size: 52px; margin-bottom: 20px; }
.hero p { font-size: 22px; line-height: 1.6em; margin: 0; }

/* ---------- Page title banner (interior pages) ---------- */

.page-banner {
  position: relative;
  background: var(--dark) center / cover no-repeat;
  color: var(--white);
  padding: 200px 0 70px;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,10,10,.5);
}
.page-banner .container { position: relative; }
.page-banner h1 { font-size: 54px; margin: 0; }

/* ---------- Generic sections ---------- */

.section { padding: 70px 0; }
.section.accent { background: var(--accent); color: var(--white); }
.section.accent h2, .section.accent h3 { color: var(--white); }
.section.light { background: var(--light); }

.section h2 { font-size: 40px; color: var(--navy); }
.section h3 { color: var(--navy); margin-bottom: 20px; }
.section p:last-child { margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-img { order: 1; }

.intro { text-align: center; max-width: 800px; margin: 0 auto; }
.intro p { font-size: 18px; line-height: 1.7em; }

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 30px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent); color: var(--white); }

/* photo strip on home */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* ---------- Team ---------- */

.team-member {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
  align-items: start;
}
.team-member img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 6px;
}
.team-member h2 { font-size: 40px; margin-bottom: 4px; }
.team-member .role { color: var(--navy); font-size: 20px; margin-bottom: 20px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li { margin-bottom: 6px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 60px 0 30px;
  font-size: 15px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-top img { height: 48px; width: auto; margin-bottom: 18px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-top a {
  color: var(--white); text-decoration: none;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
}
.footer-top a:hover { color: var(--accent); }
.footer-heading {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px;
}
.footer-bottom a { color: var(--white); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .two-col, .team-member, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .two-col.reverse .col-text { order: 1; }
  .two-col.reverse .col-img { order: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .team-member img { max-width: 280px; }
  .hero { padding: 22vh 24px 16vh; min-height: 80vh; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 18px; }
  .page-banner { padding: 150px 0 50px; }
  .page-banner h1, .section h2, .team-member h2 { font-size: 34px; }
  .section { padding: 50px 0; }
}
