/* ─────────────────────────────────────────────────────────────────────────────
   contact.css – Performacentric Contact Page
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* ─── TOKENS ──────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --primary:          #076476;
  --primary-dark:     #054e5c;
  --primary-deep:     #004b59;

  /* Text */
  --text-heading:     #1a1c1c;
  --text-body:        #3f484b;
  --text-secondary:   #555f6f;
  --text-muted:       #6f797c;
  --text-light:       #94a3b8;

  /* Surfaces */
  --white:            #ffffff;
  --bg-page:          #ffffff;
  --bg-section:       #f5f7f8;
  --bg-card:          #f3f3f4;
  --accent-light:     #97def3;

  /* Borders */
  --border-input:     #bfc8cc;
  --border-card:      rgba(191, 200, 204, 0.25);
  --border-nav:       #f3f4f6;

  /* Error */
  --error:            #dc2626;
  --error-bg:         #fef2f2;
  --error-border:     #fecaca;

  /* Success */
  --success-text:     #166534;
  --success-bg:       #f0fdf4;
  --success-border:   #bbf7d0;

  /* Typography */
  --font-display:     'Manrope', sans-serif;
  --font-body:        'Inter', sans-serif;

  /* Layout */
  --container-px:     32px;
  --sidebar-width:    320px;
}

/* ─── BASE ────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── ACCESSIBILITY ───────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── LAYOUT ──────────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ─── BUTTONS ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-dark); }

/* ─── HEADER ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border-nav);
  display: flex;
  align-items: center;
}

.nav {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 40px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links li + li { margin-left: 32px; }
.nav-links a { font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover,
.nav-links .nav-link--active { color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-heading); border-radius: 2px; transition: all 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 80px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-nav);
  padding: 16px var(--container-px) 24px;
  flex-direction: column;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.nav-mobile.open { display: flex; }
.nav-mobile li + li { border-top: 1px solid var(--border-nav); }
.nav-mobile a { display: block; padding: 12px 0; font-size: 15px; font-weight: 600; color: #334155; text-decoration: none; }

/* ─── CONTACT HERO ────────────────────────────────────────────────── */
.contact-hero {
  background: var(--white);
  padding: 72px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border-nav);
}

.contact-hero-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.contact-hero-heading {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.contact-hero-subtext {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── CONTACT SECTION ─────────────────────────────────────────────── */
.contact-section {
  background: var(--bg-section);
  padding: 64px 0 96px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 40px;
  align-items: start;
}

/* ─── FORM PANEL ──────────────────────────────────────────────────── */
.form-panel {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 48px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.form-panel-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.form-panel-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ─── FORM GRID ───────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ─── FIELD GROUPS ────────────────────────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group--full { grid-column: 1 / -1; }

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.4;
}

.field-required {
  color: var(--primary);
  margin-left: 1px;
}

.field-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

/* ─── INPUTS ──────────────────────────────────────────────────────── */
.field-input,
.field-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-heading);
  background: var(--white);
  border: 1px solid var(--border-input);
  border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder { color: #9ca3af; }

.field-input:hover,
.field-textarea:hover { border-color: #8da8b0; }

.field-input:focus,
.field-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(7, 100, 118, 0.1);
}

.field-input[aria-invalid="true"],
.field-textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-textarea {
  height: 160px;
  resize: vertical;
  line-height: 1.65;
}

/* ─── FIELD ERRORS ────────────────────────────────────────────────── */
.field-error {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--error);
  line-height: 1.4;
}

.field-error[hidden] { display: none; }

/* ─── FORM STATUS ─────────────────────────────────────────────────── */
.form-status {
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.form-status[hidden] { display: none; }

.form-status--success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.form-status--error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

/* ─── SUBMIT BUTTON ───────────────────────────────────────────────── */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 15px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 6px 12px -2px rgba(0,0,0,0.15);
}

.btn-submit:disabled {
  background: #8ab7be;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sidebar-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
}

/* ─── CONTACT INFO LIST ───────────────────────────────────────────── */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-section);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}

.contact-info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1.4;
}

.contact-info-value a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}
.contact-info-value a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ─── SOCIAL FOLLOW ───────────────────────────────────────────────── */
.social-follow {
  border-top: 1px solid var(--border-nav);
  padding-top: 24px;
}

.social-follow-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.social-links { display: flex; gap: 8px; }

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg-section);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
}

/* ─── DARK CTA WIDGET ─────────────────────────────────────────────── */
.sidebar-widget--cta {
  background: var(--primary-deep);
  border-color: transparent;
}

.sidebar-cta-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.sidebar-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.sidebar-cta-body {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 20px;
}

.btn-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.btn-cta-link:hover { border-color: var(--white); }

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-nav);
  padding: 80px 0;
}

.footer-inner { display: flex; flex-direction: column; gap: 64px; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 32px; }
.footer-logo img { height: 50px; width: auto; display: block; }
.footer-brand .btn-primary { align-self: flex-start; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.footer-col a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border-nav);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 12px; font-weight: 500; color: var(--text-light); }

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; font-weight: 500; color: var(--text-light); text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: var(--primary); }

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */

/* 1024px – tighten sidebar */
@media (max-width: 1024px) {
  :root { --sidebar-width: 280px; }

  .form-panel { padding: 40px; }
}

/* 900px – stack layout */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-top { grid-template-columns: 1fr; }
}

/* 768px – mobile nav, smaller hero */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .contact-hero { padding: 48px 0 40px; }
  .contact-hero-heading { font-size: 34px; }
  .contact-hero-subtext { font-size: 16px; }

  .contact-section { padding: 48px 0 72px; }

  .contact-sidebar {
    grid-template-columns: 1fr;
  }

  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* 600px – single-column form rows */
@media (max-width: 600px) {
  :root { --container-px: 20px; }

  .form-panel { padding: 28px 24px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* 480px – final mobile polish */
@media (max-width: 480px) {
  .contact-hero-heading { font-size: 28px; }

  .footer-links { grid-template-columns: 1fr; }
}
