/*
Theme Name: Heshmati Solutions
Author: Taghi Heshmati
Description: Optimized theme for Core Web Vitals
Version: 1.1
*/

/* ===========================
   ROOT VARIABLES
=========================== */
:root {
  --gold-light: #D4AF37;
  --gold-dark: #A67C00;
  --black: #000;
  --white: #FFF;
  --gray: #CCC;
  --font-main: 'Segoe UI', Arial, sans-serif;
}

/* ===========================
   GLOBAL
=========================== */
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===========================
   HEADER
=========================== */
header {
  background: var(--black);
  padding: 20px 40px;
  border-bottom: 1px solid var(--gold-dark);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
  height: 100px;
  width: auto;
}

nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  transition: color .2s ease;
}

nav a:hover {
  color: var(--gold-light);
}

/* ===========================
   HERO (Home page logo fix)
=========================== */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: #000;
}

/* ⭐ FIX: Center hero logo */
.hero img {
  width: 320px;
  margin: 0 auto 30px auto;
  display: block;
}

.hero h1 {
  font-size: 48px;
  margin: 0;
  color: var(--gold-light);
}

.hero p {
  font-size: 22px;
  margin-top: 10px;
  color: var(--gray);
}

/* ===========================
   SECTIONS
=========================== */
.section {
  padding: 70px 40px;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  font-size: 36px;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.section p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray);
}

/* ===========================
   SERVICES GRID
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.service-box {
  background: #111;
  padding: 30px;
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
}

/* ===========================
   CONTACT FORM
=========================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--gold-dark);
  background: #111;
  color: var(--white);
  font-size: 16px;
}

.contact-form button {
  padding: 14px;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
  border: none;
  color: var(--black);
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: opacity .2s ease;
}

.contact-form button:hover {
  opacity: 0.85;
}

/* ===========================
   FOOTER (Footer logo fix)
=========================== */
footer {
  background: #000;
  padding: 40px;
  text-align: center;
  border-top: 1px solid var(--gold-dark);
  color: var(--gray);
}

/* ⭐ FIX: Center footer logo */
footer img {
  height: 120px;
  width: auto;
  margin: 0 auto 20px auto;
  display: block;
}

/* ===========================
   TEMPLATE STORE
=========================== */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.template-card {
  background: #111;
  border: 1px solid var(--gold-dark);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.template-card img {
  border-radius: 8px;
  margin-bottom: 20px;
}

.template-card h3 {
  color: var(--gold-light);
  margin-bottom: 10px;
}

.template-card p {
  color: var(--gray);
  font-size: 16px;
  min-height: 60px;
}

.price {
  font-size: 22px;
  color: var(--gold-light);
  margin: 15px 0;
}

.buy-btn {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
  color: var(--black);
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s ease;
}

.buy-btn:hover {
  opacity: 0.85;
}

/* ===========================
   PRODUCT PAGE
=========================== */
.product-page {
  max-width: 1200px;
}

.product-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.product-image img {
  width: 500px;
  border-radius: 10px;
  border: 1px solid var(--gold-dark);
}

.product-details {
  flex: 1;
  min-width: 300px;
}

.product-details h1 {
  color: var(--gold-light);
  margin-bottom: 10px;
}

.product-subtitle {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 20px;
}

.product-description {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 30px;
  line-height: 1.6;
}

.product-features,
.product-includes {
  margin-bottom: 30px;
  padding-left: 20px;
}

.product-features li,
.product-includes li {
  margin-bottom: 8px;
  color: var(--gray);
}

.product-price {
  font-size: 28px;
  color: var(--gold-light);
  margin: 20px 0;
}

.form-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: 600;
}

.form-message.success {
  background: #0f5132;
  color: #d1e7dd;
  border: 1px solid #0c4128;
}

.form-message.error {
  background: #842029;
  color: #f8d7da;
  border: 1px solid #6a1a21;
}

