
/* General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #0A3E4A;
  background-color: var(--light-bg);
}

/* -------------------------------------------------------------------
   Color Palette
   Inspired by the Strategic Localization slide from the PDF, we define
   a cohesive set of brand colours for Intersect Holding. These CSS
   variables make it easy to adjust colours site‑wide without hunting
   through the stylesheet.  
   Primary and secondary teals provide a rich foundation, the accent
   colour is a warm golden tan, and a light background keeps pages
   airy and inviting.
*/
:root {
  --primary-color: #0A3E4A;   /* dark teal */
  --secondary-color: #017E8C; /* mid teal */
  --accent-color: #D4A373;    /* golden tan */
  --light-bg: #F4F8F8;       /* light background */
  --card-bg: #FFFFFF;        /* card background */
  --text-dark: #0A3E4A;      /* dark text colour */
  --text-light: #555;        /* secondary text */

  /* Subtle border colour used throughout cards and panels */
  --border-color: #dcdcdc;
}
header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo styles within the header. The logo uses the accent colour and a classic serif typeface
   to stand out from the navigation. The small-text span reduces the size of the word "Holding"
   for a refined visual hierarchy. */
.logo {
  color: var(--accent-color);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: baseline;
}
.logo .small-text {
  font-size: 20px;
  margin-left: 4px;
  font-weight: 400;
  color: var(--accent-color);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  /* Reserve space for the logo container */
  font-size: 24px;
}
nav ul {
  list-style: none;
  display: flex;
}
nav li {
  margin-left: 20px;
}
nav a {
  color: #fff;
  text-decoration: none;
  /* Use a lighter font weight in the navigation to reduce heaviness */
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--accent-color);
}
/* Responsive Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  background: #fff;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transition: 0.3s;
}
nav.responsive {
  flex-direction: column;
  background-color: #0A192F;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  overflow: hidden;
}
nav.responsive ul {
  flex-direction: column;
}
nav.responsive li {
  margin: 10px 0;
}
/* Hero Section */
.hero {
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 150px 20px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Dark overlay tinted with our primary colour */
  background: rgba(10, 62, 74, 0.7);
}
.hero .content {
  position: relative;
  z-index: 1;
}
.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
}
.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero .btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.hero .btn:hover {
  background-color: #C58C57;
}
/* Sections */
section {
  padding: 60px 20px;
}
section .container {
  max-width: 1200px;
  margin: 0 auto;
}
section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary-color);
}
section p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.7;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  /* creative card shape using clip-path for a slanted bottom edge */
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);

  /* Add a subtle border to distinguish cards from the background */
  border: 1px solid var(--border-color);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 20px;
}
.card-body h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.card-body p {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-light);
}
.card-body .link {
  display: inline-block;
  margin-top: 10px;
  color: #0A192F;
  text-decoration: underline;
}
/* Team Section */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.team-member {
  text-align: center;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);

  /* Add a border to team panels */
  border: 1px solid var(--border-color);
}
.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}
.team-member h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--primary-color);
}
.team-member span {
  font-size: 16px;
  color: var(--accent-color);
}
.team-member p {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 10px;
}
/* Contact Form */
.contact-form {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);

  /* Border for the contact form */
  border: 1px solid var(--border-color);
}
.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.contact-form button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.contact-form button:hover {
  background-color: #07414C;
}
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  text-align: center;
}
footer a {
  color: var(--accent-color);
  text-decoration: none;
}

/* Language Switch */
.lang-switch {
  margin-left: 20px;
}
.lang-switch a {
  color: var(--accent-color);
  text-decoration: none;
  margin-left: 10px;
  font-size: 14px;
}
.lang-switch a:first-child {
  margin-left: 0;
}
.lang-switch a:hover {
  color: #C58C57;
}

/* Utility class for responsive images */
.responsive-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

/* -------------------------------------------------------------------
   Project List Layout
   To introduce more variety in the Projects page, we use a flexible
   layout instead of repeating the same card design. Each project item
   displays an image and text side by side. The orientation alternates
   on even rows using nth-child selectors for visual interest. On small
   screens the layout stacks vertically. */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.project-item {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px;
}
.project-item:nth-child(even) {
  flex-direction: row-reverse;
}
.project-item img {
  width: 40%;
  max-width: 300px;
  border-radius: 12px;
  object-fit: cover;
}
.project-info {
  flex: 1;
}
.project-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.project-info p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .project-item {
    flex-direction: column;
  }
  .project-item img {
    width: 100%;
    max-width: none;
    margin-bottom: 15px;
  }
}
