/**
 * Theme Name: Phix Restoration
 * Theme URI: https://phix-restoration.local
 * Author: Phix Restoration Group
 * Author URI: https://phix-restoration.local
 * Description: WordPress theme for Phix Restoration Group with Elementor support
 * Version: 1.0.0
 * Requires at least: 6.0
 * Requires PHP: 8.0
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: phix-restoration
 * Domain Path: /languages
 */

/* ===== ROOT COLORS & VARIABLES ===== */
:root {
  --navy: #1a2744;
  --navy-dark: #0f1a30;
  --gold: #c9a227;
  --water-blue: #00aaff;
  --fire-orange: #ff6b1a;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-light: #e8ecf2;
  --gray-mid: #8a9ab5;
  --text-dark: #1a2744;
  --text-body: #3a4a65;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== CONTAINER ===== */
.container,
.max-1240 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
}

h2 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.04;
  margin-bottom: 20px;
}

h3 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 15px;
}

h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-solid-orange {
  display: inline-block;
  background: var(--fire-orange);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 36px;
  text-decoration: none;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  border: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-solid-orange:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-outline,
.btn-outline-light {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 36px;
  text-decoration: none;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  background: transparent;
}

.btn-outline:hover,
.btn-outline-light:hover {
  background: var(--water-blue);
  color: #fff;
  text-decoration: none;
}

.btn-blue {
  background: var(--water-blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--water-blue);
  filter: brightness(1.1);
  text-decoration: none;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy-dark);
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--gray-mid);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: var(--gold);
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

.emergency-badge {
  background: var(--fire-orange);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(26, 39, 68, 0.1);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: nowrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

.site-logo {
  display: block;
  height: 40px;
  width: auto;
}

.site-brand-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.92rem;
  line-height: 1.02;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  white-space: nowrap;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-svg {
  height: 62px;
  width: auto;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.62rem;
  color: var(--gray-mid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
}

.logo-tagline {
  font-size: 0.58rem;
  color: var(--gold);
  display: block;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ===== NAVIGATION ===== */
nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

nav a {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 12px;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--water-blue);
  text-decoration: none;
}

.nav-dd {
  position: relative;
}

.nav-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 220;
}

.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  display: flex;
  flex-direction: column;
}

.nav-dd-menu a {
  padding: 10px 16px;
}

.nav-dd-menu a:hover {
  background: var(--off-white);
}

.nav-cta {
  background: var(--fire-orange) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  margin-left: 6px;
  clip-path: none;
}

.nav-cta:hover {
  filter: brightness(1.1);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
  z-index: 101;
}

/* ===== HERO SECTION ===== */
.hero-v2 {
  background: linear-gradient(105deg, #122245 0%, #1b2e5b 55%, #22386a 100%);
  padding: 78px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-v2 .breadcrumb {
  color: #86cfff;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.hero-v2 h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero-v2 h1 .accent-orange {
  color: var(--fire-orange);
}

.hero-v2 h1 .accent-blue {
  color: var(--water-blue);
}

.hero-v2 p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.07rem;
  line-height: 1.72;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.stats-strip .mini {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  color: #d8e9ff;
  font-size: 1.02rem;
  text-align: center;
}

.stats-strip .mini b {
  color: #fff;
}

/* ===== PAGE WRAP ===== */
.page-wrap {
  padding: 96px 0;
  background: #fff;
}

.page-wrap:nth-child(even) {
  background: var(--off-white);
}

/* ===== SPLIT FEATURE ===== */
.split-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.split-feature .left h2 {
  color: var(--navy);
  margin-bottom: 20px;
}

.split-feature .left h2 .orange {
  color: var(--fire-orange);
}

.split-feature .left p {
  font-size: 1.07rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 18px;
}

/* ===== CALLOUT ===== */
.callout-soft {
  background: #f5ecea;
  border-left: 4px solid var(--fire-orange);
  padding: 18px 22px;
  margin: 28px 0;
}

.callout-soft h4 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.callout-soft p {
  margin: 0;
  color: var(--text-body);
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.stat-box-v2 {
  background: #1d2f58;
  color: #fff;
  padding: 30px 14px;
  text-align: center;
  border-radius: 4px;
}

.stat-box-v2 .n {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--water-blue);
  font-weight: 900;
  margin-bottom: 8px;
}

.stat-box-v2 .l {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #a2b7db;
  font-size: 0.95rem;
}

.stat-box-v2.bright {
  background: #1ea3e2;
}

.stat-box-v2.bright .n {
  color: #fff;
}

.stat-box-v2.bright .l {
  color: #d8f3ff;
}

/* ===== HANDLE BOX ===== */
.handle-box {
  background: #eef4fb;
  border-left: 4px solid var(--water-blue);
  padding: 24px;
  border-radius: 4px;
}

.handle-box h4 {
  color: #102547;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.handle-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.handle-box li {
  color: #2e4d79;
  font-size: 1.03rem;
}

/* ===== DETAIL GRID ===== */
.detail-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}

.detail-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #d1d9e4;
  background: #fff;
}

