/*
Theme Name: TEM Marketing
Theme URI: https://temmarketing.ro
Author: TEM Marketing
Author URI: https://temmarketing.ro
Description: Tema WordPress oficială pentru TEM Marketing — agenție de marketing din România. Toate textele și imaginile site-ului se editează din Appearance → Customize, fără cod. Design identic cu formatul existent al site-ului.
Version: 2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tem-marketing
License: GNU General Public License v2 or later
License URI: LICENSE
*/

#tem-site *, #tem-site *::before, #tem-site *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal:  #2b2b2b;
  --charcoal2: #333333;
  --gold:      #F5C518;
  --gold-dark: #d4a800;
  --red:       #C0392B;
  --white:     #ffffff;
  --light-gray:#f0f0f0;
  --mid-gray:  #888888;
  --section-bg:#242424;
}

#tem-site .rainbow-line {
  height: 4px;
  background: linear-gradient(to right, #e74c3c, #e67e22, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c);
  background-size: 200% auto;
  animation: rainbowMove 4s linear infinite;
}
@keyframes rainbowMove {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
#tem-site .rainbow-text {
  background: linear-gradient(90deg, #e74c3c, #e67e22, #f1c40f, #2ecc71, #3498db, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#tem-site .logo-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}
#tem-site .nav-brand { display: flex; align-items: center; text-decoration: none; }
#tem-site .hero-logo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(245,197,24,0.3), 0 0 60px rgba(155,89,182,0.15);
}
#tem-site .section-label {
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, #e74c3c, #9b59b6) 1;
  padding-left: 10px;
}
#tem-site .service-card:nth-child(1):hover { border-color: #e74c3c; }
#tem-site .service-card:nth-child(2):hover { border-color: #3498db; }
#tem-site .service-card:nth-child(3):hover { border-color: #2ecc71; }
#tem-site .service-card:nth-child(4):hover { border-color: #9b59b6; }
#tem-site .benefit-card:nth-child(1)::before { background: #e74c3c; }
#tem-site .benefit-card:nth-child(2)::before { background: #3498db; }
#tem-site .benefit-card:nth-child(3)::before { background: #2ecc71; }
#tem-site .benefit-card:nth-child(4)::before { background: #9b59b6; }
#tem-site .testi-card:nth-child(1) { border-top-color: #e74c3c; }
#tem-site .testi-card:nth-child(2) { border-top-color: #3498db; }
#tem-site .testi-card:nth-child(3) { border-top-color: #2ecc71; }
#tem-site .step:nth-child(1) .step-num { color: rgba(231,76,60,0.25); }
#tem-site .step:nth-child(2) .step-num { color: rgba(52,152,219,0.25); }
#tem-site .step:nth-child(3) .step-num { color: rgba(46,204,113,0.25); }
#tem-site .step:nth-child(4) .step-num { color: rgba(155,89,182,0.25); }
#tem-site .step:nth-child(1) h3 { color: #e97a70; }
#tem-site .step:nth-child(2) h3 { color: #74b9db; }
#tem-site .step:nth-child(3) h3 { color: #67d48a; }
#tem-site .step:nth-child(4) h3 { color: #be9fdb; }
#tem-site nav.tem-nav { border-bottom: 3px solid transparent; border-image: linear-gradient(to right, #e74c3c, #e67e22, #f1c40f, #2ecc71, #3498db, #9b59b6) 1; }

html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; }
#tem-site {
  font-family: 'Montserrat', sans-serif;
  background: var(--charcoal);
  color: var(--white);
  overflow-x: hidden;
}

/* NAV */
#tem-site nav.tem-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(27,27,27,0.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  border-bottom: 2px solid var(--gold);
}
#tem-site .nav-logo { font-size: 1.4rem; font-weight: 900; letter-spacing: 0.08em; color: var(--white); text-decoration: none; }
#tem-site .nav-logo span { color: var(--gold); }
#tem-site .nav-links { display: flex; gap: 2rem; list-style: none; }
#tem-site .nav-links a {
  color: var(--white); text-decoration: none;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; transition: color .2s;
}
#tem-site .nav-links a:hover { color: var(--gold); }
#tem-site .nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
#tem-site .nav-toggle span { width: 24px; height: 2px; background: var(--gold); display: block; }

