/*
Theme Name: Dana Pipe
Theme URI: https://www.dadapipe.com
Author: RJ-BOT
Author URI: https://www.rj-bot.com
Description: Custom WordPress theme for Dana Pipe — sewer pipeline inspection equipment
Version: 1.0.0
License: Proprietary
Text Domain: danapipe
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --navy-light: #243356;
  --amber: #e67e22;
  --amber-dark: #d4701a;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e2e4e8;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

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

.btn {
  display: inline-block; padding: .75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-align: center; cursor: pointer;
  transition: background .2s, transform .1s; border: none;
}
.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { background: var(--amber-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: .75rem; }
.section-title p { color: var(--gray-600); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy); color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.site-logo { font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: -.02em; }
.site-logo span { color: var(--amber); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.75rem; cursor: pointer; padding: .25rem; }
.main-nav ul { display: flex; list-style: none; gap: .25rem; }
.main-nav a { display: block; padding: .5rem 1rem; color: rgba(255,255,255,.85); border-radius: var(--radius); font-weight: 500; }
.main-nav a:hover,
.main-nav .current-menu-item a { color: var(--white); background: rgba(255,255,255,.1); }
.main-nav .btn-nav { background: var(--amber); color: var(--white); padding: .5rem 1.25rem; margin-left: .5rem; }
.main-nav .btn-nav:hover { background: var(--amber-dark); }

/* ========== FOOTER ========== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand h3 { color: var(--white); font-size: 1.25rem; margin-bottom: .5rem; }
.footer-brand h3 span { color: var(--amber); }
.footer-brand p { font-size: .9rem; }
.footer-links h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .85rem; }
.footer-bottom a { color: var(--amber); }

/* ========== HERO ========== */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); padding: 6rem 0; text-align: center; }
.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 650px; margin: 0 auto 2rem; }
.hero .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========== FEATURES GRID ========== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.feature-card .icon { width: 60px; height: 60px; margin: 0 auto 1.25rem; background: var(--gray-50); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--gray-600); font-size: .95rem; }

/* ========== HIGHLIGHTS ========== */
.highlights { background: var(--gray-50); }
.highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.highlight-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; }
.highlight-card .hl-image { width: 180px; min-height: 200px; background: var(--gray-200); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: .85rem; flex-shrink: 0; }
.highlight-card .hl-body { padding: 2rem; }
.highlight-card h3 { margin-bottom: .5rem; }
.highlight-card p { color: var(--gray-600); font-size: .95rem; margin-bottom: 1rem; }

/* ========== PRODUCT PAGE ========== */
.product-filters { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.product-filters button { padding: .5rem 1.25rem; border: 1px solid var(--gray-200); border-radius: 2rem; background: var(--white); cursor: pointer; font-size: .9rem; color: var(--gray-600); transition: all .2s; }
.product-filters button:hover,
.product-filters button.active { background: var(--amber); color: var(--white); border-color: var(--amber); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .card-image { height: 220px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: .85rem; }
.product-card .card-body { padding: 1.5rem; }
.product-card .card-tag { display: inline-block; background: rgba(230,126,34,.1); color: var(--amber); padding: .2rem .75rem; border-radius: 1rem; font-size: .8rem; font-weight: 600; margin-bottom: .75rem; }
.product-card h3 { margin-bottom: .5rem; }
.product-card p { color: var(--gray-600); font-size: .9rem; }
.product-card .card-link { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .9rem; }

/* ========== ABOUT PAGE ========== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-intro .about-image { height: 400px; background: var(--gray-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gray-400); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-card { text-align: center; padding: 2rem 1.5rem; }
.value-card .value-icon { width: 50px; height: 50px; margin: 0 auto 1rem; background: rgba(230,126,34,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.value-card h3 { margin-bottom: .5rem; }
.value-card p { color: var(--gray-600); font-size: .9rem; }
.about-brand-badge { text-align: center; padding: 3rem; background: var(--navy); color: var(--white); border-radius: var(--radius); margin-top: 2rem; }
.about-brand-badge span { color: var(--amber); }

/* ========== CONTACT PAGE ========== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--gray-600); margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.25rem; }
.contact-detail .cd-icon { width: 40px; height: 40px; background: rgba(26,39,68,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-detail strong { display: block; color: var(--navy); }
.contact-detail span { color: var(--gray-600); font-size: .9rem; }
.contact-form { background: var(--gray-50); padding: 2.5rem; border-radius: var(--radius); }
.contact-form h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .35rem; font-weight: 500; font-size: .9rem; }
.form-group input,
.form-group textarea { width: 100%; padding: .75rem; border: 1px solid var(--gray-200); border-radius: var(--radius); font-family: var(--font); font-size: 1rem; transition: border-color .2s; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--amber); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { text-align: right; }
.form-success { background: #ecfdf5; color: #065f46; padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; display: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; gap: 2rem; }
  .about-intro .about-image { height: 300px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight-card { flex-direction: column; }
  .highlight-card .hl-image { width: 100%; min-height: 180px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .main-nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 1rem; box-shadow: 0 4px 8px rgba(0,0,0,.2); }
  .main-nav.open ul { display: flex; }
  .main-nav .btn-nav { margin-left: 0; margin-top: .5rem; }
}
