/*
Theme Name:   ShippingContainerLand Child
Theme URI:    https://shippingcontainerland.com
Description:  GeneratePress Child Theme for ShippingContainerLand.com
Author:       ShippingContainerLand
Template:     generatepress
Version:      1.0.0
Text Domain:  shippingcontainerland-child
*/

/* =========================================================
   VARIABLES & ROOT
   ========================================================= */
:root {
  --color-primary:     #1a3a5c;   /* deep navy */
  --color-secondary:   #e8620a;   /* industrial orange */
  --color-accent:      #2e7d9e;   /* steel blue */
  --color-dark:        #111820;   /* near black */
  --color-light:       #f5f7fa;   /* off white */
  --color-border:      #dde3ea;
  --color-text:        #2c3e50;
  --color-muted:       #6b7c93;
  --font-heading:      'Montserrat', sans-serif;
  --font-body:         'Open Sans', sans-serif;
  --radius:            6px;
  --shadow:            0 2px 12px rgba(0,0,0,0.10);
  --shadow-hover:      0 6px 24px rgba(0,0,0,0.16);
  --max-width:         1200px;
  --transition:        0.22s ease;
}

/* =========================================================
   GLOBAL
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  font-size: 17px;
  line-height: 1.75;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-secondary); }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-top: 0; margin-bottom: 1.2rem; }

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

.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.site-logo img { max-height: 52px; width: auto; }
.site-title a {
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.site-title a span { color: var(--color-secondary); }
.site-description { color: rgba(255,255,255,0.65) !important; font-size: 0.8rem; }

/* Nav */
.main-navigation a {
  color: rgba(255,255,255,0.88) !important;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 14px !important;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--color-secondary) !important;
  color: #fff !important;
}

/* Dropdown */
.main-navigation .sub-menu {
  background: #fff !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
}
.main-navigation .sub-menu a {
  color: var(--color-text) !important;
  font-size: 0.85rem;
}
.main-navigation .sub-menu a:hover {
  background: var(--color-light) !important;
  color: var(--color-primary) !important;
}

/* =========================================================
   HERO (homepage)
   ========================================================= */
.scl-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2238 60%, #1a3a5c 100%);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scl-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='%23ffffff' fill-opacity='0.03'%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");
}
.scl-hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.scl-hero h1 {
  color: #fff;
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.scl-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
}
.scl-hero-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn, .wp-block-button__link, .button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  padding: 14px 30px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-secondary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(232,98,10,0.35);
}
.btn-primary:hover {
  background: #d45508;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,98,10,0.45);
  color: #fff !important;
}
.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* =========================================================
   CATEGORY CARDS (homepage grid)
   ========================================================= */
.scl-categories {
  padding: 70px 24px;
  background: var(--color-light);
}
.scl-categories h2 {
  text-align: center;
  margin-bottom: 10px;
}
.scl-categories .section-sub {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 48px;
}
.scl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.scl-card {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--color-accent);
  text-decoration: none;
  display: block;
}
.scl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--color-secondary);
}
.scl-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.scl-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.scl-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.scl-trust {
  background: var(--color-primary);
  padding: 28px 24px;
}
.scl-trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.scl-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
}
.scl-trust-item span { font-size: 1.3rem; }

/* =========================================================
   CONTENT AREA
   ========================================================= */
.content-area { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; }

/* Article single */
.entry-header { margin-bottom: 32px; }
.entry-title { margin-bottom: 12px; }
.entry-meta {
  color: var(--color-muted);
  font-size: 0.85rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Table of contents */
.scl-toc {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.scl-toc h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.scl-toc ol {
  margin: 0;
  padding-left: 20px;
}
.scl-toc li { margin-bottom: 6px; font-size: 0.92rem; }

/* Info boxes */
.scl-box {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.scl-box-info {
  background: #e8f4fd;
  border-left: 4px solid var(--color-accent);
}
.scl-box-warning {
  background: #fff8e6;
  border-left: 4px solid #f0a500;
}
.scl-box-tip {
  background: #eafaf1;
  border-left: 4px solid #27ae60;
}
.scl-box strong { display: block; margin-bottom: 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Price table */
.scl-price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}
.scl-price-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}
.scl-price-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-border);
}
.scl-price-table tr:nth-child(even) td { background: var(--color-light); }
.scl-price-table tr:hover td { background: #e8f4fd; }

/* CTA block */
.scl-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  padding: 48px 36px;
  text-align: center;
  margin: 48px 0;
}
.scl-cta h3 { color: #fff; margin-bottom: 12px; }
.scl-cta p { color: rgba(255,255,255,0.82); margin-bottom: 24px; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.widget-area { padding: 48px 24px; }
.widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-secondary);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.widget ul li:last-child { border-bottom: none; }

/* =========================================================
   POSTS GRID (archive)
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.post-card h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.35; }
.post-card p { font-size: 0.88rem; color: var(--color-muted); flex: 1; margin-bottom: 16px; }
.post-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-card-link::after { content: '→'; }

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumb-trail {
  font-size: 0.82rem;
  color: var(--color-muted);
  padding: 12px 0;
  margin-bottom: 24px;
}
.breadcrumb-trail a { color: var(--color-accent); }
.breadcrumb-trail .sep { margin: 0 6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-dark) !important;
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 24px !important;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}
.footer-widget h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-secondary);
}
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget ul li { margin-bottom: 8px; }
.footer-widget ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-widget ul li a:hover { color: var(--color-secondary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--color-secondary); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .scl-hero { padding: 52px 20px 60px; }
  .scl-trust-inner { gap: 20px; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .content-area { padding: 32px 16px; }
}
@media (max-width: 480px) {
  .footer-widgets { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
