/* ========================================
   MERT METAL - Malc Makinasi
   Mobile-first responsive stylesheet
   ======================================== */

/* ---------- 1. CSS CUSTOM PROPERTIES ---------- */
:root {
  --primary: #2E7D32;
  --primary-light: #4CAF50;
  --primary-dark: #1B5E20;
  --accent: #FFC107;
  --whatsapp: #25D366;
  --text: #212121;
  --text-light: #616161;
  --text-white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-gray: #F5F7FA;
  --bg-dark: #1a1a2e;
  --border: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.15);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: .3s ease;
  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; color: var(--text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 576px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-lg); font-size: .95rem; font-weight: 700;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent; text-decoration: none;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1fb855; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.3); }
.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--primary); }
.btn--outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline-dark:hover { background: var(--primary); color: #fff; }
.btn--phone { background: var(--accent); color: var(--text); }
.btn--phone:hover { background: #e0a800; transform: translateY(-2px); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn svg { width: 20px; height: 20px; }

/* ---------- 6. TOP BAR ---------- */
.top-bar { background: var(--bg-dark); padding: 8px 0; font-size: .85rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 6px; font-weight: 600; transition: color var(--transition); }
.top-bar a:hover { color: #fff; }
.top-bar__whatsapp:hover { color: var(--whatsapp) !important; }
.top-bar svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- 7. HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: all var(--transition);
}
.header--scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header__logo span { font-size: 1.3rem; font-weight: 900; color: var(--primary); }
.header__logo small { font-size: .7rem; color: var(--text-light); display: block; font-weight: 500; }
.header__hamburger { display: flex; flex-direction: column; gap: 5px; padding: 8px; z-index: 200; }
.header__hamburger span { display: block; width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.header__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.header__nav {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
  background: #fff; z-index: 150; padding: 80px 24px 24px;
  transition: right var(--transition); box-shadow: var(--shadow-xl);
}
.header__nav.open { right: 0; }
.header__nav ul { display: flex; flex-direction: column; }
.header__nav ul li a {
  display: block; padding: 14px 0; font-size: 1.05rem; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border); transition: all var(--transition);
}
.header__nav ul li a:hover, .header__nav ul li a.active { color: var(--primary); }
.dropdown { display: none !important; padding-left: 16px; }
@media (max-width: 991px) {
  .has-dropdown.open .dropdown { display: flex !important; }
}
.dropdown li a { font-size: .95rem; font-weight: 500; padding: 10px 0; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 140; opacity: 0; visibility: hidden; transition: all var(--transition); }
.nav-overlay.show { opacity: 1; visibility: visible; }
@media (min-width: 992px) {
  .header__hamburger { display: none; }
  .nav-overlay { display: none !important; }
  .header__nav { position: static; width: auto; max-width: none; height: auto; background: none; padding: 0; box-shadow: none; }
  .header__nav ul { flex-direction: row; gap: 4px; align-items: center; }
  .header__nav ul li a { padding: 8px 16px; font-size: .9rem; border-bottom: none; border-radius: var(--radius); }
  .header__nav ul li a:hover { background: var(--bg-gray); }
  .header__nav ul li a.active { background: rgba(46,125,50,.08); color: var(--primary); }
  .has-dropdown { position: relative; }
  .dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); flex-direction: column; }
  .has-dropdown:hover > .dropdown { display: flex !important; }
  .dropdown li a { padding: 10px 20px; border-bottom: none; border-radius: 0; }
  .dropdown li a:hover { background: var(--bg-gray); }
}

