/* ===== Global Styles ===== */
:root {
  --blue: #0b3d56;
  --green: #2e6b4f;
  --sand: #f1ede6;
  --sea: #0f5a6b;
  --text: #22313f;
  --light: #ffffff;
  --dark: #0a232d;
  --accent: #7fc8a9;
  --maxw: 1100px;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px;
}

a {
  color: var(--sea);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ===== Header / Navigation ===== */
header {
  position: sticky;
  top: 0;
  background: var(--light);
  border-bottom: 1px solid #e3e6ea;
  z-index: 1000;
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand { font-weight: 700; color: var(--blue); }
nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav li a {
  padding: 8px 6px;
  font-weight: 500;
  color: var(--dark);
}
nav li a.active { color: var(--green); font-weight: 700; }

/* Hamburger button */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  background: var(--green);
  color: var(--light);
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: #245541; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--light);
  color: var(--light);
}
.btn-light { background: var(--light); color: var(--blue); }
.btn-light:hover { background: var(--accent); color: var(--dark); }
.btn-outline:hover { background: var(--light); color: var(--blue); }

/* ===== Hero Section ===== */
.hero {
  background: url('hero.jpg') center/cover no-repeat;
  color: #fff;
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 86, 0.45);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
}
.hero h1 { font-size: clamp(28px, 6vw, 48px); margin-bottom: 10px; }
.hero p { font-size: clamp(16px, 2.4vw, 20px); margin-bottom: 22px; }
.hero .cta-group { display: inline-flex; gap: 12px; flex-wrap: wrap; }

/* ===== Sections ===== */
.about, .blog, .contact-info, .contact-form {
  background: #fff;
  border-top: 1px solid #e9edf0;
  border-bottom: 1px solid #e9edf0;
}
.about h2, .blog h2, .contact-info h2, .contact-form h2 { color: var(--blue); }

/* Compact Contact Form */
form {
  display: grid;
  gap: 8px;
  max-width: 500px;
}
label {
  font-weight: 500;
  font-size: 14px;
}
input, textarea {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #d7dde2;
  font: inherit;
  background: #fff;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
button.btn {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

/* ===== Footer ===== */
footer {
  background: var(--blue);
  color: #eaf2f7;
  text-align: center;
  padding: 20px;
}
footer a { color: #eaf2f7; }
footer small {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  .hamburger { display: block; }
  nav ul {
    flex-direction: column;
    gap: 12px;
    background: var(--light);
    border-top: 1px solid #e3e6ea;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  nav ul.show { max-height: 300px; padding: 20px; }
  nav ul li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  nav ul.show li { opacity: 1; transform: translateY(0); }
  .hero { min-height: 50vh; }
  .caption h5 { font-size: 18px; }
  .caption p { font-size: 14px; }
}

/* Accessibility focus */
a:focus, .btn:focus, .hamburger:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
/* Consistent, responsive PNG sizing */
.grid-3 .col img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Desktop (large screens) */
@media (min-width: 1200px) {
  .grid-3 .col img {
    max-width: 320px; /* larger images on wide screens */
  }
}

.grid-3 .col img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Tablet */
@media (max-width: 992px) {
  .grid-3 .col img {
    max-width: 260px; /* moderate size for tablets */
  }
}

/* Mobile */
@media (max-width: 600px) {
  .grid-3 .col img {
    max-width: 200px; /* smaller but still clear on phones */
  }
}
.grid-3 .col figcaption {
  font-size: 14px;
  color: var(--text);
  text-align: center;
  margin-top: 8px;
}

/* Call-to-Action Banner */
.cta-banner {
  background: var(--accent);
  color: var(--dark);
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 {
  font-size: clamp(24px, 5vw, 36px);
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 24px;
}
.cta-banner .cta-group {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Iframe styling */
iframe {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Fade animation for CTA banner text */
.fade { opacity: 0; transition: opacity 1s ease-in-out; }
.fade.show { opacity: 1; 
}

.about {
  background: linear-gradient(to right, var(--sand), var(--light));
  padding: 60px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.about {
  border-top: 1px solid #e3e6ea;
}

.research {
  background: var(--accent); /* soft green highlight */
  color: var(--dark);
  padding: 60px 20px;
}
.research h2 {
  color: var(--blue); /* keep headings consistent */
}

.contact-info, .contact-form {
  background: var(--light); /* clean white for clarity */
  border-top: 1px solid #e9edf0;
  border-bottom: 1px solid #e9edf0;
  padding: 60px 20px;
}
.contact-info h2, .contact-form h2 {
  color: var(--blue);
}

section {
  margin-bottom: 80px;
}

/* Sustainability Story Section */
#sustainability-story {
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  border-left: 6px solid #00796b; /* teal accent */
  padding: 20px;
  margin: 30px 0;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

#sustainability-story h2 {
  color: #004d40; /* deep teal */
  font-size: 1.8em;
  margin-bottom: 15px;
}

#sustainability-story p {
  color: #333;
  margin-bottom: 15px;
}

#sustainability-story a {
  color: #00796b;
  text-decoration: none;
  font-weight: bold;
}

#sustainability-story a:hover {
  text-decoration: underline;
}

#sustainability-story .cta {
  font-style: italic;
  font-weight: bold;
  color: #00695c;
  background: #b2dfdb;
  padding: 10px;
  border-radius: 5px;
}



img.fade {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
img.fade.show {
  opacity: 1;
}

/* Limit carousel images */
.carousel-section img {
  max-width: 100%;
  height: auto;
  object-fit: contain; /* show entire image */
}


.swiper-slide img {
  width: 100%;
  height: auto;        /* let height adjust naturally */
  object-fit: contain; /* show full image, no cropping */
  max-height: 500px;   /* optional: limit very tall images */
}
.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swiper-slide img {
  margin: 0 auto;
  border-radius: 6px;       /* softer corners */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* subtle depth */
}
.caption {
  margin-top: 10px;
  max-width: 80%;
}





#sustainability-story {
  text-align: center;       /* centers headings and paragraphs */
  margin: 0 auto;           /* keeps the block centered */
  max-width: var(--maxw);   /* matches your other .wrap sections */
}

#sustainability-story p {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;         /* keeps paragraphs readable */
}
#sustainability-story .cta {
  display: inline-block;    /* centers the CTA box */
  margin: 20px auto;
}


.video-link {
  text-align: center;
  margin-top: 20px;
}

.video-link a {
  font-weight: 600;
  text-decoration: none;
}


.about-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 60px;
  align-items: center;
}

