/* =====================================================================
   Jamail Hardwoods — shared site stylesheet
   Used by all sub-pages. index.html keeps its inline CSS for now.
   ===================================================================== */
:root {
  --navy: #0e1a26; --navy-2: #152532;
  --cream: #f7f2e9; --cream-2: #ece4d4;
  --brass: #c8a25a; --brass-dark: #a8843f;
  --walnut: #4a2f22;
  --text: #1a2330; --text-soft: #5a6573; --line: #e3dccc;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.08; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text-soft); }
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.divider { width: 56px; height: 2px; background: var(--brass); margin: 18px auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 4px; font-weight: 600; font-size: 0.95rem; transition: all .25s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--brass); color: var(--navy); }
.btn-primary:hover { background: var(--brass-dark); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: var(--cream); }
.btn-dark:hover { background: var(--walnut); }
.btn-outline { background: transparent; color: var(--cream); border: 1.5px solid rgba(247,242,233,.3); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }

/* TOP BAR */
.topbar { background: var(--navy); color: var(--cream); font-size: 0.82rem; padding: 8px 0; letter-spacing: 0.04em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--cream); opacity: 0.85; margin-left: 18px; }
.topbar a:hover { color: var(--brass); opacity: 1; }
.topbar-left { display: flex; align-items: center; gap: 18px; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 242, 233, 0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.5rem; color: var(--navy); letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.logo-img { height: 56px; width: auto; display: block; }
@media (max-width: 720px) { .logo-img { height: 44px; } }
.logo--brand small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.24em; color: var(--brass); text-transform: uppercase; padding-left: 2px; }
.logo small { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.65rem; letter-spacing: 0.25em; color: var(--brass); margin-top: 4px; text-transform: uppercase; }
.logo-img-footer { height: 64px; width: auto; display: block; margin-bottom: 8px; }
.logo--footer small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.66rem; letter-spacing: 0.22em; color: var(--cream-2); text-transform: uppercase; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; font-size: 0.95rem; color: var(--text); }
.nav a:hover { color: var(--brass); }
.nav a.active { color: var(--brass); }
.nav .cta { background: var(--navy); color: var(--cream); padding: 10px 22px; border-radius: 4px; }
.nav .cta:hover { background: var(--walnut); color: var(--cream); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* PAGE HERO (smaller than homepage hero) */
.page-hero {
  background:
    linear-gradient(135deg, rgba(14,26,38,0.85) 0%, rgba(14,26,38,0.72) 100%),
    url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
  color: var(--cream);
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero h1 { color: var(--cream); }
.page-hero p { color: rgba(247,242,233,.85); max-width: 640px; margin: 22px auto 0; font-size: 1.05rem; }

/* SECTIONS */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { font-size: 1.04rem; margin-top: 18px; }

.bg-cream { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-navy h2 { color: var(--cream); }
.bg-navy .eyebrow { color: var(--brass); }
.bg-navy p { color: rgba(247,242,233,.75); }
.bg-white { background: #fff; }

/* CONTENT BLOCK (prose) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 36px 0 12px; }
.prose h3 { color: var(--navy); margin: 28px 0 10px; font-size: 1.15rem; }
.prose p { font-size: 1.02rem; margin-bottom: 16px; }
.prose ul { padding-left: 22px; margin-bottom: 16px; color: var(--text-soft); }
.prose ul li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a { color: var(--brass-dark); border-bottom: 1px solid var(--line); }
.prose a:hover { color: var(--brass); border-color: var(--brass); }

/* FEATURE LIST (programs page) */
.feature-list { list-style: none; margin: 28px 0; }
.feature-list li { position: relative; padding-left: 32px; margin-bottom: 14px; font-size: 1rem; color: var(--text); }
.feature-list li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--brass); font-weight: 700; font-size: 1.15rem; }

/* CARDS GRID */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 32px 28px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(14,26,38,.08); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 14px; }

/* CONTACT BLOCK */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-block { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(247,242,233,.12); }
.contact-block:last-child { border-bottom: none; }
.contact-block .eyebrow { display: block; margin-bottom: 6px; font-size: 0.72rem; }
.contact-block h3 { color: var(--cream); margin-bottom: 8px; font-size: 1.05rem; }
.contact-block p, .contact-block a { color: rgba(247,242,233,.85); font-size: 0.95rem; }
.contact-block a:hover { color: var(--brass); }

/* FORM */
.lead-form { background: rgba(247,242,233,.04); border: 1px solid rgba(247,242,233,.1); padding: 36px; border-radius: 8px; }
.lead-form h3 { color: var(--cream); margin-bottom: 8px; }
.lead-form > p { color: rgba(247,242,233,.7); margin-bottom: 22px; font-size: 0.92rem; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247,242,233,.75); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(247,242,233,.15); background: rgba(247,242,233,.06); color: var(--cream); font-family: inherit; font-size: 0.95rem; border-radius: 4px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: rgba(247,242,233,.1); }
.field input::placeholder, .field textarea::placeholder { color: rgba(247,242,233,.4); }
.field select option { background: var(--navy); color: var(--cream); }
.field textarea { min-height: 90px; resize: vertical; }
.lead-form button { width: 100%; margin-top: 6px; }
.form-note { font-size: 0.78rem; color: rgba(247,242,233,.55); margin-top: 14px; text-align: center; }