/* ---------- 8. HERO ---------- */
.hero { position: relative; min-height: 500px; display: flex; align-items: center; overflow: hidden; }
@media (min-width: 768px) { .hero { min-height: 600px; } }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,94,32,.85) 0%, rgba(46,125,50,.7) 50%, rgba(0,0,0,.6) 100%); }
.hero__content { position: relative; z-index: 2; color: #fff; padding: 60px 0; max-width: 700px; }
.hero__content h1 { color: #fff; margin-bottom: 16px; }
.hero__subtitle { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; line-height: 1.6; color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 9. SECTIONS ---------- */
.section { padding: 60px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section--gray { background: var(--bg-gray); }
.section--green { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; }
.section__title { text-align: center; margin-bottom: 8px; }
.section__subtitle { text-align: center; color: var(--text-light); font-size: 1.05rem; margin-bottom: 40px; }
.section--green .section__title { color: #fff; }
.section--green .section__subtitle { color: rgba(255,255,255,.8); }

/* ---------- 10. CARDS ---------- */
.card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card__link { display: block; text-decoration: none; color: inherit; }
.card__img-wrapper { overflow: hidden; aspect-ratio: 4/3; background: var(--bg-gray); }
.card__img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img-wrapper img { transform: scale(1.08); }
.card__body { padding: 20px; }
.card__title { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.card__desc { font-size: .9rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; }
.card__cta { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--primary); transition: gap var(--transition); }
.card:hover .card__cta { gap: 8px; }

/* ---------- 11. VIDEO CARDS ---------- */
.video-card { border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-md); transition: all var(--transition); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-card__thumbnail { position: relative; cursor: pointer; aspect-ratio: 16/9; overflow: hidden; }
.video-card__thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .video-card__thumbnail img { transform: scale(1.05); }
.video-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; background: rgba(255,0,0,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.video-card:hover .video-card__play { background: #ff0000; transform: translate(-50%, -50%) scale(1.1); }
.video-card__play::after { content: ''; width: 0; height: 0; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 4px; }
.video-card__title { padding: 12px 16px; font-size: .9rem; font-weight: 700; color: #fff; background: #111; }
.video-card iframe { width: 100%; aspect-ratio: 16/9; border: none; }

/* ---------- 12. TRUST ---------- */
.trust { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 50px 0; }
.trust__item { text-align: center; color: #fff; padding: 16px; }
.trust__number { font-size: 2.5rem; font-weight: 900; display: block; }
.trust__label { font-size: .85rem; opacity: .8; font-weight: 600; margin-top: 4px; display: block; }

/* ---------- 13. SEO CONTENT ---------- */
.seo-content { max-width: 800px; margin: 0 auto; }
.seo-content h2 { text-align: left; margin-bottom: 16px; font-size: 1.5rem; }
.seo-content h3 { margin: 24px 0 12px; font-size: 1.2rem; }
.seo-content p { font-size: 1rem; line-height: 1.8; }
.seo-content a { color: var(--primary); font-weight: 600; }
.seo-content ul { padding-left: 20px; margin-bottom: 1rem; }
.seo-content ul li { margin-bottom: .5rem; color: var(--text-light); list-style: disc; }

/* ---------- 14. CTA BANNER ---------- */
.cta-banner { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); padding: 60px 0; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; }
.cta-banner__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- 15. FOOTER ---------- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 60px 0 20px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--whatsapp); }
.footer__desc { font-size: .9rem; line-height: 1.6; margin-top: 12px; color: rgba(255,255,255,.5); }
.footer__logo { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.footer__social a:hover { background: var(--whatsapp); transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; fill: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ---------- 16. FLOATING WHATSAPP ---------- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: all var(--transition); animation: wa-pulse 3s infinite; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 8px 30px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
.whatsapp-float__tooltip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); background: #333; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: .8rem; font-weight: 700; white-space: nowrap; opacity: 0; visibility: hidden; transition: all var(--transition); }
.whatsapp-float__tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border-left: 6px solid #333; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; visibility: visible; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); } 50% { box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 0 0 12px rgba(37,211,102,.1); } }

/* ---------- 17. PRODUCT PAGE ---------- */
.breadcrumb { padding: 16px 0; font-size: .85rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }
.product-hero { padding: 40px 0; }
.product-hero__inner { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .product-hero__inner { grid-template-columns: 1fr 1fr; } }
.product-hero__main-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.product-hero__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.product-hero__thumb { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--border); cursor: pointer; flex-shrink: 0; transition: all var(--transition); opacity: .7; }
.product-hero__thumb:hover, .product-hero__thumb.active { border-color: var(--primary); opacity: 1; }
.product-hero__info h1 { margin-bottom: 16px; }
.product-hero__desc { font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }
.product-hero__features { margin-bottom: 24px; }
.product-hero__features li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: .95rem; color: var(--text-light); }
.product-hero__features li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px; background: var(--primary); border-radius: 50%; }
.specs-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.specs-table th, .specs-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
.specs-table th { background: var(--bg-gray); font-weight: 700; width: 40%; color: var(--text); }
.specs-table td { color: var(--text-light); }

/* ---------- 18. BLOG ---------- */
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__body { padding: 20px; }
.blog-card__date { font-size: .8rem; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.blog-card__title { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card__excerpt { font-size: .9rem; color: var(--text-light); line-height: 1.5; }
.blog-article { max-width: 800px; margin: 0 auto; padding: 40px 0; }
.blog-article h1 { font-size: 2rem; margin-bottom: 12px; }
.blog-article .blog-meta { font-size: .85rem; color: var(--text-light); margin-bottom: 32px; }
.blog-article .prose h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.blog-article .prose p { font-size: 1.05rem; line-height: 1.8; }
.blog-article .prose ul { padding-left: 24px; margin: 16px 0; }
.blog-article .prose ul li { margin-bottom: 8px; list-style: disc; color: var(--text-light); }

/* ---------- 19. CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); text-align: center; transition: all var(--transition); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.contact-card__icon { font-size: 2.5rem; margin-bottom: 12px; }
.contact-card__title { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.contact-card__text { font-size: .9rem; color: var(--text-light); }
.contact-card a { color: var(--primary); font-weight: 700; }

/* ---------- 20. ANIMATIONS ---------- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 21. RESPONSIVE ---------- */
@media (max-width: 575px) {
  .hero__content { padding: 40px 0; }
  .hero__content h1 { font-size: 1.6rem; }
  .hero__subtitle { font-size: 1rem; }
  .btn { padding: 12px 20px; font-size: .9rem; }
  .trust__number { font-size: 2rem; }
  .section { padding: 40px 0; }
  .footer .grid--4 { grid-template-columns: 1fr; gap: 30px; }
}
@media (min-width: 576px) and (max-width: 991px) {
  .footer .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 22. DARK MODE ---------- */
.dark {
  --text: #E0E0E0;
  --text-light: #9E9E9E;
  --bg: #121212;
  --bg-gray: #1E1E1E;
  --bg-dark: #0a0a14;
  --border: #333;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
}
.dark body { background: #121212; color: #E0E0E0; }
.dark .header { background: rgba(18,18,18,.95); border-bottom-color: #333; }
.dark .header__nav { background: #1E1E1E; }
.dark .card { background: #1E1E1E; }
.dark .blog-card { background: #1E1E1E; }
.dark .contact-card { background: #1E1E1E; }
.dark .specs-table th { background: #252525; }
.dark .dropdown { background: #1E1E1E; border-color: #333; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #E0E0E0; }
.dark .card__title { color: #E0E0E0; }
.dark .header__logo span { color: var(--primary-light); }
.dark .header__hamburger span { background: #E0E0E0; }
.dark .top-bar { background: #0a0a14; }
.dark .footer { background: #0a0a14; }
.dark .nav-overlay { background: rgba(0,0,0,.7); }

/* Dark mode toggle button */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-gray); display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: all var(--transition);
}
.theme-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
