/* AppWT Design - Main Stylesheet
 * (c) 1997-2026 AppWT Web & AI Solutions (AppWT LLC)
 * Version: 1.0
 */

/* ========================================
   CSS VARIABLES & ROOT
   ======================================== */
:root {
  --color-forest: #1B4332;
  --color-gold: #F4A261;
  --color-platinum: #F8F9FA;
  --color-obsidian: #0D2818;
  --color-white: #FFFFFF;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --transition: all 0.3s ease;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-obsidian);
  background: var(--color-platinum);
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-forest);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-gold);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-forest);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(28px, 5vw, 52px);
}

h2 {
  font-size: clamp(22px, 4vw, 32px);
}

h3 {
  font-size: 24px;
}

p {
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}

section, .section {
  padding: 60px 0;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
  background: var(--color-forest);
  color: var(--color-white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--color-white);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 28px;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  padding: 10px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-obsidian) 100%);
  color: var(--color-white);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  white-space: normal;
  text-decoration: none;
}

.btn:hover {
  background: var(--color-forest);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-forest);
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card h3 {
  color: var(--color-forest);
  margin-bottom: 1rem;
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* ========================================
   PORTFOLIO ITEMS
   ======================================== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-white);
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(27,67,50,0.9), transparent);
  color: var(--color-white);
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

/* ========================================
   PRICING TABLES
   ======================================== */
.pricing-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.pricing-card.featured {
  border: 3px solid var(--color-gold);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-forest);
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-platinum);
}

.pricing-features li:before {
  content: "+ ";
  color: var(--color-gold);
  font-weight: 700;
  margin-right: 8px;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-item {
  background: var(--color-white);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.faq-answer {
  color: var(--color-obsidian);
  line-height: 1.6;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-info {
  background: var(--color-white);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  color: var(--color-gold);
  font-size: 1.5rem;
  min-width: 30px;
}

.contact-form {
  background: var(--color-white);
  border-radius: 8px;
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-forest);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: var(--font-main);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--color-obsidian);
  color: var(--color-white);
  padding: 40px 0 20px;
}

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

.footer-section h3 {
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--color-platinum);
}

.footer-section a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--color-platinum);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--color-white);
}

.bg-white {
  background: var(--color-white);
}

.bg-forest {
  background: var(--color-forest);
  color: var(--color-white);
}

.bg-platinum {
  background: var(--color-platinum);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  section, .section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  section, .section, .container {
    max-width: 100vw;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6, p, li, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-forest);
    flex-direction: column;
    padding: 20px;
    width: 100%;
    gap: 0;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 60px 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .card {
    padding: 20px;
  }

  h3 {
    font-size: 20px;
  }

  body {
    font-size: 15px;
  }
}

@media (max-width: 320px) {
  h3 {
    font-size: 18px;
  }

  body {
    font-size: 14px;
  }
}
