/* Small-Town-Styles.com - Main Stylesheet */

/* CSS Variables */
:root {
  /* Color Palette - Unique teal/navy theme */
  --primary: #0B132B;
  --secondary: #1C2541;
  --accent: #5BC0BE;
  --highlight: #6FFFE9;
  --light: #F8F9FA;
  --light-accent: rgba(95, 192, 190, 0.2);
  --dark: #0B132B;
  --text: #222;
  --light-text: #F8F9FA;
  --shadow: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --header-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--highlight);
}

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

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-font);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-md);
}

/* Button Styles */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--light-text);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}

.btn:hover {
  background-color: transparent;
  color: var(--accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--light-text);
}

/* Header Styles */
header {
  background-color: var(--primary);
  color: var(--light-text);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: var(--space-xs);
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--light-text);
}

nav ul.nav-menu {
  display: flex;
  list-style: none;
}

nav ul.nav-menu li {
  margin-left: var(--space-md);
}

nav ul.nav-menu li a {
  color: var(--light-text);
  font-weight: 600;
  position: relative;
}

nav ul.nav-menu li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--highlight);
  transition: width 0.3s ease;
}

nav ul.nav-menu li a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--light-text);
  text-align: center;
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--light-text);
}

.hero h2:after {
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--highlight);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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='%236FFFE9' fill-opacity='0.1'%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");
}

/* Feature Section */
.features {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  height: 120px;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-content {
  padding: var(--space-md);
}

.feature-content h3 {
  color: var(--secondary);
}

/* News Section */
.news {
  padding: var(--space-xl) 0;
  background-color: var(--light-accent);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
}

.news-img {
  height: 160px;
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

.svg-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-content {
  padding: var(--space-md);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #888;
  margin-top: var(--space-sm);
}

/* Gallery Section */
.gallery {
  padding: var(--space-xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-sm);
}

.gallery-item {
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--secondary);
}

.gallery-item .svg-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.gallery-item:hover .svg-placeholder {
  transform: scale(1.05);
}

/* Contact Section */
.contact {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.contact-info ul {
  list-style: none;
  margin-top: var(--space-md);
}

.contact-info ul li {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
}

.contact-info ul li i {
  margin-right: var(--space-sm);
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-form .form-group {
  margin-bottom: var(--space-sm);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--body-font);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: var(--light-text);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-col h3 {
  color: var(--light-text);
  margin-bottom: var(--space-md);
  position: relative;
}

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

.footer-logo img {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col ul li a {
  color: var(--light-text);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--highlight);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--highlight);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-col form {
  display: flex;
  flex-direction: column;
}

.footer-col input {
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.footer-col .btn {
  align-self: flex-start;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: relative;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary);
    width: 220px;
    padding: var(--space-md);
    flex-direction: column;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  nav ul.nav-menu li {
    margin: var(--space-xs) 0;
  }
}
