/*
Theme Name: FRPTankQuote
Theme URI: https://frptankquote.com
Author: FRPTankQuote
Description: Custom B2B theme for FRP/SMC water tank manufacturing and quotation site. Includes Home, About, Products, Blog, Quote and Contact templates.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: frptankquote
*/
/* ===== FRPTankQuote — Global Styles ===== */
:root {
  --navy: #0d2137;
  --navy-2: #12314f;
  --blue: #1e88e5;
  --blue-dark: #1668b8;
  --teal: #00a6a6;
  --ink: #1c2b3a;
  --muted: #5b6b7b;
  --line: #e3e9ef;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(13, 33, 55, 0.10);
  --shadow-sm: 0 3px 12px rgba(13, 33, 55, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.text-accent { color: #7cc4ff; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.22s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-size: 0.95rem; letter-spacing: 0.5px;
}
.logo-accent { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 500; font-size: 0.97rem; color: var(--ink); position: relative; padding: 6px 0; }
.main-nav a:not(.nav-cta):hover, .main-nav a.active:not(.nav-cta) { color: var(--blue); }
.main-nav a.active:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue); border-radius: 2px;
}
.main-nav .nav-cta { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,24,40,0.88) 0%, rgba(9,24,40,0.62) 45%, rgba(9,24,40,0.25) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 90px 0 70px; }
.hero-tag {
  display: inline-block; padding: 7px 16px; border-radius: 100px;
  background: rgba(30,136,229,0.25); border: 1px solid rgba(124,196,255,0.4);
  color: #bfe0ff; font-size: 0.85rem; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.hero-sub { max-width: 620px; margin: 22px 0 32px; font-size: 1.12rem; color: #d7e4f0; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 42px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.2);
  width: fit-content;
}
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: #7cc4ff; }
.stat span { font-size: 0.88rem; color: #c3d3e2; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; color: var(--blue); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); letter-spacing: -0.4px; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ===== Video ===== */
.video-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--navy); max-width: 880px; margin: 0 auto;
}
.video-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-placeholder {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(30,136,229,0.28), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(0,166,166,0.22), transparent 55%),
    var(--navy);
  color: #cfe3f5;
}
.play-btn {
  width: 82px; height: 82px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(30,136,229,0.18);
  transition: transform 0.2s ease;
}
.play-btn:hover { transform: scale(1.08); }
.video-placeholder p { font-weight: 500; }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: 0.25s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.product-card {
  display: flex; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: 0.25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.product-card img { width: 42%; object-fit: cover; min-height: 240px; }
.product-card-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.product-card-body h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
.product-card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.link-arrow { color: var(--blue); font-weight: 600; font-size: 0.93rem; }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: 0.25s ease; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card img { height: 200px; width: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-meta { font-size: 0.8rem; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.8px; }
.blog-card h3 { font-size: 1.08rem; color: var(--navy); margin: 10px 0; line-height: 1.4; }
.blog-card p { color: var(--muted); font-size: 0.92rem; }

/* ===== Article ===== */
.article { max-width: 780px; margin: 0 auto; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-sm); }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--navy); line-height: 1.25; margin: 8px 0 12px; letter-spacing: -0.4px; }
.article .blog-meta { font-size: 0.88rem; }
.article h2 { font-size: 1.45rem; color: var(--navy); margin: 40px 0 14px; }
.article p { color: #33465a; margin-bottom: 18px; font-size: 1.03rem; }
.article ul, .article ol { margin: 0 0 18px 24px; color: #33465a; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.94rem; }
.article th, .article td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.article th { background: var(--bg-alt); color: var(--navy); font-weight: 700; }
.article .callout {
  background: #eaf4fd; border-left: 4px solid var(--blue);
  padding: 18px 22px; border-radius: 8px; margin: 26px 0; color: var(--navy-2);
}
.back-link { display: inline-block; color: var(--blue); font-weight: 600; margin-bottom: 26px; }
.back-link:hover { text-decoration: underline; }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #17456e 100%);
  color: #fff; padding: 80px 0; text-align: center;
}
.page-hero .eyebrow { color: #7cc4ff; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.4px; }
.page-hero p { color: #c3d3e2; max-width: 640px; margin: 16px auto 0; font-size: 1.08rem; }

/* ===== About page ===== */
.about-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 54px; align-items: center; }
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-split h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 18px; letter-spacing: -0.3px; }
.about-split p { color: var(--muted); margin-bottom: 16px; }
.value-list { list-style: none; margin-top: 10px; }
.value-list li { padding: 8px 0 8px 32px; position: relative; color: var(--ink); font-weight: 500; }
.value-list li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,166,166,0.14); color: var(--teal);
  font-size: 0.8rem; display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: ''; position: absolute; left: -29px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); border: 3px solid #dbeefd;
}
.timeline-item h3 { color: var(--navy); font-size: 1.1rem; }
.timeline-item span { color: var(--teal); font-weight: 700; font-size: 0.85rem; }
.timeline-item p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* ===== Products detail page ===== */
.product-section { overflow: hidden; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 70px 0; }
.product-detail img { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-detail h2 { font-size: 1.75rem; color: var(--navy); margin-bottom: 16px; letter-spacing: -0.3px; }
.product-detail p { color: var(--muted); margin-bottom: 18px; }
.spec-list { list-style: none; margin-bottom: 26px; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 10px 4px; border-bottom: 1px dashed var(--line); font-size: 0.95rem;
}
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-weight: 600; color: var(--navy); text-align: right; }

