/*
Theme Name: Trident Canvas
Theme URI: https://www.tridentcanvas.co.uk
Description: Custom theme for Trident Canvas blog — matching the static site design.
Version: 2.0 — RSYC colour reskin
Author: Trident Canvas
Author URI: https://www.tridentcanvas.co.uk
*/

/* ============================================
   RESET & VARIABLES
   Copied directly from main site styles.css
   ============================================ */
:root {
  --steel-blue: #0C1B2A;
  --steel-blue-dark: #091520;
  --steel-blue-light: #F4EDE4;
  --orange: #E86A17;
  --orange-hover: #D45A0A;
  --sky-blue: #D4BB8A;
  --white: #FFFFFF;
  --light-grey: #FAF6F1;
  --text-dark: #1A1A2E;
  --text-body: #3A3A4A;
  --border-light: #E8DDD0;
  --shadow-sm: 0 2px 8px rgba(12, 27, 42, 0.08);
  --shadow-md: 0 4px 20px rgba(12, 27, 42, 0.12);
  --shadow-lg: 0 8px 32px rgba(12, 27, 42, 0.16);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--steel-blue);
  line-height: 1.2;
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 600; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

/* ============================================
   BUTTONS — exact copy from main site
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 106, 23, 0.35);
}

.btn-white {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--steel-blue);
  color: var(--white);
  border-color: var(--steel-blue);
}

/* ============================================
   NAVIGATION — exact copy from main site
   ============================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--steel-blue);
  transition: all var(--transition);
  border-bottom: 3px solid var(--orange);
}
nav.scrolled {
  background: rgba(12, 27, 42, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
  height: 68px;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: auto;
  flex-shrink: 0;
}
.nav-logo-icon {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-icon img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}
.nav-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  margin-left: 10px;
  line-height: 1;
  white-space: nowrap;
}
.nav-logo-text span {
  color: var(--white);
  display: inline;
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 40px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 14px;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.nav-phone {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.15);
  padding-right: 16px;
}
.nav-phone svg { color: var(--orange); width: 16px; height: 16px; }

/* Mobile menu — exact copy from main site */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--steel-blue);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  padding: 8px 0;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .mobile-divider {
  width: 40px;
  height: 2px;
  background: var(--orange);
  opacity: 0.5;
}
.mobile-menu .btn {
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
  text-align: center;
  justify-content: center;
}

/* ============================================
   PAGE HERO — exact copy from main site
   ============================================ */
.page-hero {
  background: var(--steel-blue);
  padding: 60px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}

/* Breadcrumb — exact copy from main site */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
  background: var(--light-grey);
}
.breadcrumb a {
  color: var(--sky-blue);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--text-body); opacity: 0.5; margin: 0 8px; }

/* ============================================
   BLOG LAYOUT
   ============================================ */
.blog-wrap {
  padding: 48px 0 64px;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

/* Post cards on archive/home */
.post-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  transition: all var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-card-img {
  height: 240px;
  overflow: hidden;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img img {
  transform: scale(1.03);
}
.post-card-body {
  padding: 28px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 12px;
}
.post-card-meta .category {
  background: var(--orange);
  color: var(--steel-blue-dark);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-card-body h2 {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.post-card-body h2 a {
  color: var(--steel-blue);
  text-decoration: none;
}
.post-card-body h2 a:hover {
  color: var(--orange);
}
.post-card-body .excerpt {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}
.read-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.read-more:hover { gap: 10px; color: var(--orange-hover); }

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-content {
  max-width: 100%;
}
.single-post-content h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.post-meta .category {
  background: var(--orange);
  color: var(--steel-blue-dark);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.post-featured-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

/* Post body content */
.post-body h2 {
  font-size: 24px;
  margin: 32px 0 12px;
}
.post-body h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}
.post-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 20px;
}
.post-body ul, .post-body ol {
  margin: 16px 0 20px 24px;
  color: var(--text-body);
}
.post-body li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
}
.post-body img {
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.post-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--light-grey);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-body);
}
.post-body a {
  color: var(--sky-blue);
  transition: color var(--transition);
}
.post-body a:hover {
  color: var(--orange);
}

/* Post body tables — responsive on mobile */
/* .table-scroll-wrapper is injected around every table via functions.php */
.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  width: 100%;
}
.post-body table {
  border-collapse: collapse;
  font-size: 15px;
  color: var(--text-body);
  width: 100%;
  min-width: 500px;
}
.post-body table th {
  background: var(--steel-blue);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
}
.post-body table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.post-body table tr:nth-child(even) td {
  background: var(--light-grey);
}


