/* ==========================================================================
   Valley Technology Partners - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f7f6f0;
  color: #2B6B6E;
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
  background-color: #f7f6f0;
  color: #2B6B6E;
  padding: 2rem 1rem 0.5rem 1rem;
  text-align: center;
  position: relative;
}

header img {
  max-width: 80%;
  height: auto;
  margin-bottom: 1rem;
}

header a:hover img {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
  background-color: #355F35;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 1rem;
  display: inline-block;
}

nav a:hover {
  background-color: #3F888C;
}

nav.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

body.sticky-nav {
  padding-top: 60px;
}

/* Hamburger menu */
.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: #355F35;
  position: absolute;
  left: 1rem;
  top: 1rem;
  cursor: pointer;
  z-index: 1001;
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  padding: 6rem 2rem;
  text-align: center;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--hero-image, url('hero.jpg')) center/cover no-repeat;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Pricing page hero variant (gradient only, no image) */
.hero--gradient::before {
  background: linear-gradient(rgba(43, 107, 110, 0.85), rgba(53, 95, 53, 0.85));
}

.hero--gradient {
  padding: 4rem 2rem;
}

.hero--gradient h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
}

.hero--gradient p {
  margin-bottom: 0;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

/* Wider main for pricing page */
main.wide {
  max-width: 1000px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #2B6B6E;
}

/* ==========================================================================
   Service Boxes (Home & About pages)
   ========================================================================== */

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.service-box {
  background: #2B6B6E;
  color: #f7f6f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  flex: 1;
  padding: 1rem;
  min-width: 260px;
}

/* ==========================================================================
   Content Box (About page)
   ========================================================================== */

.content-box {
  background: #2B6B6E;
  color: #f7f6f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flow-root;
}

.content-box a {
  color: #f5f1df;
  font-weight: bold;
  text-decoration: none;
}

.content-box a:hover {
  text-decoration: underline;
  color: #f3ebcc;
}

.float-headshot {
  float: left;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #355F35;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.linkedin-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ==========================================================================
   Accordion (Solutions page)
   ========================================================================== */

.vtp-accordion {
  max-width: 900px;
  margin: 2rem auto;
}

.vtp-accordion .vtp-intro {
  margin: .25rem auto 2.5rem;
  text-align: left;
}

.vtp-accordion .vtp-controls {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin: .5rem 0 1rem;
}

.vtp-accordion .vtp-controls button {
  background: transparent;
  border: 0;
  color: #2B6B6E;
  font-weight: 700;
  cursor: pointer;
}

.vtp-accordion .vtp-controls button:hover {
  text-decoration: underline;
}

.vtp-accordion details {
  background: #2B6B6E;
  border: 1px solid #f7f6f0;
  border-radius: 10px;
  margin: .75rem 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
}

.vtp-accordion details[open] {
  border-color: #355F35;
}

.vtp-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: .9rem 1rem;
  display: flex;
  gap: .65rem;
  align-items: center;
  font-weight: 900;
  color: #f7f6f0;
}

.vtp-accordion summary::-webkit-details-marker {
  display: none;
}

.vtp-accordion summary .mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid #f7f6f0;
  border-radius: 6px;
  flex: 0 0 24px;
  font-weight: 700;
}

.vtp-accordion summary .mark::before {
  content: "+";
}

.vtp-accordion details[open] summary .mark {
  background: #2B6B6E;
  color: #f7f6f0;
}

.vtp-accordion details[open] summary .mark::before {
  content: "–";
}

.vtp-accordion .panel {
  padding: 0 1rem 1rem 3rem;
  color: #f7f6f0;
}

.vtp-accordion .feature-list {
  display: block;
  margin: .5rem 0 0;
  padding-left: 1rem;
}

.vtp-accordion .feature-list li {
  margin: .15rem 0;
}

.vtp-accordion h3 {
  margin: 1.75rem 0 .25rem;
  color: #2B6B6E;
}

/* ==========================================================================
   Contact Form (Contact page)
   ========================================================================== */

.contact-form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2B6B6E;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3F888C;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

.submit-btn {
  background: #355F35;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: #3F888C;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.contact-info {
  background: #2B6B6E;
  color: #f7f6f0;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-info h2 {
  margin-top: 0;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: #f5f1df;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.success-message {
  background: #4CAF50;
  color: white;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}

.error-message {
  background: #f44336;
  color: white;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}

