/*
 * Main stylesheet for Chanel Corporate Advisory LLP website.
 *
 * The design uses a restrained colour palette inspired by deep blues
 * and light accents to convey professionalism and trust. All layouts
 * are responsive and adjust gracefully between desktop and mobile
 * breakpoints. Flexbox and CSS grid are used throughout to simplify
 * alignment and spacing. Use the variables defined in :root to tweak
 * colours or sizing globally.
 */

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

/* Root variables for colours and sizing */
:root {
  --primary-color: #0f193a; /* deep navy used for header and footers */
  --secondary-color: #2a5b9e; /* mid blue used for buttons and highlights */
  --secondary-hover: #244e85; /* hover state for buttons */
  --accent-color: #00a3e0; /* lighter accent used sparingly */
  --text-color: #333333; /* body text */
  --background-color: #f5f7fa; /* light background for page sections */
  --card-background: #ffffff; /* card backgrounds */
  --card-shadow: rgba(0, 0, 0, 0.05);
  --border-radius: 6px;
  --max-width: 1200px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header and navigation */
header {
  background-color: var(--primary-color);
  color: #ffffff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

nav .logo {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

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

nav .menu a {
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.5rem 0.3rem;
  transition: color 0.2s ease;
}

nav .menu a:hover,
nav .menu a:focus {
  color: var(--accent-color);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

/* Hero section */
.hero {
  height: 80vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 1rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--secondary-hover);
}

/* General sections */
.section {
  padding: 4rem 1rem 3rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.section p {
  margin-bottom: 1rem;
}

/* About section */
.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-content {
  flex: 1 1 50%;
  min-width: 280px;
}

.about-image {
  flex: 1 1 45%;
  min-width: 280px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 8px var(--card-shadow);
}

/* Highlights list */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-item {
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px var(--card-shadow);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.highlight-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--secondary-color);
  margin-top: 3px;
}

.highlight-item span {
  flex: 1;
}

/* Services page */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.service-card ul {
  list-style: none;
  margin-left: 0;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.service-card li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--secondary-color);
  margin-right: 0.4rem;
  margin-top: 2px;
}

/* Sectors grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sector-item {
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px var(--card-shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.sector-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.sector-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.8rem auto;
}

.sector-item h4 {
  margin-bottom: 0.4rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.sector-item p {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Approach and strengths lists */
.approach-list,
.strength-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.approach-item,
.strength-item {
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px var(--card-shadow);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.approach-item svg,
.strength-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--secondary-color);
  margin-top: 2px;
}

.approach-item span,
.strength-item span {
  flex: 1;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

footer .footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

footer .footer-section {
  flex: 1 1 250px;
}

footer h4 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: #ffffff;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

footer a {
  color: #ffffff;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

/* Media queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    display: none;
    gap: 0.5rem;
  }
  nav .menu.active {
    display: flex;
  }
  nav .nav-toggle {
    display: block;
  }
  .about-wrapper {
    flex-direction: column;
  }
}