/* ─── CSS Reset & Variables ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:        #ffffff;
  --color-primary:   #1a1a2e;   /* dark navy, close to original */
  --color-accent:    #0070d2;   /* Salesforce blue */
  --color-accent-hover: #005fb2;
  --color-text:      #333333;
  --color-muted:     #666666;
  --color-border:    #e0e0e0;
  --color-section-bg:#f7f9fc;
  --font-heading:    'Raleway', sans-serif;
  --font-body:       'Open Sans', sans-serif;
  --max-width:       860px;
  --nav-height:      64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

/* ─── Navigation ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}

nav .logo img {
  height: 36px;
  display: block;
}

/* Fallback text logo if image is unavailable */
nav .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav ul a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover { color: #ffffff; }

/* External links with subtle indicator */
nav ul a[target="_blank"]::after {
  content: ' ↗';
  font-size: 0.7em;
  opacity: 0.6;
}

.lang-switch {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.75rem !important;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.2rem 0.5rem;
  transition: color 0.2s, border-color 0.2s !important;
}

.lang-switch:hover {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.6);
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
#hero {
  height:60vh;
  min-height:400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #e2e2e2 url('../images/background.png') top right /cover no-repeat;
  padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
}

#hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

#hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ─── Sections ──────────────────────────────────────────────────────── */
section {
  padding: 5rem 2rem;
}

section:nth-of-type(even) {
  background: var(--color-section-bg);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

/* ─── About ─────────────────────────────────────────────────────────── */
#about p {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  max-width: 680px;
}

/* ─── Certifications ────────────────────────────────────────────────── */
#certifications p {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 680px;
}

/* ─── CTA Banner ─────────────────────────────────────────────────────── */
#cta {
  background: var(--color-primary);
  padding: 4rem 2rem;
  text-align: center;
}

#cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

/* ─── Contact Form ──────────────────────────────────────────────────── */
#contact {
  padding: 5rem 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 600px;
}

.form-full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

label .required { color: var(--color-accent); margin-left: 2px; }

input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, textarea:focus {
  border-color: var(--color-accent);
}

textarea { resize: vertical; min-height: 130px; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  grid-column: 1 / -1;
}

.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.form-consent span {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Form feedback messages */
#form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 3px solid #2e7d32;
  font-size: 0.95rem;
}

#form-error {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: #fdecea;
  color: #c62828;
  border-left: 3px solid #c62828;
  font-size: 0.95rem;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--color-primary);
  padding: 2rem;
  text-align: center;
}

footer p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 0.85rem;
  transition: color 0.2s;
}

footer a:hover { color: #ffffff; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav ul { gap: 1rem; }
  nav ul a { font-size: 0.75rem; }

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

  .form-full { grid-column: 1; }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  nav ul { gap: 0.75rem; }
  nav ul a[target="_blank"]::after { display: none; }
}
