/* Dharma Construction News Website Styles */
/* Based on Brand Style Guide - Last Updated: July 27, 2025 */

/* Import Google Font - Lato */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* CSS Custom Properties for Brand Colors */
:root {
  --midnight-blue: #0D2C4F;
  --burnt-orange: #D75C2D;
  --charcoal-gray: #343A40;
  --light-gray: #F4F4F4;
  --white: #FFFFFF;
}

/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--charcoal-gray);
  line-height: 1.5;
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--midnight-blue);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--burnt-orange);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

/* Header Navigation */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 100px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--midnight-blue);
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--burnt-orange);
  text-decoration: none;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--burnt-orange);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #c54a20;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--midnight-blue);
  border: 1px solid var(--midnight-blue);
}

.btn-secondary:hover {
  background-color: var(--midnight-blue);
  color: var(--white);
  text-decoration: none;
}

/* Hero Sections */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 44, 79, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

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

/* Home Page Hero (subtle background) */
.hero-home {
  background: linear-gradient(135deg, var(--light-gray) 0%, #e8e8e8 100%);
  color: var(--charcoal-gray);
}

.hero-home::before {
  display: none;
}

.hero-home h1 {
  color: var(--midnight-blue);
}

.hero-home p {
  color: var(--charcoal-gray);
}

/* Card Styles */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: var(--light-gray);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-top: 0.5rem;
  color: var(--burnt-orange);
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 3rem 0;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  fill: var(--burnt-orange);
}

/* Pricing Table */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background-color: var(--white);
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.featured {
  border-color: var(--midnight-blue);
  background-color: var(--light-gray);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--burnt-orange);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
}

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

.pricing-description {
  margin-bottom: 2rem;
}

.pricing-2-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 3rem auto;
}

/* Forms */
.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--charcoal-gray);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border: 2px solid var(--burnt-orange);
}

/* Special Sections */
.section-dark {
  background-color: var(--light-gray);
}

.section-questions {
  background-color: #f8f9fa;
}

.questions-list {
  max-width: 800px;
  margin: 2rem auto;
  text-align: left;
}

.questions-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: var(--midnight-blue);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer p,
.footer address {
  margin-bottom: 0.5rem;
  font-style: normal;
}

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

.footer a:hover {
  color: var(--burnt-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.875rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--charcoal-gray);
  cursor: pointer;
  border: none;
  background: none;
}

.captcha-placeholder {
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
    border-radius: 4px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .cards,
  .features,
  .pricing,
  .form-section {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .questions-list {
    padding-left: 2rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Fine Print */
.fine-print {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  margin-top: 2rem;
}
