/*
Theme Name: TeploTek
Theme URI: https://teplotek.tech
Author: TeploTek
Description: Premium Modern Theme for Heat Supply Organization
Version: 1.0
Text Domain: teplotek
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary: #f05a28;
  --primary-dark: #d0461c;
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --text-main: #334155;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

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

/* Header */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(240, 90, 40, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--secondary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5)), url('hero_heat.png') no-repeat center center/cover;
  color: var(--white);
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #e2e8f0;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* Quick Links Services */
.services {
  padding: 80px 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(240, 90, 40, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.service-card h3 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 20px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* News Section */
.news-section {
  padding: 60px 0 100px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-date {
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  text-align: center;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date span {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.news-content {
  padding: 25px;
}

.news-content h3 {
  margin-bottom: 10px;
  color: var(--secondary);
}

.news-content p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 14px;
}

/* Inner Pages Header */
.inner-hero {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.inner-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.inner-content {
  padding: 80px 0;
}

/* Forms & Tables */
.card-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.1);
}

table, table.tariffs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

th, table.tariffs-table th, td, table.tariffs-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th, table.tariffs-table th {
  background: var(--secondary-light);
  color: var(--white);
  font-weight: 600;
}

tr:hover, table.tariffs-table tr:hover {
  background: #f1f5f9;
}

/* WordPress Core Elements */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-block-image img { max-width: 100%; height: auto; border-radius: var(--radius); }
p { margin-bottom: 15px; }
h2 { margin-top: 30px; margin-bottom: 15px; color: var(--secondary); }
h3 { margin-top: 20px; margin-bottom: 10px; color: var(--secondary); }
ul { margin-bottom: 15px; padding-left: 20px; }
.wp-block-file { margin-bottom: 15px; display: block; }
.wp-block-file a { color: var(--primary); font-weight: 600; text-decoration: underline; }