/* HERO */
#tem-site .hero {
  min-height: 100vh;
  padding-top: 70px;
  background: var(--charcoal2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#tem-site .hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(155,89,182,0.12) 0%, rgba(52,152,219,0.08) 40%, transparent 70%);
  pointer-events: none;
}
#tem-site .hero-text { padding: 6% 5% 6% 8%; position: relative; z-index: 2; }
#tem-site .hero-eyebrow {
  display: inline-block; background: var(--gold); color: var(--charcoal);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 5px 14px; margin-bottom: 1.4rem;
}
#tem-site .hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.05; text-transform: uppercase;
  letter-spacing: -0.01em; margin-bottom: 1.2rem;
}
#tem-site .hero-title .accent { color: var(--gold); }
#tem-site .hero-subtitle {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.35rem); color: rgba(255,255,255,0.75);
  line-height: 1.6; margin-bottom: 0.8rem;
}
#tem-site .hero-desc { font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 2.4rem; max-width: 500px; }
#tem-site .hero-desc strong { color: var(--gold); font-weight: 700; }
#tem-site .btn-primary {
  display: inline-block; background: var(--gold); color: var(--charcoal);
  font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 15px 36px; text-decoration: none; transition: background .2s, transform .15s; border: none; cursor: pointer;
}
#tem-site .btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
#tem-site .btn-secondary {
  display: inline-block; border: 2px solid var(--gold); color: var(--gold);
  font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 13px 30px; text-decoration: none; margin-left: 1rem; transition: background .2s, color .2s;
}
#tem-site .btn-secondary:hover { background: var(--gold); color: var(--charcoal); }
#tem-site .hero-image { position: relative; height: 100vh; overflow: hidden; }
#tem-site .hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; filter: grayscale(20%); }
#tem-site .hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--charcoal2) 0%, transparent 40%); }
#tem-site .hero-badge {
  position: absolute; bottom: 2.5rem; left: 2.5rem; z-index: 10;
  background: var(--gold); color: var(--charcoal); padding: 12px 20px;
  font-weight: 900; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
}

/* SECTION BASE */
#tem-site section.tem-section { padding: 90px 8%; }
#tem-site .section-label { display: inline-block; color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 0.8rem; }
#tem-site .section-title { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 900; text-transform: uppercase; line-height: 1.1; margin-bottom: 1.2rem; }
#tem-site .section-title .accent { color: var(--gold); }
#tem-site .section-desc { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.8; max-width: 600px; }
#tem-site hr.rule { border: none; border-top: 1px solid rgba(245,197,24,0.25); margin: 0; }

/* SERVICES */
#tem-site .services { background: var(--section-bg); }
#tem-site .services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1.5rem; }
#tem-site .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; }
#tem-site .service-card { background: var(--charcoal); padding: 2.5rem 2rem; border-top: 3px solid transparent; transition: border-color .2s, background .2s; cursor: default; }
#tem-site .service-card:hover { border-color: var(--gold); background: #2f2f2f; }
#tem-site .service-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }
#tem-site .service-card h3 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
#tem-site .service-card p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.75; }

/* METHODOLOGY */
#tem-site .methodology { background: var(--charcoal2); }
#tem-site .methodology-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin-top: 3.5rem; position: relative; }
#tem-site .step { padding: 2.5rem 2rem; border-left: 1px solid rgba(245,197,24,0.2); position: relative; }
#tem-site .step:first-child { border-left: none; }
#tem-site .step-num { font-size: 3.5rem; font-weight: 900; color: rgba(245,197,24,0.12); line-height: 1; margin-bottom: 0.5rem; }
#tem-site .step h3 { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.8rem; }
#tem-site .step p { font-size: 0.86rem; color: rgba(255,255,255,0.55); line-height: 1.75; }

/* BENEFITS */
#tem-site .benefits { background: var(--charcoal); }
#tem-site .benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 3.5rem; }
#tem-site .benefit-card { padding: 2rem; background: var(--section-bg); position: relative; overflow: hidden; }
#tem-site .benefit-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold); }
#tem-site .benefit-card h4 { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem; }
#tem-site .benefit-card p { font-size: 0.86rem; color: rgba(255,255,255,0.55); line-height: 1.75; }

