/*
Theme Name: IECAS Theme
Theme URI: https://iecas.197.jaysoft.dev
Description: IBrite / IECAS custom theme — pixel-perfect from Figma
Author: JAYsoft
Version: 1.0
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #ff8400;
  --dark:   #131818;
  --cream:  #fffaec;
  --grey:   #656565;
  --light-grey: #adadad;
  --white:  #ffffff;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* === TOPBAR === */
.topbar {
  background: #000;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left {
  font-size: 11px;
  color: var(--light-grey);
  letter-spacing: 0.05em;
}
.topbar-right {
  display: flex;
  gap: 28px;
  align-items: center;
}
.topbar-right a {
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.topbar-right a:hover { color: var(--orange); }
.topbar-lang {
  font-size: 13px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s;
  padding: 20px 0;
}
.navbar.scrolled { background: rgba(19,24,24,0.96); backdrop-filter: blur(8px); }
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-logo img { height: 42px; width: auto; }
.navbar-logo .logo-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.navbar-logo .logo-text span { color: var(--orange); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; transition: 0.3s; }

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19,24,24,0.85) 40%, rgba(19,24,24,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 560px;
}
.hero-content h1 {
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.1;
  color: var(--white);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.hero-content h1 strong { font-weight: 700; display: block; }
.hero-content p {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 440px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-outline-white {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
  margin-top: 32px;
}
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  margin-top: 32px;
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: #e07600; }
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(4px); }

/* === PRODUCTS SECTION === */
.section-products {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.products-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.products-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19,24,24,0.2) 0%, rgba(19,24,24,0.9) 55%, rgba(19,24,24,1) 100%);
}
.products-content {
  position: relative; z-index: 2;
  margin-left: auto;
  max-width: 540px;
}
.products-content h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  color: var(--white);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.products-content h2 strong { font-weight: 700; display: block; }
.products-content p {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

/* === NEW RELEASES === */
.section-releases {
  background: var(--cream);
  padding: 100px 0;
}
.section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-heading {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.releases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.release-card {
  background: var(--dark);
  overflow: hidden;
  position: relative;
}
.release-card-img {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.release-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 12px;
}
.release-card-body {
  padding: 24px;
}
.release-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.release-card-body p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  line-height: 1.6;
}
.release-card-body a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.release-card-body a:hover { gap: 14px; }

/* === MEET & GREET === */
.section-meet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.meet-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
.meet-content {
  background: var(--cream);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.meet-content p {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--grey);
  max-width: 420px;
}

/* === PROJECTS === */
.section-projects {
  background: var(--cream);
  padding: 100px 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.project-card:hover .project-card-img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(19,24,24,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.project-card-overlay h3 {
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
}
.project-card-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-top: 4px;
}

/* === NEWSLETTER === */
.section-newsletter {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.newsletter-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.newsletter-overlay {
  position: absolute; inset: 0;
  background: rgba(130, 63, 12, 0.88);
}
.newsletter-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.newsletter-content h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
}
.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  font-size: 14px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  padding: 16px 28px;
  background: var(--white);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.newsletter-form button:hover { background: var(--orange); color: var(--white); }

/* === FOOTER === */
.footer {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
  background: var(--dark);
}
.footer-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.footer-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(19,24,24,0.7) 0%, rgba(19,24,24,0.98) 100%);
}
.footer-inner {
  position: relative; z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 200px;
  gap: 60px;
  padding-bottom: 60px;
}
.footer-brand .logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.footer-brand .logo-text span { color: var(--orange); }
.footer-address {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
}
.footer-address a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-address a:hover { color: var(--orange); }
.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-iecas {
  text-align: right;
}
.footer-iecas p {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-iecas img { height: 36px; margin-left: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-iecas a {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--orange);
  padding-bottom: 2px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p, .footer-bottom a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 28px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .releases-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .topbar-left { display: none; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 20px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-content h1 { font-size: 40px; }
  .section-meet { grid-template-columns: 1fr; }
  .meet-content { padding: 50px 30px; }
  .releases-grid, .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-iecas { text-align: left; }
  .footer-iecas img { margin-left: 0; }
  .newsletter-form { flex-direction: column; }
}
