/* DTE Technologies / Earthwise – Static recovery stylesheet
   Inspired by original The7 theme, primary colour #cd2027, Roboto font */

:root {
  --primary: #cd2027;
  --primary-dark: #a01a1f;
  --dark: #1a1a1a;
  --grey: #555;
  --light-grey: #f5f5f5;
  --border: #e0e0e0;
  --white: #ffffff;
  --max-width: 1200px;
  --header-height: 90px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* ========== HEADER ========== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.top-bar a:hover {
  color: #ffcccc;
}

.header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo img {
  height: 56px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  margin-left: 0.75rem;
}

.logo-text strong {
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav > a,
.nav .dropdown > a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
  padding: 0.25rem 0;
}

.nav > a:hover,
.nav .dropdown > a:hover {
  color: var(--primary);
}

.nav > a::after,
.nav .dropdown > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav > a:hover::after,
.nav .dropdown:hover > a::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  padding: 0.5rem 0;
  border-top: 3px solid var(--primary);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--dark);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

.dropdown-menu a:hover {
  background: var(--light-grey);
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 60%, #4a1a1c 100%);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(205,32,39,0.25) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.hero .tagline {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

/* ========== CONTAINER & SECTIONS ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.section-title p {
  margin-top: 1rem;
  color: var(--grey);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== WHO WE ARE ========== */
.who-we-are {
  background: var(--white);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.who-grid h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.who-grid p {
  margin-bottom: 1rem;
  color: var(--grey);
}

.mission-list {
  margin-top: 1rem;
}

.mission-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--grey);
}

.mission-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  margin-top: 1rem;
}

/* ========== SOLUTIONS ========== */
.solutions {
  background: var(--light-grey);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  background: var(--white);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid var(--primary);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.solution-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  color: var(--dark);
}

.solution-card ul {
  margin-bottom: 1rem;
}

.solution-card li {
  font-size: 0.9rem;
  color: var(--grey);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.solution-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.solution-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.solution-card .card-link::after {
  content: '→';
}

/* ========== TEAM / FOUNDERS ========== */
.team {
  background: var(--white);
}

.team-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.team-content p {
  color: var(--grey);
  margin-bottom: 1.25rem;
}

.quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark);
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

/* ========== LOOKING AHEAD ========== */
.looking-ahead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.looking-ahead h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.looking-ahead h2::after {
  background: rgba(255,255,255,0.6);
}

.looking-ahead p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer a {
  color: #ccc;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ========== CONTACT PAGE ========== */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
}

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

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info p,
.contact-info a {
  margin-bottom: 0.5rem;
  color: var(--grey);
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
}

/* ========== SOLUTIONS DETAIL ========== */
.sol-detail {
  max-width: 800px;
  margin: 0 auto;
}

.sol-detail h2 {
  color: var(--primary);
  margin: 2rem 0 1rem;
}

.sol-detail ul {
  margin: 1rem 0 1.5rem;
}

.sol-detail li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  color: var(--grey);
}

.sol-detail li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .who-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav > a,
  .nav .dropdown > a {
    padding: 0.75rem 1rem;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    display: none;
    padding-left: 1rem;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }
  section {
    padding: 2.5rem 0;
  }
}

/* Keep in-page anchor targets clear of the sticky header */
[id] {
  scroll-margin-top: calc(var(--header-height) + 10px);
}
