/* Southern Connected - Premium Smart Home Automation */

:root {
  --brand-navy: #081D2D;
  --brand-copper: #C47A3A;
  --brand-white: #FFFFFF;
  --brand-gray: #2E3135;
  --slate-gray: #4b5563;
  --light-slate: #f1f5f9;
  --slate-200: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(255, 255, 255);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-gray);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: var(--brand-navy);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
}

h1 { font-size: 2.5rem; line-height: 1.1; font-weight: 700; }
h2 { font-size: 2.5rem; margin-bottom: 3rem; font-weight: 700; }
h3 { font-size: 1.5rem; margin-bottom: 1.25rem; font-weight: 700; }

p { margin-bottom: 1rem; }

a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-copper);
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background-color: var(--brand-navy);
  color: var(--brand-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.navbar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: none;
}

.brand-text h1 {
  color: var(--brand-white);
  font-size: 1.125rem;
  margin: 0;
}

.brand-text p {
  color: var(--brand-copper);
  font-size: 0.75rem;
  margin: 0;
  font-weight: 500;
}

@media (min-width: 640px) {
  .brand-text {
    display: block;
  }
}

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--brand-white);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand-copper);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brand-white);
  transition: opacity 0.2s ease;
}

.menu-toggle:hover {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.nav-links.active {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #0a3d5c;
  flex-direction: column;
  gap: 0;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-links.active a {
  padding: 0.75rem;
  border-radius: 0.5rem;
  display: block;
}

.nav-links.active a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 700px;
  }
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, var(--brand-navy), rgba(8, 29, 45, 0.4), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  color: var(--brand-white);
  padding: 2rem 1rem;
}

.hero h1 {
  color: var(--brand-white);
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  letter-spacing: -1px;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero p {
  color: rgb(226, 232, 240);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.25rem;
  }
}

