/* ============================================
   BRIONES INDUSTRIES — Shared Stylesheet
   Palette derived from brand logo:
   Navy      #1E3A5F
   Steel Blue #8FB3DA
   Ink       #1A1A1A
   ============================================ */

:root {
  --navy: #1E3A5F;
  --navy-dark: #142A45;
  --steel: #8FB3DA;
  --steel-light: #DCE9F6;
  --ink: #1A1A1A;
  --grey: #5B6470;
  --grey-light: #F5F7FA;
  --white: #FFFFFF;
  --border: #E3E8EF;
  --shadow: 0 10px 30px rgba(20, 42, 69, 0.08);
  --shadow-hover: 0 16px 40px rgba(20, 42, 69, 0.14);
  --radius: 10px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Hexagon background motif ---------- */
.hex-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(143,179,218,0.14) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(143,179,218,0.10) 0, transparent 40%);
  pointer-events: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand img { height: 90px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.site-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 6px;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover { background: var(--steel-light); }

.site-nav a.active {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--steel);
  color: var(--navy-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: #A2C0E1;
}

.btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #2C5183 100%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 100px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.25;
  margin: 0 0 22px;
  font-weight: 700;
}

.hero p.lead {
  font-size: 18px;
  color: #D7E4F2;
  max-width: 760px;
  margin: 0 0 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-hex-decor {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 380px;
  opacity: 0.35;
  z-index: 1;
}

.hero-photo {
  background-image:
    linear-gradient(135deg, rgba(20,42,69,0.90) 0%, rgba(30,58,95,0.82) 55%, rgba(44,81,131,0.75) 100%),
    url('hero-bg.jpg');
  background-size: cover;
  background-position: center 78%;
  background-repeat: no-repeat;
}

.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 68px 0 62px;
  overflow: hidden;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 12px;
  position: relative;
  z-index: 2;
}
.page-hero p {
  color: #D7E4F2;
  max-width: 640px;
  margin: 0;
  position: relative;
  z-index: 2;
  font-size: 16.5px;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--grey-light); }

.section-head { max-width: 700px; margin: 0 0 48px; }
.section-head .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 34px);
  color: var(--navy-dark);
  margin: 10px 0 14px;
}
.section-head p { color: var(--grey); font-size: 16px; margin: 0; }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--steel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 19px;
  color: var(--navy-dark);
  margin: 0 0 10px;
}
.card p { color: var(--grey); font-size: 15px; margin: 0; }

.article-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
}
.article-card.no-thumb { grid-template-columns: 1fr; }

.article-thumb {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-meta {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.article-card h3 { margin-bottom: 12px; font-size: 23px; line-height: 1.35; }
.article-card p { margin-bottom: 18px; font-size: 16px; }
.article-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.article-card:hover .article-link { text-decoration: underline; }

/* ---------- Case studies ---------- */
.case-study-card { display: block; }
.case-visual {
  margin: -40px -40px 28px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  line-height: 0;
}
.case-visual svg {
  display: block;
  width: 100%;
  height: auto;
}
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--steel-light);
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.case-study-card {
  padding: 40px;
}
.case-study-card h3 {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--navy-dark);
  margin: 0 0 8px;
  line-height: 1.3;
}
.case-client {
  color: var(--grey);
  font-size: 14.5px;
  font-style: italic;
  margin: 0 0 26px;
}
.case-block { margin-bottom: 24px; }
.case-block:last-child { margin-bottom: 0; }
.case-label {
  display: block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--steel-light);
}
.case-block p { color: var(--grey); font-size: 15.5px; margin: 0 0 12px; }
.case-block p:last-child { margin-bottom: 0; }
.case-checklist {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.case-checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--grey);
  font-size: 15.5px;
}
.case-checklist li:last-child { margin-bottom: 0; }
.case-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--steel);
  font-weight: 700;
}
.case-checklist li strong { color: var(--navy-dark); }