/* PORTFOLIO */
#tem-site .portfolio { background: var(--section-bg); }
#tem-site .portfolio-tabs { display: flex; gap: 0; margin: 2.5rem 0; border-bottom: 2px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
#tem-site .ptab {
  padding: 12px 22px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .2s; background: none; border-left: none; border-right: none; border-top: none; font-family: inherit;
}
#tem-site .ptab.active, #tem-site .ptab:hover { color: var(--gold); border-bottom-color: var(--gold); }
#tem-site .portfolio-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
#tem-site .portfolio-list[hidden] { display: none; }
#tem-site .port-item { padding: 1.4rem 1.6rem; background: var(--charcoal); border-left: 3px solid var(--gold); font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.6; transition: background .2s; }
#tem-site .port-item:hover { background: #303030; }
#tem-site .port-item strong { display: block; color: var(--white); font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; }

/* TESTIMONIALS */
#tem-site .testimonials { background: var(--charcoal2); }
#tem-site .testi-note { font-size: 0.88rem; color: rgba(255,255,255,0.45); margin-top: 1rem; }
#tem-site .testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
#tem-site .testi-card { background: var(--charcoal); padding: 2rem; border-top: 3px solid var(--gold); font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.8; font-style: italic; }
#tem-site .testi-card cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--gold); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* CTA BANNER */
#tem-site .cta-banner { background: var(--gold); padding: 70px 8%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
#tem-site .cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 900; text-transform: uppercase; color: var(--charcoal); line-height: 1.15; }
#tem-site .cta-banner p { font-size: 0.95rem; color: rgba(43,43,43,0.75); margin-top: 0.5rem; }
#tem-site .btn-dark { display: inline-block; background: var(--charcoal); color: var(--gold); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; padding: 16px 40px; text-decoration: none; white-space: nowrap; transition: background .2s; }
#tem-site .btn-dark:hover { background: #111; }

/* CONTACT */
#tem-site .contact-section { background: var(--charcoal); }
#tem-site .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
#tem-site .contact-details { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
#tem-site .contact-details a { color: var(--gold); text-decoration: none; font-weight: 700; }
#tem-site .contact-form { display: flex; flex-direction: column; gap: 1rem; }
#tem-site .contact-form label { display: flex; flex-direction: column; gap: .5rem; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.7); }
#tem-site .contact-form input, #tem-site .contact-form textarea {
  background: var(--section-bg); border: 1px solid rgba(245,197,24,0.25); color: var(--white);
  padding: 13px 16px; font-family: inherit; font-size: 0.95rem; resize: vertical;
}
#tem-site .contact-form input:focus, #tem-site .contact-form textarea:focus { outline: 2px solid var(--gold); }
#tem-site .contact-form button { align-self: flex-start; margin-top: .5rem; }

/* FOOTER */
#tem-site footer.tem-footer { background: #1a1a1a; padding: 50px 8% 30px; border-top: 2px solid var(--gold); }
#tem-site .footer-top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; margin-bottom: 3rem; }
#tem-site .footer-brand .nav-logo { font-size: 1.6rem; display: block; margin-bottom: 0.8rem; }
#tem-site .footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.75; max-width: 280px; }
#tem-site .footer-col h4 { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 1.2rem; }
#tem-site .footer-col ul { list-style: none; }
#tem-site .footer-col ul li { margin-bottom: 0.6rem; }
#tem-site .footer-col ul li a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.86rem; transition: color .2s; }
#tem-site .footer-col ul li a:hover { color: var(--gold); }
#tem-site .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* TICKER */
#tem-site .ticker-bar { background: var(--gold); padding: 14px 0; overflow: hidden; white-space: nowrap; }
#tem-site .ticker-inner { display: inline-block; animation: ticker 22s linear infinite; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.18em; color: var(--charcoal); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
#tem-site .ticker-inner span { margin: 0 2.5rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  #tem-site .hero { grid-template-columns: 1fr; }
  #tem-site .hero-image { display: none; }
  #tem-site .hero-text { padding: 10% 6%; }
  #tem-site .services-header { flex-direction: column; align-items: flex-start; }
  #tem-site .step { border-left: none; border-top: 1px solid rgba(245,197,24,0.2); }
  #tem-site .step:first-child { border-top: none; }
  #tem-site .cta-banner { flex-direction: column; }
  #tem-site .contact-grid { grid-template-columns: 1fr; }
  #tem-site nav.tem-nav { padding: 0 4%; }
  #tem-site .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--charcoal2); flex-direction: column; padding: 1.5rem 6%; gap: 1.2rem;
    border-bottom: 2px solid var(--gold);
  }
  #tem-site .nav-links.is-open { display: flex; }
  #tem-site .nav-toggle { display: flex; }
}
