/* === CLEAN WHITE / MULTI-WHITE THEME === */

:root {
  /* Whites */
  --white-pure: #ffffff;
  --white-soft: #fafafa;
  --white-warm: #f2f2f2;

  /* Accents (very subtle) */
  --accent: #e6d9b3;      /* optional warm wheat */
  --accent-soft: rgba(230, 217, 179, 0.25);

  /* Text */
  --text: #000000;
  --text-muted: #333333;

  /* Layout */
  --menu-height: 72px;
  --menu-radius: 16px;

  /* Header */
  --menu-bg: var(--white-soft);
}

/* === GLOBAL === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white-warm);
  line-height: 1.65;
}

/* === TYPOGRAPHY === */
/* Fix for H1UserAgentFontSizeInSection deprecated API warning */
/* Complete override of user-agent h1 styling */
h1 {
  font-size: 2rem !important;
  line-height: 1.2 !important;
  margin: 1rem 0 !important;
  font-weight: 600 !important;
  font-family: 'Inter', 'Segoe UI', sans-serif !important;
  -webkit-font-feature-settings: normal !important;
  font-feature-settings: normal !important;
  font-variant: normal !important;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Ensure section h1 elements are properly sized */
section h1 {
  font-size: 2rem !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem !important;
}

.frontpage-hero h1 {
  font-size: clamp(2rem, 4vw, 2.5rem) !important;
  line-height: 1.1 !important;
}

.contact-section h1,
.info-section h1,
.social-section h1 {
  font-size: 2rem !important;
  line-height: 1.2 !important;
}

/* Prevent any external scripts from overriding font sizes */
h1[style*="font-size"] {
  font-size: 2rem !important;
}

/* Force consistent font sizing across all contexts */
* h1,
*:not(svg) h1 {
  font-size: inherit;
}

/* === HEADER === */
.main-header {
  width: 100%;
  background: transparent;
  padding: 1rem 0;          /* no horizontal padding here */
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--menu-bg);
  border-radius: var(--menu-radius);
  min-height: var(--menu-height);
  padding: 0 2rem;
  width: 100%;
  max-width: 1400px;         /* match .content-wrapper */
  margin: 0 auto;           /* perfectly center the bar */
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  gap: 2rem;
  box-sizing: border-box;
}


.logo-block {
  display: flex;
  align-items: center;
  height: var(--menu-height);
}

.logo-img {
  max-height: calc(var(--menu-height) - 14px);
  width: auto;
}

/* === MENU === */
.main-menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-menu ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

  .main-menu ul li a {
    padding: 0.4rem 1rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.main-menu ul li a:hover,
.main-menu ul li a:focus {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.main-menu ul li a.is-active {
  background: var(--accent);
  color: #000;
}

/* === CONTENT CARD === */
.content-wrapper {
  max-width: 900px;
  margin: 3rem auto;
  background: var(--white-pure);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3 {
  color: var(--text);
  margin-top: 1.2rem;
}

.content-wrapper p,
.content-wrapper li,
.content-wrapper a {
  color: var(--text);
}

.content-wrapper a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.content-wrapper a:hover {
  border-color: var(--text);
}

small,
.muted {
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.5rem, 3vw, 1.75rem) !important;
  }
  
  .frontpage-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2rem) !important;
  }
  
  section h1 {
    font-size: clamp(1.5rem, 3vw, 1.75rem) !important;
  }

  .main-header-inner {
    flex-direction: column;
    padding: 0.9rem;
    gap: 0.75rem;
  }

  .main-menu {
    justify-content: center;
  }

  .main-menu ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .content-wrapper {
    margin: 1.5rem 0.75rem;
    padding: 1.8rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.25rem, 4vw, 1.5rem) !important;
  }
  
  .frontpage-hero h1 {
    font-size: clamp(1.5rem, 5vw, 1.75rem) !important;
  }
  
  section h1 {
    font-size: clamp(1.25rem, 4vw, 1.5rem) !important;
  }
}
