/* Ocean Accessories Ltd. — Main Stylesheet */

:root {
  --navy: #2c3e50;
  --navy-dark: #1a2a3a;
  --navy-light: #34495e;
  --orange: #e67e22;
  --orange-hover: #d35400;
  --gray-bg: #f5f5f5;
  --gray-light: #ecf0f1;
  --gray-mid: #7f8c8d;
  --footer-bg: #4a4a4a;
  --white: #ffffff;
  --text: #333333;
  --border: #dddddd;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 92%;
  max-width: 1140px;
  margin: 0 auto;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand img {
  height: 52px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 2px;
  background: #000;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text span {
  color: var(--white);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.brand-text span:first-child {
  font-weight: 600;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav > li > a,
.main-nav .dropdown-toggle {
  color: var(--white);
  font-size: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 3px;
  transition: background 0.2s;
}

.main-nav > li > a:hover,
.main-nav .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-nav > li > a.active {
  background: var(--orange);
  color: var(--white);
}

.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-toggle::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: var(--white);
  margin-top: 3px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s;
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14px;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--gray-light);
  color: var(--navy);
}

.search-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 10px;
  margin-left: 4px;
}

.search-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.open {
  display: flex;
}

.search-box {
  background: var(--white);
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 16px;
  border-radius: 4px;
}

.search-box button {
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--navy) center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-btn {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  transition: 0.25s;
}

.hero-btn:hover {
  background: var(--white);
  color: var(--navy);
}

/* ========== PAGE BANNER ========== */
.page-banner {
  background: var(--gray-bg);
  padding: 50px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--navy);
  font-weight: 700;
}

.page-banner .subtitle {
  margin-top: 10px;
  color: var(--gray-mid);
  font-size: 15px;
}

.page-title-bar {
  text-align: center;
  padding: 40px 20px 20px;
}

.page-title-bar h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--navy);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: inline-block;
  min-width: 280px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 60px 0;
}

.section-gray {
  background: var(--gray-bg);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  color: var(--navy);
  margin-bottom: 28px;
}

.section-title.center {
  text-align: center;
}

.section-title-line {
  text-align: center;
  padding: 40px 0 30px;
}

.section-title-line h1,
.section-title-line h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--navy);
  margin-bottom: 12px;
}

.section-title-line hr {
  border: none;
  border-top: 1px solid #ccc;
  max-width: 900px;
  margin: 0 auto;
}

/* Two-column layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.split-center {
  align-items: center;
}

.split-reverse .split-media {
  order: -1;
}

.prose p {
  margin-bottom: 16px;
  text-align: justify;
}

.prose p strong {
  color: var(--navy);
}

.products-glance {
  text-align: center;
}

.products-glance img {
  max-width: 340px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--navy-light);
  padding: 4px;
}

.products-glance p {
  font-weight: 600;
  color: var(--navy);
}

/* Mission / Vision */
.mission-vision {
  text-align: center;
  padding: 50px 20px;
  background: var(--white);
}

.mission-vision h3 {
  font-family: var(--serif);
  color: var(--navy-light);
  font-size: 22px;
  margin-bottom: 12px;
}

.mission-vision p {
  max-width: 720px;
  margin: 0 auto 36px;
}

/* Our Concerns */
.concerns {
  background: var(--gray-bg);
  padding: 50px 0 60px;
}

.concerns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.concerns-grid h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--navy);
}

.concerns-grid ul {
  list-style: disc;
  padding-left: 20px;
}

.concerns-grid li {
  margin-bottom: 8px;
}

/* Certification carousel */
.cert-section {
  padding: 50px 0 70px;
  background: var(--white);
}

.cert-section .tagline {
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 36px;
}

.text-center {
  text-align: center;
}

.cert-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.cert-track-wrap {
  overflow: hidden;
}

.cert-track {
  display: flex;
  transition: transform 0.4s ease;
}

.cert-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 50px;
}

.cert-card {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--gray-bg);
  transition: 0.3s;
}

.cert-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cert-card .cert-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.cert-card h4 {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 10px;
  min-height: 40px;
}

.cert-card a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  border-radius: 4px;
  margin-top: 8px;
}

.cert-card a:hover {
  background: var(--orange);
}

