:root {
  /* Global Colours*/
  --color-text: #09304e;
  --color-background: #F0F5F8;
  --color-primary: #09304e;
  --color-primary-hover: #062233;
  --color-border: rgba(0,0,0,0.1);
  --color-light-bg: #f5f5f5;
  --color-footer-bg: var(--color-primary);
  --color-footer-text: #ffffff;
  --color-card-bg: #a09e9e; /* SOLID */

  /* Global Spacing */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 28px;
  --space-xl: 40px;
  --space-xxl: 60px;

  /* Global Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Global Shadow */
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);

  /* Layout Max Widths */
  --max-width-content: 1500px; /*1100*/
  --max-width-wide: 2000px;
}

/* RESET */
/* Global Formatting*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Verdana;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.7;
  letter-spacing: 0.3px;
  font-size: 18px;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--color-text);
}

ul, ol {
  margin-left: var(--space-lg);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

h1, h2, h3, p, li, div, span {
  cursor: default;
}

a, button {
  cursor: pointer;
}

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

.page-title {
  text-align: left;
  font-size: 2.6rem;
  margin-bottom: var(--space-xl);
  letter-spacing: 1px;
}

/* Disable text selection on content */
.home-page,
.services-page,
.projects-page,
.service-card,
.project-card {
  user-select: none;
  cursor: default;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ========================================================================== 
   HEADER
   ========================================================================== */
header {
  background: var(--color-background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) 0 var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
}

/* HEADER BRAND LAYOUT */
.header-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo img {
  height: 90px;
  object-fit: contain;
  padding-left: var(--space-md);
}

.brand-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icons */
.contact-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Links */
.brand-contact a {
  text-decoration: none;
  color: var(--color-text);
}

.brand-contact a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}


/* LOGO */
.logo img {
  height: 120px;
  max-height: 120px;
  object-fit: contain;
  margin: -15px auto var(--space-xs) auto;
  align-items: center;
}

/* NAVIGATION */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: right;
  gap: var(--space-sm);
  padding: 0;
  margin: var(--space-sm);
}

.nav-links li
{
  font-size: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: var(--space-sm) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, transform 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
  transform: translateY(-2px);
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  margin-top: var(--space-sm);
  color: var(--color-primary);
  margin-right: var(--space-xl);
}

/* ------------------------------------------
   MOBILE NAVIGATION
------------------------------------------- */
@media (max-width: 1268px) {

  /* Hamburger */
  .hamburger {
    display: block;
    margin: var(--space-md) 0 var(--space-md) auto;
    z-index: 1002;
    margin-right: var(--space-md);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    overflow-y: auto;

    display: none;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);

    background: white;
    padding: var(--space-xl);
    margin: 0;

    z-index: 1001;
  }

  /* Show menu */
  .nav-links.show {
    display: flex;
  }

  /* Links */
  .nav-links a {
    padding: var(--space-md);
    color: var(--color-text);
    font-size: 1.2rem;
  }
}


/* ========================================================================== 
   FOOTER
   ========================================================================== */
footer {
  background: var(--color-footer-bg);
  padding: var(--space-xxl) var(--space-xs);
  color: var(--color-footer-text);
  text-align: center;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
  max-width: var(--max-width-content);
  margin: 0 auto;
  width: 100%;
}

.footer-left,
.footer-right,
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the content */
    justify-content: center;
    text-align: center;
}

.footer-left h3,
.footer-right h3,
.footer-center h3 {
  margin-bottom: var(--space-sm);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-footer-text);
}

.footer-left ul,
.footer-right ul,
.footer-center ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-left ul li,
.footer-right ul li,
.footer-center ul li {
  margin: 4px 0;
  font-size: 15px;
}

.footer-social {
  text-align: center;
  margin-top: var(--space-md);
  background-color: var(--color-footer-bg); 
  padding: var(--space-xs);
}

.footer-social a {
  margin: 0 var(--space-sm);
  text-decoration: none;
  color: var(--color-footer-text);
  transition: color 0.3s ease;
}

.footer-social img {
  margin: 0 var(--space-sm);
  width: 75px;
  height: 75px;
  object-fit: contain;
  transition: color 0.3s ease;
  background-color: var(--color-footer-bg);
  border-radius: 8px; 
}

.footer-social a:hover {
  color: var(--color-primary-hover)
}

.footer-social a:hover {
  color: var(--color-primary-hover)
}

.footer-contact a {
  text-decoration: none;
  color: var(--color-footer-text);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

/* Icons */
.footer-contact-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  background: #fff;
}

.footer-contact a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

footer p {
  margin-top: var(--space-lg);
  font-size: 14px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
}

/* ========================================================================== 
   MAIN CONTENT
   ========================================================================== */
main {
  padding: var(--space-xxl) var(--space-lg);
}

.page-separator {
  border: none;
  border-top: 2px solid var(--color-primary);

  margin: var(--space-xl) auto;

  width: calc(100% - 2rem);
  max-width: var(--max-width-content);
}


