/* Layout base */
:root {
  /* Brand (complementary accent hue) */
  --brand: #9B59B6;
  /* Classic Purple */
  --brand-02: rgba(155, 89, 182, 0.02);
  --brand-06: rgba(155, 89, 182, 0.06);
  --brand-10: rgba(155, 89, 182, 0.10);
  --brand-14: rgba(155, 89, 182, 0.14);
  --brand-20: rgba(155, 89, 182, 0.20);
  --brand-30: rgba(155, 89, 182, 0.30);

  /* Neutrals */
  --bg: #F7FAFC;
  /* Very light soft gray background */
  --panel: #FFFFFF;
  /* Clean white panel */
  --text: black;
  /* Medium gray for body text */
  --muted: darkgrey;
  /* Light muted grayish-blue for secondary text */
  --line: #D1D9E1;
  /* Light gray-blue for lines */
  --shadow: 0 10px 30px rgba(155, 89, 182, 0.1);
  /* Soft shadow with purple undertone */

  /* Heading and Subheading */
  --heading: #000000;
  /* Black for headings */
  --subheading: #000000;
  /* Black for subheadings */


  /* Layout */
  --round: 12px;
  --max-width: 1100px;
  --container-pad: clamp(16px, 4vw, 24px);

  /* Typography */
  --font-headings: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --h1: clamp(28px, 4.2vw, 56px);
  --h2: clamp(20px, 2.4vw, 32px);
  --h3: clamp(16px, 1.8vw, 20px);
  --lead: clamp(14px, 1.6vw, 16px);
  --text-sm: clamp(12px, 1.3vw, 14px);
}

.contact-section {
  background: var(--bg);
  padding: clamp(40px, 6vw, 72px) 16px;
}

.contact-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Head */
.contact-head {
  margin-bottom: 22px;
}

.contact-title {
  font-family: "General Sans", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--on-surface);
  margin: 0 0 6px;
}

.contact-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* Card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
}

/* Form */
.contact-form {
  display: grid;
  gap: 18px;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px;
  outline: none;
  font: inherit;
  color: var(--on-surface);
  transition: border-color .2s, box-shadow .2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a0a0ab;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #cfcfe6;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .08);
}

.span-2 {
  grid-column: 1 / -1;
}

.contact-submit {
  justify-self: start;
  background: var(--pill);
  color: var(--pill-on);
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, opacity .2s;
}

.contact-submit:active {
  transform: translateY(1px);
}

.contact-submit:hover {
  opacity: .92;
}

/* Widgets area */
.contact-widgets {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 2fr 1.15fr;
  gap: 18px;
}

.widget-right .mini-card {
  height: 100%;
}

/* Mini cards grid (left) */
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 3vw, 22px);
}

.mini-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.mini-item+.mini-item {
  margin-top: 20px;
}

.mi-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f4f4f7;
  display: grid;
  place-items: center;
  color: #2a2a30;
  font-size: 16px;
}

.mi-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.mi-muted {
  color: var(--muted);
  font-size: 14px;
}

.mi-link {
  color: var(--on-surface);
  text-decoration: none;
  font-size: 14px;
}

.mi-underline {
  font-size: 14px;
  color: var(--on-surface);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mb-12 {
  margin-bottom: 12px;
}

/* Socials */
.social-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 48px);
  grid-auto-rows: 48px;
  gap: 14px;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #f6f6fb;
  color: #0b0b12;
  border: 1px solid var(--line);
  font-size: 18px;
  transition: transform .08s ease, background .2s;
}

.social-list a:hover {
  background: #efeffa;
  transform: translateY(-1px);
}

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

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .contact-title {
    font-size: 28px;
  }
}