/* ============================================================
   Cartez Augustus - Personal Website Stylesheet
   Color palette:
     --dark:   #111318  (hero/nav background)
     --mid:    #1e2028  (card backgrounds)
     --accent: #f59e0b  (orange/amber highlights)
     --light:  #f5f5f0  (light content background)
     --text:   #1a1a1a  (body text on light bg)
     --muted:  #6b7280  (secondary text)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --dark:   #111318;
  --mid:    #1e2028;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --light:  #f5f5f0;
  --white:  #ffffff;
  --text:   #1a1a1a;
  --muted:  #6b7280;
  --border: #e5e5e0;
  --radius: 12px;
  --nav-h:  70px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  font-size: 16px;
}

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

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

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--dark);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) 5% 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(245,158,11,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(245,158,11,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

/* Circular profile photo */
.hero-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(245,158,11,0.12), 0 20px 60px rgba(0,0,0,0.4);
  /* Fade-in animation on load */
  animation: fadeUp 0.8s ease both;
}

.hero-text {
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- Hero Stats (inside hero, visible on load) --- */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  /* Subtle top border to visually separate from the CTA buttons */
  border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Content Sections (light bg) --- */
.section {
  padding: 5rem 5%;
}

.section-light {
  background: var(--light);
}

.section-white {
  background: var(--white);
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* --- Bio Section --- */
.bio-text p {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 1.4rem;
  line-height: 1.8;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

/* --- Services Page --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

/* Left accent bar on service cards */
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Placeholder comment styling for adding new services */
/* ADD SERVICE HERE: copy a .service-card block in services.html */

/* --- Areas Served --- */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.area-tag {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}

.area-tag:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* --- Contact Page --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.2s;
}

.contact-link i {
  color: var(--accent);
  width: 18px;
  text-align: center;
}

.contact-link:hover {
  color: var(--accent-dark);
}

/* Email reveal button */
.email-reveal-btn {
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.email-reveal-btn:hover {
  background: var(--accent-dark);
}

#email-display {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.5rem;
  min-height: 1.4em;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* Honeypot field - visually hidden from humans, bots fill it */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  tab-index: -1;
}

.form-submit {
  align-self: flex-start;
}

/* --- Footer --- */
footer {
  background: var(--dark);
  padding: 2.5rem 5%;
  text-align: center;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

footer a {
  color: var(--accent);
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Utility --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-photo {
    width: 150px;
    height: 150px;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .stats-inner {
    gap: 2rem;
    justify-content: center;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    padding: 1.5rem 5%;
    gap: 1.2rem;
    border-top: 1px solid rgba(245,158,11,0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

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

  .section {
    padding: 3.5rem 5%;
  }
}