/* ----- Variables ----- */
:root {
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-text: #1a1d21;
  --color-text-muted: #5c6370;
  --color-border: #e2e6eb;
  --color-accent: #0f172a;
  --color-accent-hover: #1e293b;
  --color-banner-orange: #F68D20;
  /* EFG premium orange gradient stops */
  --efg-orange-1: #FFA533;
  --efg-orange-2: #F68D20;
  --efg-orange-3: #E07A1F;
  --efg-orange-4: #C96512;
  --color-error: #b91c1c;
  --color-success: #15803d;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-text-muted);
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* ----- Top bar (Bentley-style) ----- */
.top-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-lg);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-bar a {
  color: var(--color-text-muted);
}

.top-bar a:hover {
  color: var(--color-accent);
}

.top-bar-sep {
  color: var(--color-border);
  font-weight: 400;
}

/* Sticky top: menu + logo/banner stay in view when scrolling */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ----- Header ----- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* ----- EFG premium orange (matches logo panel: gradient + top-left light + grain) ----- */
.bg-efg-orange {
  position: relative;
  /* Same as logo: lighter top-left → deeper bottom-right, soft transition */
  background: linear-gradient(
    135deg,
    var(--efg-orange-1) 0%,
    var(--efg-orange-2) 35%,
    var(--efg-orange-3) 65%,
    var(--efg-orange-4) 100%
  );
  overflow: hidden;
}

/* Top-left soft highlight like the logo panel */
.bg-efg-orange::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.22),
    transparent 45%
  );
  pointer-events: none;
  z-index: 1;
}

/* Fine grain texture – same velvety overlay as logo orange */
.bg-efg-orange::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

/* ----- Logo banner ----- */
.logo-banner {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
  background-image: url("assets/bannerfill.png");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: auto;
}

.logo-banner-inner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 3;
}

.logo-banner-img {
  height: 100%;
  width: auto;
  max-width: 90vw;
  object-fit: contain;
  object-position: center;
  display: block;
}

.nav {
  display: flex;
  gap: var(--space-xl);
}

.nav a {
  font-weight: 500;
  font-size: 0.9375rem;
}

/* ----- Hero ----- */
.hero {
  padding: var(--space-2xl) 0 var(--space-lg) 0;
  text-align: center;
}

.hero-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Content sections ----- */
.content-section {
  padding: var(--space-2xl) 0;
}

/* ----- Tagline (under logo) ----- */
.tagline {
  text-align: center;
  margin: 0;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ----- Divider ----- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 var(--space-lg);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Two-column main (About | Contact) ----- */
.main-cols {
  padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
}

.main-cols-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-3xl);
  align-items: start;
}

.col-about {
  min-width: 0;
}

.col-contact {
  min-width: 0;
}

.block-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.col-about .block-title:not(:first-child) {
  margin-top: var(--space-2xl);
}

.col-contact .block-title {
  margin-top: 0;
}

.contact-entry {
  margin: 0 0 var(--space-md);
  font-size: 0.9375rem;
}

.contact-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hero + .content-section {
  padding-top: var(--space-lg);
}

.content-section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.content-inner {
  max-width: 680px;
}

.content-lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
}

.content-section .section-title {
  margin-bottom: var(--space-md);
}

.content-section .section-lead {
  margin-bottom: var(--space-xl);
}

.focus-list {
  list-style: none;
  margin: 0 0 var(--space-xl);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.focus-item {
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
}

.focus-item-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}

.focus-item-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.content-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ----- Contact section ----- */
.contact-section {
  padding-bottom: var(--space-3xl);
}

.contact-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
}

.contact-intro {
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ----- Form ----- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .main-cols-inner {
    grid-template-columns: 1fr;
  }

  .col-contact {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 768px) {
  .nav {
    gap: var(--space-md);
  }

  .nav a {
    font-size: 0.875rem;
  }

  .tagline {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  font: inherit;
  font-size: 1rem;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.form-group input:user-invalid:not(:placeholder-shown),
.form-group textarea:user-invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

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

.field-error {
  font-size: 0.8125rem;
  color: var(--color-error);
  min-height: 1.25em;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-sm);
}

.btn {
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-xl);
  transition: background-color var(--transition), transform 0.1s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  margin: 0;
  font-size: 0.875rem;
  min-height: 1.25em;
}

.form-note.success {
  color: var(--color-success);
}

.form-note.error {
  color: var(--color-error);
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
  background: var(--color-surface);
}

.footer-inner {
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer-contact-link {
  font-weight: 500;
  color: var(--color-accent);
}

.footer-contact-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
