/*
 * Global styles for the Eclat Synergy website.
 * This stylesheet uses relative units (rem) and a flexible layout to
 * support responsive design and user zoom preferences【5059997336344†L186-L195】.
 */

:root {
  /* Colour palette – adjust as needed for brand identity */
  --color-primary: #00447c;
  --color-primary-dark: #002c50;
  --color-secondary: #f4952d;
  --color-background: #f5f7fa;
  --color-text: #222;
  --color-white: #fff;
  --color-gray: #f0f0f0;
  /* Additional colours for callouts and decorative elements */
  --color-callout-bg: #e8f4fd;
  --color-callout-border: #0070c0;
  --spacing: 1rem;
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

a:focus,
a:hover {
  text-decoration: underline;
}

/* Container utility */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing) 0;
}

/* Header and navigation */
.site-header {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
}

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

nav.nav {
  position: relative;
}

/* Hide toggle button on large screens */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--spacing);
}

.menu > li {
  position: relative;
}

.menu a,
.menu button {
  color: var(--color-white);
  padding: 0.5rem 0.75rem;
  display: block;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

.menu button:focus,
.menu button:hover,
.menu a:focus,
.menu a:hover {
  background-color: var(--color-primary-dark);
}

/* Dropdown menu */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary-dark);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  z-index: 1000;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
  display: block;
}

.dropdown li a {
  padding: 0.5rem 0.75rem;
}

/* Hero section */
.hero {
  /* Layer a decorative abstract image with a gradient for depth */
  background-image: linear-gradient(to right, rgba(0, 68, 124, 0.9), rgba(0, 44, 80, 0.9)), url('../images/abstract-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: bold;
  margin-top: 0.5rem;
  transition: background-color 0.3s;
}

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

.btn-primary:hover,

.btn-primary:focus {
  background-color: #d77b1d; /* slightly darker shade of the secondary colour */
}
.btn-primary:hover {
  background-color: #d77b1d;
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

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

/* Sections */
main section {
  margin-bottom: 2rem;
}

main h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing);
}

.card {
  background-color: var(--color-white);
  padding: 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--color-primary);
}

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

.card .btn-secondary {
  margin-top: auto;
}

/* Hover interaction for cards */
.services-grid .card:hover,
.services-grid .card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
  padding: 1rem 0;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .menu {
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    display: none;
  }
  .nav.open .menu {
    display: flex;
  }
  .has-dropdown .dropdown {
    position: static;
    border: none;
  }
}

/* Accessible focus outlines */
a:focus,
button:focus {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
}

/* ------------------------------------------------------- */
/* Long-form and award-winning design enhancements */
/* Hero section for long-form pages */
.hero-long {
  /* Combine decorative image with gradient for parallax effect */
  background-image: linear-gradient(to right, rgba(0, 68, 124, 0.85), rgba(0, 44, 80, 0.85)), url('../images/abstract-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.hero-long .container {
  z-index: 1;
}

/* Decorative floating shapes for hero */
.hero-long::before,
.hero-long::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(60px);
  animation: float 20s infinite alternate ease-in-out;
}

.hero-long::before {
  width: 400px;
  height: 400px;
  background: var(--color-secondary);
  top: -120px;
  right: -120px;
  animation-delay: 2s;
}

.hero-long::after {
  width: 300px;
  height: 300px;
  background: var(--color-callout-border);
  bottom: -100px;
  left: -100px;
}

@keyframes float {
  to {
    transform: translateY(30px) translateX(30px);
  }
}

/* Layout for long-form pages: table of contents and article */
.longform {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

/* Table of contents box */
.toc {
  flex: 0 0 200px;
  max-width: 200px;
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  background-color: var(--color-gray);
  padding: 1rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.toc h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--color-primary);
  text-decoration: none;
}

.toc a:hover,
.toc a:focus {
  text-decoration: underline;
}

/* Long-form article container */
.long-content {
  flex: 1;
  max-width: 800px;
}

.content-section {
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 2rem;
  margin-top: 0;
}

/* Callout box styling */
.callout {
  background-color: var(--color-callout-bg);
  border-left: 4px solid var(--color-callout-border);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
}

.callout h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.callout ul {
  padding-left: 1rem;
  margin: 0;
}

/* Values list with check marks */
.values-list {
  list-style: none;
  padding-left: 0;
}

.values-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.values-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
}

/* Animation reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Media query for small screens */
@media (max-width: 768px) {
  .longform {
    flex-direction: column;
  }
  .toc {
    max-width: none;
    width: auto;
    margin-bottom: 1rem;
  }
  .hero-long {
    text-align: center;
  }
}