.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Case study preview grid ---------- */
.case-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-preview-card {
  display: block;
  color: inherit;
}
.case-preview-card .case-tag { margin-bottom: 16px; }
.case-preview-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--navy-dark);
  margin: 0 0 6px;
  line-height: 1.35;
}
.case-preview-card .case-client { margin-bottom: 14px; }
.case-preview-card .case-excerpt {
  color: var(--grey);
  font-size: 14.5px;
  margin: 0 0 20px;
}
.case-preview-card .case-view-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.case-preview-card:hover .case-view-link { text-decoration: underline; }

.case-add-card {
  border: 2px dashed var(--border);
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: var(--grey);
  min-height: 200px;
}
.case-add-card .plus-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--steel-light);
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.case-add-card p { margin: 0; font-size: 14.5px; max-width: 260px; }

/* ---------- Leader profile ---------- */
.leaders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.leader-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.leaders-grid .leader-card {
  grid-template-columns: 1fr;
  text-align: center;
  margin-bottom: 0;
}
.leaders-grid .leader-card ul { text-align: left; }

.leader-photo {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 0.685;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto;
  box-shadow: var(--shadow);
  background: var(--grey-light);
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.leader-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 400px;
  margin: 14px auto 0;
  padding: 9px 14px;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.leader-linkedin:hover {
  background: var(--navy);
  color: var(--white);
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  margin: 0 auto;
}

.leader-name { font-family: var(--serif); font-size: 22px; color: var(--navy-dark); margin: 0 0 2px; }
.leader-title { color: var(--steel); font-weight: 700; font-size: 14px; letter-spacing: 0.4px; margin: 0 0 18px; text-transform: uppercase; }

.leader-card ul { margin: 0; padding-left: 20px; color: var(--grey); }
.leader-card li { margin-bottom: 9px; font-size: 15px; }

/* ---------- Quote block ---------- */
.quote-block {
  border-left: 4px solid var(--steel);
  padding: 6px 0 6px 26px;
  margin: 0 0 40px;
}
.quote-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--navy-dark);
  margin: 0 0 10px;
  line-height: 1.5;
}
.quote-block cite { color: var(--grey); font-size: 14px; font-style: normal; letter-spacing: 0.5px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-item .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.contact-item .icon svg { width: 22px; height: 22px; stroke: var(--white); }
.contact-item h3 { font-size: 16px; margin: 0 0 8px; color: var(--navy-dark); }
.contact-item a, .contact-item p { color: var(--grey); font-size: 14.5px; margin: 4px 0; }
.contact-item a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 14px; }
.cta-band p { color: #C9D9EA; margin: 0 0 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #B9C8DA;
  padding: 46px 0 26px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--white); font-size: 14px; margin: 0 0 14px; letter-spacing: 0.5px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #8FA3BC;
  font-size: 13px;
}

/* ---------- Service card visual trigger ---------- */
.card-clickable {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-clickable:hover {
  box-shadow: 0 14px 32px rgba(20, 42, 69, 0.14);
  transform: translateY(-2px);
}
.card-visual-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.card-visual-hint svg { width: 14px; height: 14px; }

.visual-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 38, 0.82);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.visual-modal.open { display: flex; }
.visual-modal-inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.visual-modal-inner img {
  width: 100%;
  display: block;
}
.visual-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 42, 69, 0.85);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-modal-close:hover { background: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-card { grid-template-columns: 1fr; text-align: center; }
  .article-thumb { max-width: 220px; }
  .case-preview-grid { grid-template-columns: 1fr; }
  .leaders-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .brand img { height: 64px; }
  .case-study-card { padding: 26px 22px; }
  .case-visual { margin: -26px -22px 22px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px 20px 18px; }
  .site-nav a { display: block; padding: 12px 8px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .leader-card { grid-template-columns: 1fr; text-align: center; }
  .leader-card ul { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 76px 0 70px; }
  section { padding: 56px 0; }
}