/* ==========================================================================
   Pricing Page Components
   ========================================================================== */

.plan-card {
  background: #2B6B6E;
  color: #f7f6f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.plan-card h2 {
  font-family: 'Montserrat', sans-serif;
  color: #f7f6f0;
  margin-bottom: 1.5rem;
}

.plan-card h3 {
  font-family: 'Montserrat', sans-serif;
  color: #f7f6f0;
  margin: 1.5rem 0 1rem;
}

.plan-header {
  text-align: center;
  border-bottom: 3px solid #355F35;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.plan-header h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.price {
  font-size: 3em;
  color: #f5f1df;
  font-weight: bold;
}

.price-subtitle {
  color: #f7f6f0;
  font-size: 1.1em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.feature-section h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(245, 241, 223, 0.3);
}

.feature-section ul {
  list-style: none;
  padding: 0;
}

.feature-section li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.feature-section li:before {
  content: "✓";
  color: #f5f1df;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.addon-card {
  background: rgba(245, 241, 223, 0.1);
  border: 2px solid rgba(245, 241, 223, 0.3);
  border-radius: 8px;
  padding: 25px;
  transition: all 0.3s;
}

.addon-card:hover {
  border-color: #f5f1df;
  transform: translateY(-2px);
  background: rgba(245, 241, 223, 0.15);
}

.addon-card h3 {
  margin-bottom: 10px;
}

.addon-price {
  font-size: 1.8em;
  color: #f5f1df;
  font-weight: bold;
  margin: 10px 0;
}

.sla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.sla-card {
  background: rgba(245, 241, 223, 0.1);
  border-left: 4px solid #cbd5e1;
  padding: 20px;
  border-radius: 4px;
}

.sla-card.critical {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.sla-card.high {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.sla-card.medium {
  border-left-color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.sla-card.low {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.sla-card h4 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.sla-response {
  font-size: 1.4em;
  font-weight: bold;
  color: #f5f1df;
  margin: 10px 0;
}

.example-card {
  background: rgba(245, 241, 223, 0.1);
  border: 2px solid rgba(245, 241, 223, 0.3);
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0;
}

.example-card h4 {
  font-size: 1.3em;
  margin-bottom: 15px;
}

.example-breakdown {
  background: rgba(53, 95, 53, 0.3);
  padding: 15px;
  border-radius: 4px;
  margin: 10px 0;
}

.example-total {
  font-size: 1.4em;
  font-weight: bold;
  color: #f5f1df;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #f5f1df;
}

.faq-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(245, 241, 223, 0.3);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.2em;
  font-weight: bold;
  color: #f5f1df;
  margin-bottom: 10px;
}

.faq-answer {
  line-height: 1.6;
}

.cta-section {
  background: #355F35;
  color: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
}

.cta-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #355F35;
  padding: 15px 40px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.testimonial {
  background: rgba(245, 241, 223, 0.1);
  border-left: 4px solid #f5f1df;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
  font-style: italic;
}

.testimonial-author {
  font-weight: bold;
  color: #f5f1df;
  margin-top: 10px;
  font-style: normal;
}

.checkmark-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin: 20px 0;
  padding: 0;
}

.checkmark-list li {
  padding: 8px 0 8px 30px;
  position: relative;
}

.checkmark-list li:before {
  content: "✓";
  color: #f5f1df;
  font-weight: bold;
  font-size: 1.2em;
  position: absolute;
  left: 0;
}

.info-box {
  background: rgba(245, 241, 223, 0.1);
  border: 2px solid rgba(245, 241, 223, 0.3);
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0;
}

.info-box h4 {
  font-size: 1.2em;
  margin-bottom: 15px;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.info-box li span {
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
}

/* ==========================================================================
   Responsive - Mobile (600px and below)
   ========================================================================== */

@media (max-width: 600px) {
  /* Header */
  header img {
    max-width: 90%;
  }

  /* Navigation */
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    text-align: left;
  }

  nav.show {
    display: flex;
  }

  nav a {
    display: block;
    padding: 1rem;
    border-top: 1px solid #4a7a4a;
  }

  /* Hero */
  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Services */
  .services {
    flex-direction: column;
    align-items: center;
  }

  .service-box {
    width: 100%;
    max-width: 90%;
  }

  /* About page headshot */
  .float-headshot {
    float: left;
    width: 120px;
    height: auto;
    margin: 0 15px 10px 0;
    object-fit: cover;
    vertical-align: top;
  }

  .content-box::after {
    content: "";
    display: table;
    clear: both;
  }

  /* Accordion */
  .vtp-accordion .panel {
    padding: 0 1rem 1rem 2.5rem;
  }

  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }

  main {
    padding: 1rem;
  }
}

/* ==========================================================================
   Responsive - Tablet (768px and below)
   ========================================================================== */

@media (max-width: 768px) {
  /* Pricing hero */
  .hero--gradient h1 {
    font-size: 1.8em;
  }

  .price {
    font-size: 2.2em;
  }

  /* Pricing grids */
  .features-grid,
  .addon-grid,
  .sla-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    padding: 1.5rem;
  }

  /* Hamburger at 768px for pricing page */
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    text-align: left;
  }

  nav.show {
    display: flex;
  }

  nav a {
    display: block;
    padding: 1rem;
    border-top: 1px solid #4a7a4a;
  }
}

