/* TwinCraft Services - Custom Styles */

:root {
  --primary-blue: #1e3a5f;
  --primary-blue-light: #2d4a6f;
  --marine-accent: #0077b6;
  --marine-accent-light: #0096c7;
  --rv-accent: #2d6a4f;
  --rv-accent-light: #40916c;
  --text-dark: #1a1a2e;
  --text-muted: #4a5568;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.header {
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  height: 55px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-links.active {
    position: static;
    flex-direction: row;
    box-shadow: none;
    padding: 0;
  }
  .mobile-menu-btn {
    display: none !important;
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--marine-accent);
}

.nav-links .btn {
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.nav-links .btn:hover {
  color: white;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  z-index: 10;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
}

.nav-dropdown-content a:hover {
  background: var(--bg-light);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-blue-light);
  transform: translateY(-2px);
}

.btn-marine {
  background: var(--marine-accent);
  color: white;
}

.btn-marine:hover {
  background: var(--marine-accent-light);
}

.btn-rv {
  background: var(--rv-accent);
  color: white;
}

.btn-rv:hover {
  background: var(--rv-accent-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(15, 39, 68, 0.6), rgba(15, 39, 68, 0.7)), url('/images/general/hero-home.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 0;
  min-height: 420px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Service Divisions */
.divisions {
  padding: 5rem 0;
  background: var(--bg-light);
}

.divisions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .divisions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.division-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.division-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.division-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
}

.division-marine .division-image {
  background-color: var(--marine-accent);
  background-image: url('../images/marine/hero-boat.jpg');
}

.division-rv .division-image {
  background-color: var(--rv-accent);
  background-image: url('../images/rv/hero-rv.jpg');
}

.division-content {
  padding: 2rem;
}

.division-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.division-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}

.division-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.division-services {
  list-style: none;
  margin-bottom: 1.5rem;
}

.division-services li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.division-services li:last-child {
  border-bottom: none;
}

.division-services li::before {
  content: '✓';
  color: var(--marine-accent);
  font-weight: bold;
}

.division-rv .division-services li::before {
  color: var(--rv-accent);
}

/* Features Section */
.features {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

.feature-card h4 {
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}

.feature-card p {
  color: var(--text-muted);
}

/* CTA Section */
.cta {
  background: var(--primary-blue);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta .btn-primary {
  background: white;
  color: var(--primary-blue);
}

.cta .btn-primary:hover {
  background: var(--bg-light);
}

/* Page Hero (for subpages) */
.page-hero {
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.page-hero-marine {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.85) 0%, rgba(0, 95, 138, 0.9) 100%), url('/images/marine/sail2.jpg') center/cover no-repeat;
}

.page-hero-rv {
  background: linear-gradient(135deg, var(--rv-accent) 0%, #1b4332 100%);
}

.page-hero-default {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0f2744 100%);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  font-size: 1.125rem;
}

/* Content Sections */
.section {
  padding: 4rem 0;
}

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

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

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Services List */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-item {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.service-item h4 {
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}

.service-item p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-item ul {
  list-style: none;
  color: var(--text-muted);
}

.service-item ul li {
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-item ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--marine-accent);
}

.rv-page .service-item ul li::before {
  color: var(--rv-accent);
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-light);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.about-text h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

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

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.value-item h4 {
  margin-bottom: 0.25rem;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--marine-accent);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

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

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

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Article Cards */
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
