/* ============================================
   ColoredSitePlans.com — Full Redesign
   ============================================ */

:root {
  --navy:     #0d1b2a;
  --navy-mid: #1a2f45;
  --gold:     #c8963c;
  --gold-lt:  #e0b060;
  --white:    #ffffff;
  --off-white:#f5f4f0;
  --mid-gray: #e8e6e0;
  --text:     #1a1a1a;
  --text-mid: #4a4a4a;
  --text-lt:  #888880;
  --green:    #2e7d4f;
  --radius:   6px;
  --shadow:   0 2px 16px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- LAYOUT ---- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 0;
}

.header-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  color: var(--mid-gray);
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-phone:hover { color: var(--white); }

/* ---- BUTTONS ---- */
.btn-primary, .btn-header, .btn-submit {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.95em;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover, .btn-header:hover, .btn-submit:hover {
  background: var(--gold-lt);
  color: var(--navy) !important;
}

.btn-secondary {
  background: transparent;
  color: var(--white) !important;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.95em;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white) !important;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05em;
  letter-spacing: 0.02em;
}

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  background-image: linear-gradient(135deg, #0d1b2a 0%, #1a3550 100%);
  color: var(--white);
  padding: 80px 0 70px;
  text-align: center;
}

.hero-inner {
  width: 90%;
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.8em, 4vw, 2.8em);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.15em;
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.88em;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
}

.hero-trust span { white-space: nowrap; }

/* ---- SECTIONS ---- */
.section-light  { background: var(--white);     padding: 70px 0; }
.section-dark   { background: var(--navy);       padding: 70px 0; color: var(--white); }
.section-mid    { background: var(--off-white);  padding: 70px 0; }

.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p  { color: rgba(255,255,255,0.78); }
.section-dark .section-intro { color: rgba(255,255,255,0.68); }

h2 {
  font-size: clamp(1.5em, 3vw, 2.1em);
  margin-bottom: 12px;
  color: var(--navy);
}

.section-intro {
  font-size: 1.05em;
  color: var(--text-mid);
  margin-bottom: 44px;
  max-width: 680px;
}

/* ---- HOW IT WORKS ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.step {
  background: var(--off-white);
  border-radius: 8px;
  padding: 32px 28px;
  border-top: 4px solid var(--gold);
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.4em;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1em;
  color: var(--navy);
  margin-bottom: 10px;
}

.step p { font-size: 0.95em; color: var(--text-mid); margin: 0; }

/* ---- PORTFOLIO TABS ---- */
.tab {
  overflow: hidden;
  background: var(--navy-mid);
  border-radius: 6px 6px 0 0;
  display: flex;
  width: 100%;
  max-width: 460px;
  margin: 0 auto 0;
}

.tab button {
  background: transparent;
  flex: 1;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 8px;
  font-size: 0.88em;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: 0.2s;
  letter-spacing: 0.02em;
}

.tab button:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.tab button.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

.tabcontent { display: none; padding: 20px 0 0; }

.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.flex-container > a {
  width: calc(33.333% - 8px);
  max-width: 150px;
  min-width: 90px;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.flex-container > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.flex-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  border: 2px solid var(--mid-gray);
  border-radius: 10px;
  padding: 32px 28px;
  position: relative;
  background: var(--white);
  transition: box-shadow 0.2s;
}

.pricing-card:hover { box-shadow: var(--shadow); }

.pricing-featured {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(200,150,60,0.18);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78em;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1em;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.price {
  font-size: 1.8em;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-card ul li {
  padding: 5px 0;
  font-size: 0.92em;
  color: var(--text-mid);
  border-bottom: 1px solid var(--mid-gray);
}

.pricing-card ul li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.pricing-card .btn-primary { width: 100%; text-align: center; }

/* ---- WHO WE SERVE ---- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.serve-item {
  padding: 24px;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 6px 6px 0;
}

.serve-item h3 {
  font-size: 1em;
  color: var(--navy);
  margin-bottom: 8px;
}

.serve-item p { font-size: 0.92em; color: var(--text-mid); margin: 0; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; }

.faq-item {
  border-bottom: 1px solid var(--mid-gray);
  padding: 24px 0;
}

.faq-item:first-child { border-top: 1px solid var(--mid-gray); }

.faq-item h3 {
  font-size: 1.05em;
  color: var(--navy);
  margin-bottom: 10px;
  cursor: default;
}

.faq-item p {
  font-size: 0.95em;
  color: var(--text-mid);
  margin: 0;
}

.faq-item a { color: var(--gold); }

/* ---- CONTACT FORM ---- */
.contact-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.2);
}

.form-row { margin-bottom: 18px; }

.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; }

.form-group label {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--mid-gray);
  border-radius: var(--radius);
  font-size: 0.95em;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--mid-gray);
  border-radius: var(--radius);
  font-size: 0.95em;
  color: var(--text);
  background: var(--off-white);
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img { height: 36px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-logo p { font-size: 0.88em; line-height: 1.5; margin-bottom: 12px; }
.footer-phone { color: var(--gold) !important; font-weight: 700; font-size: 1.05em; }

.footer-links h4, .footer-social h4 {
  color: var(--white);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: rgba(255,255,255,0.55); font-size: 0.9em; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--gold); }

.social-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icons a { display: block; width: 34px; opacity: 0.6; transition: opacity 0.2s; }
.social-icons a:hover { opacity: 1; }
.social-icons img { width: 100%; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82em;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom p { margin-bottom: 4px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: 1.65em; }
  .hero-sub { font-size: 1em; }
  .hero-trust { gap: 12px; font-size: 0.82em; }
  .hero-actions { flex-direction: column; align-items: center; }
  .header-cta .btn-header { display: none; }

  .section-light, .section-dark, .section-mid { padding: 48px 0; }

  .form-row-half { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 20px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .flex-container > a { width: calc(50% - 8px); max-width: none; }
  .tab button { padding: 10px 4px; font-size: 0.78em; }
}

/* ---- FAQ ACCORDION ---- */
.faq-item h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-toggle {
  font-size: 1.4em;
  color: var(--gold);
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item p {
  padding-top: 8px;
}

/* ---- SUBMISSION MODAL FIX ---- */
.csp-modal-overlay { font-family: inherit; }

/* ---- SECTION LABEL ---- */
.section-label {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ---- SCROLL REVEAL ---- */
@keyframes csp-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step, .pricing-card, .serve-item {
  animation: csp-rise 0.5s ease both;
}

/* ---- PORTFOLIO SECTION DARK OVERRIDE ---- */
#portfolio .tab button { color: rgba(255,255,255,0.5); }
#portfolio .tab button.active { color: var(--gold); }
#portfolio .tabcontent { background: transparent; }

/* ---- CONTACT FORM IN DARK SECTION ---- */
#contact .section-intro { color: rgba(255,255,255,0.68); }