/* ==========================================================================
   Header Phone Number
   ========================================================================== */

.header-icons {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-icons a {
  color: #2B6B6E;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.header-icons a:hover {
  color: #3F888C;
}

.header-icons svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Mobile header row - hidden on desktop */
.mobile-header-row {
  display: none;
}

/* Desktop-only icons - shown on desktop */
.header-icons.desktop-only {
  display: flex;
}

@media (max-width: 600px) {
  /* Hide desktop icons, show mobile row */
  .header-icons.desktop-only {
    display: none;
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
  }

  .mobile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(43, 107, 110, 0.1);
    margin-top: 0.5rem;
  }

  .mobile-header-row .hamburger {
    position: static;
    display: block;
    font-size: 1.75rem;
    padding: 0;
    margin: 0;
  }

  .mobile-header-row .header-icons {
    position: static;
    transform: none;
  }

  .header-icons svg {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
   Hero CTA Button
   ========================================================================== */

.hero-cta {
  display: inline-block;
  background: #355F35;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: #3F888C;
  transform: translateY(-2px);
}

/* ==========================================================================
   Technology Focus Section
   ========================================================================== */

.tech-focus {
  margin-top: 3rem;
}

.tech-focus h2 {
  margin-bottom: 0.5rem;
}

.tech-focus > p {
  margin-bottom: 2rem;
  color: #2B6B6E;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.tech-item {
  background: #2B6B6E;
  color: #f7f6f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 250px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.tech-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tech-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: #ffffff;
  border-radius: 50%;
  padding: 10px;
  box-sizing: content-box;
}

.tech-item h4 {
  color: #f7f6f0;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.tech-item p {
  font-size: 0.9rem;
  color: #f7f6f0;
  margin: 0;
}

/* ==========================================================================
   Latest Blog Section
   ========================================================================== */

.latest-blog {
  margin-top: 3rem;
}

.latest-blog h2 {
  margin-bottom: 1.5rem;
}

.blog-preview {
  background: #2B6B6E;
  color: #f7f6f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.blog-preview article h3 {
  margin: 0 0 0.5rem 0;
}

.blog-preview article h3 a {
  color: #f7f6f0;
  text-decoration: none;
}

.blog-preview article h3 a:hover {
  color: #f5f1df;
  text-decoration: underline;
}

.blog-preview .post-date {
  color: rgba(247, 246, 240, 0.7);
  font-size: 0.9rem;
}

.blog-preview article p {
  margin: 1rem 0;
  line-height: 1.6;
}

.blog-preview .read-more {
  color: #f5f1df;
  text-decoration: none;
  font-weight: 600;
}

.blog-preview .read-more:hover {
  text-decoration: underline;
}

.blog-link {
  color: #2B6B6E;
  text-decoration: none;
  font-weight: 600;
}

.blog-link:hover {
  color: #3F888C;
}

/* ==========================================================================
   Memberships Section
   ========================================================================== */

.memberships {
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.memberships h2 {
  margin-bottom: 1.5rem;
}

.membership-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem 3rem;
}

.membership-logos a {
  display: block;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.membership-logos a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.membership-logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .tech-grid {
    flex-direction: column;
    align-items: center;
  }

  .tech-item {
    max-width: 90%;
  }

  .blog-preview {
    padding: 1.5rem;
  }

  .membership-logos {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .membership-logo {
    max-height: 50px;
  }
}
