/*
Theme Name:  Kevin Acevedo
Theme URI:   https://kevinacevedo.com
Author:      Kevin Acevedo
Description: Custom portfolio theme for Kevin Acevedo — Marketing Operations Professional
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: kevin-acevedo
*/

/* ============================================================
   DESIGN TOKENS — Edit colors here to retheme the whole site
   ============================================================ */
:root {
  --cream:        #F4F6F0;   /* Page background */
  --warm-bg:      #EBF0E5;   /* Alternate section background */
  --tan:          #D4DEC8;   /* Borders and dividers */
  --sage:         #7A9E7E;   /* Hover states */
  --olive:        #4E6E45;   /* Tag text and labels */
  --forest:       #243D20;   /* Dark section background (About) */
  --dark-forest:  #172818;   /* Footer background */
  --accent:       #5C8A52;   /* Primary green — buttons, icons, highlights */
  --accent-light: #7EAE73;   /* Lighter accent — hover states */
  --text:         #1E2E1A;   /* Main body text */
  --muted:        #6A806A;   /* Secondary / descriptive text */
  --white:        #FAFCF8;   /* Card backgrounds */
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ============================================================
   WORDPRESS CORE — Suppress default WP styles
   ============================================================ */
.wp-block-image { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 56px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(244,246,240,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(122,158,126,0.15);
  transition: box-shadow 0.3s;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--dark-forest); letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

/* WordPress nav menu output */
#site-nav .nav-menu { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
#site-nav .nav-menu li a {
  text-decoration: none; font-size: 0.8rem; font-weight: 500;
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
#site-nav .nav-menu li a:hover { color: var(--accent); }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; padding: 130px 56px 90px; gap: 72px;
  position: relative; overflow: hidden;
}
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); }
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(92,138,82,0.22) 0%, transparent 65%);
  top: -160px; right: -100px;
  animation: drift 10s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(78,110,69,0.18) 0%, transparent 65%);
  bottom: 40px; left: -80px;
  animation: drift 14s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.04); }
}
.hero-text { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); background: rgba(92,138,82,0.1);
  border: 1px solid rgba(92,138,82,0.2); padding: 7px 16px; border-radius: 100px;
  margin-bottom: 32px; opacity: 0; animation: fadeUp 0.6s 0.15s forwards;
}
.eyebrow-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 900;
  line-height: 1.08; color: var(--dark-forest); letter-spacing: -0.03em;
  margin-bottom: 28px; opacity: 0; animation: fadeUp 0.6s 0.3s forwards;
}
.hero-h1 em { color: var(--accent); font-style: normal; position: relative; }
.hero-h1 em::after {
  content: ''; position: absolute; bottom: 4px; left: 0; right: 0;
  height: 3px; background: var(--accent); opacity: 0.3; border-radius: 2px;
}
.hero-sub {
  font-size: 1.05rem; font-weight: 300; line-height: 1.75;
  color: var(--muted); max-width: 500px; margin-bottom: 44px;
  opacity: 0; animation: fadeUp 0.6s 0.45s forwards;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.6s 0.6s forwards; }
.btn-primary {
  padding: 14px 34px; background: var(--accent); color: var(--white);
  border: none; border-radius: 6px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(92,138,82,0.35); display: inline-block;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(92,138,82,0.4); color: var(--white); }
.btn-secondary {
  padding: 14px 34px; background: transparent; color: var(--dark-forest);
  border: 1.5px solid var(--tan); border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--sage); color: var(--accent); }
.hero-stats { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; opacity: 0; animation: fadeIn 0.8s 0.75s forwards; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--white); padding: 28px 24px;
  border-radius: 14px; border: 1px solid var(--tan);
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(36,61,32,0.1); }
.stat-card.wide { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--accent); display: block; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.stat-card.wide .stat-num { margin-bottom: 0; margin-right: 16px; }
.stat-wide-text { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.site-section { padding: 100px 56px; }
.section-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--dark-forest); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 16px; }
.section-sub { font-size: 1rem; color: var(--muted); line-height: 1.72; max-width: 520px; }

/* ============================================================
   EXPERTISE SECTION
   ============================================================ */
#expertise { background: var(--warm-bg); }
.expertise-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.expertise-card {
  background: var(--white); border: 1px solid var(--tan); border-radius: 14px;
  padding: 36px 30px; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.expertise-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--olive), var(--accent-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.expertise-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(36,61,32,0.1); }
