/* InSync Communications — insynccom.com
   One stylesheet shared by every page. */

:root {
  --ink: #14202e;          /* deep navy, main text */
  --ink-soft: #3d4a5a;
  --paper: #ffffff;        /* white background */
  --paper-2: #f2f5f8;
  --line: #dde3ea;
  --accent: #1b4f91;       /* dark blue accent */
  --accent-dark: #143b6d;
  --white: #ffffff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8em; display: block;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; font: inherit; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  min-height: 78vh; display: flex; align-items: flex-end;
  
  background:
    linear-gradient(270deg, rgba(17,52,94,.70) 0%, rgba(17,52,94,.45) 45%, rgba(17,52,94,0) 75%),
    url("../images/golden-gate-3.jpg") 25% 40% / cover no-repeat,
    linear-gradient(135deg, #1d3247 0%, #1d4f86 55%, #2f6db5 130%);
}
.hero .wrap { padding-bottom: 72px; padding-top: 120px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: .2em; }
.hero p { font-size: 1.25rem; max-width: 36em; color: #f0ece4; }
.hero .eyebrow { color: #bcd7f3; }
.page-hero { background: var(--ink); color: var(--white); padding: 88px 0 64px; }
.page-hero .lead { color: #d3e0ef; }
.page-hero .eyebrow { color: #bcd7f3; }

.btn {
  display: inline-block; padding: 14px 26px; background: var(--accent); color: var(--white);
  text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 2px; margin-top: 12px;
}
.btn:hover { background: var(--accent-dark); color: var(--white); }
.btn.ghost { background: transparent; border: 1px solid currentColor; color: inherit; margin-left: 10px; }
.btn.ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--ink); color: var(--white); }
section.dark .lead, section.dark p { color: #d3e0ef; }

.grid { display: grid; gap: 28px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); padding: 32px 28px; }
.card .num { font-family: var(--serif); font-weight: 600; color: var(--accent); font-size: 1rem; display: block; margin-bottom: 14px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card a.more { font-weight: 600; font-size: .92rem; text-decoration: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: .92rem; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.photo {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, #2a3d52, #14202e);
  display: flex; align-items: center; justify-content: center; color: #8fa0b3; font-size: .9rem;
  background-size: cover; background-position: center;
}

/* Lists */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.clean li:last-child { border-bottom: none; }
ul.ticks { padding-left: 1.1em; }
ul.ticks li { margin-bottom: .45em; }
ul.ticks li::marker { color: var(--accent); }

.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.timeline .yr { font-family: var(--serif); color: var(--accent); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { border: 1px solid var(--line); background: var(--white); padding: 6px 14px; font-size: .88rem; border-radius: 99px; }

/* Association logos (text badges until the logo files are added) */
.memberships { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.member {
  background: var(--white); border: 1px solid var(--line); padding: 22px 12px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; min-height: 120px;
}
.member strong { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em; }
.member small { font-size: .75rem; color: var(--ink-soft); line-height: 1.35; margin-top: 6px; }
.member img { max-height: 64px; margin: 0 auto; object-fit: contain; }

blockquote.motto {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); margin: 0; line-height: 1.2;
}

.cta { text-align: center; }
.cta .lead { margin: 0 auto 1em; }

/* Contact */
.contact-box { background: var(--white); border: 1px solid var(--line); padding: 36px; }
.contact-box dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 18px; }
.contact-box dt:first-child { margin-top: 0; }
.contact-box dd { margin: 4px 0 0; font-size: 1.15rem; font-family: var(--serif); }

/* ---------- Footer ---------- */
.site-footer { background: #173f6b; color: #b9cbe0; padding: 56px 0 32px; font-size: .92rem; }
.site-footer .grid { grid-template-columns: 2fr 1fr 1fr; }
.site-footer a { color: #e7ecf1; text-decoration: none; }
.site-footer a:hover { color: #bcd7f3; }
.site-footer h4 { color: var(--white); font-family: var(--serif); font-size: 1.1rem; margin: 0 0 .7em; font-weight: 600; }
.site-footer .legal { border-top: 1px solid #2f5d92; margin-top: 40px; padding-top: 20px; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .memberships { grid-template-columns: repeat(3, 1fr); }
  .site-footer .grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper);
         flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .memberships { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .btn.ghost { margin-left: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.contact-form { background: var(--white); border: 1px solid var(--line); padding: 36px; }
.contact-form h2 { margin-bottom: .2em; }
.contact-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 18px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel],
.contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400; font-size: 1rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form fieldset { border: 1px solid var(--line); padding: 14px 16px 6px; margin: 0 0 18px; }
.contact-form legend { font-size: .88rem; font-weight: 600; padding: 0 6px; }
.contact-form .checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 16px; }
.contact-form .checks label { font-weight: 400; font-size: .92rem; margin-bottom: 8px; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .btn { border: none; cursor: pointer; font-family: inherit; }
.notice { padding: 18px 20px; margin-bottom: 20px; border-left: 4px solid; background: var(--white); }
.notice.ok { border-color: #2e7d4f; }
.notice.err { border-color: var(--accent); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 720px) {
  .contact-form { padding: 24px 18px; }
  .contact-form .row.two, .contact-form .checks { grid-template-columns: 1fr; gap: 0; }
}
.photo-hero { background-size: cover; background-position: center 45%; }
[hidden] { display: none !important; }
dl.contact-box { margin: 0; }
.contact-box dd small { display: block; font-family: var(--sans); font-size: .9rem; line-height: 1.45; margin-top: 6px; color: var(--ink-soft); }
.member img { max-height: 96px; width: auto; max-width: 100%; }
.brand img { height: 50px; width: auto; }
@media (max-width: 720px) { .brand img { height: 42px; } }

.hero-text { max-width: 540px; margin-left: auto; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.2rem); }
.hero h1, .hero p { text-shadow: 0 1px 14px rgba(10,20,35,.5); }
@media (max-width: 720px) {
  .hero { background:
    linear-gradient(180deg, rgba(17,52,94,.25) 0%, rgba(17,52,94,.78) 60%),
    url("../images/golden-gate-3.jpg") 25% 40% / cover no-repeat, #1d3247; }
  .hero-text { margin-left: 0; }
}
.hero .wrap { width: 100%; }
/* keep hero text clear of the far bridge tower */
.hero-text { max-width: 470px; }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 4.3rem); white-space: nowrap; }
@media (max-width: 720px) { .hero h1 { white-space: normal; } }
/* full name on one line */
.hero p { font-size: 1.12rem; }
.hero .name { white-space: nowrap; }
/* optional flag row in the hero */
.hero-flags { display: flex; gap: 12px; margin-bottom: 18px; }
.hero-flags img { height: 22px; width: auto; border-radius: 2px; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
/* white top bar */
.site-header { background: #ffffff; }
@media (max-width: 720px) { .nav { background: #ffffff; } }
.brand img { height: 48px; }
.brand img { height: 56px; } @media (max-width:720px){ .brand img { height: 46px; } }
/* personal introduction on the home page */
.intro-split { grid-template-columns: 0.8fr 1.2fr; }
.intro-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.cred-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; margin-top: 36px; }
.stats { margin-top: 28px; }
@media (max-width: 900px) { .intro-split { grid-template-columns: 1fr; } .intro-photo { max-width: 420px; } }
@media (max-width: 720px) { .cred-list { grid-template-columns: 1fr; } }
.intro-split { grid-template-columns: 340px 1fr; gap: 64px; }
.intro-photo { max-width: 340px; }
@media (max-width: 900px) { .intro-split { grid-template-columns: 1fr; } .intro-photo { max-width: 300px; } }
.intro-photo { height: auto; align-self: center; }
/* testimonials */
.testimonials .eyebrow { color: #bcd7f3; }
.quote { margin: 0; padding: 36px 32px; background: rgba(255,255,255,.05); border-left: 3px solid var(--accent); display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; color: #f0ece4; }
.quote figcaption { font-weight: 600; color: var(--white); letter-spacing: .02em; }
.quote figcaption::before { content: "— "; color: var(--accent); }
.testimonials .source { margin-top: 28px; }
.testimonials .source a { color: #bcd7f3; text-decoration: none; font-weight: 600; font-size: .95rem; }
.quotes { margin-top: 36px; columns: 3 300px; column-gap: 24px; }
.quotes .quote { break-inside: avoid; margin-bottom: 24px; display: block; }
.quotes .quote blockquote { font-size: 1.08rem; }
.quotes .quote.featured { column-span: all; padding: 44px 48px; }
.quotes .quote.featured blockquote { font-size: 1.45rem; line-height: 1.5; }
.quote figcaption span { display: block; font-weight: 400; color: #b9cbe0; font-size: .88rem; margin-top: 2px; }
.testimonials .source { color: #b9cbe0; font-size: .92rem; }

/* language switch */
.site-header .wrap { gap: 24px; }
.lang-switch { display: flex; gap: 2px; margin-left: 8px; border-left: 1px solid var(--line); padding-left: 18px; }
.lang-switch a { font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft); text-decoration: none; padding: 4px 7px; border-radius: 2px; }
.lang-switch a:hover { color: var(--ink); background: var(--paper-2); }
.lang-switch a[aria-current] { color: var(--white); background: var(--ink); }
.nav { margin-left: auto; }
.hero-flags a { display: inline-block; line-height: 0; transition: transform .15s; }
.hero-flags a:hover { transform: translateY(-2px); }
.tnote { color: #b9cbe0; font-size: .9rem; font-style: italic; margin: -6px 0 0; }
@media (max-width: 720px) {
  .lang-switch { border-left: none; padding-left: 0; margin-left: auto; }
  .nav-toggle { order: 3; }
}
@media (min-width: 721px) and (max-width: 1180px) { .hero-text { max-width: 400px; } }

.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form select, .contact-form textarea { background: #f8fafc; }

/* one typeface throughout: Inter (same as the logo) */
:root { --serif: "Inter", "Segoe UI", Helvetica, Arial, sans-serif; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
.hero h1 { letter-spacing: -0.03em; }
.stat strong { font-weight: 700; letter-spacing: -0.02em; }
.quote blockquote { font-weight: 400; letter-spacing: 0; }
.card .num { font-weight: 600; }
blockquote.motto { font-weight: 700; letter-spacing: -0.02em; }

/* blue colour scheme */
:root { --blue: #1d4f86; }
.page-hero, section.dark { background: var(--blue); }
.quote { background: rgba(255,255,255,.08); border-left-color: #bcd7f3; }
.quote figcaption::before { color: #bcd7f3; }
section.dark .btn, .page-hero .btn { background: #ffffff; color: var(--accent); }
section.dark .btn:hover, .page-hero .btn:hover { background: #e6eef8; color: var(--accent-dark); }
.photo { background-color: #1d4f86; background-size: cover; background-position: center; }
.notice.err { border-color: var(--accent); }
.lang-switch a[aria-current] { background: var(--blue); }

/* InSync logo (brand master artwork) */
.site-header .wrap { height: 88px; }
.brand { display: block; padding: 10px 0; }
.brand img { height: 60px; width: auto; display: block; }
.nav { margin-left: auto; }
.footer-logo { width: 250px; height: auto; display: block; margin-bottom: 18px; }
@media (max-width: 720px) {
  .site-header .wrap { height: 72px; }
  .brand img { height: 44px; }
  .nav { top: 72px; }
}
/* taller bar: more clear space around the logo */
.site-header .wrap { height: 108px; }
.brand { padding: 22px 0; }
.brand img { height: 64px; }
@media (max-width: 720px) {
  .site-header .wrap { height: 84px; }
  .brand { padding: 14px 0; }
  .brand img { height: 48px; }
  .nav { top: 84px; }
}
