/* ================= GLOBAL ================= */

/* Best-practice reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #003366;
  --muted: #6b7280;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
}

html {
    scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
}

section {
  padding: var(--space-xl) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ================= BUTTONS ================= */

.btn {
  padding: 12px 20px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}

.btnPrimary {
  background: var(--primary);
  color: #fff;
}

/* ================= HERO ================= */



.hero-full {
  min-height: 100vh;
  background: url("../images/hero-office.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  background-size: contain;
  
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;   /* left align */
  gap: 16px;
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: left;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Subtitle */
.hero-subtitle {
  font-size: 18px;
  color: #e5e7eb;
  max-width: 480px;
  line-height: 1.6;
}

.hero-text h1 {
  margin-top: 8px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: var(--space-md);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
}

/* ================= HERO CARD ================= */

.heroCard-intro {
  padding: 100px 0 60px;
  background: #ffffff;
}

.heroCard-text {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.heroCard-text .badge {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
}

.heroCard-subtitle {
  font-size: 18px;
  color: #374151;
  line-height: 1.6;
  max-width: 520px;
}



.heroCard h1 {
  font-size: 40px;
}

.heroCard-visual {
  min-height: 80vh;
  background: url("../images/Designer.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  background-size: contain;

}

/* ================= SERVICES ================= */

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.card {
  background: #fff;
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* ================= SECTION BACKGROUND ================= */

.section-muted {
  background: linear-gradient(180deg,#f9fafb,#f3f4f6,#f9fafb);
}

/* ================= ABOUT ================= */

.aboutGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.aboutText {
  max-width: 520px;
}

.aboutText .lead {
  font-size: 18px;
  line-height: 1.7;
}

.aboutVideo iframe {
  width: 100%;
  height: 315px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ================= CONTACT ================= */

.contactGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contactText h2 {
  font-size: 36px;
}

.contactForm {
  background: white;
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.formRow {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-sm);
}

.formRow input,
.formRow textarea {
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

/* ================= HEADER / NAV ================= */

.navWrap {
  height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container.nav {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;            /* 🔑 removes inline baseline shift */
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;            /* 🔑 normalize text height */
}

.logo-text strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.logo-text span {
  font-size: 11px;
  line-height: 1.1;
  color: #6b7280;
}

/* NAV LINKS */

.navLinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.navLinks a {
  display: flex;             /* 🔑 prevents baseline drift */
  align-items: center;
  line-height: 1;
  padding: 0;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}

/* ACTIONS */

.navActions {
  display: flex;
  align-items: center;
}

.navActions .btn {
  display: flex;             /* 🔑 align text vertically */
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 10px 18px;
}
/* ================= AUTH / LOGIN ================= */

.auth-section {
  min-height: calc(100vh - 72px); /* account for header */
  display: flex;
  align-items: center;
  background: #f9fafb;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.auth-title {
  margin-bottom: 8px;
}

.auth-note {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

.auth-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-error {
  color: #b91c1c;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-form .formRow {
  margin-bottom: 16px;
}

.auth-form label {
  font-size: 13px;
  margin-bottom: 4px;
  color: #374151;
}

.auth-form input {
  width: 100%;
}

.auth-btn {
  width: 100%;
  margin-top: 8px;
}
#--AI chat

.flash-box {
    max-width: 640px;
    margin: 20px auto;
    padding: 15px;
    background: #f0f7ff;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
}
.ai-assistant {
    max-width: 640px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.ai-assistant h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.ai-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 22px;
}

.ai-form {
    display: flex;
    gap: 12px;
}

.ai-form input {
    flex: 1;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    transition: border 0.2s, box-shadow 0.2s;
}

.ai-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btnPrimary {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btnPrimary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.ai-answer-old {
    margin-top: 16px;
    padding: 14px;
    background: #f0f7ff;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    white-space: pre-wrap;
}
.ai-answer {
  max-height: 280px;        /* control visible height */
  overflow-y: auto;         /* enable vertical scroll */
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;

  background: rgba(255,255,255,0.95);
  border: 1px solid #ddd;

  line-height: 1.5;
  font-size: 0.95rem;
}

/* Optional scrollbar polish */
.ai-answer::-webkit-scrollbar {
  width: 6px;
}

.ai-answer::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 6px;
}


.ai-error {
    margin-top: 16px;
    padding: 14px;
    background: #fff3f3;
    border-left: 4px solid #d9534f;
    border-radius: 8px;
    white-space: pre-wrap;
}
