/* ═══════════════════════════════════════════════════════
   Lambo Code — Contact Page
   Uses the shared --home-* variable system from home.css.
   ═══════════════════════════════════════════════════════ */

/* ─── SHARED ───────────────────────────────────────── */
.ct-container {
  width: min(100%, var(--home-max));
  margin: 0 auto;
}
.or { color: var(--home-accent); }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
#nav {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(10, 15, 20, .88);
  border-bottom: none;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  transition: background .3s, box-shadow .3s, height .3s;
}
html[data-theme="light"] #nav { background: rgba(244, 243, 239, .88); }
#nav.is-compact { height: 56px; box-shadow: 0 4px 24px rgba(0, 0, 0, .2); }
html[data-theme="light"] #nav.is-compact { box-shadow: 0 4px 24px rgba(23, 32, 39, .06); }
.ct-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.ct-nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.ct-nav-brand { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.1rem; font-weight: 800; letter-spacing: .06em; color: var(--home-text); }
.ct-nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ct-nav-links a { display: block; padding: 8px 14px; font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: var(--home-muted); text-decoration: none; border-radius: var(--home-radius); transition: color .2s, background .2s; position: relative; }
.ct-nav-links a:hover { color: var(--home-text); background: var(--home-line); }
.ct-nav-links a.active { color: var(--home-text); font-weight: 600; }
.ct-nav-links a.active::after { content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px; height: 2px; background: var(--home-accent); border-radius: 1px; }
.ct-nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ct-theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--home-line); background: transparent; color: var(--home-muted); font-size: .92rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s, background .2s; }
.ct-theme-btn:hover { color: var(--home-text); border-color: var(--home-text); background: var(--home-line); }
.ct-nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; background: var(--home-accent); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; border-radius: var(--home-radius); transition: background .2s, box-shadow .2s; }
.ct-nav-cta:hover { background: #f09a58; box-shadow: 0 4px 16px rgba(240, 122, 26, .25); }
.ct-mobile-overlay { display: none; position: fixed; inset: 0; z-index: 998; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.ct-mobile-overlay.open { display: block; opacity: 1; }
.ct-mobile-menu { display: none; }
@media (max-width: 900px) {
  .ct-nav-links { display: none; }
  .ct-nav-cta { display: none; }
  .hamburger { display: flex; }
  .ct-mobile-menu { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 85vw); z-index: 999; background: var(--home-surface); border-left: 1px solid var(--home-line); transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  html[data-theme="light"] .ct-mobile-menu { background: #fff; }
  .ct-mobile-menu.open { transform: none; }
  .ct-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--home-line); flex-shrink: 0; }
  .ct-mobile-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--home-line); background: transparent; color: var(--home-muted); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s; }
  .ct-mobile-close:hover { color: var(--home-text); border-color: var(--home-text); }
  .ct-mobile-links { list-style: none; margin: 0; padding: 16px 0; flex: 1; }
  .ct-mobile-links li { border-bottom: 1px solid var(--home-line); }
  .ct-mobile-links li:last-child { border-bottom: none; }
  .ct-mobile-links a { display: flex; align-items: center; gap: 14px; padding: 16px 24px; font-size: .95rem; font-weight: 500; color: var(--home-muted); text-decoration: none; transition: color .2s, padding-left .2s; }
  .ct-mobile-links a i { width: 22px; text-align: center; font-size: .85rem; color: var(--home-muted); transition: color .2s; }
  .ct-mobile-links a:hover { color: var(--home-text); padding-left: 30px; }
  .ct-mobile-links a:hover i { color: var(--home-accent); }
  .ct-mobile-links a.active { color: var(--home-text); font-weight: 600; }
  .ct-mobile-links a.active i { color: var(--home-accent); }
  .ct-mobile-footer { padding: 20px 24px; border-top: 1px solid var(--home-line); display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
  .ct-theme-btn--full { width: 100%; height: auto; padding: 14px; border-radius: var(--home-radius); font-size: .88rem; font-weight: 500; gap: 10px; justify-content: center; }
  .ct-mobile-cta { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; background: var(--home-accent); color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; border-radius: var(--home-radius); transition: background .2s; }
  .ct-mobile-cta:hover { background: #f09a58; }
  body.menu-open .ct-mobile-overlay { display: block; }
}
@media (max-width: 640px) {
  #nav { height: 60px; padding: 0 16px; }
  #nav.is-compact { height: 52px; }
  .ct-nav-logo img { width: 30px; height: 30px; }
  .ct-nav-brand { font-size: .95rem; }
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.ct-hero {
  padding: clamp(120px, 14vw, 180px) max(20px, 5vw) clamp(48px, 6vw, 72px);
  background: var(--home-bg);
  text-align: center;
}
.ct-hero h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--home-text);
  margin-bottom: 18px;
  text-wrap: balance;
}
.ct-hero > .ct-container > p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: var(--home-muted);
  max-width: 520px;
  margin: 0 auto;
  text-wrap: pretty;
}
.sv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 14px;
}
.sv-kicker i { font-size: .68rem; }
@media (max-width: 640px) {
  .ct-hero { padding-top: clamp(96px, 26vw, 120px); padding-bottom: clamp(32px, 6vw, 48px); }
  .ct-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
}

