:root {
  --c-primary: #2e8b57;
  --c-secondary: #d2691e;
  --c-accent: #daa520;
  --c-dark: #2f4f4f;
  --c-light: #fdf5e6;
  --c-white: #ffffff;
  --text-main: #2b2b2b;
  --text-muted: #555555;
  --shadow: 0 4px 6px rgba(47, 79, 79, 0.1);
  --shadow-hover: 0 10px 15px rgba(47, 79, 79, 0.2);
  --radius: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--c-light);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--c-primary);
  transition: var(--transition);
}

a:hover {
  color: var(--c-secondary);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Slim Header */
.site-header {
  background-color: var(--c-white);
  box-shadow: var(--shadow);
  padding: 10px 0;
  /* Not sticky/fixed as per requirements */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo svg {
  width: 24px;
  height: 24px;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--c-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--c-primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--c-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--c-secondary);
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--c-dark);
  border: 2px solid var(--c-dark);
}

.btn-secondary:hover {
  background-color: var(--c-dark);
  color: var(--c-white);
}

/* Hero Section */
.hero-section-sailboat-background {
  background: linear-gradient(rgba(47, 79, 79, 0.8), rgba(47, 79, 79, 0.7)), url('images/photo-1505963503943-4c9197c36a44.png') center/cover no-repeat;
  color: var(--c-white);
  padding: 80px 20px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--c-light);
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--c-dark);
  margin-bottom: 10px;
}

/* Grid Layouts */
.gadget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background-color: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-thumbnail {
  transform: scale(1.05);
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.4rem;
  color: var(--c-dark);
  margin-bottom: 10px;
}

.card-excerpt {
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.card-footer {
  margin-top: auto;
}

/* Detail Pages (Gadgets & Articles) */
.detail-header {
  margin-bottom: 40px;
}

.detail-image-hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.detail-title {
  font-size: 2.8rem;
  color: var(--c-dark);
  margin-bottom: 15px;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--c-primary);
}

.detail-content {
  background: var(--c-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.detail-content h2 {
  color: var(--c-dark);
  margin: 30px 0 15px;
}

.detail-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.detail-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.detail-content li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.specs-table th, .specs-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.specs-table th {
  background-color: var(--c-light);
  color: var(--c-dark);
  width: 30%;
}

.cta-box {
  background-color: var(--c-light);
  border-left: 5px solid var(--c-primary);
  padding: 30px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 40px 0;
  text-align: center;
}

/* Form Styles */
.contact-form {
  background: var(--c-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--c-dark);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
.site-footer {
  background-color: var(--c-dark);
  color: var(--c-light);
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--c-white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--c-primary);
}

.footer-col p {
  color: #ccc;
  margin-bottom: 10px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ccc;
}

.footer-col ul li a:hover {
  color: var(--c-primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #999;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--c-white);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Media Queries */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--c-white);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
    z-index: 100;
  }

  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .detail-title {
    font-size: 2rem;
  }
}