.detail-grid-v2 .card {
  padding: 34px 30px;
  min-height: 290px;
  border-right: 1px solid #d1d9e4;
  border-bottom: 1px solid #d1d9e4;
  background: #f3f5f9;
}

.detail-grid-v2 .card:nth-child(3n) {
  border-right: none;
}

.detail-grid-v2 .card:nth-last-child(-n+3) {
  border-bottom: none;
}

.detail-grid-v2 .icon {
  width: 48px;
  height: 48px;
  background: #f5e9e3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--water-blue);
  font-size: 1.8rem;
  margin-bottom: 14px;
  border-radius: 4px;
}

.detail-grid-v2 h3 {
  color: #10274d;
  margin-bottom: 10px;
}

.detail-grid-v2 p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #304f79;
  margin-bottom: 0;
}

/* ===== DARK PANEL ===== */
.dark-panel {
  background: #1b2c55;
  padding: 78px 0;
  color: #fff;
}

.dark-panel .inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: start;
}

.dark-panel h2 {
  color: #fff;
  margin-bottom: 16px;
}

.dark-panel h2 .blue {
  color: var(--water-blue);
}

.dark-panel p {
  color: #d2ddf2;
  font-size: 1.05rem;
  line-height: 1.82;
  margin-bottom: 14px;
}

.warn-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.warn-list li {
  color: #d8e4fa;
  font-size: 1.06rem;
}

.warn-list li::before {
  content: '⚠';
  margin-right: 10px;
  color: var(--water-blue);
}

/* ===== PROCESS BOX ===== */
.process-box {
  background: #0f2348;
  border: 1px solid #1a4c81;
  padding: 34px;
  border-radius: 4px;
}

.process-box h3 {
  color: #fff;
  margin-bottom: 20px;
}

.step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step:last-child {
  border: none;
}

.step .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.2rem;
  color: var(--water-blue);
  font-weight: 900;
}

.step h4 {
  color: #fff;
  margin: 0 0 6px 0;
}

.step p {
  margin: 0;
  color: #9cb5d9;
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ===== REVIEW BAND ===== */
.review-band {
  padding: 64px 0;
  background: #f8fbff;
  border-top: 1px solid #d7e4f3;
  border-bottom: 1px solid #d7e4f3;
}

.review-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
}

.review-band h2 {
  color: #122b54;
  margin-bottom: 8px;
}

.review-band p {
  color: #36557f;
  line-height: 1.8;
}

.review-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.review-badges span {
  border: 1px solid #b9d2ec;
  background: #eaf4ff;
  color: #1b4f86;
  padding: 6px 10px;
  font-size: 0.92rem;
  border-radius: 3px;
}

.review-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-review {
  display: inline-block;
  background: #126fbc;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 22px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 3px;
}

.btn-review:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

.btn-review-outline {
  display: inline-block;
  border: 2px solid #126fbc;
  color: #126fbc;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.btn-review-outline:hover {
  background: #126fbc;
  color: #fff;
  text-decoration: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px;
  font-size: 0.9rem;
}

footer h4 {
  color: #fff;
  margin-bottom: 16px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer li {
  margin-bottom: 8px;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1050px) {
  .split-feature,
  .dark-panel .inner,
  .detail-grid-v2 {
    grid-template-columns: 1fr;
  }

  .detail-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid-v2 .card:nth-child(3n) {
    border-right: 1px solid #d1d9e4;
  }

  .detail-grid-v2 .card:nth-child(2n) {
    border-right: none;
  }

  .review-wrap {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
  }

  nav.open {
    display: flex;
  }

  .nav-dd {
    width: 100%;
  }

  .nav-dd-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    padding: 0;
  }

  nav a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--gray-light);
  }

  nav a:last-child,
  nav > a.nav-cta {
    border-bottom: none;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 24px;
  }

  .detail-grid-v2 {
    grid-template-columns: 1fr;
  }

  .detail-grid-v2 .card {
    border-right: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .detail-title {
    font-size: 2.6rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: row;
    gap: 16px;
  }

  nav {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-solid-orange,
  .btn-outline,
  .btn-outline-light {
    width: 100%;
    text-align: center;
  }

  .page-wrap {
    padding: 48px 0;
  }

  .split-feature .left h2 {
    font-size: 1.8rem;
  }
}

/* ===== ELEMENTOR COMPATIBILITY ===== */
.elementor-section {
  padding: 40px 0;
}

.elementor-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Remove default elementor spacing conflicts */
.elementor-widget-wrap > .elementor-widget:not(:last-child) {
  margin-bottom: 20px;
}

.elementor-editor-active {
  background: #fff;
}
