{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "create-block/website-footer-block",
  "version": "0.1.0",
  "title": "Footer (Free)",
  "category": "adaire-layout-sections",
  "description": "A fully controllable, inline-editable footer with three zones: top bar, columns section, and bottom bar.",
  "example": {},
  "supports": {
    "html": false,
    "align": true,
    "alignWide": true,
    "anchor": true,
    "customClassName": true,
    "reusable": true
  },
  "textdomain": "website-footer-block",
  "editorScript": "file:./index.js",
  "render": "file:./render.php",
  "style": "file:./style-index.css",
  "editorStyle": "file:./index.css",
  "attributes": {
    "backgroundColor": {
      "type": "string",
      "default": "#12102b"
    },
    "backgroundImage": {
      "type": "string",
      "default": ""
    },
    "backgroundGradient": {
      "type": "string",
      "default": ""
    },
    "backgroundType": {
      "type": "string",
      "default": "solid"
    },
    "textColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "accentColor": {
      "type": "string",
      "default": "#503AA8"
    },
    "fontFamily": {
      "type": "string",
      "default": ""
    },
    "paddingTop": {
      "type": "number",
      "default": 60
    },
    "paddingBottom": {
      "type": "number",
      "default": 40
    },
    "marginTop": {
      "type": "number",
      "default": 0
    },
    "marginBottom": {
      "type": "number",
      "default": 0
    },
    "maxWidth": {
      "type": "number",
      "default": 1200
    },
    "typography": {
      "type": "object",
      "default": {
        "fontFamily": "inherit",
        "baseFontSize": 14,
        "headingFontSize": 16,
        "headingFontWeight": "600",
        "navFontWeight": "400",
        "linkFontWeight": "400",
        "ctaFontWeight": "500"
      }
    },
    "showTopBar": {
      "type": "boolean",
      "default": false
    },
    "showColumnsSection": {
      "type": "boolean",
      "default": true
    },
    "showBottomBar": {
      "type": "boolean",
      "default": true
    },
    "topBar": {
      "type": "object",
      "default": {
        "alignment": "space-between",
        "showDivider": true,
        "fontSize": "medium",
        "backgroundColor": "",
        "paddingVertical": 20,
        "marginTop": 0,
        "marginBottom": 0,
        "copyrightText": "© 2024 Your Company. All rights reserved.",
        "showContactLink": true,
        "contactLinkText": "Contact Us",
        "contactLinkUrl": "#",
        "contactLinkUnderline": false,
        "contactLinkHoverColor": "",
        "contactLinkHoverUnderlineColor": "",
        "contactLinkHoverBackgroundColor": "",
        "contactLinkTransitionDuration": -1,
        "showCopyright": true,
        "showSocialMedia": true,
        "socialLinks": [
          {
            "id": 1,
            "platform": "twitter",
            "label": "Twitter",
            "url": "#",
            "displayStyle": "icon"
          },
          {
            "id": 2,
            "platform": "facebook",
            "label": "Facebook",
            "url": "#",
            "displayStyle": "icon"
          }
        ],
        "hoverColor": "#ffffff",
        "hoverBackgroundColor": "#333333",
        "hoverBorderColor": "",
        "borderColor": "",
        "borderRadius": -1,
        "transitionDuration": -1,
        "iconSize": 24,
        "iconColor": "",
        "iconBgColor": "",
        "iconSpacing": -1
      }
    },
    "columnsSection": {
      "type": "object",
      "default": {
        "columnCount": 4,
        "columnGap": 40,
        "verticalAlignment": "top",
        "columns": [
          {
            "id": 1,
            "type": "brand",
            "width": "auto",
            "textAlign": "left",
            "showHeading": false,
            "headingTag": "h3",
            "headingText": "About Us",
            "textColor": "",
            "marginTop": 0,
            "marginBottom": 0,
            "brandLogo": "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='8' fill='%23503AA8'/%3E%3Ctext x='20' y='27' font-family='Arial, sans-serif' font-size='20' font-weight='700' fill='%23ffffff' text-anchor='middle'%3EY%3C/text%3E%3C/svg%3E",
            "brandLogoWidth": 48,
            "showBrandName": false,
            "brandName": "",
            "description": "We create amazing digital experiences for businesses worldwide.",
            "taglineFontSize": -1,
            "taglineFontWeight": "",
            "taglineLineHeight": -1,
            "taglineLetterSpacing": -1,
            "taglineColor": "",
            "showCta": true,
            "ctaText": "Get Started",
            "ctaUrl": "#",
            "ctaStyle": "button",
            "ctaBackgroundColor": "#503AA8",
            "ctaTextColor": "#ffffff",
            "ctaIcon": "",
            "ctaIconPosition": "none",
            "ctaHoverColor": "#ffffff",
            "ctaHoverBackgroundColor": "#3d2c8d",
            "ctaHoverBorderColor": "",
            "ctaBorderRadius": -1,
            "ctaTransitionDuration": -1,
            "mobilePriority": 1
          },
          {
            "id": 2,
            "type": "nav",
            "width": "auto",
            "textAlign": "left",
            "showHeading": true,
            "headingTag": "h3",
            "headingText": "Quick Links",
            "textColor": "",
            "marginTop": 0,
            "marginBottom": 0,
            "navItems": [
              {
                "id": 1,
                "label": "Home",
                "url": "#"
              },
              {
                "id": 2,
                "label": "About",
                "url": "#"
              },
              {
                "id": 3,
                "label": "Services",
                "url": "#"
              },
              {
                "id": 4,
                "label": "Contact",
                "url": "#"
              }
            ],
            "listStyle": "plain",
            "linkUnderline": false,
            "itemSpacing": 12,
            "linkColor": "",
            "linkHoverColor": "#ffffff",
            "linkHoverUnderlineColor": "",
            "linkHoverBackgroundColor": "",
            "linkTransitionDuration": -1,
            "mobilePriority": 2
          },
          {
            "id": 3,
            "type": "nav",
            "width": "auto",
            "textAlign": "left",
            "showHeading": true,
            "headingTag": "h3",
            "headingText": "Resources",
            "textColor": "",
            "marginTop": 0,
            "marginBottom": 0,
            "navItems": [
              {
                "id": 1,
                "label": "Blog",
                "url": "#"
              },
              {
                "id": 2,
                "label": "Documentation",
                "url": "#"
              },
              {
                "id": 3,
                "label": "Support",
                "url": "#"
              }
            ],
            "listStyle": "plain",
            "linkUnderline": false,
            "itemSpacing": 12,
            "linkColor": "",
            "linkHoverColor": "#ffffff",
            "linkHoverUnderlineColor": "",
            "linkHoverBackgroundColor": "",
            "linkTransitionDuration": -1,
            "mobilePriority": 3
          },
          {
            "id": 4,
            "type": "social",
            "width": "auto",
            "textAlign": "left",
            "showHeading": true,
            "headingTag": "h3",
            "headingText": "Connect",
            "textColor": "",
            "marginTop": 0,
            "marginBottom": 0,
            "socialItems": [
              {
                "id": 1,
                "platform": "twitter",
                "label": "Twitter",
                "url": "#",
                "icon": "twitter"
              },
              {
                "id": 2,
                "platform": "facebook",
                "label": "Facebook",
                "url": "#",
                "icon": "facebook"
              },
              {
                "id": 3,
                "platform": "linkedin",
                "label": "LinkedIn",
                "url": "#",
                "icon": "linkedin"
              }
            ],
            "displayStyle": "vertical",
            "iconSize": 24,
            "iconColor": "",
            "iconBgColor": "",
            "socialHoverColor": "#ffffff",
            "socialHoverBackgroundColor": "#503AA8",
            "socialBorderColor": "",
            "socialHoverBorderColor": "",
            "socialBorderRadius": -1,
            "socialIconSpacing": -1,
            "socialTransitionDuration": -1,
            "mobilePriority": 4
          }
        ]
      }
    },
    "bottomBar": {
      "type": "object",
      "default": {
        "alignment": "space-between",
        "showDivider": true,
        "backgroundColor": "",
        "paddingVertical": 20,
        "marginTop": 0,
        "marginBottom": 0,
        "copyrightText": "© 2024 Your Company. All rights reserved.",
        "showCopyright": true,
        "showPrivacyPolicy": true,
        "showSocialIcons": false,
        "legalLinks": [
          {
            "id": 1,
            "label": "Privacy Policy",
            "url": "#"
          },
          {
            "id": 2,
            "label": "Terms of Service",
            "url": "#"
          },
          {
            "id": 3,
            "label": "Cookie Policy",
            "url": "#"
          }
        ],
        "legalLinkUnderline": false,
        "legalLinkHoverColor": "",
        "legalLinkHoverUnderlineColor": "",
        "legalLinkHoverBackgroundColor": "",
        "legalLinkTransitionDuration": -1,
        "separator": "·",
        "socialIcons": [
          {
            "id": 1,
            "platform": "twitter",
            "label": "Twitter",
            "url": "#",
            "icon": "twitter"
          },
          {
            "id": 2,
            "platform": "facebook",
            "label": "Facebook",
            "url": "#",
            "icon": "facebook"
          },
          {
            "id": 3,
            "platform": "instagram",
            "label": "Instagram",
            "url": "#",
            "icon": "instagram"
          }
        ],
        "hoverColor": "#ffffff",
        "hoverBackgroundColor": "#333333",
        "hoverBorderColor": "",
        "borderColor": "",
        "borderRadius": -1,
        "transitionDuration": -1,
        "iconSize": 24,
        "iconColor": "",
        "iconBgColor": "",
        "iconSpacing": -1
      }
    }
  },
  "patterns": [
    {
      "name": "4-column-footer",
      "title": "4 Column Footer",
      "description": "A 4-column footer with brand, navigation, and social links",
      "content": "<!-- wp:create-block/website-footer-block -->\n<footer class=\"wp-block-create-block-website-footer-block website-footer-block\" style=\"background-color:#12102b;color:#ffffff;padding-top:60px;padding-bottom:40px;--footer-accent-color:#503AA8;--footer-max-width:1200px\"><div class=\"website-footer-block__container\"><div class=\"website-footer-block__top-bar website-footer-block__top-bar--medium\" style=\"text-align:space-between;background-color:transparent;padding:20px 0;border-bottom:1px solid rgba(255,255,255,0.1)\"><div class=\"website-footer-block__top-bar-content\"><div class=\"website-footer-block__top-bar-copyright\"><p>© 2024 Your Company. All rights reserved.</p><span class=\"website-footer-block__separator\"> | </span><a href=\"#\">Contact Us</a></div><div class=\"website-footer-block__top-bar-social\"><div class=\"website-footer-block__social-link-wrapper\"><a href=\"#\" class=\"website-footer-block__social-icon\" aria-label=\"Twitter\">T</a></div><div class=\"website-footer-block__social-link-wrapper\"><a href=\"#\" class=\"website-footer-block__social-icon\" aria-label=\"Facebook\">F</a></div></div></div></div><div class=\"website-footer-block__columns-section\"><div class=\"website-footer-block__columns-grid\" style=\"gap:40px;align-items:flex-start\"><div class=\"website-footer-block__column website-footer-block__column--brand\" style=\"text-align:left;flex-basis:auto\"><h3 class=\"website-footer-block__column-heading\">About Us</h3><div class=\"website-footer-block__brand-name\">Your Brand</div><p class=\"website-footer-block__brand-description\">We create amazing digital experiences for businesses worldwide.</p><a class=\"website-footer-block__cta website-footer-block__cta--button\" href=\"#\" style=\"background-color:#503AA8;color:white\">Get Started</a></div><div class=\"website-footer-block__column website-footer-block__column--nav\" style=\"text-align:left;flex-basis:auto\"><h3 class=\"website-footer-block__column-heading\">Quick Links</h3><ul class=\"website-footer-block__nav-list website-footer-block__nav-list--plain\" style=\"gap:12px\"><li><a href=\"#\">Home</a></li><li><a href=\"#\">About</a></li><li><a href=\"#\">Services</a></li><li><a href=\"#\">Contact</a></li></ul></div><div class=\"website-footer-block__column website-footer-block__column--nav\" style=\"text-align:left;flex-basis:auto\"><h3 class=\"website-footer-block__column-heading\">Resources</h3><ul class=\"website-footer-block__nav-list website-footer-block__nav-list--plain\" style=\"gap:12px\"><li><a href=\"#\">Blog</a></li><li><a href=\"#\">Documentation</a></li><li><a href=\"#\">Support</a></li></ul></div><div class=\"website-footer-block__column website-footer-block__column--social\" style=\"text-align:left;flex-basis:auto\"><h3 class=\"website-footer-block__column-heading\">Connect</h3><div class=\"website-footer-block__social-list website-footer-block__social-list--vertical\"><a href=\"#\">Twitter</a></div><div class=\"website-footer-block__social-list website-footer-block__social-list--vertical\"><a href=\"#\">Facebook</a></div><div class=\"website-footer-block__social-list website-footer-block__social-list--vertical\"><a href=\"#\">LinkedIn</a></div></div></div></div><div class=\"website-footer-block__bottom-bar\" style=\"text-align:space-between;background-color:transparent;padding:20px 0;border-top:1px solid rgba(255,255,255,0.1)\"><div class=\"website-footer-block__bottom-bar-content\"><div class=\"website-footer-block__bottom-bar-copyright\"><p>© 2024 Your Company. All rights reserved.</p></div><div class=\"website-footer-block__bottom-bar-legal\"><span class=\"website-footer-block__legal-link-wrapper\"><a href=\"#\">Privacy Policy</a></span><span class=\"website-footer-block__separator\">·</span><span class=\"website-footer-block__legal-link-wrapper\"><a href=\"#\">Terms of Service</a></span><span class=\"website-footer-block__separator\">·</span><span class=\"website-footer-block__legal-link-wrapper\"><a href=\"#\">Cookie Policy</a></span></div></div></div></div></footer>\n<!-- /wp:create-block/website-footer-block -->"
    }
  ],
  "icon": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"24\" height=\"24\" rx=\"5\" fill=\"white\"/>\n<g clip-path=\"url(#clip0_157_14)\">\n<path d=\"M12.2547 16.1944C12.4728 16.1944 12.6497 16.0175 12.6497 15.7993C12.6497 15.5812 12.4728 15.4043 12.2547 15.4043C12.0365 15.4043 11.8596 15.5812 11.8596 15.7993C11.8596 16.0175 12.0365 16.1944 12.2547 16.1944Z\" fill=\"#D52940\"/>\n<path d=\"M21.1379 12.5112V12.8598C21.1379 12.9477 21.0333 13.0174 20.9022 13.0174H19.6092L19.1528 12.8515L17.7851 12.3535H20.9022C21.03 12.3535 21.1379 12.4265 21.1379 12.5112Z\" fill=\"#D52940\"/>\n<path d=\"M23.757 14.5262L22.3794 14.0283V4.3451C22.3785 3.92498 22.2112 3.52231 21.9141 3.22524C21.6171 2.92817 21.2144 2.76089 20.7943 2.76001H3.71344C3.29347 2.76089 2.89097 2.92822 2.59417 3.22534C2.29736 3.52246 2.13044 3.92513 2.13 4.3451V16.259C2.13 16.6791 2.29678 17.0821 2.59368 17.3793C2.89059 17.6765 3.29333 17.8437 3.71344 17.8441H10.6845L9.54426 19.8259H7.73676C7.63155 19.8259 7.53065 19.8677 7.45625 19.9421C7.38186 20.0165 7.34007 20.1174 7.34007 20.2226C7.34007 20.3278 7.38186 20.4287 7.45625 20.5031C7.53065 20.5775 7.63155 20.6193 7.73676 20.6193H16.771C16.8762 20.6193 16.9771 20.5775 17.0515 20.5031C17.1259 20.4287 17.1676 20.3278 17.1676 20.2226C17.1676 20.1174 17.1259 20.0165 17.0515 19.9421C16.9771 19.8677 16.8762 19.8259 16.771 19.8259H14.9651L13.8215 17.8441H18.7494L19.1992 19.084C19.2231 19.1492 19.2652 19.2063 19.3205 19.2483C19.3758 19.2904 19.442 19.3157 19.5113 19.3213H19.5362C19.601 19.3213 19.6646 19.3039 19.7203 19.2709C19.7761 19.2379 19.822 19.1906 19.8532 19.1338L20.5636 17.8425H20.791C21.2112 17.842 21.6141 17.6749 21.9113 17.3777C22.2085 17.0805 22.3756 16.6776 22.3761 16.2574V15.9669L23.8051 15.1818C23.8681 15.1491 23.92 15.0985 23.9545 15.0365C23.989 14.9744 24.0044 14.9036 23.9989 14.8329C23.9934 14.7621 23.9673 14.6945 23.9237 14.6385C23.88 14.5825 23.8209 14.5406 23.7537 14.5179L23.757 14.5262ZM2.92172 4.3451C2.92216 4.13526 3.00571 3.93414 3.15409 3.78576C3.30248 3.63738 3.5036 3.55382 3.71344 3.55339H20.7943C21.0044 3.55339 21.206 3.63675 21.3547 3.78517C21.5034 3.9336 21.5872 4.13497 21.5877 4.3451V5.897V11.7577V13.5619H21.1063L19.8781 13.1154L19.6092 13.0175L19.1528 12.8515L17.7851 12.3536L17.3237 12.1876C17.2588 12.164 17.1886 12.1594 17.1213 12.1744C17.0539 12.1894 16.9923 12.2234 16.9436 12.2722C16.9193 12.2969 16.8987 12.3248 16.8822 12.3552H3.61385C3.48273 12.3552 3.37816 12.4249 3.37816 12.5129V12.8615C3.37816 12.9494 3.48273 13.0191 3.61385 13.0191H16.9934L17.1925 13.5635H2.9184L2.92172 4.3451ZM14.0423 19.8259H10.4588L11.6007 17.8441H12.907L14.0423 19.8259ZM3.71344 17.0507C3.5036 17.0503 3.30248 16.9668 3.15409 16.8184C3.00571 16.67 2.92216 16.4689 2.92172 16.259V14.3553H17.4797L17.7685 15.1486L18.3146 16.6424L18.4606 17.0458L3.71344 17.0507ZM21.03 17.0159L21.2673 16.5844L21.581 16.4184C21.5519 16.5586 21.4853 16.6882 21.3882 16.7934C21.2912 16.8987 21.1673 16.9756 21.03 17.0159ZM20.8258 16.0018C20.7659 16.0351 20.7164 16.0846 20.6831 16.1445L19.6158 18.0865L17.8133 13.132L22.7694 14.9329L20.8258 16.0018Z\" fill=\"#D52940\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_157_14\">\n<rect width=\"22\" height=\"22\" fill=\"white\" transform=\"translate(1 1)\"/>\n</clipPath>\n</defs>\n</svg>"
}