/* TEAM (re-used on About page) */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; max-width: 1280px; margin: 0 auto; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 20px 24px; text-align: center; transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(14,26,38,.08); }
.team-photo { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--brass); font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 2.2rem; border: 3px solid var(--cream); box-shadow: 0 0 0 1px var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { color: var(--navy); margin-bottom: 4px; font-size: 1.1rem; }
.team-role { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; min-height: 32px; font-weight: 600; }
.team-contact { font-size: 0.85rem; margin-bottom: 12px; }
.team-contact a { display: block; color: var(--text); padding: 3px 0; overflow-wrap: anywhere; word-break: break-all; line-height: 1.35; }
.team-contact a[href^="mailto"] { font-size: 0.78rem; letter-spacing: -0.005em; }
.team-contact a:hover { color: var(--brass); }
.team-socials { display: flex; gap: 8px; justify-content: center; margin-top: auto; }
.team-linkedin, .team-blinq { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--cream); transition: background .2s, color .2s; }
.team-linkedin:hover, .team-blinq:hover { background: var(--brass); color: var(--navy); }
.team-linkedin svg, .team-blinq svg { width: 14px; height: 14px; }
.team-blinq { background: var(--brass); color: var(--navy); }
.team-blinq:hover { background: var(--navy); color: var(--brass); }

/* PORTFOLIO GRID */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--navy-2); cursor: pointer; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover img { transform: scale(1.06); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,26,38,.85) 0%, rgba(14,26,38,.1) 55%, rgba(14,26,38,0) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: var(--cream); }
.project-tag { display: inline-block; align-self: flex-start; background: rgba(200,162,90,.95); color: var(--navy); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; margin-bottom: 10px; }
.project h3 { color: var(--cream); font-size: 1.2rem; margin-bottom: 4px; }
.project-meta { font-size: 0.85rem; color: rgba(247,242,233,.8); }

/* CTA BAND */
.cta-band { background: var(--brass); color: var(--navy); padding: 56px 0; text-align: center; }
.cta-band h2 { color: var(--navy); }
.cta-band p { color: var(--navy); opacity: 0.85; max-width: 600px; margin: 14px auto 22px; font-size: 1.04rem; }
.cta-band .btn { background: var(--navy); color: var(--cream); }
.cta-band .btn:hover { background: var(--walnut); }

