/* ── Variables ── */
:root {
  --primary: #ecc930;
  --secondary: #295e88;
  --third-color: #5d7779;
  --light: #f8f9fa;
  --dark: #343a40;
  --header-height: 160px;
  --font-sans: BrownProRegular, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-bold: BrownProBold, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Fonts ── */
@font-face {
  font-family: BrownProBold;
  src: url("../fonts/BrownPro-Bold.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: BrownProRegular;
  src: url("../fonts/BrownPro-Regular.otf") format("opentype");
  font-display: swap;
}

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

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: #fff;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Visually hidden (SEO/a11y) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Header ── */
.top-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: #fff;
  z-index: 100;
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo {
  position: relative;
  z-index: 2;
}

.logo img {
  max-height: 150px;
  display: block;
}

.logo img.scrolled { display: none; }
.logo img.non-scrolled { display: block; }

.top-header.scroll .logo img.non-scrolled { display: none; }
.top-header.scroll .logo img.scrolled { display: block; }

.contact {
  font-weight: 600;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}

.contact::after {
  content: '';
  display: block;
  position: absolute;
  background: var(--primary);
  width: 250px;
  height: 250px;
  top: -100px;
  right: -50px;
  border-radius: 50%;
  transition: width 500ms ease-in-out, height 500ms ease-in-out, top 500ms ease-in-out, right 500ms ease-in-out;
  z-index: -1;
}

.top-header.scroll .contact::after {
  width: 3000px;
  height: 200%;
  top: -50%;
  right: -1000px;
}

.contact .email a {
  color: #000;
  text-decoration: none;
}

.contact .email a:hover {
  text-decoration: underline;
}

/* ── Main content ── */
.home-cont {
  margin-top: var(--header-height);
}

/* ── Homepage section ── */
.homepage {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-left: 15px solid var(--primary);
  padding-left: 1.5rem;
}

.col-full {
  grid-column: 1 / -1;
}

.col-half {
  grid-column: span 1;
}

.content-grid h1 {
  text-transform: uppercase;
  font-family: var(--font-bold);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.content-grid h2 {
  text-transform: uppercase;
  font-family: var(--font-bold);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.content-grid p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.who p:last-child {
  text-transform: uppercase;
}

.who p:last-child span {
  color: var(--primary);
}

/* ── Image circle ── */
.image {
  overflow: hidden;
  display: flex;
  align-items: center;
}

.image-div {
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  position: relative;
  right: -75px;
  margin-bottom: -100px;
}

/* ── Contact section ── */
.contact-section {
  background: var(--light);
  padding: 5rem 0;
}

.contact-section h2 {
  text-transform: uppercase;
  font-family: var(--font-bold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-section > .container > p {
  margin-bottom: 2rem;
  color: #555;
}

/* ── Form ── */
#contactForm {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group .optional {
  font-weight: 400;
  color: #888;
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border-color 200ms;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

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

.btn-submit {
  font-family: var(--font-bold);
  font-size: 1rem;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 200ms;
}

.btn-submit:hover {
  background: #1e4a6a;
}

.form-success {
  padding: 0.9rem 1rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  color: #155724;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  max-height: 50px;
  filter: invert(1) brightness(2);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .col-half {
    grid-column: 1 / -1;
  }

  .image-div {
    right: 0;
    margin-bottom: 0;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .logo img {
    max-height: 80px;
  }

  .contact::after {
    top: -150px;
  }

  .homepage {
    padding-top: 1.5rem;
  }

  .btn-submit {
    width: 100%;
    text-align: center;
  }
}
