@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ==============================
   Color Palette for SomTemplates
   ============================== */

/* --- CSS Variables --- */
:root {
    /* Colors */
    /* Primary Colors */
  --text-accent:#1f2937;
  --text-secondary:#6b7280;        /* Dark Charcoal – premium & readable */
  --color-primary: #1ABC9C;  /* turquoise  #40E0D0*/
  /* Secondary Color – Backgrounds, Sections */
  --text-tertiary: #6B7280;  /* tertiary text, placeholders */
  --color-secondary: #F7F7F7;     /* Light Gray – clean & welcoming - background */
  --color-secondary-dark: #EDEDED; /* Slightly darker gray for subtle section contrast */
  /* Accent Color – Text, Icons, Links */
  --color-primary-hover: #16A085;
  /* Optional Neutral Colors */
  --color-base: #FFFFFF;
  --color-light-shadow: rgba(0, 0, 0, 0.05); /* for card shadows */

  --font-size-xs: 12px;   /* captions, small text */
  --font-size-sm: 14px;   /* secondary text */
  --font-size-base: 16px; /* body text */
  --font-size-md: 18px;   /* slightly larger body */
  --font-size-lg: 20px;   /* section headings */
  --font-size-xl: 24px;   /* small hero/large heading */
  --font-size-2xl: 32px;  /* hero subtitle / big heading */
  --font-size-3xl: 40px;  /* hero title */
  --font-size-4xl: 48px;  /* large hero title */

    /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadow */
  --shadow-sm: 0 1px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.15);
}

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased; /* Makes fonts smooth */
  -moz-osx-font-smoothing: grayscale;
}

/* Body / background */
body {
  background-color: var(--color-secondary);
  color: var(--color-accent);
}
/* Headings */
h1, h2, h3 {
  color: var(--color-accent);
}
p {
    color: var(--text-secondary);
}
/* Buttons */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-base);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Secondary buttons (optional) */
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-accent);
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none;
}

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


/* Links */
a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.template {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header container */
.header {
    position: sticky; /* stays on top while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-base); /* white by default */
    z-index: 1000; /* ensures header is above all cards */
    box-shadow: var(--shadow-sm);
}

/* Inner container */
.header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
}
.template .fa-bars {
  display: none;
}
/* Logo */
.header .logo {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-accent);
}

/* Navigation */
.nav .nav-list {
    display: flex;
    list-style: none;
    gap: clamp(15px, 2vw, 30px); /* responsive spacing */
}

.nav .nav-list li a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-accent);
    transition: color 0.3s ease;
}

.nav .nav-list li a:hover {
    color: var(--color-primary-hover);
}

/* Responsive – stack menu on smaller screens */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }
    .template .fa-bars {
      display: inline-block;
      position: fixed;
      top: 10px;
      right: 10px;
      padding: 7px;
      color: white;
      background-color: var(--color-primary);
      border-radius: var(--radius-sm);
      cursor: pointer;
    }
    .nav.close {
      display: none;
    }
    .header .logo {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .header .btn-primary.close{
      display: none;
    }

    .nav .nav-list {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
}


/* MAIN */
.main {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
section {
  padding: 4rem 0; /* top & bottom spacing */
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 6rem 0; /* bigger spacing for hero */
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  row-gap: 1.5rem;
  width: 100%;
  max-width: 1200px;  /* standard desktop max width */
  margin: 0 auto;     /* centers it */
  padding: 0 1.5rem;  /* breathing room on small screens */
}
.main .hero .container h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
  color: var(--text-accent);
  font-weight: 800;
}
.main .hero .container p {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  color: var(--text-secondary);
  line-height: 1.6;

}
.main .hero .container a {
  font-size: 1.125rem;
}

/* GALLERY SECTION */
/* Gallery Section */
.gallery {
    width: 100%;
    background-color: #f9f9fb;
    padding: 80px 20px;
}

.gallery .container {
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 50px;
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three stretched cards */
    gap: 30px; /* spacing between cards */
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards on medium screens */
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* stack cards on mobile */
    }
}

/* Template Card */
.template-card {
    z-index: 1;
    width: 100%;
    background-color: #fff;
    flex-flow: column;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid #d1d5db; /* subtle gray border */
    overflow: hidden;
}


