/*
Theme Name: Bromios Biotech
Theme URI: https://bromiosbiotech.com
Author: Bromios Biotech Consulting
Description: Clean consulting theme for Bromios Biotech patent analysis.
Version: 1.2
Text Domain: bromios-biotech
*/

/* ---------- Design tokens ---------- */

:root {
  --bromios-container-width: 1120px;

  --bromios-bg: #f4f7fb;
  --bromios-surface: #ffffff;
  --bromios-surface-soft: #f8fafc;
  --bromios-border-subtle: #d6e2f2;

  --bromios-primary: #006fbb;
  --bromios-primary-soft: #e0efff;
  --bromios-primary-dark: #004a7a;

  --bromios-text-main: #111827;
  --bromios-text-muted: #6b7280;

  --bromios-radius-lg: 18px;
  --bromios-radius-md: 10px;

  --bromios-shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
  --bromios-shadow-subtle: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* ---------- Global reset & typography ---------- */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bromios-text-main);
  background: radial-gradient(circle at top left, #f1f5ff 0, var(--bromios-bg) 40%, #f9fafb 100%);
}

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

a {
  color: var(--bromios-primary);
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--bromios-primary-dark);
  text-decoration: underline;
}

p {
  margin: 0 0 1rem;
  color: var(--bromios-text-main);
}

ul,
ol {
  margin: 0 0 1rem 1.3rem;
  padding: 0;
}

li + li {
  margin-top: 0.35rem;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: #020617;
}

h1 {
  font-size: clamp(2.3rem, 2.1rem + 0.7vw, 3.1rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 1.45rem + 0.4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-top: 2.25rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

/* ---------- Layout helpers ---------- */

.site-main {
  padding: 2.75rem 1.25rem 3.5rem;
}

.bromios-container,
.site-header-inner,
.site-footer-inner {
  max-width: var(--bromios-container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  width: 52px;
  height: auto;
}

.site-title-group {
  display: flex;
  flex-direction: column;
}

.site-title-link {
  color: inherit;
  text-decoration: none;
}

.site-title {
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.site-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
  color: var(--bromios-text-muted);
}

/* nav */

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
}

.primary-navigation a {
  color: #111827;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--bromios-primary);
  transition: width 0.18s ease-out;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after {
  width: 100%;
}

.primary-navigation .current-menu-item > a {
  font-weight: 600;
}

/* primary CTA button in header */

.bromios-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--bromios-primary);
  color: var(--bromios-primary-dark);
  background: linear-gradient(135deg, var(--bromios-primary-soft), #ffffff);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
  transition: background 0.18s ease-out, transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.bromios-primary-cta:hover {
  text-decoration: none;
  background: linear-gradient(135deg, #e0f2fe, #ffffff);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.26);
}

/* hamburger button, hidden on desktop */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.3rem;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--bromios-primary);
  outline-offset: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  margin: 4px 0;
}

/* ---------- Content layout ---------- */

.bromios-container .entry-content {
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  padding: 2.25rem 2.4rem;
  box-shadow: var(--bromios-shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.home .bromios-container .entry-content {
  background: radial-gradient(circle at top left, #e0f2ff 0, #ffffff 52%, #f9fafb 100%);
}

/* make long text blocks narrower for readability */

.entry-content > p,
.entry-content > ul,
.entry-content > ol {
  max-width: 58rem;
}

/* ---------- Home page cards & CTA ---------- */

.bromios-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.bromios-card {
  background: var(--bromios-surface);
  border-radius: var(--bromios-radius-lg);
  padding: 1.75rem 1.75rem 1.6rem;
  box-shadow: var(--bromios-shadow-subtle);
  border: 1px solid var(--bromios-border-subtle);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.bromios-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.bromios-card p {
  margin-bottom: 0.35rem;
  color: var(--bromios-text-muted);
}

.bromios-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bromios-shadow-soft);
  border-color: rgba(37, 99, 235, 0.3);
}

/* icons in cards (if you use them) */

.bromios-card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.15));
}

/* CTA band at bottom of home */

.bromios-cta {
  margin-top: 3rem;
  padding: 2.1rem 2.4rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #012a4a, #005a9e);
  color: #e5f2ff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.bromios-cta h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #f9fbff;
}

.bromios-cta p {
  margin: 0;
  color: #dbeafe;
}

.bromios-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: #f9fafb;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, background 0.16s ease-out;
}

.bromios-button:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.4);
}

/* ---------- Forms / Contact ---------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--bromios-radius-md);
  border: 1px solid #d1d5db;
  background: var(--bromios-surface-soft);
  font: inherit;
  color: inherit;
  transition: border-color 0.14s ease-out, box-shadow 0.14s ease-out, background 0.14s ease-out;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--bromios-primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background: #ffffff;
}

button,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: var(--bromios-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease-out, transform 0.16s ease-out, box-shadow 0.16s ease-out;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
}

button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--bromios-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(203, 213, 225, 0.7);
  background: #0b1220;
  color: #e5e7eb;
  padding: 1.75rem 0 2.2rem;
}

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

.site-footer a {
  color: #cbd5f5;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

/* ---------- Responsive adjustments ---------- */

@media (max-width: 900px) {
  .site-header-inner {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  /* brand + hamburger on one line */
  .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-branding {
    flex: 1;
    min-width: 0;
  }

  .primary-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(203, 213, 225, 0.8);
    padding: 0.8rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    display: none; /* hidden by default on mobile */
    z-index: 40;
  }

  .primary-navigation.is-open {
    display: flex; /* shown when toggle is clicked */
  }

  .primary-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .bromios-primary-cta {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex; /* show hamburger on mobile */
    flex-shrink: 0;
  }

  .site-main {
    padding-top: 1.8rem;
  }

  .bromios-container .entry-content {
    padding: 1.75rem 1.6rem;
    border-radius: 18px;
  }

  .bromios-cta {
    padding: 1.75rem 1.6rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 1.5rem 1rem 2.3rem;
  }

  .bromios-container,
  .site-header-inner,
  .site-footer-inner {
    padding: 0 1rem;
  }

  .entry-content > p,
  .entry-content > ul,
  .entry-content > ol {
    max-width: 100%;
  }

  /* slightly smaller headings so they fit better on narrow phones */
  h1 {
    font-size: clamp(1.9rem, 1.8rem + 0.6vw, 2.4rem);
  }
  h2 {
    font-size: clamp(1.35rem, 1.3rem + 0.4vw, 1.7rem);
  }
}