.about-text {
  flex: 1 1 500px;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


#euronews-feature {
  margin: 60px auto;
  max-width: 800px;
}
#euronews-feature blockquote {
  margin: 20px auto;
  font-size: 1.1em;
  color: #444;
}
#euronews-feature .btn {
  margin-top: 20px;
}

#euronews-research {
  margin: 60px auto;
  max-width: 800px;
}
#euronews-research blockquote {
  margin: 20px auto;
  font-size: 1.1em;
  color: #444;
}
#euronews-research .btn {
  margin-top: 20px;
}

/* Light grey background for research sections */
.research-info, #sustainability-story, #seaweed-farming {
  background-color: #f9f9f9;   /* soft grey */
  padding: 40px 20px;
  border-radius: 8px;
}

/* Slightly tinted background for collaboration block */
#collaboration {
  background-color: #eef6f3;   /* pale green tint */
  padding: 40px 20px;
  border-radius: 8px;
}

/* Euronews teaser with a highlight */
#euronews-research {
  background-color: #f0f7ff;   /* pale blue tint */
  padding: 40px 20px;
  border-radius: 8px;
}


.hero-research {
  background: url('images/mulroy-bay-clear.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  color: #fff; /* switch text to white for contrast */
  padding: 100px 20px;
}

.hero-research::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 60, 0.5); /* dark blue overlay */
}

.hero-research .hero-content {
  position: relative; /* ensures text sits above overlay */
  z-index: 1;
}

.hero-research .btn {
  position: relative;   /* ensures it sits above overlay */
  z-index: 2;
  font-weight: 600;
  padding: 12px 24px;
}

.hero-research .btn-primary {
  background-color: #007bff; /* Bootstrap blue */
  border-color: #007bff;
  color: #fff;
}

.hero-research .btn-light {
  background-color: #fff;
  color: #00334d; /* dark text for contrast */
  border: none;
}

.hero-research .btn {
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

.hero-research .btn {
  background-color: #fff;   /* solid white box */
  color: #002b36;           /* dark text for contrast */
  border: 2px solid #fff;   /* white border to match */
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  position: relative;
  z-index: 2;               /* ensures above overlay */
}

.hero-research .btn:hover {
  background-color: #f0f0f0; /* subtle grey on hover */
  color: #000;
  border-color: #f0f0f0;
}

.hero {
  position: relative;
  background: url('images/mulroy-bay-clear.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 100px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 60, 0.5); /* overlay for readability */
}

.hero .hero-content {
  position: relative;
  z-index: 1;
}
.hero .btn {
  background-color: #fff;
  color: #002b36;
  border: 2px solid #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
}
.hero .btn:hover {
  background-color: #f0f0f0;
  color: #000;
  border-color: #f0f0f0;
}

#rte-video {
  margin: 40px auto;
  max-width: 800px;
}

#rte-video h2 {
  color: #002b36;   /* deep Atlantic blue */
  font-weight: 700;
}

