/*
Theme Name: WatchSpecLab v3
Theme URI: https://watchspeclab.com
Description: Data-driven watch intelligence - technical specifications and testing hub
Version: 1.0
Author: Marathon Watch
Text Domain: watchspeclab
*/

:root {
  --deep-navy: #1A365D;
  --steel-gray: #4A5568;
  --electric-blue: #3182CE;
  --light-gray: #E2E8F0;
  --off-white: #F7FAFC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--deep-navy);
  line-height: 1.6;
}

a { color: var(--electric-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--deep-navy); }

/* Header */
header {
  background: var(--deep-navy);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 50px; width: auto; }

nav ul { display: flex; list-style: none; gap: 2rem; }

nav a {
  color: var(--light-gray);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--electric-blue);
  transition: width 0.3s;
}

nav a:hover, nav a.active { color: #fff; }
nav a:hover::after, nav a.active::after { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #2D3748 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(49,130,206,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49,130,206,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero h1 span { color: var(--electric-blue); }

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--light-gray);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Sections */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.5rem;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
}

.section-header p { color: var(--steel-gray); font-size: 1.1rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--light-gray);
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(26,54,93,0.1);
  border-color: var(--electric-blue);
}

.card-icon { font-size: 2rem; margin-bottom: 1rem; }

.card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--deep-navy);
}

.card p { color: var(--steel-gray); font-size: 0.95rem; }

a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(26,54,93,0.1);
  border-color: var(--electric-blue);
}

a.card-link:hover h3 { color: var(--electric-blue); }

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(26,54,93,0.1);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--deep-navy), var(--electric-blue));
  overflow: hidden;
}

.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-content { padding: 1.5rem; }

.blog-category {
  display: inline-block;
  background: var(--off-white);
  color: var(--electric-blue);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card h3 a { color: var(--deep-navy); text-decoration: none; }
.blog-card h3 a:hover { color: var(--electric-blue); text-decoration: underline; }
.blog-card p { color: var(--steel-gray); font-size: 0.9rem; margin-bottom: 1rem; }
.blog-meta { font-size: 0.8rem; color: var(--steel-gray); }

/* Footer */
footer {
  background: var(--deep-navy);
  color: var(--light-gray);
  padding: 3rem 2rem 2rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-simple {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand { max-width: 400px; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; opacity: 0.7; }

.footer-links { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.footer-links a { color: var(--light-gray); font-size: 0.9rem; opacity: 0.8; }
.footer-links a:hover { opacity: 1; color: var(--electric-blue); }
ul.footer-links { list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

/* Contact form submit button (Jetpack fallback markup) */
.contact-form .pushbutton-wide {
  width: auto;
  display: inline-block;
  background: var(--electric-blue);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.85rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form .pushbutton-wide:hover { background: var(--deep-navy); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p { font-size: 0.85rem; opacity: 0.6; }

/* Pagination */
.nav-links { display: flex; justify-content: center; gap: 0.5rem; }
.nav-links a, .nav-links span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--light-gray);
  background: #fff;
}
.nav-links .current { background: var(--electric-blue); color: #fff; border-color: var(--electric-blue); }

/* Single Post */
.post-hero {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #2D3748 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 1rem 0;
  line-height: 1.2;
}

.post-meta-line {
  color: var(--light-gray);
  font-size: 0.9rem;
  opacity: 0.7;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.post-featured-image {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  transform: translateY(-2rem);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--deep-navy);
}

.post-content h2, .post-content h3, .post-content h4 {
  font-family: 'DM Sans', sans-serif;
  margin: 2rem 0 1rem;
  color: var(--deep-navy);
}

.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.4rem; }

.post-content p { margin-bottom: 1.25rem; }

.post-content a { color: var(--electric-blue); text-decoration: underline; }
.post-content a:hover { color: var(--deep-navy); }

.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-content li { margin-bottom: 0.5rem; }

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.post-content blockquote {
  border-left: 4px solid var(--electric-blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--off-white);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 1rem; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .hero h1 { font-size: 2.5rem; }
  .footer-simple { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