.expertise-card:hover::after { transform: scaleX(1); }
.card-icon { font-size: 1.3rem; width: 52px; height: 52px; background: rgba(92,138,82,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent); }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.12rem; font-weight: 600; color: var(--dark-forest); margin-bottom: 12px; }
.card-desc { font-size: 0.88rem; line-height: 1.68; color: var(--muted); margin-bottom: 20px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.03em; padding: 4px 10px; background: rgba(78,110,69,0.09); color: var(--olive); border-radius: 100px; border: 1px solid rgba(78,110,69,0.15); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { background: var(--forest); color: var(--cream); }
#about .section-label { color: var(--accent-light); }
#about .section-title { color: var(--cream); }
.about-body { font-size: 0.975rem; line-height: 1.78; color: rgba(244,246,240,0.65); margin-bottom: 20px; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.cred-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; padding: 18px 20px; transition: background 0.2s; }
.cred-item:hover { background: rgba(255,255,255,0.1); }
.cred-icon { font-size: 1.1rem; margin-bottom: 10px; color: var(--accent-light); }
.cred-title { font-size: 0.85rem; font-weight: 500; color: var(--cream); margin-bottom: 4px; }
.cred-detail { font-size: 0.75rem; color: rgba(244,246,240,0.5); }

/* ============================================================
   PROCESS SECTION
   ============================================================ */
#process { background: var(--warm-bg); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.process-card { background: var(--white); border: 1px solid var(--tan); border-radius: 14px; padding: 36px 28px; transition: transform 0.25s, box-shadow 0.25s; }
.process-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(36,61,32,0.1); }
.process-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: rgba(92,138,82,0.18); line-height: 1; margin-bottom: 16px; }
.process-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; color: var(--dark-forest); margin-bottom: 10px; }
.process-desc { font-size: 0.875rem; line-height: 1.65; color: var(--muted); }

/* ============================================================
   BLOG / POSTS SECTION
   ============================================================ */
#blog { background: var(--cream); }
.blog-intro { margin-bottom: 56px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white); border: 1px solid var(--tan); border-radius: 14px;
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(36,61,32,0.1); }
.blog-card-thumb { width: 100%; height: 200px; object-fit: cover; background: var(--warm-bg); display: block; }
.blog-card-thumb-placeholder { width: 100%; height: 200px; background: var(--warm-bg); display: flex; align-items: center; justify-content: center; color: var(--sage); font-size: 2rem; }
.blog-card-body { padding: 28px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.blog-card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--dark-forest); margin-bottom: 12px; line-height: 1.35; }
.blog-card-title a { text-decoration: none; color: inherit; transition: color 0.2s; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt { font-size: 0.875rem; line-height: 1.65; color: var(--muted); flex: 1; margin-bottom: 20px; }
.blog-card-link { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; }
.blog-card-link:hover { color: var(--accent-light); }
.blog-no-posts { color: var(--muted); font-size: 1rem; }

/* Single post page */
.post-container { max-width: 760px; margin: 140px auto 100px; padding: 0 32px; }
.post-header { margin-bottom: 48px; }
.post-header .section-label { margin-bottom: 16px; }
.post-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.12; color: var(--dark-forest); letter-spacing: -0.025em; margin-bottom: 20px; }
.post-meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }
.post-content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.post-content h2, .post-content h3 { font-family: 'Playfair Display', serif; color: var(--dark-forest); margin: 40px 0 16px; }
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 24px; margin: 32px 0; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; color: var(--muted); }
.post-content img { border-radius: 10px; margin: 28px 0; }
.post-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 56px; color: var(--accent); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.post-back:hover { color: var(--accent-light); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact { background: var(--cream); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info .section-title { margin-bottom: 20px; }
.contact-info p { font-size: 1rem; line-height: 1.72; color: var(--muted); margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; color: var(--text); margin-bottom: 14px; }
.contact-detail a { color: var(--text); text-decoration: none; }
.contact-detail a:hover { color: var(--accent); }
.contact-icon { width: 38px; height: 38px; background: rgba(92,138,82,0.1); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { color: var(--accent); font-size: 0.95rem; }
.contact-form-card { background: var(--white); border: 1px solid var(--tan); border-radius: 16px; padding: 44px 40px; box-shadow: 0 4px 32px rgba(36,61,32,0.06); }
.form-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; color: var(--dark-forest); margin-bottom: 28px; }

/* WordPress Comment/Form inputs — override WP defaults */
.contact-form-card .wpcf7-form label,
.form-group label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card textarea,
.form-group input,
.form-group textarea {
  width: 100%; padding: 13px 16px; background: var(--cream);
  border: 1.5px solid var(--tan); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus,
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92,138,82,0.12); }
.contact-form-card textarea, .form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-submit,
.contact-form-card input[type="submit"] {
  width: 100%; padding: 15px; background: var(--accent); color: var(--white);
  border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 500; cursor: pointer; margin-top: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(92,138,82,0.3);
}
.form-submit:hover,
.contact-form-card input[type="submit"]:hover { background: var(--accent-light); transform: translateY(-2px); }
.wpcf7-response-output { margin-top: 12px; padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; border: none !important; }
.wpcf7-mail-sent-ok { background: rgba(92,138,82,0.08); color: var(--accent); }
.wpcf7-validation-errors { background: rgba(196,92,42,0.08); color: #c45c2a; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--dark-forest); color: rgba(244,246,240,0.45); text-align: center; padding: 36px 56px; font-size: 0.875rem; }
#site-footer span, #site-footer a { color: var(--accent-light); text-decoration: none; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 900px) {
  #site-nav { padding: 18px 24px; }
  #site-nav .nav-menu { gap: 20px; }
  #hero { grid-template-columns: 1fr; padding: 110px 24px 60px; gap: 40px; }
  #contact { grid-template-columns: 1fr; gap: 48px; }
  .site-section { padding: 64px 24px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */
@media (max-width: 640px) {
  #site-nav .nav-menu { display: none; }
  .expertise-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
