/*
Theme Name: PrintCraft Pro
Theme URI: https://printcraftpro.com
Author: PrintCraft Pro
Author URI: https://printcraftpro.com
Description: Premium print solutions theme for PrintCraft Pro
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: printcraft-pro
Tags: business, custom-colors, custom-logo, full-width-template, responsive-layout
*/

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: hsl(40, 20%, 97%);
  --fg: hsl(220, 25%, 10%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(40, 15%, 92%);
  --muted-fg: hsl(220, 10%, 45%);
  --secondary: hsl(35, 80%, 55%);
  --border: hsl(40, 10%, 88%);
  --primary-fg: hsl(40, 20%, 97%);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --gradient-warm: linear-gradient(135deg, hsl(35, 80%, 55%), hsl(25, 90%, 50%));
  --shadow-card: 0 4px 24px -4px hsl(220, 25%, 10%, 0.08);
  --shadow-elevated: 0 12px 40px -8px hsl(220, 25%, 10%, 0.15);
}

/* ─── Customizer CSS Variables (overridden by Customizer) ───────────────────── */
:root {
  --customizer-primary-color: hsl(35, 80%, 55%);
  --customizer-heading-color: hsl(220, 25%, 10%);
  --customizer-body-bg: hsl(40, 20%, 97%);
}

body { font-family: var(--font-body); background: var(--bg); color: var(--fg); }
h1, h2, h3, h4 { font-family: var(--font-heading); }
a { text-decoration: none; color: inherit; }

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

/* ─── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: hsla(40, 20%, 97%, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.icon-secondary { color: var(--secondary); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); transition: 0.3s; }

/* WordPress custom nav menu */
#site-navigation ul { list-style: none; display: flex; align-items: center; gap: 2rem; }
#site-navigation ul li a { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: color 0.2s; }
#site-navigation ul li a:hover { color: var(--fg); }
#site-navigation ul li.menu-item-cta a { background: var(--fg); color: var(--primary-fg); padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 600; }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.5rem; border-radius: 0.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; border: none; cursor: pointer; transition: 0.2s; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-primary { background: var(--fg); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--secondary); color: var(--fg); }
.btn-secondary:hover { filter: brightness(1.05); }
.btn-outline-light { background: transparent; border: 1px solid hsla(40, 20%, 97%, 0.3); color: var(--primary-fg); }
.btn-outline-light:hover { background: hsla(40, 20%, 97%, 0.1); }
.btn-full { width: 100%; justify-content: center; }
.btn-link { color: var(--secondary); font-weight: 600; font-size: 0.875rem; background: none; border: none; cursor: pointer; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; padding-top: 64px; overflow: hidden; background: var(--fg); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: hsla(220, 25%, 10%, 0.75); }
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-tag { color: var(--secondary); font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; color: var(--primary-fg); line-height: 1.1; margin-bottom: 1.5rem; }
.text-gradient { background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.125rem; color: hsla(40, 20%, 97%, 0.8); margin-bottom: 2rem; max-width: 480px; line-height: 1.6; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ─── Sections ───────────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-muted { background: var(--muted); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section-tag { color: var(--secondary); font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.section-desc { color: var(--muted-fg); }

/* ─── Grid ───────────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── Service Cards ──────────────────────────────────────────────────────────── */
.service-card { padding: 2rem; border-radius: 0.5rem; background: var(--card); border: 1px solid var(--border); transition: 0.3s; }
.service-card:hover { border-color: hsla(35, 80%, 55%, 0.5); box-shadow: var(--shadow-card); }
.service-icon { width: 48px; height: 48px; border-radius: 0.5rem; background: hsla(35, 80%, 55%, 0.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }

/* ─── Product Cards ──────────────────────────────────────────────────────────── */
.product-card { background: var(--card); border-radius: 0.5rem; border: 1px solid var(--border); overflow: hidden; transition: 0.3s; }
.product-card:hover { box-shadow: var(--shadow-elevated); }
.product-bar { height: 8px; background: hsla(35, 80%, 55%, 0.2); transition: 0.3s; }
.product-card:hover .product-bar { background: var(--secondary); }
.product-body { padding: 1.5rem; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; }
.product-top h3 { font-size: 1.125rem; font-weight: 600; }
.badge { font-size: 0.75rem; font-weight: 600; background: hsla(35, 80%, 55%, 0.1); color: var(--secondary); padding: 0.25rem 0.5rem; border-radius: 0.25rem; }
.product-body > p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; margin-bottom: 1rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-heading); font-weight: 700; }

/* ─── About ──────────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-grid h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
.about-desc { color: var(--muted-fg); line-height: 1.6; margin-bottom: 2rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.feature-list li { font-weight: 500; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1.5rem; text-align: center; transition: 0.3s; }
.stat-card:hover { border-color: hsla(35, 80%, 55%, 0.4); }
.stat-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.875rem; color: var(--muted-fg); font-weight: 500; }

/* ─── Contact ────────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon { width: 40px; height: 40px; border-radius: 0.5rem; background: hsla(35, 80%, 55%, 0.1); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-label { font-size: 0.875rem; color: var(--muted-fg); }
.contact-value { font-weight: 500; }
.contact-form-card { background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; padding: 2rem; }
.contact-form-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 0.5rem; font-family: var(--font-body); font-size: 0.875rem; background: var(--bg); outline: none; transition: 0.2s; }
input:focus, textarea:focus { border-color: var(--secondary); }
textarea { resize: vertical; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer { background: var(--fg); color: var(--primary-fg); padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.logo-light { color: var(--primary-fg); margin-bottom: 1rem; }
.footer-desc { font-size: 0.875rem; color: hsla(40, 20%, 97%, 0.6); line-height: 1.6; }
.footer h4 { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer ul a { font-size: 0.875rem; color: hsla(40, 20%, 97%, 0.6); transition: color 0.2s; }
.footer ul a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid hsla(40, 20%, 97%, 0.1); padding-top: 2rem; text-align: center; font-size: 0.875rem; color: hsla(40, 20%, 97%, 0.4); }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0; }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 0.75rem 0; }
  .menu-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  #site-navigation ul { display: none; }
}
