/* ===============================
   Cardinal Line Solutions LTD
   Global Stylesheet
   =============================== */

:root {
  --light-grey: #d3d3d3;
  --navy: #010230;
  --crimson: crimson;
  --antiquewhite: #dccab3;
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--light-grey);
  color: var(--navy);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--navy);
  color: var(--antiquewhite);
  padding: 2rem 1rem 1rem;
  text-align: center;
  position: relative;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
}

/* Logo */
.logo-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  max-width: 180px;
  margin-bottom: 10px;
}

/* ===============================
   Call Button Styling
   =============================== */

.call-button {
  display: inline-block;
  margin-left: 10px;
  padding: 8px 14px;
  background-color: var(--crimson);
  color: var(--antiquewhite);
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.call-button:hover {
  background-color: var(--navy);
  transform: scale(1.05);
}

/* Responsive Hotline Banner */
.hotline-banner {
  position: fixed;
  top: 5px;
  left: 5px;
  background-color: rgb(88, 224, 237);
  color: rgb(14, 35, 222);
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 1rem;
  z-index: 9999;
  border-bottom-right-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hotline-banner:hover {
  background-color: rgb(98, 198, 135);
  transform: scaleX(1.05);
}


/* Home Button */
.home-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgb(102, 234, 234);
  color: var(--crimson);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

.home-button:hover {
  background-color: rgb(124, 185, 147);
  transform: scale(1.05);
}

/* Navigation */
nav {
  background-color: var(--crimson);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: var(--antiquewhite);
  padding: 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: var(--navy);
}

/* Section Styling */
.section {
  background-color: var(--antiquewhite);
  color: var(--navy);
  padding: 2rem;
  margin: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section h2 {
  color: var(--crimson);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.section ul {
  list-style: none;
  padding: 0;
}

.section li {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--crimson);
}

/* Footer */
footer {
  background-color: var(--crimson);
  color: var(--antiquewhite);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ===============================
   Responsive Design
   =============================== */

@media (max-width: 1024px) {
  header h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  nav a {
    flex: 1 1 100%;
    text-align: center;
  }

  .section {
    margin: 1rem 0.5rem;
  }

  .logo {
    max-width: 150px;
  }

  header h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .home-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .hotline-banner {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .section {
    padding: 1rem;
  }
}
