/* Brooks Photonics – clean purple/white/black theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f5ff;
  --surface: #ffffff;
  --surface-2: #faf9ff;
  --text: #111827;
  --muted: #4b5563;
  --border: rgba(17, 24, 39, 0.10);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);

  --purple-900: #3b0764;
  --purple-800: #5b21b6;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;

  --black: #0b0b0f;
  --black-2: #14141a;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(124, 58, 237, 0.12), transparent 60%),
              radial-gradient(900px 500px at 85% 5%, rgba(139, 92, 246, 0.10), transparent 55%),
              var(--bg);
}

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(124, 58, 237, 0.18));
}

.site-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1.1;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 18px;
}

nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  padding: 10px 4px;
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--purple-600);
}

nav a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  opacity: 0.9;
}

nav a:hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  color: #ffffff;
  text-align: center;
  padding: 92px 18px 72px;
  background:
    radial-gradient(800px 500px at 30% 20%, rgba(139, 92, 246, 0.55), transparent 65%),
    radial-gradient(700px 500px at 70% 15%, rgba(124, 58, 237, 0.55), transparent 60%),
    linear-gradient(135deg, var(--purple-900), var(--purple-800) 55%, #2b0a3d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 auto 26px;
  max-width: 820px;
  font-size: 18px;
  color: #ffffff;  /* ensure pure white hero subtext */
  opacity: 1;      /* remove dimming */
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--black), var(--black-2));
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

/* Sections */
section {
  padding: 58px 0;
  background: transparent;
}

section > .container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
}

section:nth-of-type(even) > .container {
  background: var(--surface-2);
}

section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

section p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

ul.services {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

ul.services li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

ul.services li:last-child {
  border-bottom: none;
}

ul.services strong {
  color: var(--purple-800);
}

/* Posts */
#posts-container h3 {
  margin: 22px 0 10px;
  color: var(--purple-800);
  letter-spacing: -0.01em;
}

#posts-container ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

#posts-container a {
  color: var(--purple-600);
  text-decoration: none;
}

#posts-container a:hover {
  text-decoration: underline;
}

/* Forms */
.contact-form {
  max-width: 640px;
  margin: 18px auto 0;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.70);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input[type="submit"] {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  box-shadow: 0 18px 40px rgba(91, 33, 182, 0.30);
  transition: transform 140ms ease, filter 140ms ease;
}

.contact-form input[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 34px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #0b0b0f, #07070a);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

/* Responsive */
@media (max-width: 760px) {
  header .container {
    flex-direction: column;
    align-items: stretch;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero {
    padding: 76px 16px 58px;
  }

  .hero h1 {
    font-size: 34px;
  }

  section > .container {
    padding: 26px 18px;
  }
}
