/* =========================================
   yousail-we.work – Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Barlow+Condensed:wght@400;600;700&display=swap');

:root {
  --navy:   #1a2a5e;
  --orange: #d4522a;
  --white:  #ffffff;
  --light:  #f4f4f2;
  --text:   #1a1a1a;
  --font-main: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =========================================
   HEADER / NAV
   ========================================= */

header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-brand {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav-brand strong {
  font-weight: 700;
}

.nav-main-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-main-links a {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orange);
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.nav-main-links a:hover { opacity: 0.75; }

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

.nav-logo img, .nav-logo svg {
  height: 52px;
  width: auto;
}

/* Sub-nav: SAILART models */
.nav-models {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 40px;
  list-style: none;
}

.nav-models a {
  font-family: var(--font-cond);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-models a:hover,
.nav-models a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #222 center/cover no-repeat;
  filter: grayscale(100%);
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,42,94,0.15) 0%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-logo-svg {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
  animation: floatUp 1s ease forwards;
  opacity: 0;
}

.hero-tagline {
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--orange);
  letter-spacing: 0.02em;
  animation: floatUp 1s 0.3s ease forwards;
  opacity: 0;
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   PAGE HERO (subpages)
   ========================================= */

.page-hero {
  width: 100%;
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.page-hero-bg {
  width: 100%;
  height: 100%;
  background: #2a3a6e center/cover no-repeat;
  filter: brightness(0.85);
}

/* =========================================
   CONTENT AREA
   ========================================= */

.content-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 60px;
  align-items: start;
}

.content-wrap.full-width {
  grid-template-columns: 1fr;
}

.content-main .page-label {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.content-main .page-label strong {
  font-weight: 700;
}

.content-main h1 {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.25;
}

.content-main h2 {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
}

.content-main p {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 16px;
}

.content-main p strong {
  font-weight: 700;
}

/* Brand logo sidebar */
.sidebar-brand {
  text-align: right;
}

.sailart-brand {
  font-family: var(--font-main);
  font-style: italic;
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.sailart-brand span {
  font-style: normal;
  font-weight: 800;
}

/* Partner logos */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

.partner-logos img {
  height: 36px;
  width: auto;
}

/* Torqeedo text placeholder */
.torqeedo-logo {
  font-family: var(--font-cond);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* =========================================
   TECH DATA TABLE
   ========================================= */

.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.tech-table tr {
  border-bottom: 1px solid #e8e8e8;
}

.tech-table tr:last-child { border-bottom: none; }

.tech-table td {
  padding: 10px 4px;
  color: #333;
}

.tech-table td:first-child {
  color: #666;
  width: 50%;
}

/* =========================================
   CONTACT PAGE
   ========================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1080px;
  margin: 60px auto;
  padding: 0 40px;
}

.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.contact-info p {
  color: #444;
  margin-bottom: 8px;
  line-height: 1.8;
}

.contact-info a { color: var(--orange); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  margin-bottom: 16px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
}

.contact-form textarea { height: 140px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 12px 32px;
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: #b84020; transform: translateY(-1px); }

/* =========================================
   FOOTER
   ========================================= */

footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 40px;
  font-size: 0.85rem;
  margin-top: 60px;
}

footer a {
  color: var(--orange);
  margin: 0 10px;
}

footer a:hover { opacity: 0.8; }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
  .nav-top { padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
  .nav-main-links { gap: 20px; }
  .nav-models { padding: 10px 20px; gap: 16px; overflow-x: auto; }
  .content-wrap { grid-template-columns: 1fr; padding: 40px 20px; }
  .contact-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .hero { height: 60vh; }
  .sidebar-brand { display: none; }
}