/* FOOTER */
.site-footer { background: #060d14; color: rgba(247,242,233,.65); padding: 64px 0 30px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo small { color: var(--brass); }
.footer-brand p { margin-top: 14px; color: rgba(247,242,233,.55); font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: var(--cream); font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(247,242,233,.65); }
.footer-col a:hover { color: var(--brass); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(247,242,233,.08); color: var(--cream); transition: all .25s; }
.socials a:hover { background: var(--brass); color: var(--navy); transform: translateY(-2px); }
.socials svg { width: 15px; height: 15px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(247,242,233,.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: rgba(247,242,233,.4); }
.footer-bottom a { color: rgba(247,242,233,.55); margin-left: 18px; }
.footer-bottom a:hover { color: var(--brass); }

/* RESPONSIVE */
@media (max-width: 980px) {
  .topbar { padding: 6px 0; font-size: 0.7rem; }
  .topbar-right { display: none; }
  .topbar-left { gap: 8px; font-size: 0.7rem; flex-wrap: wrap; justify-content: center; }
  .topbar-left span { display: inline; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; gap: 0; padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .cta { margin-top: 8px; text-align: center; }
  .hamburger { display: block; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-photo { width: 86px; height: 86px; }
  .team-card { padding: 20px 10px 16px; }
  .team-card h3 { font-size: 1rem; }
  .team-role { font-size: 0.65rem; min-height: 28px; margin-bottom: 12px; }
  .team-contact { font-size: 0.78rem; margin-bottom: 10px; }
  .team-contact a { padding: 2px 0; }
  .team-contact a[href^="tel"] { font-size: 0.82rem; }
  .team-contact a[href^="mailto"] { font-size: 0.68rem; letter-spacing: -0.01em; word-break: break-all; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom > div:last-child a:first-child { margin-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .page-hero { padding: 70px 0 56px; }

  /* Mobile footer fixes */
  .site-footer { padding: 48px 0 24px; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
  .footer-brand p { font-size: 0.85rem; overflow-wrap: anywhere; word-break: normal; }
  .footer-brand .logo { font-size: 1.2rem; }
  .footer-col { font-size: 0.88rem; }
  .footer-col h4 { font-size: 0.72rem; margin-bottom: 12px; }
  .footer-col li { margin-bottom: 8px; line-height: 1.4; }
  .footer-col a { overflow-wrap: anywhere; word-break: break-word; }
  .socials { gap: 8px; flex-wrap: wrap; }
  .socials a { width: 32px; height: 32px; }
  .socials svg { width: 13px; height: 13px; }
  .footer-bottom { font-size: 0.72rem; padding-top: 18px; gap: 8px; text-align: center; }
  .footer-bottom > div:last-child { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .footer-bottom > div:last-child a { margin-left: 0; }

}

/* CLIENTS / TRUSTED BY */
.clients { background: var(--cream); padding: 80px 0; }
.clients .section-head { margin-bottom: 36px; }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; }
.client-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 18px; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-height: 96px; justify-content: center; }
.client-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(14,26,38,.08); border-color: var(--brass); }
.client-cat { font-family: 'Inter', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.client-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.02rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
@media (max-width: 980px) { .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .client-card { padding: 16px 12px; min-height: 80px; } .client-name { font-size: 0.92rem; } .client-cat { font-size: 0.58rem; } }

/* CLIENTS / TRUSTED BY (logo grid) */
.clients { background: var(--cream); padding: 80px 0; }
.clients .section-head { margin-bottom: 36px; }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.client-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; text-decoration: none; overflow: hidden; display: flex; flex-direction: column; }
.client-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(14,26,38,.1); border-color: var(--brass); }
.client-card--logo .client-logo-wrap { aspect-ratio: 2/1; padding: 14px; display: flex; align-items: center; justify-content: center; background: #fff; }
.client-card--logo .client-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(15%); transition: filter .2s ease; }
.client-card:hover .client-logo-wrap img { filter: grayscale(0); }
.client-card--logo .client-meta { padding: 10px 14px 12px; border-top: 1px solid var(--line); text-align: center; }
.client-card--text { padding: 22px 16px; text-align: center; justify-content: center; align-items: center; gap: 6px; min-height: 140px; }
.client-cat { font-family: 'Inter', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); display: block; }
.client-card--logo .client-name { font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 2px; }
.client-card--logo .client-cat { margin-top: 2px; }
.client-card--text .client-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.02rem; font-weight: 600; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.client-name--big { font-size: 1.05rem; }
@media (max-width: 980px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .client-card--text { padding: 16px 12px; min-height: 110px; }
  .client-card--logo .client-meta { padding: 8px 10px 10px; }
  .client-card--logo .client-name { font-size: 0.72rem; }
  .client-cat { font-size: 0.58rem; }
}
