/* =========================================
   Andre Richest Costa — Digital Business Card
   Premium Executive Design System
   ========================================= */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-bg: #f7f6f3;
  --color-bg-card: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #5a5a5a;
  --color-text-muted: #8a8a8a;
  --color-accent: #0f2b46;
  --color-accent-hover: #163d61;
  --color-accent-light: #1a4a72;
  --color-border: rgba(0, 0, 0, 0.06);
  --color-shadow: rgba(15, 43, 70, 0.08);
  --color-shadow-strong: rgba(15, 43, 70, 0.14);
  --color-overlay: rgba(15, 43, 70, 0.03);

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-card: 0 1px 3px var(--color-shadow), 0 4px 16px var(--color-shadow);
  --shadow-elevated: 0 2px 8px var(--color-shadow), 0 8px 32px var(--color-shadow-strong);
  --shadow-photo: 0 4px 20px rgba(15, 43, 70, 0.12), 0 8px 40px rgba(15, 43, 70, 0.08);
  --shadow-button: 0 1px 3px rgba(15, 43, 70, 0.1), 0 4px 12px rgba(15, 43, 70, 0.08);
  --shadow-button-hover: 0 2px 8px rgba(15, 43, 70, 0.15), 0 8px 24px rgba(15, 43, 70, 0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Focus States (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Page Container --- */
.page {
  width: 100%;
  max-width: 480px;
  padding: var(--space-xl) var(--space-lg);
  padding-bottom: var(--space-3xl);
}

/* --- Card Container --- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-lg);
}

/* =========================================
   HERO / PROFILE SECTION
   ========================================= */
.hero {
  text-align: center;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}

/* Profile Photo */
.hero__photo-wrapper {
  display: inline-block;
  position: relative;
  margin-bottom: var(--space-xl);
}

.hero__photo {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-photo);
  border: 3px solid var(--color-bg-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero__photo:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-elevated);
}

/* Photo decorative ring */
.hero__photo-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  pointer-events: none;
}

/* Name */
.hero__name {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

/* Headline */
.hero__headline {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

/* Divider */
.hero__divider {
  width: 36px;
  height: 2px;
  background: var(--color-accent);
  border: none;
  border-radius: 2px;
  margin: 0 auto var(--space-lg);
  opacity: 0.4;
}

/* Intro */
.hero__intro {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 380px;
  margin: 0 auto;
}

/* =========================================
   PRIMARY CTA BUTTONS
   ========================================= */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0 var(--space-sm);
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
  min-height: 52px;
  position: relative;
  overflow: hidden;
}

/* Primary button (Save Contact) */
.cta-btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-button);
}

.cta-btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-1px);
}

.cta-btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-button);
}

/* Secondary button (WhatsApp, Book a Call) */
.cta-btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  box-shadow: none;
}

.cta-btn--secondary:hover {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-button);
  transform: translateY(-1px);
}

.cta-btn--secondary:active {
  transform: translateY(0);
}

/* Button icons */
.cta-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* =========================================
   BRAND / CREDIBILITY SECTION
   ========================================= */
.brand {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.brand__tagline {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* =========================================
   SOCIAL LINKS SECTION
   ========================================= */
.social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.social__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  background: var(--color-overlay);
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
}

.social__link:hover {
  color: var(--color-accent);
  background: rgba(15, 43, 70, 0.06);
  border-color: rgba(15, 43, 70, 0.12);
  transform: translateY(-1px);
}

.social__link:active {
  transform: translateY(0);
}

.social__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  text-align: center;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
}

.footer__name {
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.footer__brand {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.footer__url {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* =========================================
   RESPONSIVE — TABLET & DESKTOP
   ========================================= */
@media (min-width: 600px) {
  .page {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 520px;
  }

  .hero__photo {
    width: 150px;
    height: 150px;
  }

  .hero__name {
    font-size: 1.875rem;
  }

  .hero__intro {
    font-size: 1rem;
  }

  .card {
    padding: var(--space-3xl) var(--space-2xl);
    border-radius: var(--radius-xl);
  }
}

@media (min-width: 1024px) {
  body {
    padding-top: var(--space-3xl);
    justify-content: flex-start;
  }

  .page {
    max-width: 540px;
    padding: var(--space-4xl) var(--space-2xl);
  }

  .card {
    box-shadow: var(--shadow-elevated);
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Print Styles --- */
@media print {
  body {
    background: #ffffff;
  }

  .card {
    box-shadow: none;
    border: 1px solid #e0e0e0;
  }

  .cta-btn {
    border: 1px solid #333;
    background: transparent !important;
    color: #333 !important;
  }
}