/* ========================================================================== 
   PAGE WRAPPERS
   ========================================================================== */

/* ========================================================================== 
   HOME PAGE
   ========================================================================== */

.home-page {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.home-hero {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.home-hero p {
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
  color: rgba(0,0,0,0.8);
}

.home-page {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

/* HOMEPAGE SLIDESHOW */
.home-slideshow {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden; /* prevents accidental scrollbars */
}

.home-slideshow img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.home-slideshow .slide {
  display: none;
}

.fade {
  animation: fadeEffect 1.2s ease-in-out;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Dots */
.slideshow-dots {
    position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: var(--color-border);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background-color: var(--color-primary);
}

@media (max-width: 768px) {

  .home-slideshow img {
    height: auto;            
    max-height: 500px;       
    object-fit: contain;     
    background: #fff;
  }

  .dot {
    width: 14px;
    height: 14px;
    margin: 0 8px;
  }

  main {
    padding: var(--space-lg) var(--space-md);
  }

}

/* ========================================================================== 
   SERVICES PAGE
   ========================================================================== */

.services-page {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 600px;
  gap: 40px;
  margin: var(--space-xl) 0;
  max-width: var(--max-width-content);
}

.service-card {
  width: 100%;
  height: 100%;
  display: flex;
  background: #a09e9ea8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card p {
  font-size: 16px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.service-card img {
  width: 100%;
  max-width: 100px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  display: block;
  height: 100px;
}

.service-card h2 {
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.card-content {
  height: 100%;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.card-hover-text {
  position: absolute;
  inset: 0;
  background: #fff;
  color: var(--color-text);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.service-card:hover .card-hover-text {
  opacity: 1000;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* stack */
  }
}


/* ========================================================================== 
   PROJECTS PAGE
   ========================================================================== */
.projects-page {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin: var(--space-xl) 0;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--color-card-bg);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 750px;
}

.project-card .card-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  z-index: 1;
}


.project-card .card-hover-text {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none; /* Safari */
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  font-size: 16px;
}

.project-card p {
  font-size: 18px;
}

.project-card:hover .card-hover-text {
   opacity: 1;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.project-card img {
  width: 100%;
  display: flex;
  justify-content: cover;
}

.project-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;   /* desktop default */
  overflow: hidden;
}

.project-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    height: 500px;
    padding: var(--space-lg);
  }

  .project-card .card-content {
    padding: var(--space-md);
  }

  /* Slideshow height */
  .project-slideshow {
    height: 260px;
  }

  .project-slide img {
    object-fit: contain;
  }

  /* Bigger dots for touch */
  .project-dot {
    width: 14px;
    height: 14px;
    margin: 0 7px;
  }

  .project-card:hover p
  {
    font-size: 12px
  };

  .project-card:hover .card-hover-text {
    opacity: 1;
  }
}

/* ========================================================================== 
   CONTACT PAGE
   ========================================================================== */
.contact-page {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.contact-intro {
  margin-bottom: var(--space-xl);
  text-align: center;
  font-size: 1.1rem;
  color: rgba(0,0,0,0.85);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form input,
.contact-form textarea {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-md);
  font-size: 1rem;
  resize: vertical;
}

.contact-form button {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.15s ease;
  font-weight: 600;
}

.contact-form button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* ========================================================================== 
   ACCREDITATIONS BANNER
   ========================================================================== */

.accreditations-section {
  background: var(--color-light-bg);
  padding: var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.accreditations-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.accreditations-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.accreditations-logos img {
  max-height: 70px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.accreditations-logos img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 768px) {
  .accreditations-logos img {
    max-height: 55px;
  }
}

.contact-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  letter-spacing: 0.5px;
  z-index: 9999;
  animation: pulse 3s infinite;

  display: inline-block;
  transform-origin: center;
}

/* Speech bubble tail */
.contact-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;        
  right: 20px;
  width: 0;
  height: 0;
  border-width: 35px 20px 0 35px;
  border-style: solid;
  border-color: var(--color-primary) transparent transparent transparent;
}

@media (max-width: 768px) {
  .contact-bubble {
    right: 16px;
    left: auto;
    max-width: calc(100vw - 32px);
  }
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================================================== 
   CONTACT FORM STATUS + LOADING STATES
   ========================================================================== */

.form-status {
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.2em; /* prevents layout jump */
  animation: fadeIn 0.3s ease-in;
}

.form-status.sending {
  color: var(--color-text);
  opacity: 0.7;
}

.form-status.success {
  color: #1b7f3b; /* accessible green */
}

.form-status.error {
  color: #b00020; /* accessible red */
}

/* Disable submit button while sending */
.contact-form button:disabled {
  background: var(--color-border);
  color: rgba(255, 255, 255, 0.8);
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

/* Optional subtle spinner (text-based, no images) */
.contact-form button.sending::after {
  content: " …";
  animation: dots 1.4s infinite;
}

@keyframes dots {
  0% { content: " ."; }
  33% { content: " .."; }
  66% { content: " ..."; }
}