/*
  Bold, image-free landing styles for ParentCo
  - Strong typography
  - High contrast
  - Responsive layout
  - Accessible defaults
*/

:root {
  /* Light mode colors */
  --bg: #ffffff;
  --fg: #0a0a0b;
  --muted: #6b7280;
  --accent: #4a5a1f;
  --accent-highlight: #70882b;
  --accent-ink: #ffffff;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";

  --radius: 12px;
  --container: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode colors */
    --bg: #0a0a0b;
    --fg: #f5f6f7;
    --muted: #9ca3af;
    --accent-ink: #ffffff;
    --surface: #1a1a1c;
    --border: #374151;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(10, 10, 11, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: var(--fg);
  text-decoration: none;
}

.site-nav .nav-link {
  color: var(--fg);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 700;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--accent);
}

/* Typography */
.display {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
}

.hero-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out forwards;
}

.hero-line:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-line:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lede {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 70ch;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 12px 0;
}

p {
  margin: 0 0 16px 0;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.5s ease-out;
}

.button:hover::before {
  left: 100%;
}

.button.primary {
  background: linear-gradient(115deg, var(--accent-highlight) 0%, var(--accent) 100%);
  color: var(--accent-ink);
  backdrop-filter: blur(10px);
  border-color: #6b7c32;
  box-shadow: 
    0 8px 25px rgba(74, 90, 31, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.button.primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50px;
  pointer-events: none;
}

.button:hover,
.button:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.button.primary:hover,
.button.primary:focus {
  opacity: 92%;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 15px 35px rgba(74, 90, 31, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button {
  transition: all 0.2s ease-out;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* Sections */
.section {
  padding: 72px 0;
}

.hero {
  background: 
    radial-gradient(1000px 500px at 10% -10%, rgba(74, 90, 31, 0.08), transparent),
    radial-gradient(800px 400px at 90% -10%, rgba(0, 0, 0, 0.02), transparent),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(600px 300px at 20% 80%, rgba(255, 255, 255, 0.05), transparent),
    radial-gradient(400px 200px at 80% 20%, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.about p {
  max-width: 65ch;
}

.subsidiary-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 12;
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .card {
    background: rgba(26, 26, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  pointer-events: none;
}

.card {
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(248, 250, 252, 0.8);
}

@media (prefers-color-scheme: dark) {
  .card:hover {
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(26, 26, 28, 0.8);
  }
}

.card .button {
  pointer-events: none;
  transition: none;
}

.card .button::before {
  display: none;
}

.card .button:hover {
  transform: none;
  box-shadow: none;
}

.card {
  text-decoration: none;
  color: inherit;
}

.card * {
  text-decoration: none !important;
  color: inherit;
}

.card h3,
.card p,
.card span {
  color: var(--fg);
}

@media (min-width: 700px) {
  .card { grid-column: span 6; }
}

@media (min-width: 1000px) {
  .card { grid-column: span 4; }
}

.card-title {
  margin: 0 0 6px 0;
  font-weight: 900;
}

.card-body {
  color: var(--muted);
}

/* Contact */
.contact .lede {
  margin-bottom: 12px;
}

.contact-form {
  margin-top: 12px;
}

.form-row {
  margin-bottom: 12px;
}

.form-field {
  margin-bottom: 12px;
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.form-note {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0 0;
}

.form-message {
  margin: 12px 0 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid;
  display: none;
}

.form-message:not(:empty) {
  display: block;
}

.form-message.success {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.form-actions { margin-top: 12px; }

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 -1px 20px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background: rgba(26, 26, 28, 0.6);
    box-shadow: 0 -1px 20px rgba(0, 0, 0, 0.2);
  }
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-left small {
  color: var(--muted);
  font-size: 14px;
}

.privacy-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease-out;
}

.privacy-link:hover {
  color: var(--accent);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    transition: none !important; 
    animation: none !important; 
  }
  
  .hero-line,
  .lede,
  .cta-row {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none; /* Hide completely by default */
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-color-scheme: dark) {
  .modal-content {
    background: rgba(26, 26, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--fg);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease-out;
  line-height: 1;
  font-weight: 400;
  position: relative;
}

.modal-close::before {
  content: "×";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.modal-close:hover {
  color: var(--fg);
}

.modal-body {
  padding: 24px;
}

.modal-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 24px 0 12px 0;
  color: var(--fg);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin: 0 0 16px 0;
  line-height: 1.6;
  color: var(--fg);
}

.modal-body ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.modal-body li {
  margin: 0 0 8px 0;
  line-height: 1.6;
  color: var(--fg);
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 20px 20px 0 20px;
  }
  
  .modal-body {
    padding: 0 20px 20px 20px;
  }
  
  .modal-title {
    font-size: 20px;
  }
}

@media (max-width: 500px) {
	.site-nav { display: none; }
	.footer-content { display: grid; }
	.privacy-link { margin-top: 20px; }
	.display { display: inherit; }
	.hero-line { display: inline; }
}