/* Template Image */
.template-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.5s ease;
}
.template-card img:hover {
  transform: scale(1.05);
}
/* Card Content */
.template-card h3{
    z-index: 1;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0px;
    color: #1f2937;
    line-height: 1.6;
    text-align: center;
    padding: 0 7px;
}
.template-card p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  padding: 0 7px;
}
/* Buy Button */
.template-card .btn {
  margin: 0 7px;
  display: inline-block;
  margin-bottom: 10px;
  margin-top: 7px;
  color: var(--color-primary);
  padding: 0px;
  background-color: transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.template-card .btn:hover {
  color: var(--color-primary);
  background-color: transparent;
  text-decoration: underline var(--color-primary);
}

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

.btn-secondary:hover {
    background-color: #16A085;
    color: white;
}



/* WHY CHOOSE US SECTION */
/* Section Styling */
.why_choose_us {
    width: 100%;
    background-color: #f9f9fb;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why_choose_us .container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Title & Subtitle */
h2 {
  margin-bottom:50px;
  color: #1f2937;
}
/* Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Feature Cards */
.feature-card {
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 30px 55px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Icon/Image Wrapper */
.icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 50%;
}

.icon-wrapper img {
    width: 40px;
    height: 40px;
}

/* Card Content */
.feature-card h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin: 12px 0px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 250px;
}


/* CTA Section */
.cta {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1ABC9C 0%, #16A085 100%); /* premium gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 20px;
    margin: 60px 0; /* space from other sections */
}

/* Container inside CTA */
.cta .container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* space between title, paragraph, button */
}

/* CTA Title */
.cta h2 {
    font-size: clamp(2rem, 5vw + 1rem, 3rem); /* responsive heading */
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

/* CTA Paragraph */
.cta p {
    font-size: 1.1rem;
    color: #f0f5f5;
    line-height: 1.6;
}

/* CTA Button */
.cta .btn-primary {
    background-color: #fff;
    color: #16A085;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cta .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .cta {
        padding: 60px 15px;
    }

    .cta h2 {
        font-size: clamp(1.5rem, 6vw + 1rem, 2.5rem);
    }

    .cta p {
        font-size: 1rem;
    }
}



/* Footer Section */
.footer {
    width: 100%;
    background-color: #111827; /* dark premium background */
    color: #f9f9fb;
    padding: 40px 20px;
    text-align: center;
}

/* Container inside footer */
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Footer text */
.footer p {
    font-size: 0.95rem;
    color: #9ca3af; /* light gray for subtle text */
}