/* Fabric cost cards — replaces cost comparison table */
.fabric-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.fabric-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}
.fabric-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--steel-blue);
  margin-bottom: 4px;
}
.fabric-card-type {
  font-size: 12px;
  color: var(--text-body);
  margin-bottom: 12px;
}
.fabric-card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.fabric-card-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-body);
}
.fabric-card-meta {
  font-size: 12px;
  color: var(--text-body);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.fabric-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-recommended {
  background: #e8f4ec;
  color: #2a6e3f;
}
.badge-value {
  background: #fff3e8;
  color: #c25a00;
}
.badge-premium {
  background: #eef0f8;
  color: #3a3e7a;
}
.badge-economy {
  background: var(--light-grey);
  color: var(--text-body);
}

/* Application list — replaces which-fabric-for-which-job table */
.application-list {
  margin: 28px 0;
}
.application-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.application-item:last-child { border-bottom: none; }
.application-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--steel-blue);
  min-width: 130px;
  flex-shrink: 0;
  padding-top: 2px;
}
.application-detail { font-size: 14px; color: var(--text-body); line-height: 1.6; }
.application-rec {
  font-weight: 600;
  color: var(--steel-blue);
  margin-bottom: 2px;
  font-size: 14px;
}

/* Head-to-head comparison — replaces 2-fabric comparison table */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.comparison-card {
  background: var(--light-grey);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
}
.comparison-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--steel-blue);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}
.comparison-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.comparison-row-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-body);
  margin-bottom: 2px;
}
.comparison-row-value {
  font-size: 14px;
  color: var(--steel-blue);
  line-height: 1.4;
}
.comparison-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 8px;
}
@media (max-width: 480px) {
  .application-item { flex-direction: column; gap: 4px; }
  .application-label { min-width: unset; }
}


/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.post-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--sky-blue);
}
.post-nav a:hover { color: var(--orange); }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar .widget {
  background: var(--light-grey);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar .widget h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
}
.sidebar .widget ul {
  list-style: none;
}
.sidebar .widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget li a {
  color: var(--steel-blue);
}
.sidebar .widget li a:hover { color: var(--orange); }

/* CTA widget */
.sidebar .widget-cta {
  background: var(--steel-blue);
  color: var(--white);
  text-align: center;
}
.sidebar .widget-cta h3 {
  color: var(--white);
  border-bottom-color: var(--orange);
}
.sidebar .widget-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  color: var(--steel-blue);
  transition: all var(--transition);
}
.pagination a:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.pagination .current {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ============================================
   CTA BANNER — exact copy from main site
   ============================================ */
.cta-banner {
  background: var(--orange);
  padding: 36px 0;
}
.cta-banner .container {
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 {
  color: var(--white);
  font-size: 24px;
}
.cta-banner-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cta-banner-phone {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cta-banner-phone svg { width: 22px; height: 22px; }

/* ============================================
   FOOTER — exact copy from main site
   ============================================ */
footer {
  background: var(--steel-blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img { height: 40px; width: auto; }
.footer-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  transition: all var(--transition);
}
.footer-col a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  stroke: var(--orange);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item a {
  padding: 0;
  display: inline;
}
.footer-contact-item a, .footer-contact-item span {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.comments-area h3 {
  margin-bottom: 24px;
}
.comment-list {
  list-style: none;
}
.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.comment-meta {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 8px;
}
.comment-meta .fn {
  font-weight: 700;
  color: var(--steel-blue);
}
.comment-body p {
  font-size: 15px;
  color: var(--text-body);
}
.comment-respond {
  margin-top: 32px;
}
.comment-respond label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  margin-bottom: 16px;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 106, 23, 0.15);
}
.comment-respond .submit {
  background: var(--orange);
  color: var(--white);
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.comment-respond .submit:hover {
  background: var(--orange-hover);
}

/* ============================================
   RESPONSIVE — matching main site breakpoints
   ============================================ */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; margin: 0 24px; }
  .nav-links a { font-size: 13px; }
  .nav-phone { display: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-hero { display: block; padding: 20px 0 40px; min-height: unset; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 15px; }
  .cta-banner .container {
  overflow-x: hidden; flex-direction: column; text-align: center; }
  .cta-banner-right { flex-direction: column; }
  .post-card-img { height: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .container {
  overflow-x: hidden; padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .nav-logo-text { font-size: 20px; }
  .nav-logo-text span { font-size: 20px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}
