/* GateRevive Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --iron: #1a1a2e;
  --rust: #c45a3c;
  --rust-light: #e8734f;
  --copper: #d4956a;
  --cream: #f5f0eb;
  --stone: #8a8378;
  --dark-slate: #2d2d3a;
  --success: #2d8a4e;
  --error: #c43c3c;
  --white: #ffffff;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--iron);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

a { color: var(--rust); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rust-light); }

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--iron);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--rust); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--iron);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--rust); }

.nav-links a.active {
  color: var(--rust);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rust);
}

.nav-cta {
  background: var(--rust) !important;
  color: var(--cream) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 3px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--rust-light) !important; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--iron);
  margin: 5px 0;
  transition: all 0.3s;
}

/* SECTION HELPERS */
.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-label--light { color: var(--copper); }

.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: var(--iron);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(196, 90, 60, 0.1) 0%, transparent 60%);
}

.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-header h1 em {
  font-style: normal;
  color: var(--rust-light);
}

.page-header p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(245, 240, 235, 0.65);
  max-width: 600px;
  margin: 0 auto;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--rust);
  color: var(--cream);
}

.btn-primary:hover { background: var(--rust-light); color: var(--cream); }

.btn-secondary {
  background: transparent;
  color: var(--rust);
  border: 1px solid var(--rust);
}

.btn-secondary:hover {
  background: var(--rust);
  color: var(--cream);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* CARDS */
.card {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem;
  border: 1px solid rgba(26, 26, 46, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  transform: translateY(-2px);
}

/* FORMS */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--iron);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group label .required {
  color: var(--rust);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--iron);
  background: var(--white);
  border: 1px solid rgba(26, 26, 46, 0.15);
  border-radius: 3px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(196, 90, 60, 0.1);
}

.form-control::placeholder {
  color: var(--stone);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8378' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: 0.35rem;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* FOOTER */
footer {
  padding: 3rem 2rem 2rem;
  background: var(--iron);
  border-top: 1px solid rgba(245, 240, 235, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 240, 235, 0.5);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(245, 240, 235, 0.5);
  padding: 0.3rem 0;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 235, 0.06);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(245, 240, 235, 0.35);
  letter-spacing: 0.05em;
}

.footer-bottom a { color: var(--copper); text-decoration: none; }

/* TOAST / NOTIFICATIONS */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--iron);
  color: var(--cream);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(120%);
  transition: transform 0.3s ease;
  z-index: 1000;
  max-width: 400px;
}

.toast.show { transform: translateY(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }

/* UTILITY */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* RESPONSIVE */
@media (max-width: 968px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 240, 235, 0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  }
  .nav-mobile-toggle { display: block; }
  .page-header { padding: 7rem 1.25rem 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .container, .container-sm { padding: 0 1.25rem; }
}
