@font-face {
    font-family: 'Gabriel Sans';
    src: url('../fonts/gabriel-sans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #F6F1F1;
    --color-light-blue: #577BC1;
    --color-dark-blue: #344CB7;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-yellow: #FFEB00;
}

body {
    font-family: 'Gabriel Sans', Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-black);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: var(--color-light-blue);
}

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

html, body {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

a:hover {
    color: var(--color-yellow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-black);
    border-bottom: 2px solid var(--color-light-blue);
    width: 100%;
}

/* navbar styles */

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    position: relative;
}

.nav-left .logo {
    height: 60px;
}

.nav-center {
    display: none;
    flex: 1;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.phone-link {
    color: var(--color-light-blue);
    font-weight: bold;
    margin-right: 2rem;
    text-decoration: none;
    transition: color 0.2s;
}
.phone-link:hover {
    color: var(--color-yellow);
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.desktop-nav a {
    color: var(--color-light-blue);
    font-weight: bold;
    transition: color 0.2s;
}
.desktop-nav a:hover {
    color: var(--color-yellow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-light-blue);
    border-radius: 2px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 240px;
    height: 100vh;
    background: var(--color-black);
    border-right: 2px solid var(--color-light-blue);
    box-shadow: 2px 0 12px rgba(20, 108, 148, 0.08);
    transition: left 0.3s;
    z-index: 2000;
    padding: 2rem 1rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.mobile-nav.open {
    left: 0;
}
.close-mobile-nav {
    background: none;
    border: none;
    color: var(--color-light-blue);
    font-size: 2rem;
    align-self: flex-end;
    cursor: pointer;
}
.mobile-nav .phone-link {
    margin: 0 0 1rem 0;
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav a {
    color: var(--color-light-blue);
    font-size: 1.2rem;
    font-weight: bold;
}
.mobile-nav a:hover {
    color: var(--color-yellow);
}

/* Responsive navbar styles */

@media (max-width: 700px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    .nav-left {
        display: none;
    }
    .nav-center {
        display: flex;
    }
    .nav-center .mobile-logo {
        height: 48px;
        margin: 0 auto;
    }
    .nav-right {
        gap: 1rem;
    }
    .phone-link {
        display: none;
    }
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

.logo {
    height: 60px;
    margin-right: 2rem;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.site-header nav a {
    color: var(--color-light-blue);
    font-weight: bold;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: var(--color-yellow);
}

.hero {
    position: relative;
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin-bottom: 1rem;
    background: none;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/main_hero.jpg') center center/cover no-repeat;
    filter: brightness(0.55) saturate(1.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding-left: 15rem;
    padding-bottom: 8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0,0,0,0.45);
    text-align: left;
}


.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    text-align: left;
}

/* Hero Responsive Styles */

@media (max-width: 700px) {
    .hero {
        min-height: 350px; /* Increased height for mobile */
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .hero-bg {
        filter: none; /* Remove the overlay effect on mobile */
    }

    .hero-content {
        padding: 2.5rem 1rem 2rem 1rem;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.5rem;
        text-shadow: 0 2px 15px rgba(0,0,0,0.9); /* Enhanced text shadow for visibility without overlay */
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-shadow: 0 2px 15px rgba(0,0,0,0.9);
    }
}

/* Additional adjustments for smaller mobile screens */
@media (max-width: 480px) {
    .hero {
        min-height: 400px; /* Even taller for small screens */
    }
    
    .hero-content {
        padding-top: 3.5rem;
    }
    
    .hero-title {
        line-height: 1.4;
    }
}

/* what we do section */
.business-scope {
    width: 100%;
    background: linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-dark-blue) 100%);
    color: var(--color-white);
    padding: 3rem 0;
    position: relative;
    margin-bottom: 1rem;
}

.business-scope-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.business-scope h2 {
    color: var(--color-yellow);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: bold;
    text-shadow: 0 4px 24px rgba(0,0,0,0.45);
    
}

.business-scope p {
    text-align: justify;
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0;
}

/* Added styles for mobile responsiveness */
@media (max-width: 700px) {
    .business-scope-content h2 {
        font-size: 1.3rem;
        text-align: center;
    }
    .business-scope-content p {
        font-size: 1rem;
        text-align: justify;
        padding: 0 0.5rem;
    }
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-yellow);
    font-weight: bold;
}

/* Services Preview Section */
.what-we-do-grid {
    width: 100vw;
    max-width: 100%;
    background: var(--color-bg);
    padding: 0;
    margin-bottom: 1rem;
}

.wwd-row {
    display: flex;
    width: 100%;
    min-height: 320px;
    gap: 0;
    background-color: var(--color-bg);  
}

.wwd-row + .wwd-row {
    margin-top: 10px; /* Black gap between rows */
}

.wwd-text, .wwd-img {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 320px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwd-text {
    background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-dark-blue) 100%);
    color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 2.5rem; /* Reduced vertical padding for more condensed appearance */
    text-align: left;
}

/* New animation classes for text content */
.wwd-text h3,
.wwd-text p,
.wwd-text ul,
.wwd-text .button {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.23,1.01,.32,1);
}

.wwd-text h3 {
    transition-delay: 0.1s;
}

.wwd-text p {
    transition-delay: 0.2s;
}

.wwd-text ul {
    transition-delay: 0.3s;
}

.wwd-text .button {
    transition-delay: 0.4s;
}

.wwd-list {
    margin-left: 1.5rem;
}

.wwd-row:nth-child(2) .wwd-text {
    text-align: left;
    align-items: flex-start;
}

.wwd-row:nth-child(2) .wwd-list {
    margin-left: 1.5rem !important;
    margin-right: 0 !important;
    text-align: left !important;
}

.wwd-row:nth-child(2) .wwd-text h3, .wwd-text p {
    width: 100%;
}

.wwd-row:nth-child(1) .wwd-text h3,
.wwd-row:nth-child(3) .wwd-text h3 {
    text-align: center;
    width: 100%;
}

.wwd-text h3 {
    color: var(--color-yellow);
    font-size: 1.7rem;
    margin-bottom: 0.7rem; /* Reduced margin for tighter spacing */
    font-weight: bold;
    text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.wwd-text p {
    font-size: 1.1rem;
    line-height: 1.3; /* Reduced line spacing for more condensed appearance */
    margin: 0 0 0.5rem 0; /* Added bottom margin for better paragraph spacing */
}

.wwd-img {
    padding: 0;
    background: var(--color-black);
    overflow: hidden;
}

.wwd-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* Animation for the text sections (services preview section */
@media (max-width: 700px) {
    .what-we-do-grid {
        padding: 0.5rem 0;
    }
    .wwd-row {
        flex-direction: column;
        min-height: unset;
    }
    .wwd-text, .wwd-img {
        width: 100%;
        min-height: 180px;
        padding: 1rem 0.5rem;
    }

     .wwd-row .wwd-img {
        order: 1;
    }
    .wwd-row .wwd-text {
        order: 2;
    }
    
    .wwd-img {
        background: none;
        padding: 0;
    }
    .wwd-img img {
        border: none;
        box-shadow: none;
        background: none;
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }
    
    .wwd-text {
        text-align: center !important;
        align-items: flex-start !important;
    }
    .wwd-list {
        margin-left: 1.5rem !important;
        margin-right: 0 !important;
        text-align: left !important;
        display: block !important;
    }
    .wwd-list li {
        text-align: left !important;
    }
    .wwd-row:nth-child(2) .wwd-text {
        text-align: right;
        align-items: flex-end;
    }
    .wwd-text h3 {
        font-size: 1.1rem;
        text-align: center;
    }
    .wwd-text p {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.25; /* Even tighter line spacing on mobile */
    }
}

footer {
    background: var(--color-dark-blue);
    color: var(--color-white);
    padding: 3rem 2rem 1rem;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--color-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column p {
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.service-area {
    margin-top: 1.2rem;
    font-weight: bold;
    font-size: 1.05rem;
    color: var(--color-light-blue);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-column a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover, .footer-column a:hover {
    color: var(--color-light-blue);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-icon {
    display: flex;
    align-items: center;
    color: var(--color-white);
    text-decoration: none;
    gap: 0.5rem;
    transition: color 0.2s;
}

.social-icon:hover {
    color: var(--color-light-blue);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.button, .button-secondary {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    padding: 12px 32px;
    border: 2px solid var(--color-dark-blue);
    border-radius: 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(20, 108, 148, 0.10);
    display: inline-block;
}
.button:hover, .button-secondary:hover {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-yellow);
}
.button-secondary {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    border: 2px solid var(--color-dark-blue);
}
/* Center buttons in the services grid */
.wwd-text .button {
    display: block;
    margin-top: 1rem; /* Reduced from default to fit the condensed layout */
    margin: 1.5rem auto 0 auto;
}

.cta-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin-bottom: 1rem;
}
.cta-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/coral_reef_aquarium.jpg') center center/cover no-repeat;
  filter: brightness(0.6) saturate(1.1);
  z-index: 1;
}
.cta-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(20,108,148,0.55) 0%, rgba(25,167,206,0.45) 100%);
  z-index: 2;
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  max-width: 1200px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 2rem;
  gap: 2.5rem;
  margin: 0 auto;
}
.cta-text {
  flex: 1 1 50%;
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 6rem;
}
.cta-text h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--color-yellow);
}
.cta-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}
.cta-form {
  flex: 1 1 40%;
  background: rgba(255,255,255,0.88);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(20, 108, 148, 0.13);
  padding: 1.5rem;
  width: 450px;
  max-width: 100%;
  overflow: hidden;
  margin-left: auto;
  margin-right: 0;
  transition: transform 0.2s cubic-bezier(.23,1.01,.32,1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0.6rem 1rem;
}
.cta-form label {
  font-weight: bold;
  color: var(--color-dark-blue);
  margin-bottom: 0.1rem;
  display: inline-block;
}
.cta-form input,
.cta-form textarea {
  border: 1.5px solid var(--color-light-blue);
  border-radius: 5px;
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f6f8fa;
  color: var(--color-black);
  resize: none;
  width: 100%;
  box-sizing: border-box;
}
.cta-form input:focus,
.cta-form textarea:focus {
  outline: 2px solid var(--color-dark-blue);
  border-color: var(--color-dark-blue);
}
.cta-form .button {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.6rem;
}
.cta-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.2rem;
}
.cta-form textarea {
  height: 80px;
}
.cta-form button {
  background-color: var(--color-dark-blue);
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.7rem;
}
.cta-form button:hover {
  background-color: var(--color-light-blue);
}
.cta-thankyou {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  animation: popIn 0.3s cubic-bezier(.23,1.01,.32,1);
}
.cta-thankyou-inner {
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(20, 108, 148, 0.13);
  padding: 2rem 2.5rem;
  text-align: center;
}
@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  80% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 900px) {
  .cta-form {
    grid-template-columns: 1fr;
  }
  
  .cta-form .form-group,
  .cta-form div {
    grid-column: 1 !important;
  }
  
  .cta-content {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  .cta-form {
    margin: 0 auto;
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  .cta-section {
    min-height: 0;
  }
  .cta-content {
    flex-direction: column;
    padding: 1.2rem 0.3rem;
    gap: 1.2rem;
  }
  .cta-form {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.2rem 1rem;
    min-width: 0;
    grid-gap: 0.4rem;
  }
  
  .cta-form .form-group {
    margin-bottom: 0.1rem;
  }
  
  .cta-form textarea {
    height: 70px;
  }
  
  .cta-form button {
    padding: 0.5rem;
    margin-top: 0.5rem;
  }
  .cta-text {
    margin-right: 0;
    text-align: center;
  }
  .cta-text h2 {
    font-size: 1.2rem;
    text-align: center;
  }
  .cta-text p {
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .logo {
        margin-bottom: 1rem;
    }
    .site-header nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
}

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

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        flex-direction: row;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .footer-column {
        margin-bottom: 1.5rem;
    }
}

.form-status {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

.cta-form button:disabled {
  background-color: #607D8B;
  cursor: not-allowed;
}

.wwd-list li {
    margin-bottom: 0.3rem; /* Tighter spacing between list items */
    line-height: 1.3; /* Consistent with paragraph line height */
}