/* Sections */
.section {
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 1rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

.section-header p {
  font-size: 1.25rem;
  color: var(--brand-gray);
  max-width: 50rem;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

/* Grid */
.grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.grid-3 {
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-5 {
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.grid-2 {
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards */
.card {
  background: var(--brand-white);
  border: 1px solid var(--slate-200);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(-8px);
  border-color: var(--brand-copper);
}

.card-image {
  width: 100%;
  height: 14rem;
  background-color: rgb(241, 245, 249);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 2rem;
}

.card h3 {
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
}

.card p {
  color: var(--brand-gray);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 0.6rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--brand-copper);
  color: var(--brand-white);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--brand-navy);
  color: var(--brand-white);
}

.btn-secondary:hover {
  background-color: #0a283a;
  transition: all 0.2s ease;
}

.link {
  color: var(--brand-copper);
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}

.link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--brand-navy);
  color: var(--brand-white);
  padding: 5rem 1rem 3rem;
  margin-top: 7rem;
}

footer .container {
  max-width: 1152px;
  margin: 0 auto;
}

footer h3 {
  color: var(--brand-white);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
  color: var(--brand-copper);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Alternating Section Backgrounds */
.section:nth-of-type(even) {
  background-color: var(--light-slate);
}

/* Form Styling */
.contact-form, .form-group, form {
  display: flex;
  flex-direction: column;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

label {
  display: block;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: var(--brand-white);
  color: var(--brand-gray);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-copper);
  box-shadow: 0 0 0 3px rgba(196, 122, 58, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23081D2D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Contact Layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 2fr 1fr;
  }
}

.contact-form-section {
  padding: 3rem;
  background: var(--brand-white);
  border: 1.5px solid var(--slate-200);
  border-radius: 0.875rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-section h2,
.contact-info-section h2 {
  margin-bottom: 1.5rem;
  color: var(--brand-navy);
}

.contact-form-section label {
  font-size: 0.95rem;
}

/* Contact Info Cards */
.contact-info-card {
  padding: 2.25rem 2rem;
  background: var(--brand-white);
  border: 1.5px solid var(--slate-200);
  border-radius: 0.875rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--brand-copper);
  transform: translateY(-5px);
}

.contact-info-card h3 {
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.contact-info-card p {
  color: var(--brand-gray);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

/* Message Styling */
.success-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: #dcfce7;
  color: #166534;
  border-radius: 0.5rem;
  border-left: 4px solid #22c55e;
  font-weight: 500;
}

.error-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: #fee2e2;
  color: #991b1b;
  border-radius: 0.5rem;
  border-left: 4px solid #ef4444;
  font-weight: 500;
}

/* Card with Icon (Services) */
.card.card-with-icon {
  text-align: center;
  padding: 2.5rem 2rem;
}

.card.card-with-icon .card-icon-box {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand-copper), #a85f2a);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.25rem;
  box-shadow: 0 8px 20px rgba(196, 122, 58, 0.25);
  transition: all 0.3s ease;
}

.card.card-with-icon:hover .card-icon-box {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(196, 122, 58, 0.35);
}

.card.card-with-icon h3 {
  margin-bottom: 1rem;
}

.card.card-with-icon p {
  color: var(--brand-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Package Cards */
.package-card {
  background: var(--brand-white);
  border: 2px solid var(--slate-200);
  border-radius: 0.875rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.package-card.featured {
  border-color: var(--brand-copper);
  background: linear-gradient(to bottom, rgba(196, 122, 58, 0.08), var(--brand-white));
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(196, 122, 58, 0.25);
}

.package-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--brand-copper);
  transform: translateY(-5px);
}

.package-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.package-header h3 {
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
}

.package-price {
  font-size: 3rem;
  color: var(--brand-copper);
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  letter-spacing: -1px;
}

.package-subtitle {
  color: var(--brand-copper);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.package-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.package-features li {
  padding: 0.75rem 0;
  color: var(--brand-gray);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--slate-200);
}

.package-features li:last-child {
  border-bottom: none;
}

.package-features li:before {
  content: "✓ ";
  color: var(--brand-copper);
  font-weight: 700;
  margin-right: 0.5rem;
}

.package-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Project Cards (Portfolio) */
.project-card {
  background: var(--brand-white);
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.project-image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-card > h3,
.project-card > p {
  padding: 0 1.5rem;
}

.project-card > h3:first-of-type {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.project-card > p {
  margin-bottom: 0.5rem;
  color: var(--brand-gray);
  font-size: 0.9rem;
}

/* Tags */
.tags {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: rgba(196, 122, 58, 0.1);
  color: var(--brand-copper);
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--brand-copper);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  padding: 3.5rem 2rem;
  background: var(--brand-white);
  border-radius: 0.875rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--slate-200);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(196, 122, 58, 0.15);
  border-color: var(--brand-copper);
}

.stat-number {
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--brand-copper);
  font-family: 'Exo 2', sans-serif;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 1.25rem;
  color: var(--brand-navy);
  font-weight: 600;
  font-family: 'Exo 2', sans-serif;
}

/* CTA Section */
.cta-section {
  background-color: var(--brand-navy);
  color: var(--brand-white);
  text-align: center;
}

.cta-section h2 {
  color: var(--brand-white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

/* Enhanced Button Hover States */
.btn-primary:hover {
  background-color: #a85f2a;
  box-shadow: 0 12px 24px rgba(196, 122, 58, 0.3);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  background-color: #0a283a;
  box-shadow: 0 12px 24px rgba(8, 29, 45, 0.3);
  transform: translateY(-2px);
}

/* Footer Links */
.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-copper);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.5rem; }

  .section {
    padding: 2.5rem 1rem;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

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

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

  .btn {
    width: 100%;
    padding: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  input, textarea, select {
    min-height: 44px;
    font-size: 16px;
  }

  .card-content {
    padding: 1.25rem;
  }

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

  .contact-form-section {
    padding: 1.5rem;
  }

  .package-card.featured {
    transform: scale(1);
  }

  .project-image {
    height: 160px;
  }
}
