/* CHARLES HILL CO. Website Styles */

/* Import Kepler Std font from Adobe Fonts */
@import url('https://use.typekit.net/rkq7vhx.css');

/* CSS Variables for consistent theming */
:root {
  --bg-beige: rgb(221, 218, 211);
  --text-dark: #2c2c2c;
  --accent-pink: #d4738c;
  --white: #ffffff;
  --font-serif: 'kepler-std', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-beige);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header Styles */
header {
  background-color: var(--bg-beige);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text-dark);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.7;
}

/* Hero Section */
.hero {
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Typography */
h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
}

h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: 40px;
}

h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.about-text h1 {
  margin-top: 0;
}

.about-text .license {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* Services Page */
.services-hero {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  margin-bottom: 60px;
}

.services-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-section {
  margin-bottom: 50px;
}

/* Projects Page */
.projects-intro {
  text-align: center;
  margin-bottom: 40px;
}

.projects-intro h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.projects-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Page */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h1 {
  margin-bottom: 30px;
}

.contact-content p {
  font-size: 18px;
  margin-bottom: 40px;
}

.contact-email {
  font-size: 24px;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

.contact-email:hover {
  color: var(--accent-pink);
}

/* Footer */
footer {
  background-color: var(--bg-beige);
  padding: 60px 40px 40px;
  text-align: center;
}

.footer-content h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.footer-content h4 {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.footer-content p {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-email {
  color: var(--text-dark);
  text-decoration: none;
}

.footer-email:hover {
  color: var(--accent-pink);
}

.footer-email .highlight {
  color: var(--accent-pink);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.social-links a {
  color: var(--text-dark);
  font-size: 24px;
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 0.7;
}

.instagram-feed {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.instagram-feed img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

a.feed-powered-by-es {
  display: none !important;
}

.copyright {
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image img {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .projects-gallery {
    grid-template-columns: 1fr;
  }

  .instagram-feed img {
    width: 120px;
    height: 120px;
  }

  main {
    padding: 40px 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }
}
