/*
Theme Name: PeerBrains Technologies
Theme URI: https://www.peerbrains.in
Author: PeerBrains Technologies Pvt. Ltd.
Author URI: https://www.peerbrains.in
Description: Official website theme for PeerBrains Technologies Pvt. Ltd. — a custom WordPress theme with dedicated page templates for Home, About, Services, Technology, Partners, Case Studies, and Contact.
Version: 1.0.0
License: Private
Text Domain: peerbrains
*/

/* =========================================================
   CSS VARIABLES
========================================================= */
:root {
  --pb-navy: #0B1F3A;
  --pb-teal: #00B8C8;
  --pb-teal-light: #E0F7FA;
  --pb-teal-mid: #00899A;
  --pb-white: #FFFFFF;
  --pb-off: #F7FAFB;
  --pb-muted: #6B7A8D;
  --pb-text: #1A2B3C;
  --pb-border: #D9E5EE;
  --pb-card: #FFFFFF;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 68px;
}

/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--pb-text); background: var(--pb-white); line-height: 1.7; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* =========================================================
   NAVIGATION
========================================================= */
.pb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: var(--pb-navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; border-bottom: 2px solid var(--pb-teal);
}
.pb-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pb-nav-logo-mark {
  width: 38px; height: 38px; background: var(--pb-teal); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--pb-navy); letter-spacing: -0.5px;
}
.pb-nav-logo-text { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; }
.pb-nav-logo-text span { display: block; font-size: 11px; font-weight: 400; color: var(--pb-teal); letter-spacing: 0.08em; text-transform: uppercase; }
.pb-nav-menu { display: flex; gap: 2px; list-style: none; }
.pb-nav-menu a {
  color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px; transition: all 0.2s; display: block;
}
.pb-nav-menu a:hover,
.pb-nav-menu .current-menu-item > a,
.pb-nav-menu .current_page_item > a { color: var(--pb-teal); background: rgba(0,184,200,0.12); }
.pb-page-wrap { padding-top: var(--nav-h); min-height: 100vh; }

/* =========================================================
   BUTTONS
========================================================= */
.btn-primary {
  background: var(--pb-teal); color: var(--pb-navy); padding: 12px 28px;
  border-radius: 8px; font-weight: 600; font-size: 14px; border: none;
  cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s;
}
.btn-primary:hover { background: #00d0e4; color: var(--pb-navy); }
.btn-ghost {
  color: rgba(255,255,255,0.8); padding: 12px 28px; border-radius: 8px; font-weight: 500;
  font-size: 14px; border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  text-decoration: none; display: inline-block; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--pb-teal); color: var(--pb-teal); }

/* =========================================================
   SECTION UTILITIES
========================================================= */
.pb-section { padding: 80px 5%; }
.pb-section-alt { background: var(--pb-off); }
.pb-section-dark { background: var(--pb-navy); }
.section-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--pb-teal-mid); font-weight: 600; margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); color: var(--pb-navy); line-height: 1.2; margin-bottom: 16px; }
.pb-section-dark .section-title { color: #fff; }
.section-subtitle { color: var(--pb-muted); font-size: 16px; max-width: 600px; margin-bottom: 50px; }
.pb-section-dark .section-subtitle { color: rgba(255,255,255,0.55); }

/* =========================================================
   HERO (HOME PAGE)
========================================================= */
.pb-hero {
  background: var(--pb-navy); padding: 100px 5% 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-eyebrow { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--pb-teal); font-weight: 600; margin-bottom: 16px; }
.pb-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 58px); color: #fff; line-height: 1.15; margin-bottom: 24px; }
.pb-hero h1 em { color: var(--pb-teal); font-style: italic; }
.hero-desc { color: rgba(255,255,255,0.65); font-size: 16px; max-width: 420px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(0,184,200,0.25);
  border-radius: 12px; padding: 28px 24px; text-align: center;
}
.stat-num { font-family: var(--font-display); font-size: 46px; color: var(--pb-teal); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

/* =========================================================
   PROCESS STEPS
========================================================= */
.process-steps { display: flex; gap: 0; position: relative; margin-top: 20px; }
.process-step { flex: 1; text-align: center; position: relative; padding: 0 10px; }
.process-step::after { content: ''; position: absolute; top: 22px; right: -1px; width: 50%; height: 2px; background: var(--pb-teal); z-index: 0; }
.process-step:last-child::after { display: none; }
.process-step::before { content: ''; position: absolute; top: 22px; left: -1px; width: 50%; height: 2px; background: var(--pb-teal); z-index: 0; }
.process-step:first-child::before { display: none; }
.step-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--pb-teal); color: var(--pb-navy); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; position: relative; z-index: 1; }
.process-step p { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pb-muted); }
.dark-process-step p { color: rgba(255,255,255,0.5) !important; }

