
/* Global styles */
:root {
  --color-bg: #fdf7f0;
  --color-primary: #5d432c;
  --color-accent: #8c6d48;
  --color-text: #333333;
  --font-body: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

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

/* Layout helpers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 3rem 0;
}

/* Header & nav */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(253,247,240,0.98);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e0d4c5;
}

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

.logo img {
  height: 52px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

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

.menu-icon {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
}

/* Hero */
#hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  inset: 10% 5%;
  max-width: 420px;
  background: rgba(0,0,0,0.45);
  color: #ffffff;
  padding: 1.75rem 2rem;
  border-radius: 10px;
}

.hero-overlay h1 {
  font-family: var(--font-head);
  font-size: 2.1rem;
  margin: 0 0 0.5rem;
}

.hero-overlay .tagline {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  border-radius: 4px;
  border: none;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

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

/* Home sections */
#services-overview h2,
.highlight-section h2,
.cta-section h2,
#services-list h1,
#portfolio-gallery h1,
#contact-form-section h1,
#contact-info h2,
#map h2,
.blog-header h1,
.blog-post h1,
.about-header h1 {
  font-family: var(--font-head);
  color: var(--color-primary);
}

#services-overview {
  background-color: #fffaf4;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  flex: 1 1 calc(20% - 1.5rem);
  background-color: #ffffff;
  border-radius: 8px;
  text-align: center;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.07);
}

.service-card h3 {
  font-family: var(--font-head);
  color: var(--color-primary);
  margin-top: 0.75rem;
}

.service-icon {
  width: 54px;
  margin: 0 auto;
}

.highlight-section {
  text-align: center;
}

.highlight-section p {
  max-width: 750px;
  margin: 0 auto;
}

.cta-section {
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
}

/* About */
#founder-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
}

.profile-photo img.founder-photo {
  border-radius: 12px;
  filter: saturate(1.12) contrast(1.08) brightness(1.03);
}

.profile-text h2 {
  font-family: var(--font-head);
  margin-top: 0;
}

/* Services page */
.services-list-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 2.5rem;
}

.service-card-full {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 1.75rem;
  align-items: center;
}

.service-card-full:nth-child(odd) .service-info {
  order: 2;
}
.service-card-full:nth-child(odd) .service-image {
  order: 1;
}

.service-image img {
  border-radius: 10px;
}

/* Portfolio */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Blog */
.post-excerpt {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.post-thumb {
  border-radius: 8px;
}

/* Contact */
form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input, textarea {
  font-family: var(--font-body);
  padding: 0.6rem 0.7rem;
  border-radius: 4px;
  border: 1px solid #d5c4ae;
}

/* Footer */
footer {
  background-color: #2b2118;
  color: #f5eee7;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social img {
  width: 28px;
  height: 28px;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

/* Responsive */
@media (max-width: 900px) {
  .service-card {
    flex: 1 1 calc(50% - 1.5rem);
  }
  .hero-overlay {
    inset: 8% 5%;
    max-width: 360px;
  }
  .post-excerpt {
    grid-template-columns: minmax(0,1fr);
  }
  #founder-profile,
  .service-card-full {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 5%;
    top: 60px;
    flex-direction: column;
    background-color: #fffaf4;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-icon {
    display: block;
  }
}

@media (max-width: 600px) {
  .service-card {
    flex: 1 1 100%;
  }
  .hero-overlay {
    inset: auto 5% 8% 5%;
  }
}
