/* ============================================
   Resolve IT - Static Website Styles
   Colour palette: Dark charcoal, deep red, white
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #8B1A1A;
  --red-light: #A52A2A;
  --red-dark: #6B1010;
  --dark: #1a1a1a;
  --dark-light: #2a2a2a;
  --grey-dark: #333;
  --grey: #666;
  --grey-light: #999;
  --grey-lighter: #e5e5e5;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--grey-dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--red-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: 2.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--red);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

.site-footer .logo img {
  height: 40px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}

.logo span {
  color: var(--grey-light);
  font-weight: 400;
  font-size: 0.8rem;
  display: block;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--grey-lighter);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--red-light) !important;
}

.nav-cta.active::after {
  display: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* ============================================
   Hero Sections
   ============================================ */

.hero {
  background: var(--dark);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--red-dark) 0%, transparent 70%);
  opacity: 0.15;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  max-width: 640px;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--grey-light);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-contact {
  text-align: right;
}

.hero-phone {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}

.hero-phone:hover {
  color: var(--grey-lighter);
}

.hero-email {
  font-size: 1.1rem;
  color: var(--grey-light);
}

.hero-email:hover {
  color: var(--white);
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--red-dark) 0%, transparent 70%);
  opacity: 0.15;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

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

.page-hero p {
  color: var(--grey-light);
  font-size: 1.15rem;
  max-width: 560px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

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

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

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

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

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--off-white);
}

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

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--grey);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ============================================
   Cards / Grid
   ============================================ */

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

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid var(--grey-lighter);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-with-image {
  padding: 0;
  overflow: hidden;
}

.card-with-image h3,
.card-with-image p {
  padding: 0 2rem;
}

.card-with-image h3 {
  padding-top: 1.5rem;
}

.card-with-image p:last-child {
  padding-bottom: 2rem;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* ============================================
   Why Choose Us / Features
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature {
  display: flex;
  gap: 1.25rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(139, 26, 26, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.2rem;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* ============================================
   Stats Bar
   ============================================ */

.stats-bar {
  background: var(--red-dark);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

/* ============================================
   About Page - Timeline
   ============================================ */

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-intro p {
  font-size: 1.05rem;
  color: var(--grey);
}

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

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* ============================================
   Services Page
   ============================================ */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--grey-lighter);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-detail p {
  color: var(--grey);
}

.service-list {
  list-style: none;
  margin-top: 1rem;
}

.service-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--grey);
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.service-highlight {
  background: var(--off-white);
  border-radius: 10px;
  padding: 2rem;
  border-left: 4px solid var(--red);
}

.service-highlight h4 {
  color: var(--red);
  margin-bottom: 0.5rem;
}

.service-highlight p {
  font-size: 0.95rem;
}

/* ============================================
   Contact Page
   ============================================ */

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

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(139, 26, 26, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.1rem;
}

.contact-info-item h4 {
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--grey);
  font-size: 0.95rem;
}

.contact-info-item a {
  color: var(--grey-dark);
  font-weight: 500;
}

.contact-form {
  background: var(--off-white);
  padding: 2.5rem;
  border-radius: 10px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--grey-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-lighter);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

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

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

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background: var(--dark);
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}

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

.cta-section p {
  color: var(--grey-light);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-phone {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 1.5rem;
}

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

.site-footer {
  background: var(--dark);
  color: var(--grey-light);
  border-top: 1px solid var(--dark-light);
}

.footer-main {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-about p {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: var(--grey-light);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

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

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

.footer-col ul a {
  color: var(--grey-light);
  font-size: 0.9rem;
}

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

.footer-contact-item {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--dark-light);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--grey-light);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 968px) {
  h1 { font-size: 2.25rem; }
  .hero { padding: 4rem 0; }
  .hero h1 { font-size: 2.5rem; }

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

  .hero-contact {
    text-align: left;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-intro,
  .contact-grid,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail.reverse {
    direction: ltr;
  }

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

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

@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3.5rem 0; }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-top: 1px solid var(--dark-light);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .hero-phone {
    font-size: 1.5rem;
  }
}
