/*
Theme Name: Foodyo
Theme URI: https://foodyo.example.com
Author: Foodyo
Author URI: https://foodyo.example.com
Description: A modern, clean, and highly aesthetic landing-page theme for a premium bakery / food delivery website.
Version: 1.0.0
Tested up to: 6.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodyo
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, e-commerce, one-column, two-columns
*/

/*
 * WordPress core block styles & required classes
 */

/* =====================
   CSS Variables / Design Tokens
   ===================== */
:root {
  --radius: 0.625rem;
  --background: #fdf8f6;
  --foreground: #3d2314;
  --card: #ffffff;
  --card-foreground: #3d2314;
  --muted: #f6edea;
  --muted-foreground: #7a5c4d;
  --accent: #fceef0;
  --accent-foreground: #3d2314;
  --berry: #d44d78;
  --berry-deep: #a8325a;
  --cream: #f9f1ee;
  --border: #eadcd6;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* =====================
   Header
   ===================== */
.site-header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--berry);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.875rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--berry);
}

.main-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 0.25rem;
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(120, 30, 60, 0.25);
  padding: 0.75rem 0;
  flex-direction: column;
  gap: 0;
}

.main-nav .menu-item-has-children {
  position: relative;
}

.main-nav .menu-item-has-children:hover > .sub-menu {
  display: flex;
}

.main-nav .sub-menu a {
  padding: 0.5rem 1.25rem;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px -10px rgba(120, 30, 60, 0.25);
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: var(--berry);
  color: #fff;
}

.icon-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 6px 20px -10px rgba(120, 30, 60, 0.25);
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 30px 60px -40px rgba(120, 30, 60, 0.3);
  padding: 1.5rem;
  z-index: 50;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav .sub-menu {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 7rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--berry);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 1rem 0 0;
}

.hero-title em {
  color: var(--berry);
  font-style: italic;
}

.hero-text {
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  max-width: 28rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--berry);
  color: #fff;
  box-shadow: 0 15px 30px -15px rgba(200, 40, 90, 0.7);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-outline {
  border: 1px solid rgba(61, 35, 20, 0.25);
  color: var(--foreground);
}

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

.btn svg {
  width: 1rem;
  height: 1rem;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: -2.5rem;
  border-radius: 9999px;
  background: var(--accent);
  filter: blur(60px);
  opacity: 0.6;
}

.hero-media img {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.search-bar {
  position: absolute;
  left: 50%;
  bottom: -2rem;
  transform: translateX(-50%);
  width: 92%;
  max-width: 56rem;
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 30px 70px -30px rgba(120, 30, 60, 0.3);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.search-bar .field {
  flex: 1;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid rgba(61, 35, 20, 0.1);
}

.search-bar .field:last-of-type {
  border-right: none;
}

.search-bar label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.search-bar .value {
  font-size: 0.875rem;
  font-weight: 600;
}

.search-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--berry);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* =====================
   Section utilities
   ===================== */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-kicker {
  color: var(--berry);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.75rem 0 0;
}

.section-title-left {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.section-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.arrows-pair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arrow-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(61, 35, 20, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.arrow-btn:hover {
  background: #fff;
}

.arrow-btn.next {
  background: var(--berry);
  color: #fff;
  border-color: var(--berry);
}

.arrow-btn.next:hover {
  opacity: 0.9;
}

.arrow-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* =====================
   Category cards
   ===================== */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.category-card {
  background: #fff;
  border-radius: 1.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 30px 60px -40px rgba(120, 30, 60, 0.25);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-thumb {
  width: 100%;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 220px;
}

.category-thumb img {
  max-height: 180px;
  width: auto;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 1.5rem 0 0.25rem;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* =====================
   Welcome / Split banner
   ===================== */
.welcome-text {
  max-width: 32rem;
}

.welcome-text p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-top: 1rem;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.banner-card {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-card .arrow-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.banner-card .arrow-btn:hover {
  background: var(--berry);
  color: #fff;
  border-color: var(--berry);
}

/* =====================
   Product cards
   ===================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: #fff;
  border-radius: 1.75rem;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -45px rgba(120, 30, 60, 0.3);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-actions {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.product-actions .icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--cream);
  box-shadow: none;
}

.product-actions .icon-btn:hover {
  background: var(--berry);
  color: #fff;
}

.product-media {
  height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  max-height: 100%;
  width: auto;
  transition: transform 0.3s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-meta {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.product-meta h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}

.product-price {
  color: var(--berry);
  font-weight: 600;
  white-space: nowrap;
}

/* =====================
   Brand showcase
   ===================== */
.brand-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(61, 35, 20, 0.1);
}

.brand-showcase span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  color: rgba(61, 35, 20, 0.4);
  text-align: center;
  display: block;
}

/* =====================
   Spotlight / Best collection
   ===================== */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.spotlight-card {
  background: #fff;
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 30px 60px -45px rgba(120, 30, 60, 0.3);
}

.spotlight-thumb {
  border-radius: 1.25rem;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 320px;
}

.spotlight-thumb img {
  max-height: 280px;
  width: auto;
}

.spotlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  margin: 0;
}

.spotlight-card .sub {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.spotlight-card .desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-top: 1rem;
}

.spotlight-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* =====================
   Features
   ===================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  border-top: 1px solid rgba(61, 35, 20, 0.1);
  border-bottom: 1px solid rgba(61, 35, 20, 0.1);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.feature-icon {
  color: var(--berry);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.feature-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  stroke-width: 1.4;
}

.feature h4 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
}

.feature p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* =====================
   Footer
   ===================== */
.site-footer {
  margin-top: 5rem;
  background: var(--berry-deep);
  color: #fff;
}

.footer-cta {
  text-align: center;
  padding: 6rem 1.5rem;
}

.footer-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0;
}

.footer-cta p {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-cta .btn {
  margin-top: 2.25rem;
  background: #fff;
  color: var(--foreground);
}

.footer-cta .btn:hover {
  background: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem 1.5rem;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-bottom .brand {
  color: #fff;
}

.footer-bottom .brand-icon {
  background: #fff;
  color: var(--berry-deep);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  background: #fff;
  color: var(--berry-deep);
}

.social-links svg {
  width: 1rem;
  height: 1rem;
}

.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  padding-bottom: 1.5rem;
}

/* =====================
   WordPress required / utility classes
   ===================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.bypostauthor {
  font-weight: 700;
}

.sticky {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: 1.25rem;
}

/* =====================
   Blog / archive / single
   ===================== */
.page-header {
  padding-top: 4rem;
  padding-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.post-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -30px rgba(120, 30, 60, 0.2);
}

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

.post-card .content {
  padding: 1.5rem;
}

.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.post-card .meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.post-card .excerpt {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.pagination .current {
  background: var(--berry);
  color: #fff;
  border-color: var(--berry);
}

.single-content {
  background: #fff;
  border-radius: 1.75rem;
  padding: 2.5rem;
  box-shadow: 0 20px 40px -30px rgba(120, 30, 60, 0.2);
}

.single-content h1,
.single-content h2,
.single-content h3 {
  font-family: var(--font-display);
}

.single-content img {
  border-radius: 1rem;
}

.comments-area {
  margin-top: 3rem;
}

.error-404 {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.error-404 h1 {
  font-family: var(--font-display);
  font-size: 6rem;
  margin: 0;
  color: var(--berry);
}

.error-404 p {
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* =====================
   Responsive
   ===================== */
@media (min-width: 768px) {
  .main-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid,
  .product-grid,
  .banner-grid,
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom .container {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner-grid,
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