/* ═══════════════════════════════════════════════════════
   TWO-COLUMN CONTACT
   ═══════════════════════════════════════════════════════ */
.ct-main {
  padding: 0 max(20px, 5vw) clamp(76px, 10vw, 120px);
  background: var(--home-bg);
}
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, .45fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

/* Left: Info */
.ct-info h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--home-text);
  margin-bottom: 14px;
}
.ct-info > p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--home-muted);
  margin-bottom: 32px;
}

/* Contact methods */
.ct-methods {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}
.ct-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-line);
  text-decoration: none;
  transition: border-color .2s;
}
.ct-method:first-child { padding-top: 0; }
.ct-method:last-child { border-bottom: none; }
.ct-method:hover { border-bottom-color: var(--home-accent); }
.ct-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--home-accent-soft);
  border: 1px solid var(--home-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--home-accent);
  flex-shrink: 0;
}
.ct-method-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--home-muted);
  margin-bottom: 2px;
}
.ct-method-value {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--home-text);
  transition: color .2s;
}
.ct-method:hover .ct-method-value { color: var(--home-accent); }

/* Social links */
.ct-social {
  display: flex;
  gap: 10px;
}
.ct-social a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--home-line);
  background: transparent;
  color: var(--home-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.ct-social a:hover {
  color: var(--home-accent);
  border-color: var(--home-accent);
  background: var(--home-accent-soft);
}

/* Right: Form */
.ct-form-wrap {
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  padding: 36px;
}
.ct-field {
  margin-bottom: 22px;
}
.ct-field:last-of-type {
  margin-bottom: 28px;
}
.ct-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--home-text);
  margin-bottom: 8px;
}
.ct-required {
  color: var(--home-accent);
}
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--home-surface-2);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  font-family: "Outfit", sans-serif;
  font-size: .9rem;
  color: var(--home-text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: var(--home-muted);
  opacity: .7;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--home-accent);
  box-shadow: 0 0 0 3px var(--home-accent-soft);
}
.ct-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa8b2' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
html[data-theme="light"] .ct-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234D6478' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.ct-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Validation */
.ct-field.has-error input,
.ct-field.has-error select,
.ct-field.has-error textarea {
  border-color: #ef4444;
}
.ct-field.has-error input:focus,
.ct-field.has-error select:focus,
.ct-field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}
.ct-error {
  display: block;
  font-size: .78rem;
  color: #ef4444;
  margin-top: 6px;
  min-height: 0;
}

