/* ============================================================
   Left Shore Technology — styles.css
   Design: Coastal Clarity — Deep Navy + Slate + Amber
   ============================================================ */

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

:root {
  --navy:        #1a2744;
  --navy-dark:   #111b33;
  --navy-mid:    #1e2e52;
  --slate:       #3d5a8a;
  --amber:       #d4922a;
  --amber-light: #f0b84a;
  --amber-bg:    rgba(212,146,42,0.12);
  --white:       #ffffff;
  --off-white:   #f4f6fb;
  --gray-100:    #f1f3f7;
  --gray-200:    #e4e8f0;
  --gray-400:    #8a96aa;
  --gray-600:    #4a5568;
  --gray-800:    #1a202c;
  --border:      #e4e8f0;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.14);
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-serif:  'Source Serif 4', Georgia, serif;
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-amber {
  background: var(--amber);
  color: var(--navy-dark);
}
.btn-amber:hover { background: var(--amber-light); box-shadow: 0 4px 16px rgba(212,146,42,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-full { width: 100%; justify-content: center; }

/* ── Section helpers ──────────────────────────────────────── */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 6.5rem 0; } }

.bg-white { background: var(--white); }
.bg-light  { background: var(--off-white); }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--gray-400);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.accent { color: var(--amber); }

/* ── Check list ───────────────────────────────────────────── */
.check-list { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.45rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4922a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 480px)  { .nav-inner { padding-left: 1.5rem;  padding-right: 1.5rem; } }
@media (min-width: 1024px) { .nav-inner { padding-left: 2rem;    padding-right: 2rem; } }
@media (min-width: 768px) { .nav-inner { height: 76px; } }

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--amber-light); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

/* Hamburger */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--white);
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

/* Open state */
.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open .hamburger::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0 1.25rem;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu ul { display: flex; flex-direction: column; gap: 0; }
.mobile-link {
  display: block;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--white); }
.mobile-cta {
  margin: 1rem 1.25rem 0;
  text-align: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  padding-top: 64px;
}
@media (min-width: 768px) { .hero { padding-top: 76px; } }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(17,27,51,0.88) 40%, rgba(26,39,68,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  max-width: 680px;
}

.hero-content .section-tag { color: var(--amber-light); }

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0.5rem 0 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 64px; }
@media (min-width: 768px) { .hero-wave svg { height: 80px; } }

/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-img { height: 190px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-img img { transform: scale(1.04); }

.service-body { padding: 1.5rem; }

.service-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--amber);
  flex-shrink: 0;
}
.service-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.service-body > p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════
   WHY US
═══════════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-left h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.why-body {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 4px solid var(--amber);
  box-shadow: var(--shadow-sm);
}
.why-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.why-card p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   CAROUSEL
═══════════════════════════════════════════════════════════ */
.carousel-wrapper { max-width: 860px; margin: 0 auto; }

.carousel-track-outer {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--amber);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.carousel-track.dragging { transition: none; }

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

/* Real project slide */
.slide-inner {
  display: grid;
  background: var(--white);
}
@media (min-width: 640px) { .slide-inner { grid-template-columns: 1fr 1fr; } }

.slide-image {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  min-height: 220px;
}
.slide-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.slide-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,39,68,0.75);
  opacity: 0;
  transition: opacity var(--transition);
}
.slide-image:hover .slide-image-overlay { opacity: 1; }
.slide-image-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}

.slide-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--amber-bg);
  color: #a06818;
}

.slide-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.slide-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--slate);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.slide-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.slide-cta { margin-top: 0.5rem; align-self: flex-start; }

/* Placeholder slide */
.slide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 320px;
  background: var(--off-white);
}
.placeholder-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(26,39,68,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  margin-bottom: 1.25rem;
}
.slide-placeholder h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.slide-placeholder p {
  font-size: 0.875rem;
  color: var(--gray-400);
  max-width: 320px;
  line-height: 1.6;
}

/* Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.carousel-btn:hover { background: var(--navy); color: var(--white); }

.carousel-dots { display: flex; gap: 0.5rem; align-items: center; }
.carousel-dot {
  height: 8px;
  border-radius: 999px;
  background: rgba(26,39,68,0.22);
  border: none;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
  width: 8px;
}
.carousel-dot.active { width: 24px; background: var(--navy); }

.carousel-counter {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.6rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: inherit;
  transition: color var(--transition);
}
a.contact-item:hover .contact-value { text-decoration: underline; }

.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 0.15rem;
}
.contact-value {
  display: block;
  font-weight: 600;
  color: var(--gray-800);
  word-break: break-word;
}

.contact-quote {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-row {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}
.required { color: #e53e3e; }
.optional { font-weight: 400; color: var(--gray-400); }

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.1);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}
.form-group textarea { resize: vertical; min-height: 130px; }

.field-error {
  font-size: 0.78rem;
  color: #e53e3e;
  min-height: 1em;
}

.form-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-align: center;
}

.form-success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.form-success[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
}

.footer-inner { padding: 3.5rem 0 1.5rem; }

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; } }

.footer-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.65; }

footer h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1rem;
}

footer nav ul,
.footer-contact ul { display: flex; flex-direction: column; gap: 0.6rem; }

footer nav a,
.footer-contact a,
.footer-contact span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
footer nav a:hover,
.footer-contact a:hover { color: var(--white); }

.footer-contact svg { color: var(--amber); flex-shrink: 0; }

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

.back-to-top {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.back-to-top:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}