/* ===== Forms ===== */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 7px; }
.form-group label .req { color: #e05252; }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 0.97rem; color: var(--ink);
  background: #fff; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,136,229,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.quote-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 46px; align-items: start; }
.quote-aside {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: var(--radius); padding: 36px 32px; position: sticky; top: 100px;
}
.quote-aside h3 { font-size: 1.25rem; margin-bottom: 20px; }
.quote-aside-item { display: flex; gap: 13px; margin-bottom: 18px; font-size: 0.95rem; color: #d7e4f0; }
.quote-aside-item b { color: #fff; }
.form-success {
  background: #e8f7ef; border: 1.5px solid #9fdcb8; color: #14663a;
  padding: 16px 20px; border-radius: 10px; margin-top: 18px; display: none;
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 60px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; transition: 0.25s;
}
.contact-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.contact-card .icon { font-size: 1.9rem; margin-bottom: 12px; }
.contact-card h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 0.94rem; }
.contact-card a { color: var(--blue); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(110deg, var(--blue) 0%, var(--teal) 100%);
  padding: 70px 0; color: #fff;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 1.9rem; letter-spacing: -0.3px; }
.cta-inner p { color: rgba(255,255,255,0.88); margin-top: 8px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #b9c9d9; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.logo-footer { color: #fff; margin-bottom: 16px; }
.footer-col p { font-size: 0.92rem; margin-top: 6px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; font-size: 0.92rem; padding: 5px 0; color: #b9c9d9; }
.footer-col a:hover { color: #7cc4ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.88rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .feature-grid, .blog-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split, .product-detail, .quote-layout { grid-template-columns: 1fr; }
  .product-card { flex-direction: column; }
  .product-card img { width: 100%; height: 220px; }
  .quote-aside { position: static; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 28px; }
}
@media (max-width: 640px) {
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 24px; gap: 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-140%);
    transition: transform 0.3s ease; z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .feature-grid, .blog-grid, .product-grid, .form-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 60px 0; }
  .hero { min-height: 560px; }
  .cta-inner { flex-direction: column; text-align: center; }
}

/* ===== WordPress specific ===== */
.main-nav ul.nav-ul { display: contents; list-style: none; margin: 0; padding: 0; }
.main-nav li { display: flex; list-style: none; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--blue); }

.page-intro { margin-bottom: 26px; }
.page-intro h2 { color: var(--navy); font-size: 1.4rem; margin-bottom: 12px; }
.article blockquote {
  border-left: 4px solid var(--teal); padding: 6px 0 6px 20px;
  margin: 24px 0; color: var(--navy-2); font-style: italic;
}
.article img { border-radius: 10px; height: auto; }
.article .aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image { margin-bottom: 22px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Pagination */
.pagination, .nav-links { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.nav-links a, .nav-links span {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--navy);
}
.nav-links .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.nav-links a:hover { border-color: var(--blue); color: var(--blue); }

/* Admin bar offset for sticky header */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ===== Product system ===== */
.product-tile .link-arrow { display: inline-block; margin-top: 6px; }
.product-tile img { transition: transform 0.35s ease; }
.product-tile:hover img { transform: scale(1.04); }
.cat-count-badge {
  display: inline-block; background: rgba(0,166,166,0.12); color: var(--teal);
  font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  margin-bottom: 10px;
}

/* ===== Product category grid: 3 columns per row, 6 rows per page ===== */
.product-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .product-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid-3 { grid-template-columns: 1fr; } }