/* Social links */
.footer .social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer .social-links a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect */
.footer .social-links a:hover {
    color: #1ABC9C; /* matches your primary color */
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .footer .social-links {
        gap: 15px;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

/* details page */

/* ==============================
   Hero Section
   ============================== */
.template-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  width: 100%;
  padding: 120px 10px;
  color: var(--color-accent);
  margin-bottom: 60px;
}
.template-hero .buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
  width: 150px;
}
.buttons .btn-primary {
    height: 100%;
  width: 150px;
  padding: 10px 20px;
}
.template-hero img {
  border-radius: var(--space-lg);
  margin: 20px 0px;
  width: 90%;
}
.template-hero h1 {
  color: var(--text-accent);
  text-align: start;

  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.template-hero p {
  text-align: start;

  font-size: 1.5rem;
  max-width: 900px;
  color: var(--text-accent);
  margin: 0 auto 40px;
}

.template-hero .btn-primary {
  background-color: #fff;
  color: var(--color-primary);
  font-size: 1.5rem;
  padding: 20px 50px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.template-hero .btn-primary {
  color: white;
  background-color: var(--color-primary);
  padding: 10px 20px;
}

.template-hero .btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* ==============================
   Template Preview Section
   ============================== */
.template-preview {
  text-align: center;
  margin-bottom: 80px;
}

.template-preview h3 {
  font-size: 2.5rem;
  color: var(--text-accent);

  font-weight: 700;
  margin-bottom: 50px;
}

.preview-images {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.preview-images img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-images img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ==============================
   Features Section
   ============================== */
.template-features {
  text-align: center;
  margin-bottom: 80px;
}

.template-features h3 {
  font-size: 2.5rem;
  color: var(--text-accent);
  font-weight: 700;
  margin-bottom: 50px;
}

.template-features ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 50px;
  list-style: none;
}

.template-features ul li {
  background: var(--color-base);
  color: var(--text-accent);
  padding: 30px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
  font-weight: 500;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-features ul li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ==============================
   Pricing / Buy Section
   ============================== */
.template-pricing {
    width: 100%;
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, #16A085 0%, #1ABC9C 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 80px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.template-pricing h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-base);
  margin-bottom: 20px;
}

.template-pricing p {
  font-size: 1.3rem;
  color: var(--color-base);
  max-width: 800px;
  margin: 0 auto 40px;
}

.template-pricing .btn-primary {
  background-color: #fff;
  color: var(--color-primary);
  font-size: 1.5rem;
  padding: 20px 60px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.template-pricing .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background-color: #f0f0f0;
}

/* ==============================
   Reviews Section
   ============================== */
.template-reviews {
  text-align: center;
  margin-bottom: 80px;
  width: 100%;
}

.template-reviews h3 {
  color: var(--text-accent);

  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.review-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  background: var(--color-base);
  padding: 40px 50px;
  border-radius: var(--radius-sm);
  border: none;
  margin: 20px auto;
  max-width: 800px;
}


.review-card p {
  text-align: start;
  font-size: 1.2rem;
  margin-top: 15px;
  color: var(--text-accent);
}
.review-card small {
  color: var(--text-tertiary);
}
.review-card span {
  font-weight: 600;
  color: var(--text-accent);
}

/* ==============================
   Related Templates Section
   ============================== */
.related-templates {
  text-align: center;
  margin-bottom: 80px;
}

.related-templates h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-accent);

  margin-bottom: 50px;
}

.related-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.related-grid .template-card {
  background: var(--color-base);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 300px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-grid .template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.related-grid .template-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-grid .template-card h4 {
  padding: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-accent);
  text-align: center;
}

/* detials responsiveness */
/* ==============================
   Responsive Styles
   ============================== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .template-hero {
        padding: 100px 20px;
    }
    .template-hero img {
      height: 100%;
      width: 90%;
    }
    .template-hero h2 {
        font-size: 3rem;
    }

    .template-hero p {
        font-size: 1.3rem;
    }

    .template-hero .btn-primary {
        font-size: 1.3rem;
        padding: 18px 45px;
    }

    .preview-images {
        flex-wrap: wrap;
        gap: 20px;
    }

    .preview-images img {
        max-width: 300px;
        height: 250px;
    }

    .template-features ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .template-features ul li {
        width: 100%;
        max-width: 350px;
        padding: 25px 30px;
    }

    .template-pricing {
        padding: 80px 20px;
    }

    .template-pricing .btn-primary {
        font-size: 1.3rem;
        padding: 18px 50px;
    }

    .review-card {
        max-width: 90%;
    }

    .related-grid {
        flex-wrap: wrap;
    }

    .related-grid .template-card {
        width: 45%;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .template-hero {
        padding: 80px 15px;
    }

    .template-hero h2 {
        font-size: 2.2rem;
    }

    .template-hero p {
        font-size: 1rem;
    }

    .template-hero .btn-primary {
        font-size: 1.1rem;
        padding: 15px 40px;
    }

    .preview-images {
        flex-direction: column;
        gap: 15px;
    }

    .preview-images img {
        width: 100%;
        height: 200px;
    }

    .template-features ul li {
        width: 100%;
        padding: 20px 25px;
        font-size: 1rem;
    }

    .template-pricing h3 {
        font-size: 2rem;
    }

    .template-pricing p {
        font-size: 1rem;
    }

    .template-pricing .btn-primary {
        font-size: 1.1rem;
        padding: 15px 40px;
    }

    .review-card {
        max-width: 95%;
        padding: 25px 30px;
        font-size: 1rem;
    }

    .related-grid .template-card {
        width: 100%;
    }

    .related-grid .template-card img {
        height: 180px;
    }
}

/* Extra Small Screens (max-width: 480px) */
@media (max-width: 480px) {
    .template-hero {
        padding: 60px 10px;
    }

    .template-hero h2 {
        font-size: 1.8rem;
    }

    .template-hero p {
        font-size: 0.95rem;
    }

    .template-hero .btn-primary {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .preview-images img {
        height: 150px;
    }

    .template-features ul li {
        padding: 18px 20px;
        font-size: 0.95rem;
    }

    .template-pricing .btn-primary {
        font-size: 1rem;
        padding: 12px 35px;
    }

    .review-card {
        padding: 20px 15px;
        font-size: 0.95rem;
    }

    .related-grid .template-card img {
        height: 150px;
    }
}


/* Comment form */
#commentForm {
  width: 70%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 50px;
  background-color: white;
  border: 1px solid var(--color-secondary);
  border-radius: var(--space-sm);
  gap: 20px;
}

#commentForm input, textarea {
  width: 100%;
  padding: 10px 20px;
  border: none;
  background-color: var(--color-secondary);
  border-radius: var(--space-sm);
}
#commentForm button {
    background-color:var(--color-primary);
    color: #fff;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: var(--space-sm);
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}
#commentForm h2 {
  color: var(--text-accent);
}