/* Submit button */
.ct-submit {
  width: 100%;
  padding: 14px;
  background: var(--home-accent);
  color: #fff;
  border: none;
  border-radius: var(--home-radius);
  font-family: "Outfit", sans-serif;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ct-submit:hover {
  background: #f09a58;
  box-shadow: 0 4px 16px rgba(240, 122, 26, .25);
}
.ct-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* Success / Error states */
.ct-success,
.ct-form-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: var(--home-radius);
  margin-top: 20px;
  font-size: .9rem;
  line-height: 1.6;
}
.ct-success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  color: #22c55e;
}
.ct-success p { margin: 0; color: var(--home-text); }
.ct-success i { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.ct-form-error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  color: #ef4444;
}
.ct-form-error p { margin: 0; color: var(--home-text); }
.ct-form-error i { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 768px) {
  .ct-grid { grid-template-columns: 1fr; gap: 40px; }
  .ct-form-wrap { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .ct-form-wrap { padding: 24px 18px; }
}

/* ═══════════════════════════════════════════════════════
   PROJECT INFO / TIPS
   ═══════════════════════════════════════════════════════ */
.ct-tips {
  padding: clamp(76px, 10vw, 120px) max(20px, 5vw);
  background: var(--home-surface);
}
.ct-tips h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--home-text);
  margin-bottom: 16px;
}
.ct-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--home-muted);
  max-width: 560px;
  margin-bottom: 40px;
}
.ct-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.ct-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--home-bg);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  transition: border-color .25s;
}
.ct-tip:hover { border-color: var(--home-accent); }
.ct-tip > i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--home-accent-soft);
  border: 1px solid var(--home-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--home-accent);
  flex-shrink: 0;
}
.ct-tip h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 4px;
}
.ct-tip p {
  font-size: .83rem;
  line-height: 1.55;
  color: var(--home-muted);
  margin: 0;
}
@media (max-width: 640px) {
  .ct-tips-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   DIRECT CONTACT CTA
   ═══════════════════════════════════════════════════════ */
.ct-direct {
  padding: clamp(64px, 8vw, 100px) max(20px, 5vw);
  background: var(--home-bg);
  text-align: center;
}
.ct-direct h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--home-text);
  margin-bottom: 12px;
}
.ct-direct p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--home-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}
.ct-direct-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: var(--home-radius);
  font-family: "Outfit", sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.ct-btn--primary {
  background: var(--home-accent);
  color: #fff;
}
.ct-btn--primary:hover {
  background: #f09a58;
  box-shadow: 0 4px 16px rgba(240, 122, 26, .25);
}
.ct-btn--outline {
  background: transparent;
  color: var(--home-text);
  border: 1px solid var(--home-line);
}
.ct-btn--outline:hover {
  background: var(--home-surface);
  border-color: var(--home-text);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer { background: var(--home-surface) !important; border-top: none; overflow: hidden; }
.ct-foot-accent { height: 3px; background: linear-gradient(90deg, var(--home-accent), #f09a58, var(--home-accent)); }
.ct-foot-inner { width: min(100%, var(--home-max)); margin: 0 auto; padding: 64px clamp(20px, 5vw, 72px) 0; }
.ct-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--home-line); }
.ct-foot-brand { max-width: 300px; }
.ct-foot-brand .ct-nav-logo { margin-bottom: 18px; }
.ct-foot-brand p { font-size: .88rem; line-height: 1.7; color: var(--home-muted); margin-bottom: 20px; }
.ct-foot-social { display: flex; gap: 10px; }
.ct-foot-social a { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--home-line); background: transparent; color: var(--home-muted); display: flex; align-items: center; justify-content: center; font-size: .9rem; text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.ct-foot-social a:hover { color: var(--home-accent); border-color: var(--home-accent); background: var(--home-accent-soft); }
.ct-foot-col h4 { font-family: "Bricolage Grotesque", sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--home-text); margin: 0 0 20px; }
.ct-foot-col ul { list-style: none; margin: 0; padding: 0; }
.ct-foot-col li { margin-bottom: 10px; }
.ct-foot-col li:last-child { margin-bottom: 0; }
.ct-foot-col a { font-size: .86rem; color: var(--home-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.ct-foot-col a i { font-size: .7rem; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.ct-foot-col a:hover { color: var(--home-text); }
.ct-foot-col a:hover i { opacity: 1; transform: none; }
.ct-foot-col a i:first-child { opacity: .6; transform: none; }
.ct-foot-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; gap: 16px; }
.ct-foot-bottom p { font-size: .8rem; color: var(--home-muted); margin: 0; }
.ct-foot-avail { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; color: var(--home-muted); white-space: nowrap; }
.ct-foot-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: ctPulse 2s infinite; }
@keyframes ctPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (max-width: 900px) {
  .ct-foot-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .ct-foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 640px) {
  .ct-foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .ct-foot-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* ─── REDUCED MOTION ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