#rte-video p {
  color: #333;      /* dark grey for readability */
  font-size: 1.1rem;
  line-height: 1.6;
}

#rte-video video {
  width: 100%;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.about-section img,
.sustainability-section img,
.innovation-section img,
.trusted-section img {
  width: 100%;              /* fill the container width */
  height: 400px;            /* fixed landscape height */
  object-fit: cover;        /* crop to fit nicely */
  border-radius: 8px;       /* optional: rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.content-wrap {
  display: flex;
  align-items: center;       /* vertically align text and image */
  justify-content: space-between;
  gap: 30px;                 /* space between text and image */
  margin: 40px 0;
}

.text-block {
  flex: 1;                   /* text takes half the width */
}

.image-block {
  flex: 1;                   /* image takes half the width */
}

.image-block img {
  width: 100%;
  height: 300px;             /* force landscape feel */
  object-fit: cover;         /* crop portrait images to landscape */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .content-wrap {
    flex-direction: column;
  }
}

.about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 40px 0;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: 300px;        /* force landscape frame */
  object-fit: cover;    /* crops portrait images into landscape */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .about-block {
    flex-direction: column;
  }
}

/* === About blocks: enforce left text, right image, landscape frames === */
#mission .about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: nowrap;           /* prevent wrapping that breaks side-by-side */
  text-align: left;            /* ensure text aligns left */
}

#mission .about-text {
  flex: 1 1 55%;               /* text column */
}

#mission .about-image {
  flex: 1 1 45%;               /* image column */
  text-align: right;           /* optional: aligns the image container to the right */
}

#mission .about-image img {
  width: 100%;
  max-height: 400px;     /* limit very tall images */
  height: auto;          /* scale naturally */
  object-fit: contain;   /* no cropping */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* Mobile: stack vertically */
@media (max-width: 768px) {
  #mission .about-block {
    flex-direction: column;
    text-align: center;        /* center text on mobile (optional) */
  }
  #mission .about-text,
  #mission .about-image {
    flex: 1 1 100%;
  }
  #mission .about-image img {
    height: 240px;             /* slightly shorter on mobile */
  }
}

/* === About Section Blocks === */
#mission .about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: nowrap;
  text-align: left;
}

#mission .about-text {
  flex: 1 1 55%;
  color: var(--text);          /* consistent body text color */
}

#mission .about-text h2,
#mission .about-text h3 {
  color: var(--blue);          /* headings use brand blue */
  font-weight: 700;
}

#mission .about-image {
  flex: 1 1 45%;
  text-align: right;
}

#mission .about-image img {
  width: 100%;
  max-height: 400px;           /* limit tall images */
  height: auto;
  object-fit: contain;         /* show full subject (no cropping) */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* subtle depth */
  background: var(--light);    /* ensures pale background behind portrait images */
  padding: 4px;                /* small frame around images */
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  #mission .about-block {
    flex-direction: column;
    text-align: center;
  }
  #mission .about-text,
  #mission .about-image {
    flex: 1 1 100%;
  }
  #mission .about-image img {
    max-height: 240px;
  }
}

.signature {
  font-style: italic;
  font-weight: bold;
  margin-top: 2rem;
  color: var(--accent-dark);
}


.contact-email {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-dark);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-info {
  background-color: #f0f6f8; /* soft marine tint */
  padding: 3rem 2rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.col-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 300px;
}

.col h2 {
  margin-bottom: 1rem;
  color: var(--accent-dark);
}

.contact-email {
  font-weight: bold;
  color: var(--accent-dark);
  text-decoration: none;
}
.contact-email:hover {
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

.company-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dark); /* ties into your palette */
  margin-bottom: 0.5rem;
}

.highlight-email {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-dark);
  background-color: #e6f2f5; /* soft highlight tint */
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.highlight-email:hover {
  background-color: #cde6eb; /* darker tint on hover */
}


/* Center the About section container and headings */
.about {
  text-align: center;
}

.about .wrap,
.about {
  margin: 0 auto;
  max-width: var(--maxw);
}

.about h2,
#mission h2 {
  text-align: center;
}

/* Keep paragraphs nicely readable (not stretched) */
.about p,
#mission .about-text {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Center any images within About */
.about img,
#mission .about-image {
  display: block;
  margin: 0 auto;
  text-align: center;
}

/* Override left alignment in mission block */
#mission {
  text-align: center;
}

#mission .about-block {
  text-align: center;   /* overrides the earlier left alignment */
  justify-content: center;
}

#mission .about-text,
#mission .about-image {
  margin-left: auto;
  margin-right: auto;
}

/* Center headings and text for sections using the .about class */
.about { text-align: center; }
.about p { margin-left: auto; margin-right: auto; max-width: 800px; }

