/* ============================================
   SeaOps Solutions - Marine Consultancy
   Corporate Website Stylesheet
   ============================================ */

/* --- CSS Variables / Brand Colors --- */
:root {
  --navy-dark: #0B1D33;
  --navy: #0F2847;
  --navy-light: #163A5F;
  --teal: #1B8A9E;
  --teal-light: #2CBAD4;
  --wave-mid: #2CBAD4;
  --wave-top: #8AACBE;
  --teal-pale: #E0F4F8;
  --white: #FFFFFF;
  --grey-light: #F4F7FA;
  --grey: #8899AA;
  --grey-dark: #4A5568;
  --text-dark: #1A202C;
  --text-body: #2D3748;
  --shadow: 0 4px 20px rgba(11, 29, 51, 0.10);
  --shadow-lg: 0 10px 40px rgba(11, 29, 51, 0.15);
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--grey);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  margin: 1rem auto 1.5rem;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 138, 158, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline-dark:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
header {
  background: var(--navy-dark);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo-sea {
  color: var(--wave-mid);
}

.logo-solutions {
  color: var(--wave-top);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--teal-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: 8px;
}

nav a {
  color: rgba(255,255,255,0.85);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--white);
  background: rgba(44, 186, 212, 0.15);
}

nav a.active {
  border-bottom: 2px solid var(--teal-light);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(44, 186, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 138, 158, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--teal-light);
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Wave divider */
.wave-divider {
  position: relative;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   SERVICES OVERVIEW (Home Page)
   ============================================ */
.services-overview {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.services-grid.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Simulator sub-headings within service detail cards */
.service-detail-content h4 {
  color: var(--teal);
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon svg {
  width: 34px;
  height: 34px;
  fill: var(--white);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--grey-dark);
  font-size: 0.95rem;
}

/* ============================================
   WHY CHOOSE US / STATS
   ============================================ */
.why-us {
  padding: 80px 0;
  background: var(--grey-light);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--grey-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.about-content {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--grey-dark);
  margin-bottom: 1rem;
}

.about-image {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  border-radius: 16px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(44, 186, 212, 0.2), transparent);
  border-radius: 50%;
  top: 20%;
  left: 20%;
}

.about-image svg {
  width: 120px;
  height: 120px;
  fill: var(--teal-light);
  opacity: 0.6;
  position: relative;
  z-index: 1;
}

/* Values */
.values-section {
  padding: 80px 0;
  background: var(--grey-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}

.value-card h3 {
  margin-bottom: 0.75rem;
  color: var(--navy-dark);
}

.value-card p {
  color: var(--grey-dark);
  font-size: 0.95rem;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-detail {
  padding: 80px 0;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  padding: 40px;
  margin-bottom: 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-detail-icon svg {
  width: 38px;
  height: 38px;
  fill: var(--white);
}

.service-detail-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.service-detail-content p {
  color: var(--grey-dark);
  margin-bottom: 0.75rem;
}

.service-detail-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.service-detail-content ul li {
  background: var(--teal-pale);
  color: var(--teal);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--grey-dark);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--teal);
}

.contact-item h4 {
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--grey-dark);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 138, 158, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .logo-name {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-about .logo-tagline {
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--teal-light);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--teal-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--teal-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  .hero h1 { font-size: 2.6rem; }

  .services-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-inner { height: 70px; }

  .menu-toggle { display: block; }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 20px;
    transform: translateY(-120%);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  nav.active {
    transform: translateY(0);
  }

  nav ul {
    flex-direction: column;
    gap: 4px;
  }

  nav a {
    display: block;
    padding: 12px 16px;
  }

  .hero {
    padding: 130px 0 70px;
    min-height: auto;
  }

  .hero h1 { font-size: 2rem; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }

  .services-grid,
  .values-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-detail-icon {
    margin: 0 auto;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 120px 0 60px; }
  .contact-form { padding: 24px; }
}
