/* =============================================
   SYLENTRA — Main Stylesheet
   Engineered for Humanity
   ============================================= */

/* --- Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --steel-blue:  #4A9EBF;
  --deep-navy:   #1A2B3C;
  --platinum:    #C0C8D0;
  --mist:        #E8F4F8;
  --white:       #FFFFFF;
  --green:       #2ECC71;
  --text-dark:   #1A2B3C;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --border:      #E2E8F0;
  --nav-height:  72px;
  --max-width:   1160px;
  --radius:      8px;
  --shadow:      0 4px 24px rgba(26,43,60,0.10);
  --shadow-lg:   0 12px 48px rgba(26,43,60,0.15);
  --transition:  0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- Typography --- */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text-mid); line-height: 1.8; }
.lead { font-size: 1.2rem; color: var(--text-mid); line-height: 1.7; }
.small { font-size: 0.875rem; }
.label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel-blue);
}

/* --- Layout Utilities --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--deep-navy); }
.bg-white { background: var(--white); }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text {
  font-size: 1.15rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--deep-navy);
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-mid); transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--steel-blue); }
.nav-cta {
  background: var(--steel-blue); color: var(--white) !important;
  padding: 0.5rem 1.25rem; border-radius: 6px;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--deep-navy) !important; transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--deep-navy); border-radius: 2px; transition: var(--transition); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em;
  transition: all var(--transition); border: 2px solid transparent;
}
.btn-primary {
  background: var(--steel-blue); color: var(--white);
}
.btn-primary:hover { background: var(--deep-navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,158,191,0.35); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline-dark {
  background: transparent; color: var(--steel-blue);
  border-color: var(--steel-blue);
}
.btn-outline-dark:hover { background: var(--steel-blue); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1rem; }

/* --- Hero --- */
.hero {
  min-height: 100vh; padding-top: var(--nav-height);
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1e3a52 50%, var(--deep-navy) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234A9EBF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero-geo {
  position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px; opacity: 0.06;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 span { color: var(--steel-blue); }
.hero .lead { color: rgba(255,255,255,0.75); margin-bottom: 2.5rem; max-width: 580px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 5rem; padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-size: 2.2rem; font-weight: 800; color: var(--steel-blue); display: block;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* --- Section Headers --- */
.section-header { max-width: 680px; margin: 0 auto 4rem; text-align: center; }
.section-header.left { text-align: left; margin: 0 0 3rem; }
.section-header .label { display: block; margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; }

/* --- Cards --- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.75rem; }
.card-accent { border-top: 3px solid var(--steel-blue); }

/* --- Stat Blocks --- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.stat-block { text-align: center; padding: 2rem; }
.stat-block .num {
  font-size: 3rem; font-weight: 800; color: var(--steel-blue);
  display: block; line-height: 1;
}
.stat-block .unit { font-size: 1.2rem; font-weight: 700; color: var(--steel-blue); }
.stat-block .desc { font-size: 0.875rem; color: var(--text-light); margin-top: 0.5rem; letter-spacing: 0.04em; }

/* --- Tables --- */
.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.data-table th {
  background: var(--deep-navy); color: var(--white);
  padding: 1rem 1.25rem; text-align: left;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.data-table th:first-child { border-radius: 8px 0 0 0; }
.data-table th:last-child { border-radius: 0 8px 0 0; }
.data-table td {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--mist); }
.data-table td strong { color: var(--steel-blue); font-weight: 700; }
.data-table td .check { color: var(--green); font-weight: 700; }

/* --- Spec Comparison --- */
.spec-highlight {
  background: linear-gradient(135deg, var(--steel-blue), var(--deep-navy));
  color: var(--white); border-radius: 12px; padding: 2.5rem;
}
.spec-highlight h3 { color: var(--white); margin-bottom: 1.5rem; }

/* --- Timeline --- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 1.5rem; padding-bottom: 2rem; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; position: relative; z-index: 1;
}
.timeline-dot.done { background: var(--green); }
.timeline-dot.wip  { background: var(--steel-blue); }
.timeline-dot.next { background: var(--border); }
.timeline-item:not(:last-child) .timeline-dot::after {
  content: ''; position: absolute; top: 36px; left: 50%;
  transform: translateX(-50%); width: 2px;
  height: calc(100% + 2rem - 36px); background: var(--border);
}
.timeline-content { padding-top: 6px; }
.timeline-content h4 { margin-bottom: 0.25rem; }

/* --- Callout Bar --- */
.callout-bar {
  background: var(--steel-blue); color: var(--white);
  padding: 1.5rem 2rem; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.callout-bar p { color: var(--white); font-weight: 600; margin: 0; font-size: 1.1rem; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1e3a52 100%);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.75); max-width: 700px; margin: 0 auto; }

/* --- Blockquote --- */
blockquote {
  border-left: 4px solid var(--steel-blue); padding: 1.5rem 2rem;
  margin: 2rem 0; background: var(--mist); border-radius: 0 8px 8px 0;
}
blockquote p { font-size: 1.15rem; font-style: italic; color: var(--text-dark); }

/* --- Contact Form --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.875rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--steel-blue);
  box-shadow: 0 0 0 3px rgba(74,158,191,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* --- Footer --- */
.footer {
  background: var(--deep-navy); color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-brand .brand-name { font-weight: 800; color: var(--white); font-size: 1.1rem; letter-spacing: 0.08em; }
.footer-brand .tagline { font-size: 0.8rem; color: var(--steel-blue); font-weight: 600; letter-spacing: 0.06em; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-top: 0.75rem; }
.footer-col h4 { color: var(--white); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--steel-blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--steel-blue); }

/* --- Divider --- */
.divider { height: 1px; background: var(--border); margin: 3rem 0; }
hr { border: none; height: 1px; background: var(--border); }

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge-blue { background: rgba(74,158,191,0.12); color: var(--steel-blue); }
.badge-green { background: rgba(46,204,113,0.12); color: var(--green); }
.badge-navy { background: rgba(26,43,60,0.08); color: var(--deep-navy); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout-bar { flex-direction: column; text-align: center; }
  .hero { min-height: auto; padding: calc(var(--nav-height) + 60px) 0 60px; }
}

/* --- Mobile Menu --- */
.nav-mobile {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem; z-index: 999;
  flex-direction: column; gap: 1rem; box-shadow: var(--shadow);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-weight: 600; font-size: 1rem; color: var(--text-mid); padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }

/* --- Photo Sections --- */
.photo-full {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 12px; display: block;
}
.photo-tall {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 12px; display: block;
}
.photo-wide {
  width: 100%; aspect-ratio: 21/9; object-fit: cover;
  border-radius: 12px; display: block;
}
.photo-caption {
  font-size: 0.8rem; color: var(--text-light);
  text-align: center; margin-top: 0.75rem;
  font-style: italic;
}
.photo-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin: 2rem 0;
}
.photo-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin: 2rem 0;
}
.photo-grid-2 img, .photo-grid-3 img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 10px; display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}
.photo-grid-2 img:hover, .photo-grid-3 img:hover {
  transform: scale(1.02); box-shadow: var(--shadow-lg);
}
.photo-hero {
  position: relative; overflow: hidden; border-radius: 12px;
}
.photo-hero img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}
.photo-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,43,60,0.85) 0%, rgba(26,43,60,0.2) 60%, transparent 100%);
  display: flex; align-items: flex-end; padding: 2rem;
}
.photo-hero-overlay p {
  color: var(--white); font-weight: 600; margin: 0; font-size: 1rem;
}
.bg-photo-hero {
  background-size: cover; background-position: center; background-repeat: no-repeat;
  position: relative;
}
.bg-photo-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,43,60,0.88) 0%, rgba(26,43,60,0.70) 100%);
}
.bg-photo-hero > * { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .photo-grid-2, .photo-grid-3 { grid-template-columns: 1fr; }
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.3s ease both; }