.cert-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-mid);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.cert-nav:hover {
  background: var(--navy);
}

.cert-nav.prev {
  left: 0;
}

.cert-nav.next {
  right: 0;
}

.cert-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.cert-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gray-mid);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.cert-dots button.active {
  background: var(--gray-mid);
}

/* Factory stats */
.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.factory-box h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}

.factory-box h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 16px 0 10px;
}

.factory-box ul {
  list-style: none;
}

.factory-box li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--border);
}

.factory-box li span {
  font-weight: 600;
  display: inline-block;
  min-width: 160px;
}

.factory-info {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.factory-info p {
  margin-bottom: 10px;
}

.factory-info strong {
  color: var(--navy);
  min-width: 160px;
  display: inline-block;
}

/* Production / Machinery units */
.unit-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.unit-block:last-child {
  border-bottom: none;
}

.unit-block.reverse .unit-img {
  order: -1;
}

.unit-block h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 14px;
  font-weight: 700;
}

.unit-block ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.unit-block li {
  margin-bottom: 6px;
}

.unit-block .capacity {
  font-weight: 700;
  margin-top: 10px;
}

.unit-img img {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
}

/* Team cards */
.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.team-intro h1 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 16px;
}

.team-intro h2 {
  font-family: var(--serif);
  color: var(--navy-light);
  font-size: 20px;
  margin-bottom: 24px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.team-card {
  background: var(--navy);
  border: 2px solid var(--white);
  padding: 32px 20px;
  text-align: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-card .avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card .avatar svg {
  width: 36px;
  height: 36px;
  fill: var(--white);
  opacity: 0.8;
}

.team-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* Products page */
.products-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.products-list h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--navy);
}

.products-list ul {
  list-style: disc;
  padding-left: 22px;
}

.products-list li {
  margin-bottom: 12px;
  font-size: 15px;
}

.products-list a {
  color: var(--navy);
}

.products-list a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* Contact */
.stay-close {
  text-align: center;
  padding: 50px 0 30px;
}

.stay-close h2 {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 8px;
}

.stay-close p {
  color: var(--gray-mid);
}

.contact-block {
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.contact-block-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-block-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.contact-block-header a {
  font-size: 13px;
  color: var(--white);
  opacity: 0.9;
}

.contact-block-header a:hover {
  text-decoration: underline;
}

.contact-block-body {
  padding: 20px;
  background: var(--white);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}

.contact-row svg {
  width: 20px;
  height: 20px;
  fill: var(--navy);
  flex-shrink: 0;
  margin-top: 3px;
}

.inquiry-form-wrap {
  margin-top: 40px;
  border: 1px solid var(--border);
}

.inquiry-form-header {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 14px;
  font-family: var(--serif);
  font-size: 20px;
}

.inquiry-form {
  padding: 28px;
  background: var(--white);
}

.inquiry-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: none;
  background: #eeeeee;
  font-size: 15px;
  font-family: inherit;
  border-radius: 2px;
}

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

.inquiry-form button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
}

.inquiry-form button:hover {
  background: var(--orange);
}

.map-wrap {
  margin-top: 30px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* Get A Quote */
.quote-section {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
}

.quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 3px;
  transition: 0.25s;
}

.quote-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.quote-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
}

.footer-main {
  padding: 50px 0 40px;
}

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

.footer-grid h3 {
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
}

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

.footer-grid a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: #5dade2;
  flex-shrink: 0;
  margin-top: 2px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
}

.social-links a:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.footer-copy {
  background: var(--navy-dark);
  text-align: center;
  padding: 16px;
  font-size: 13px;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
  font-size: 20px;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--orange);
}

/* Clients */
.clients-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.clients-content p {
  margin-bottom: 20px;
  font-size: 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .split,
  .factory-grid,
  .concerns-grid,
  .products-layout,
  .unit-block {
    grid-template-columns: 1fr;
  }

  .unit-block.reverse .unit-img {
    order: 0;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s;
  }

  .main-nav.open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav > li > a,
  .main-nav .dropdown-toggle {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    padding-left: 16px;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    color: var(--white);
  }

  .brand-text span {
    font-size: 11px;
    white-space: normal;
  }

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

  .cert-slide {
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
  }

  .hero {
    min-height: 320px;
  }
}