/* =========================================================
   SERVICE CARDS
========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: var(--pb-card); border: 1px solid var(--pb-border); border-radius: 14px;
  padding: 32px 28px; transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,184,200,0.1); border-color: var(--pb-teal); }
.service-icon { width: 48px; height: 48px; background: var(--pb-teal-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 22px; }
.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--pb-navy); }
.service-card p { font-size: 14px; color: var(--pb-muted); line-height: 1.65; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 20px; background: var(--pb-teal-light); color: var(--pb-teal-mid); }

/* =========================================================
   ABOUT PAGE
========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: var(--pb-muted); margin-bottom: 20px; font-size: 15.5px; }
.about-text p:first-of-type { font-size: 17px; color: var(--pb-text); }
.principles-stack { display: flex; flex-direction: column; gap: 20px; }
.principle-card {
  background: var(--pb-card); border: 1px solid var(--pb-border);
  border-left: 3px solid var(--pb-teal); border-radius: 0 10px 10px 0; padding: 22px 24px;
}
.principle-card h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pb-teal-mid); font-weight: 600; margin-bottom: 8px; }
.principle-card p { font-size: 14.5px; color: var(--pb-muted); line-height: 1.6; }
.quote-block { background: var(--pb-navy); border-radius: 12px; padding: 30px; margin-top: 30px; }
.quote-block p { font-family: var(--font-display); font-size: 18px; color: var(--pb-teal); line-height: 1.5; font-style: italic; }

/* =========================================================
   TECHNOLOGY PAGE
========================================================= */
.tech-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.tech-category { background: var(--pb-card); border: 1px solid var(--pb-border); border-radius: 12px; padding: 24px 20px; }
.tech-category h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pb-teal-mid); font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--pb-border); }
.tech-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tech-list li { font-size: 13px; color: var(--pb-text); padding: 4px 0 4px 12px; position: relative; }
.tech-list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--pb-teal); }
.latest-tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.latest-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(0,184,200,0.2); border-radius: 14px; padding: 32px 24px; text-align: center; }
.latest-num { font-family: var(--font-display); font-size: 48px; color: rgba(0,184,200,0.25); line-height: 1; margin-bottom: 16px; }
.latest-card h3 { font-size: 16px; color: #fff; font-weight: 600; margin-bottom: 10px; }
.latest-card p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* =========================================================
   PARTNERS PAGE
========================================================= */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.partner-group { background: var(--pb-card); border: 1px solid var(--pb-border); border-radius: 14px; overflow: hidden; }
.partner-group-header { background: var(--pb-navy); padding: 14px 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pb-teal); }
.partner-group-body { padding: 20px; }
.partner-group-body ul { list-style: none; }
.partner-group-body li { font-size: 14px; color: var(--pb-text); padding: 6px 0; border-bottom: 1px solid var(--pb-border); line-height: 1.4; }
.partner-group-body li:last-child { border-bottom: none; }
.partners-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.partners-stat-num { font-family: var(--font-display); font-size: 52px; color: var(--pb-navy); line-height: 1; }
.partners-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pb-muted); margin-top: 6px; }

/* =========================================================
   CASE STUDIES PAGE
========================================================= */
.cases-grid { display: flex; flex-direction: column; gap: 40px; }
.case-card { background: var(--pb-card); border: 1px solid var(--pb-border); border-radius: 16px; overflow: hidden; }
.case-header { background: var(--pb-navy); padding: 28px 36px; display: flex; align-items: center; justify-content: space-between; }
.case-header h3 { font-family: var(--font-display); font-size: 24px; color: #fff; }
.case-industry-badge { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(0,184,200,0.2); color: var(--pb-teal); border: 1px solid rgba(0,184,200,0.3); border-radius: 20px; padding: 6px 16px; font-weight: 600; }
.case-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.case-column { padding: 32px 28px; border-right: 1px solid var(--pb-border); }
.case-column:last-child { border-right: none; }
.case-column-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 14px; }
.case-column:nth-child(1) .case-column-label { color: #E24B4A; }
.case-column:nth-child(2) .case-column-label { color: #0F6E56; }
.case-column:nth-child(3) .case-column-label { color: var(--pb-teal-mid); }
.case-column p { font-size: 14px; color: var(--pb-muted); line-height: 1.7; }

/* =========================================================
   CONTACT PAGE
========================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: 36px; color: var(--pb-navy); margin-bottom: 24px; }
.contact-info > p { color: var(--pb-muted); font-size: 15px; margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; background: var(--pb-off); border-radius: 10px; border: 1px solid var(--pb-border); }
.contact-icon { width: 36px; height: 36px; background: var(--pb-teal-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item-content { font-size: 14px; }
.contact-item-content strong { display: block; color: var(--pb-navy); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-item-content a { color: var(--pb-teal-mid); text-decoration: none; }
.contact-form-card { background: var(--pb-card); border: 1px solid var(--pb-border); border-radius: 16px; padding: 40px; }
.contact-form-card h3 { font-size: 20px; font-weight: 600; color: var(--pb-navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pb-muted); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 11px 14px; font-size: 14px; font-family: var(--font-body); border: 1px solid var(--pb-border); border-radius: 8px; outline: none; background: var(--pb-off); color: var(--pb-text); transition: border-color 0.2s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--pb-teal); background: #fff; }
.form-group textarea { min-height: 110px; resize: vertical; }
.btn-submit { width: 100%; background: var(--pb-navy); color: #fff; padding: 14px; border-radius: 8px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: all 0.2s; }
.btn-submit:hover { background: var(--pb-teal); color: var(--pb-navy); }

/* =========================================================
   FOOTER
========================================================= */
.pb-footer { background: var(--pb-navy); border-top: 1px solid rgba(0,184,200,0.2); padding: 32px 5%; display: flex; align-items: center; justify-content: space-between; }
.pb-footer p { color: rgba(255,255,255,0.4); font-size: 13px; }
.pb-footer a { color: var(--pb-teal); text-decoration: none; font-size: 13px; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .pb-hero,
  .about-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .latest-tech-grid,
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case-body { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .case-column { border-right: none; border-bottom: 1px solid var(--pb-border); }
  .case-column:last-child { border-bottom: none; }
  .pb-nav-menu { display: none; }
}
